public sealed class Session.Types.Turn : IMessage<Session.Types.Turn>, IEquatable<Session.Types.Turn>, IDeepCloneable<Session.Types.Turn>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1 API class Session.Types.Turn.
Represents a turn, including a query from the user and a
answer from service.
Output only. In
[ConversationalSearchService.GetSession][google.cloud.discoveryengine.v1.ConversationalSearchService.GetSession]
API, if
[GetSessionRequest.include_answer_details][google.cloud.discoveryengine.v1.GetSessionRequest.include_answer_details]
is set to true, this field will be populated when getting answer query
session.
public MapField<string, string> QueryConfig { get; }
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis documentation covers the \u003ccode\u003eSession.Types.Turn\u003c/code\u003e class within the Google Cloud Discovery Engine v1 API, which represents a single turn of interaction in a session, including the user's query and the service's answer.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSession.Types.Turn\u003c/code\u003e class is available in multiple versions, with the latest being version 1.6.0, which is the latest release, alongside other prior versions like 1.5.0, 1.4.0, 1.3.0, 1.2.0, 1.1.0, and 1.0.0-beta06.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e interfaces, providing functionality for message handling, equality checks, deep cloning, and buffer management.\u003c/p\u003e\n"],["\u003cp\u003eThe class contains two key properties: \u003ccode\u003eQuery\u003c/code\u003e, which holds the user's query, and \u003ccode\u003eAnswer\u003c/code\u003e, which contains the resource name of the service's answer to the query, and also has an \u003ccode\u003eAnswerAsAnswerName\u003c/code\u003e property which is a typed view over the answer.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSession.Types.Turn\u003c/code\u003e class has two constructors: a default one, \u003ccode\u003eTurn()\u003c/code\u003e, and one that takes another \u003ccode\u003eSession.Types.Turn\u003c/code\u003e instance as a parameter, \u003ccode\u003eTurn(Session.Types.Turn other)\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]