QueryDataResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)Response containing the generated query and related information.
Attributes |
|
|---|---|
| Name | Description |
generated_query |
str
Generated query for the given user prompt. |
intent_explanation |
str
A natural language explanation of the generated query. Populated if options.generate_explanation was true in the request. |
query_result |
google.cloud.geminidataanalytics_v1alpha.types.ExecutedQueryResult
The result of executing the query. Populated if options.generate_query_result or options.generate_natural_language_answer was true in the request, and execution was successful or attempted. |
natural_language_answer |
str
A natural language answer to the query, based on the query_result. Populated if options.generate_natural_language_answer was true in the request and query execution was successful based in the response from executeSql API. |
disambiguation_question |
MutableSequence[str]
If ambiguity was detected in the natural language query and options.generate_disambiguation_question was true, this field contains a question to the user for clarification. The returned represents the service's best effort based on the ambiguous input. |