blob: 884533a7909ab95cedeb12fa77730eb645ac07b3 [file] [log] [blame] [edit]
<html><body>
<style>
body, h1, h2, h3, div, span, p, pre, a {
margin: 0;
padding: 0;
border: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
body {
font-size: 13px;
padding: 1em;
}
h1 {
font-size: 26px;
margin-bottom: 1em;
}
h2 {
font-size: 24px;
margin-bottom: 1em;
}
h3 {
font-size: 20px;
margin-bottom: 1em;
margin-top: 1em;
}
pre, code {
line-height: 1.5;
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}
pre {
margin-top: 0.5em;
}
h1, h2, h3, p {
font-family: Arial, sans serif;
}
h1, h2, h3 {
border-bottom: solid #CCC 1px;
}
.toc_element {
margin-top: 0.5em;
}
.firstline {
margin-left: 2 em;
}
.method {
margin-top: 1em;
border: solid 1px #CCC;
padding: 1em;
background: #EEE;
}
.details {
font-weight: bold;
font-size: 14px;
}
</style>
<h1><a href="dialogflow_v2.html">Dialogflow API</a> . <a href="dialogflow_v2.projects.html">projects</a> . <a href="dialogflow_v2.projects.locations.html">locations</a> . <a href="dialogflow_v2.projects.locations.suggestions.html">suggestions</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
<code><a href="#generateStatelessSummary">generateStatelessSummary(parent, body=None, x__xgafv=None)</a></code></p>
<p class="firstline"></p>
<p class="toc_element">
<code><a href="#searchKnowledge">searchKnowledge(parent, body=None, x__xgafv=None)</a></code></p>
<p class="firstline"></p>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="close">close()</code>
<pre>Close httplib2 connections.</pre>
</div>
<div class="method">
<code class="details" id="generateStatelessSummary">generateStatelessSummary(parent, body=None, x__xgafv=None)</code>
<pre>
Args:
parent: string, A parameter (required)
body: object, The request body.
The object takes the form of:
{
&quot;conversationProfile&quot;: {
&quot;automatedAgentConfig&quot;: {
&quot;agent&quot;: &quot;A String&quot;,
&quot;sessionTtl&quot;: &quot;A String&quot;,
},
&quot;createTime&quot;: &quot;A String&quot;,
&quot;displayName&quot;: &quot;A String&quot;,
&quot;humanAgentAssistantConfig&quot;: {
&quot;endUserSuggestionConfig&quot;: {
&quot;disableHighLatencyFeaturesSyncDelivery&quot;: True or False,
&quot;enableAsyncToolCall&quot;: True or False,
&quot;featureConfigs&quot;: [
{
&quot;conversationModelConfig&quot;: {
&quot;baselineModelVersion&quot;: &quot;A String&quot;,
&quot;model&quot;: &quot;A String&quot;,
},
&quot;conversationProcessConfig&quot;: {
&quot;recentSentencesCount&quot;: 42,
},
&quot;disableAgentQueryLogging&quot;: True or False,
&quot;enableConversationAugmentedQuery&quot;: True or False,
&quot;enableEventBasedSuggestion&quot;: True or False,
&quot;enableQuerySuggestionOnly&quot;: True or False,
&quot;enableQuerySuggestionWhenNoAnswer&quot;: True or False,
&quot;enableResponseDebugInfo&quot;: True or False,
&quot;queryConfig&quot;: {
&quot;confidenceThreshold&quot;: 3.14,
&quot;contextFilterSettings&quot;: {
&quot;dropHandoffMessages&quot;: True or False,
&quot;dropIvrMessages&quot;: True or False,
&quot;dropVirtualAgentMessages&quot;: True or False,
},
&quot;contextSize&quot;: 42,
&quot;dialogflowQuerySource&quot;: {
&quot;agent&quot;: &quot;A String&quot;,
&quot;humanAgentSideConfig&quot;: {
&quot;agent&quot;: &quot;A String&quot;,
},
},
&quot;documentQuerySource&quot;: {
&quot;documents&quot;: [
&quot;A String&quot;,
],
},
&quot;knowledgeBaseQuerySource&quot;: {
&quot;knowledgeBases&quot;: [
&quot;A String&quot;,
],
},
&quot;maxResults&quot;: 42,
&quot;sections&quot;: {
&quot;sectionTypes&quot;: [
&quot;A String&quot;,
],
},
},
&quot;raiSettings&quot;: {
&quot;raiCategoryConfigs&quot;: [
{
&quot;category&quot;: &quot;A String&quot;,
&quot;sensitivityLevel&quot;: &quot;A String&quot;,
},
],
},
&quot;suggestionFeature&quot;: {
&quot;type&quot;: &quot;A String&quot;,
},
&quot;suggestionTriggerSettings&quot;: {
&quot;noSmalltalk&quot;: True or False,
&quot;onlyEndUser&quot;: True or False,
},
},
],
&quot;generators&quot;: [
&quot;A String&quot;,
],
&quot;groupSuggestionResponses&quot;: True or False,
&quot;skipEmptyEventBasedSuggestion&quot;: True or False,
&quot;useUnredactedConversationData&quot;: True or False,
},
&quot;humanAgentSuggestionConfig&quot;: {
&quot;disableHighLatencyFeaturesSyncDelivery&quot;: True or False,
&quot;enableAsyncToolCall&quot;: True or False,
&quot;featureConfigs&quot;: [
{
&quot;conversationModelConfig&quot;: {
&quot;baselineModelVersion&quot;: &quot;A String&quot;,
&quot;model&quot;: &quot;A String&quot;,
},
&quot;conversationProcessConfig&quot;: {
&quot;recentSentencesCount&quot;: 42,
},
&quot;disableAgentQueryLogging&quot;: True or False,
&quot;enableConversationAugmentedQuery&quot;: True or False,
&quot;enableEventBasedSuggestion&quot;: True or False,
&quot;enableQuerySuggestionOnly&quot;: True or False,
&quot;enableQuerySuggestionWhenNoAnswer&quot;: True or False,
&quot;enableResponseDebugInfo&quot;: True or False,
&quot;queryConfig&quot;: {
&quot;confidenceThreshold&quot;: 3.14,
&quot;contextFilterSettings&quot;: {
&quot;dropHandoffMessages&quot;: True or False,
&quot;dropIvrMessages&quot;: True or False,
&quot;dropVirtualAgentMessages&quot;: True or False,
},
&quot;contextSize&quot;: 42,
&quot;dialogflowQuerySource&quot;: {
&quot;agent&quot;: &quot;A String&quot;,
&quot;humanAgentSideConfig&quot;: {
&quot;agent&quot;: &quot;A String&quot;,
},
},
&quot;documentQuerySource&quot;: {
&quot;documents&quot;: [
&quot;A String&quot;,
],
},
&quot;knowledgeBaseQuerySource&quot;: {
&quot;knowledgeBases&quot;: [
&quot;A String&quot;,
],
},
&quot;maxResults&quot;: 42,
&quot;sections&quot;: {
&quot;sectionTypes&quot;: [
&quot;A String&quot;,
],
},
},
&quot;raiSettings&quot;: {
&quot;raiCategoryConfigs&quot;: [
{
&quot;category&quot;: &quot;A String&quot;,
&quot;sensitivityLevel&quot;: &quot;A String&quot;,
},
],
},
&quot;suggestionFeature&quot;: {
&quot;type&quot;: &quot;A String&quot;,
},
&quot;suggestionTriggerSettings&quot;: {
&quot;noSmalltalk&quot;: True or False,
&quot;onlyEndUser&quot;: True or False,
},
},
],
&quot;generators&quot;: [
&quot;A String&quot;,
],
&quot;groupSuggestionResponses&quot;: True or False,
&quot;skipEmptyEventBasedSuggestion&quot;: True or False,
&quot;useUnredactedConversationData&quot;: True or False,
},
&quot;messageAnalysisConfig&quot;: {
&quot;enableEntityExtraction&quot;: True or False,
&quot;enableSentimentAnalysis&quot;: True or False,
&quot;enableSentimentAnalysisV3&quot;: True or False,
},
&quot;notificationConfig&quot;: {
&quot;messageFormat&quot;: &quot;A String&quot;,
&quot;topic&quot;: &quot;A String&quot;,
},
},
&quot;humanAgentHandoffConfig&quot;: {
&quot;livePersonConfig&quot;: {
&quot;accountNumber&quot;: &quot;A String&quot;,
},
&quot;salesforceLiveAgentConfig&quot;: {
&quot;buttonId&quot;: &quot;A String&quot;,
&quot;deploymentId&quot;: &quot;A String&quot;,
&quot;endpointDomain&quot;: &quot;A String&quot;,
&quot;organizationId&quot;: &quot;A String&quot;,
},
},
&quot;languageCode&quot;: &quot;A String&quot;,
&quot;loggingConfig&quot;: {
&quot;enableStackdriverLogging&quot;: True or False,
},
&quot;name&quot;: &quot;A String&quot;,
&quot;newMessageEventNotificationConfig&quot;: {
&quot;messageFormat&quot;: &quot;A String&quot;,
&quot;topic&quot;: &quot;A String&quot;,
},
&quot;newRecognitionResultNotificationConfig&quot;: {
&quot;messageFormat&quot;: &quot;A String&quot;,
&quot;topic&quot;: &quot;A String&quot;,
},
&quot;notificationConfig&quot;: {
&quot;messageFormat&quot;: &quot;A String&quot;,
&quot;topic&quot;: &quot;A String&quot;,
},
&quot;securitySettings&quot;: &quot;A String&quot;,
&quot;sttConfig&quot;: {
&quot;audioEncoding&quot;: &quot;A String&quot;,
&quot;enableWordInfo&quot;: True or False,
&quot;languageCode&quot;: &quot;A String&quot;,
&quot;model&quot;: &quot;A String&quot;,
&quot;phraseSets&quot;: [
&quot;A String&quot;,
],
&quot;sampleRateHertz&quot;: 42,
&quot;speechModelVariant&quot;: &quot;A String&quot;,
&quot;useTimeoutBasedEndpointing&quot;: True or False,
},
&quot;timeZone&quot;: &quot;A String&quot;,
&quot;ttsConfig&quot;: {
&quot;effectsProfileId&quot;: [
&quot;A String&quot;,
],
&quot;pitch&quot;: 3.14,
&quot;pronunciations&quot;: [
{
&quot;phoneticEncoding&quot;: &quot;A String&quot;,
&quot;phrase&quot;: &quot;A String&quot;,
&quot;pronunciation&quot;: &quot;A String&quot;,
},
],
&quot;speakingRate&quot;: 3.14,
&quot;voice&quot;: {
&quot;name&quot;: &quot;A String&quot;,
&quot;ssmlGender&quot;: &quot;A String&quot;,
},
&quot;volumeGainDb&quot;: 3.14,
},
&quot;updateTime&quot;: &quot;A String&quot;,
},
&quot;latestMessage&quot;: &quot;A String&quot;,
&quot;maxContextSize&quot;: 42,
&quot;statelessConversation&quot;: {
&quot;messages&quot;: [
{
&quot;content&quot;: &quot;A String&quot;,
&quot;createTime&quot;: &quot;A String&quot;,
&quot;languageCode&quot;: &quot;A String&quot;,
&quot;messageAnnotation&quot;: {
&quot;containEntities&quot;: True or False,
&quot;parts&quot;: [
{
&quot;entityType&quot;: &quot;A String&quot;,
&quot;formattedValue&quot;: &quot;&quot;,
&quot;text&quot;: &quot;A String&quot;,
},
],
},
&quot;name&quot;: &quot;A String&quot;,
&quot;participant&quot;: &quot;A String&quot;,
&quot;participantRole&quot;: &quot;A String&quot;,
&quot;sendTime&quot;: &quot;A String&quot;,
&quot;sentimentAnalysis&quot;: {
&quot;queryTextSentiment&quot;: {
&quot;magnitude&quot;: 3.14,
&quot;score&quot;: 3.14,
},
},
},
],
},
}
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{
&quot;contextSize&quot;: 42,
&quot;latestMessage&quot;: &quot;A String&quot;,
&quot;summary&quot;: {
&quot;baselineModelVersion&quot;: &quot;A String&quot;,
&quot;text&quot;: &quot;A String&quot;,
&quot;textSections&quot;: {
&quot;a_key&quot;: &quot;A String&quot;,
},
},
}</pre>
</div>
<div class="method">
<code class="details" id="searchKnowledge">searchKnowledge(parent, body=None, x__xgafv=None)</code>
<pre>
Args:
parent: string, A parameter (required)
body: object, The request body.
The object takes the form of:
{
&quot;conversation&quot;: &quot;A String&quot;,
&quot;conversationProfile&quot;: &quot;A String&quot;,
&quot;endUserMetadata&quot;: {
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;exactSearch&quot;: True or False,
&quot;latestMessage&quot;: &quot;A String&quot;,
&quot;parent&quot;: &quot;A String&quot;,
&quot;query&quot;: {
&quot;languageCode&quot;: &quot;A String&quot;,
&quot;text&quot;: &quot;A String&quot;,
},
&quot;querySource&quot;: &quot;A String&quot;,
&quot;searchConfig&quot;: {
&quot;boostSpecs&quot;: [
{
&quot;dataStores&quot;: [
&quot;A String&quot;,
],
&quot;spec&quot;: [
{
&quot;conditionBoostSpecs&quot;: [
{
&quot;boost&quot;: 3.14,
&quot;boostControlSpec&quot;: {
&quot;attributeType&quot;: &quot;A String&quot;,
&quot;controlPoints&quot;: [
{
&quot;attributeValue&quot;: &quot;A String&quot;,
&quot;boostAmount&quot;: 3.14,
},
],
&quot;fieldName&quot;: &quot;A String&quot;,
&quot;interpolationType&quot;: &quot;A String&quot;,
},
&quot;condition&quot;: &quot;A String&quot;,
},
],
},
],
},
],
&quot;filterSpecs&quot;: [
{
&quot;dataStores&quot;: [
&quot;A String&quot;,
],
&quot;filter&quot;: &quot;A String&quot;,
},
],
},
&quot;sessionId&quot;: &quot;A String&quot;,
}
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{
&quot;answers&quot;: [
{
&quot;answer&quot;: &quot;A String&quot;,
&quot;answerRecord&quot;: &quot;A String&quot;,
&quot;answerSources&quot;: [
{
&quot;metadata&quot;: {
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;snippet&quot;: &quot;A String&quot;,
&quot;title&quot;: &quot;A String&quot;,
&quot;uri&quot;: &quot;A String&quot;,
},
],
&quot;answerType&quot;: &quot;A String&quot;,
},
],
&quot;rewrittenQuery&quot;: &quot;A String&quot;,
&quot;searchKnowledgeDebugInfo&quot;: {
&quot;datastoreResponseReason&quot;: &quot;A String&quot;,
&quot;ingestedContextReferenceDebugInfo&quot;: {
&quot;contextReferenceRetrieved&quot;: True or False,
&quot;ingestedParametersDebugInfo&quot;: [
{
&quot;ingestionStatus&quot;: &quot;A String&quot;,
&quot;parameter&quot;: &quot;A String&quot;,
},
],
&quot;projectNotAllowlisted&quot;: True or False,
},
&quot;searchKnowledgeBehavior&quot;: {
&quot;answerGenerationRewriterOn&quot;: True or False,
&quot;endUserMetadataIncluded&quot;: True or False,
&quot;thirdPartyConnectorAllowed&quot;: True or False,
},
&quot;serviceLatency&quot;: {
&quot;internalServiceLatencies&quot;: [
{
&quot;completeTime&quot;: &quot;A String&quot;,
&quot;latencyMs&quot;: 3.14,
&quot;startTime&quot;: &quot;A String&quot;,
&quot;step&quot;: &quot;A String&quot;,
},
],
},
},
}</pre>
</div>
</body></html>