Class Turn (0.13.10)

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
The user query.
answer str
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.