Gemini Enterprise for Customer Experience v1beta API - Class TurnCompletedEvent (1.0.0-beta10)

public sealed class TurnCompletedEvent : IMessage<TurnCompletedEvent>, IEquatable<TurnCompletedEvent>, IDeepCloneable<TurnCompletedEvent>, IBufferMessage, IMessage

Reference documentation and code samples for the Gemini Enterprise for Customer Experience v1beta API class TurnCompletedEvent.

Terminal event of a turn (see StreamChatAiAssistantResponse.turn_completed).

Inheritance

object > TurnCompletedEvent

Namespace

Google.Cloud.Ces.V1Beta

Assembly

Google.Cloud.Ces.V1Beta.dll

Constructors

TurnCompletedEvent()

public TurnCompletedEvent()

TurnCompletedEvent(TurnCompletedEvent)

public TurnCompletedEvent(TurnCompletedEvent other)
Parameter
Name Description
other TurnCompletedEvent

Properties

FinalSequenceNumber

public long FinalSequenceNumber { get; set; }

Sequence number of the last event the turn produced. A client whose cursor is lower missed content and should reload the session to see it.

Property Value
Type Description
long

Reason

public TurnCompletedEvent.Types.Reason Reason { get; set; }

Why the turn ended.

Property Value
Type Description
TurnCompletedEventTypesReason

TurnId

public string TurnId { get; set; }

Identifier of the turn that ended; matches TurnResumeSnapshot.turn_id and ActiveTurnInfo.turn_id.

Property Value
Type Description
string