- JSON representation
- SentimentAnalysisResult
- DataStoreConnectionSignals
- RewriterModelCallSignals
- SearchSnippet
- AnswerGenerationModelCallSignals
- AnswerPart
- CitedSnippet
- GroundingSignals
- GroundingDecision
- GroundingScoreBucket
- SafetySignals
- SafetyDecision
- BannedPhraseMatch
Represents the result of a conversational query.
JSON representation |
---|
{ "languageCode": string, "parameters": { object }, "responseMessages": [ { object ( |
Fields | |
---|---|
language |
The language that was triggered during intent detection. See Language Support for a list of the currently supported language codes. |
parameters |
The collected Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs:
|
response |
The list of rich messages returned to the client. Responses vary from simple text messages to more sophisticated, structured payloads used to drive complex logic. |
webhook |
The list of webhook call status in the order of call sequence. |
webhook |
The list of webhook payload in |
current |
The current |
intent |
The |
intentDetectionConfidence |
The intent detection confidence. Values range from 0.0 (completely uncertain) to 1.0 (completely certain). This value is for informational purpose only and is only used to help match the best intent within the classification threshold. This value may change for the same end-user expression at any time due to a model retraining or change in implementation. This field is deprecated, please use |
match |
Intent match result, could be an intent or an event. |
diagnostic |
The free-form diagnostic info. For example, this field could contain webhook call latency. The fields of this data can change without notice, so you should not write code that depends on its structure. One of the fields is called "Alternative Matched Intents", which may aid with debugging. The following describes these intent results:
|
sentiment |
The sentiment analyss result, which depends on |
advanced |
Returns the current advanced settings including IVR settings. Even though the operations configured by these settings are performed by Dialogflow, the client may need to perform special logic at the moment. For example, if Dialogflow exports audio to Google Cloud Storage, then the client may need to wait for the resulting object to appear in the bucket before proceeding. |
allow |
Indicates whether the Thumbs up/Thumbs down rating controls are need to be shown for the response in the Dialogflow Messenger widget. |
data |
Optional. Data store connection feature output signals. Filled only when data stores are involved in serving the query and DetectIntentRequest.populate_data_store_connection_signals is set to true in the request. |
Union field query . The original conversational query. query can be only one of the following: |
|
text |
If |
trigger |
If an |
transcript |
If |
trigger |
If an |
dtmf |
If a |
SentimentAnalysisResult
The result of sentiment analysis. Sentiment analysis inspects user input and identifies the prevailing subjective opinion, especially to determine a user's attitude as positive, negative, or neutral.
JSON representation |
---|
{ "score": number, "magnitude": number } |
Fields | |
---|---|
score |
Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment). |
magnitude |
A non-negative number in the [0, +inf) range, which represents the absolute magnitude of sentiment, regardless of score (positive or negative). |
DataStoreConnectionSignals
Data store connection feature output signals. Might be only partially field if processing stop before the final answer. Reasons for this can be, but are not limited to: empty UCS search results, positive RAI check outcome, grounding failure, ...
JSON representation |
---|
{ "rewriterModelCallSignals": { object ( |
Fields | |
---|---|
rewriter |
Optional. Diagnostic info related to the rewriter model call. |
rewritten |
Optional. Rewritten string query used for search. |
search |
Optional. Search snippets included in the answer generation prompt. |
answer |
Optional. Diagnostic info related to the answer generation model call. |
answer |
Optional. The final compiled answer. |
answer |
Optional. Answer parts with relevant citations. Concatenation of texts should add up the |
cited |
Optional. Snippets cited by the answer generation model from the most to least relevant. |
grounding |
Optional. Grounding signals. |
safety |
Optional. Safety check result. |
RewriterModelCallSignals
Diagnostic info related to the rewriter model call.
JSON representation |
---|
{ "renderedPrompt": string, "modelOutput": string, "model": string } |
Fields | |
---|---|
rendered |
Prompt as sent to the model. |
model |
Output of the generative model. |
model |
Name of the generative model. For example, "gemini-ultra", "gemini-pro", "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown. |
SearchSnippet
Search snippet details.
JSON representation |
---|
{ "documentTitle": string, "documentUri": string, "text": string } |
Fields | |
---|---|
document |
Title of the enclosing document. |
document |
Uri for the document. Present if specified for the document. |
text |
Text included in the prompt. |
AnswerGenerationModelCallSignals
Diagnostic info related to the answer generation model call.
JSON representation |
---|
{ "renderedPrompt": string, "modelOutput": string, "model": string } |
Fields | |
---|---|
rendered |
Prompt as sent to the model. |
model |
Output of the generative model. |
model |
Name of the generative model. For example, "gemini-ultra", "gemini-pro", "gemini-1.5-flash" etc. Defaults to "Other" if the model is unknown. |
AnswerPart
Answer part with citation.
JSON representation |
---|
{ "text": string, "supportingIndices": [ integer ] } |
Fields | |
---|---|
text |
Substring of the answer. |
supporting |
Citations for this answer part. Indices of |
CitedSnippet
Snippet cited by the answer generation model.
JSON representation |
---|
{
"searchSnippet": {
object ( |
Fields | |
---|---|
search |
Details of the snippet. |
snippet |
Index of the snippet in |
GroundingSignals
Grounding signals.
JSON representation |
---|
{ "decision": enum ( |
Fields | |
---|---|
decision |
Represents the decision of the grounding check. |
score |
Grounding score bucket setting. |
GroundingDecision
Represents the decision of the grounding check.
Enums | |
---|---|
GROUNDING_DECISION_UNSPECIFIED |
Decision not specified. |
ACCEPTED_BY_GROUNDING |
Grounding have accepted the answer. |
REJECTED_BY_GROUNDING |
Grounding have rejected the answer. |
GroundingScoreBucket
Grounding score buckets.
Enums | |
---|---|
GROUNDING_SCORE_BUCKET_UNSPECIFIED |
Score not specified. |
VERY_LOW |
We have very low confidence that the answer is grounded. |
LOW |
We have low confidence that the answer is grounded. |
MEDIUM |
We have medium confidence that the answer is grounded. |
HIGH |
We have high confidence that the answer is grounded. |
VERY_HIGH |
We have very high confidence that the answer is grounded. |
SafetySignals
Safety check results.
JSON representation |
---|
{ "decision": enum ( |
Fields | |
---|---|
decision |
Safety decision. |
banned |
Specifies banned phrase match subject. |
matched |
The matched banned phrase if there was a match. |
SafetyDecision
Safety decision. All kinds of check are incorporated into this final decision, including banned phrases check.
Enums | |
---|---|
SAFETY_DECISION_UNSPECIFIED |
Decision not specified. |
ACCEPTED_BY_SAFETY_CHECK |
No manual or automatic safety check fired. |
REJECTED_BY_SAFETY_CHECK |
One ore more safety checks fired. |
BannedPhraseMatch
Specifies banned phrase match subject.
Enums | |
---|---|
BANNED_PHRASE_MATCH_UNSPECIFIED |
No banned phrase check was executed. |
BANNED_PHRASE_MATCH_NONE |
All banned phrase checks led to no match. |
BANNED_PHRASE_MATCH_QUERY |
A banned phrase matched the query. |
BANNED_PHRASE_MATCH_RESPONSE |
A banned phrase matched the response. |