Reference documentation and code samples for the Gemini Enterprise for Customer Experience V1BETA API class Google::Cloud::Ces::V1beta::TurnCompletedEvent.
Terminal event of a turn (see StreamChatAiAssistantResponse.turn_completed).
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#final_sequence_number
def final_sequence_number() -> ::Integer
Returns
- (::Integer) — 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.
#final_sequence_number=
def final_sequence_number=(value) -> ::Integer
Parameter
- value (::Integer) — 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.
Returns
- (::Integer) — 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.
#reason
def reason() -> ::Google::Cloud::Ces::V1beta::TurnCompletedEvent::Reason
Returns
- (::Google::Cloud::Ces::V1beta::TurnCompletedEvent::Reason) — Why the turn ended.
#reason=
def reason=(value) -> ::Google::Cloud::Ces::V1beta::TurnCompletedEvent::Reason
Parameter
- value (::Google::Cloud::Ces::V1beta::TurnCompletedEvent::Reason) — Why the turn ended.
Returns
- (::Google::Cloud::Ces::V1beta::TurnCompletedEvent::Reason) — Why the turn ended.
#turn_id
def turn_id() -> ::String
Returns
- (::String) — Identifier of the turn that ended; matches TurnResumeSnapshot.turn_id and ActiveTurnInfo.turn_id.
#turn_id=
def turn_id=(value) -> ::String
Parameter
- value (::String) — Identifier of the turn that ended; matches TurnResumeSnapshot.turn_id and ActiveTurnInfo.turn_id.
Returns
- (::String) — Identifier of the turn that ended; matches TurnResumeSnapshot.turn_id and ActiveTurnInfo.turn_id.