Discovery Engine v1beta API - Class Session.Types.Turn (1.0.0-beta19)

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 v1beta API class Session.Types.Turn.

Represents a turn, including a query from the user and a answer from service.

Inheritance

object > Session.Types.Turn

Namespace

Google.Cloud.DiscoveryEngine.V1Beta

Assembly

Google.Cloud.DiscoveryEngine.V1Beta.dll

Constructors

Turn()

public Turn()

Turn(Turn)

public Turn(Session.Types.Turn other)
Parameter
Name Description
other SessionTypesTurn

Properties

Answer

public string Answer { get; set; }

Optional. The resource name of the answer to the user query.

Only set if the answer generation (/answer API call) happened in this turn.

Property Value
Type Description
string

AnswerAsAnswerName

public AnswerName AnswerAsAnswerName { get; set; }

AnswerName-typed view over the Answer resource name property.

Property Value
Type Description
AnswerName

DetailedAnswer

public Answer DetailedAnswer { get; set; }

Output only. In [ConversationalSearchService.GetSession][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetSession] API, if [GetSessionRequest.include_answer_details][google.cloud.discoveryengine.v1beta.GetSessionRequest.include_answer_details] is set to true, this field will be populated when getting answer query session.

Property Value
Type Description
Answer

Query

public Query Query { get; set; }

Optional. The user query. May not be set if this turn is merely regenerating an answer to a different turn

Property Value
Type Description
Query

QueryConfig

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.

Property Value
Type Description
MapFieldstringstring