TurnCompletedEvent(mapping=None, *, ignore_unknown_fields=False, **kwargs)Terminal event of a turn (see StreamChatAiAssistantResponse.turn_completed).
Attributes |
|
|---|---|
| Name | Description |
turn_id |
str
Identifier of the turn that ended; matches TurnResumeSnapshot.turn_id and ActiveTurnInfo.turn_id. |
reason |
google.cloud.ces_v1beta.types.TurnCompletedEvent.Reason
Why the turn ended. |
final_sequence_number |
int
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. |
Classes
Reason
Reason(value)Why the turn ended, so a client that attached late can word the outcome instead of guessing from an empty stream.