Class QueryDataResponse (0.13.5)

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_v1beta.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.
pipeline_debug_info google.protobuf.struct_pb2.Struct
Detailed step-by-step pipeline execution information. Populated only if generation_options.generate_debug_info was true. Provided for debugging and transparency purposes only. The structure and content of this object is not guaranteed and may change at any time without notice. Do not write production code or business logic depending on the fields in this object.
token_usage google.cloud.geminidataanalytics_v1beta.types.TokenUsage
Overall token usage for the request.