Class GenerationOptions (0.7.0)

GenerationOptions(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Options to control query generation, execution, and response format.

Attributes

Name Description
generate_query_result bool
Optional. If true, the generated query will be executed, and the result data will be returned in the response.
generate_natural_language_answer bool
Optional. If true, a natural language answer based on the query execution result will be generated and returned in the response.
generate_explanation bool
Optional. If true, an explanation of the generated query will be returned in the response.
generate_disambiguation_question bool
Optional. If true (default to false), the service may return a clarifying_question if the input query is ambiguous.