# Google Cloud Dialogflow v2 API - Enum KnowledgeAssistDebugInfo.Types.QueryGenerationFailureReason (4.30.0)

4.30.0 (latest) 4.29.0 4.28.0 4.27.0 4.26.0 4.25.0 4.24.0 4.23.0 4.22.0 4.21.0 4.20.0 4.19.0 4.18.0 4.17.0 4.16.0 4.15.0 4.14.0 4.13.0 4.12.0 4.11.0 4.10.0 4.9.0 4.8.0 4.7.0 4.6.0 4.5.0 4.4.0 4.3.0 4.2.0 4.1.0 4.0.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0

    public enum KnowledgeAssistDebugInfo.Types.QueryGenerationFailureReason

Reference documentation and code samples for the Google Cloud Dialogflow v2 API enum KnowledgeAssistDebugInfo.Types.QueryGenerationFailureReason.

Reason for query generation failure.

## Namespace

[Google.Cloud.Dialogflow.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2)

## Assembly

Google.Cloud.Dialogflow.V2.dll

| ## Fields ||
|---|---|
| **Name** | **Description** |
| `NotInAllowlist` | Query generation is blocked by Knowledge Assist conversation profile level / agent id level filtering. |
| `QueryGenerationEmptyConversation` | The conversation has no messages. |
| `QueryGenerationEmptyLastMessage` | The last message in the conversation is empty. |
| `QueryGenerationFailed` | Call to Knowedge Assist query generation model fails. |
| `QueryGenerationLlmResponseParseFailed` | Query generation failed due to LLM response parse failure. |
| `QueryGenerationNoQueryGenerated` | Query generation model decides that there is no new topic change or there has been similar queries generated in the previous turns. |
| `QueryGenerationOutOfQuota` | Query generation is blocked due to out of quota. |
| `QueryGenerationQueryRedacted` | The generated query is blocked due to redaction. |
| `QueryGenerationRaiFailed` | Knowedge Assist generated query is blocked by RAI (Responsible AI). |
| `QueryGenerationTriggeringEventConditionNotMet` | The trigger event condition is not met. This occurs in the following scenarios: 1. The trigger_event is CUSTOMER_MESSAGE or UNSPECIFIED, but the last message is not from the customer. 2. The trigger_event is AGENT_MESSAGE, but the last message is not from the agent. |
| `Unspecified` | Default value. |