Turn(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Represents a turn, including a query from the user and a answer from service.
Attributes |
|
---|---|
Name | Description |
query |
google.cloud.discoveryengine_v1.types.Query
Optional. The user query. May not be set if this turn is merely regenerating an answer to a different turn |
answer |
str
Optional. The resource name of the answer to the user query. Only set if the answer generation (/answer API call) happened in this turn. |
detailed_answer |
google.cloud.discoveryengine_v1.types.Answer
Output only. In ConversationalSearchService.GetSession API, if GetSessionRequest.include_answer_details is set to true, this field will be populated when getting answer query session. |
query_config |
MutableMapping[str, str]
Optional. Represents metadata related to the query config, for example LLM model and version used, model parameters (temperature, grounding parameters, etc.). The prefix "google." is reserved for Google-developed functionality. |
Classes
QueryConfigEntry
QueryConfigEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)
The abstract base class for a message.
Parameters | |
---|---|
Name | Description |
kwargs |
dict
Keys and values corresponding to the fields of the message. |
mapping |
Union[dict,
A dictionary or message to be used to determine the values for this message. |
ignore_unknown_fields |
Optional(bool)
If True, do not raise errors for unknown fields. Only applied if |