blob: bef9d6052dc0554510b8d6bafdf035ed5c1cccc9 [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_v2beta1.html">Dialogflow API</a> . <a href="dialogflow_v2beta1.projects.html">projects</a> . <a href="dialogflow_v2beta1.projects.conversations.html">conversations</a> . <a href="dialogflow_v2beta1.projects.conversations.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="#generate">generate(conversation, body=None, x__xgafv=None)</a></code></p>
<p class="firstline"></p>
<p class="toc_element">
<code><a href="#searchKnowledge">searchKnowledge(conversation, body=None, x__xgafv=None)</a></code></p>
<p class="firstline"></p>
<p class="toc_element">
<code><a href="#suggestConversationSummary">suggestConversationSummary(conversation, 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="generate">generate(conversation, body=None, x__xgafv=None)</code>
<pre>
Args:
conversation: string, A parameter (required)
body: object, The request body.
The object takes the form of:
{
&quot;latestMessage&quot;: &quot;A String&quot;,
&quot;triggerEvents&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;generatorSuggestionAnswers&quot;: [
{
&quot;answerRecord&quot;: &quot;A String&quot;,
&quot;generatorSuggestion&quot;: {
&quot;agentCoachingSuggestion&quot;: {
&quot;agentActionSuggestions&quot;: [
{
&quot;agentAction&quot;: &quot;A String&quot;,
&quot;duplicateCheckResult&quot;: {
&quot;duplicateSuggestions&quot;: [
{
&quot;answerRecord&quot;: &quot;A String&quot;,
&quot;similarityScore&quot;: 3.14,
&quot;sources&quot;: {
&quot;instructionIndexes&quot;: [
42,
],
},
&quot;suggestionIndex&quot;: 42,
},
],
},
&quot;sources&quot;: {
&quot;instructionIndexes&quot;: [
42,
],
},
},
],
&quot;applicableInstructions&quot;: [
{
&quot;agentAction&quot;: &quot;A String&quot;,
&quot;condition&quot;: &quot;A String&quot;,
&quot;displayDetails&quot;: &quot;A String&quot;,
&quot;displayName&quot;: &quot;A String&quot;,
&quot;duplicateCheckResult&quot;: {
&quot;duplicateSuggestions&quot;: [
{
&quot;answerRecord&quot;: &quot;A String&quot;,
&quot;similarityScore&quot;: 3.14,
&quot;suggestionIndex&quot;: 42,
},
],
},
&quot;systemAction&quot;: &quot;A String&quot;,
&quot;triggeringEvent&quot;: &quot;A String&quot;,
},
],
&quot;sampleResponses&quot;: [
{
&quot;duplicateCheckResult&quot;: {
&quot;duplicateSuggestions&quot;: [
{
&quot;answerRecord&quot;: &quot;A String&quot;,
&quot;similarityScore&quot;: 3.14,
&quot;sources&quot;: {
&quot;instructionIndexes&quot;: [
42,
],
},
&quot;suggestionIndex&quot;: 42,
},
],
},
&quot;responseText&quot;: &quot;A String&quot;,
&quot;sources&quot;: {
&quot;instructionIndexes&quot;: [
42,
],
},
},
],
},
&quot;freeFormSuggestion&quot;: {
&quot;response&quot;: &quot;A String&quot;,
},
&quot;summarySuggestion&quot;: {
&quot;summarySections&quot;: [
{
&quot;section&quot;: &quot;A String&quot;,
&quot;summary&quot;: &quot;A String&quot;,
},
],
},
&quot;toolCallInfo&quot;: [
{
&quot;toolCall&quot;: {
&quot;action&quot;: &quot;A String&quot;,
&quot;answerRecord&quot;: &quot;A String&quot;,
&quot;createTime&quot;: &quot;A String&quot;,
&quot;inputParameters&quot;: {
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
},
&quot;state&quot;: &quot;A String&quot;,
&quot;tool&quot;: &quot;A String&quot;,
&quot;toolDisplayDetails&quot;: &quot;A String&quot;,
&quot;toolDisplayName&quot;: &quot;A String&quot;,
},
&quot;toolCallResult&quot;: {
&quot;action&quot;: &quot;A String&quot;,
&quot;answerRecord&quot;: &quot;A String&quot;,
&quot;content&quot;: &quot;A String&quot;,
&quot;createTime&quot;: &quot;A String&quot;,
&quot;error&quot;: {
&quot;message&quot;: &quot;A String&quot;,
},
&quot;rawContent&quot;: &quot;A String&quot;,
&quot;tool&quot;: &quot;A String&quot;,
},
},
],
},
&quot;sourceGenerator&quot;: &quot;A String&quot;,
},
],
&quot;latestMessage&quot;: &quot;A String&quot;,
}</pre>
</div>
<div class="method">
<code class="details" id="searchKnowledge">searchKnowledge(conversation, body=None, x__xgafv=None)</code>
<pre>
Args:
conversation: 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>
<div class="method">
<code class="details" id="suggestConversationSummary">suggestConversationSummary(conversation, body=None, x__xgafv=None)</code>
<pre>
Args:
conversation: string, A parameter (required)
body: object, The request body.
The object takes the form of:
{
&quot;assistQueryParams&quot;: {
&quot;documentsMetadataFilters&quot;: {
&quot;a_key&quot;: &quot;A String&quot;,
},
},
&quot;contextSize&quot;: 42,
&quot;latestMessage&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;contextSize&quot;: 42,
&quot;latestMessage&quot;: &quot;A String&quot;,
&quot;summary&quot;: {
&quot;answerRecord&quot;: &quot;A String&quot;,
&quot;baselineModelVersion&quot;: &quot;A String&quot;,
&quot;sortedTextSections&quot;: [
{
&quot;section&quot;: &quot;A String&quot;,
&quot;summary&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>
</body></html>