Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class QueryGenerationFailureReason.
Reason for query generation failure.
Protobuf type google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason
Namespace
Google \ Cloud \ Dialogflow \ V2 \ KnowledgeAssistDebugInfoMethods
static::name
| Parameter | |
|---|---|
| Name | Description |
value |
mixed
|
static::value
| Parameter | |
|---|---|
| Name | Description |
name |
mixed
|
Constants
QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED
Value: 0Default value.
Generated from protobuf enum QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED = 0;
QUERY_GENERATION_OUT_OF_QUOTA
Value: 1Query generation is blocked due to out of quota.
Generated from protobuf enum QUERY_GENERATION_OUT_OF_QUOTA = 1;
QUERY_GENERATION_FAILED
Value: 2Call to Knowedge Assist query generation model fails.
Generated from protobuf enum QUERY_GENERATION_FAILED = 2;
QUERY_GENERATION_NO_QUERY_GENERATED
Value: 3Query generation model decides that there is no new topic change or there has been similar queries generated in the previous turns.
Generated from protobuf enum QUERY_GENERATION_NO_QUERY_GENERATED = 3;
QUERY_GENERATION_RAI_FAILED
Value: 4Knowedge Assist generated query is blocked by RAI (Responsible AI).
Generated from protobuf enum QUERY_GENERATION_RAI_FAILED = 4;
NOT_IN_ALLOWLIST
Value: 5Query generation is blocked by Knowledge Assist conversation profile level / agent id level filtering.
Generated from protobuf enum NOT_IN_ALLOWLIST = 5;
QUERY_GENERATION_QUERY_REDACTED
Value: 6The generated query is blocked due to redaction.
Generated from protobuf enum QUERY_GENERATION_QUERY_REDACTED = 6;
QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED
Value: 10Query generation failed due to LLM response parse failure.
Generated from protobuf enum QUERY_GENERATION_LLM_RESPONSE_PARSE_FAILED = 10;
QUERY_GENERATION_EMPTY_CONVERSATION
Value: 11The conversation has no messages.
Generated from protobuf enum QUERY_GENERATION_EMPTY_CONVERSATION = 11;
QUERY_GENERATION_EMPTY_LAST_MESSAGE
Value: 12The last message in the conversation is empty.
Generated from protobuf enum QUERY_GENERATION_EMPTY_LAST_MESSAGE = 12;
QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET
Value: 13The trigger event condition is not met.
This occurs in the following scenarios:
- The trigger_event is CUSTOMER_MESSAGE or UNSPECIFIED, but the last message is not from the customer.
- The trigger_event is AGENT_MESSAGE, but the last message is not from the agent.
Generated from protobuf enum QUERY_GENERATION_TRIGGERING_EVENT_CONDITION_NOT_MET = 13;