Class StreamChatAiAssistantResponse (0.7.4)

StreamChatAiAssistantResponse(
    mapping=None, *, ignore_unknown_fields=False, **kwargs
)

Response message for SessionService.StreamChatAiAssistant.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
text_chunk str
Text Token (for streaming Gemini responses word-by-word). This field is a member of oneof_ event.
status google.rpc.status_pb2.Status
Simple status update. This field is a member of oneof_ event.
thought_chunk str
Thought text chunk (agent's reasoning before generating response). This field is a member of oneof_ event.
tool_call google.cloud.ces_v1beta.types.ToolCall
Tool call execution event. This field is a member of oneof_ event.
tool_response google.cloud.ces_v1beta.types.ToolResponse
Tool call response event. This field is a member of oneof_ event.
artifact_chunk google.cloud.ces_v1beta.types.ArtifactChunk
Generated-document artifact event (live preview deltas + final GCS pointer). This field is a member of oneof_ event.
option_questions_chunk google.cloud.ces_v1beta.types.OptionQuestionsChunk
Structured clarification options parsed out of the model turn. The console renders these as a selectable option list instead of raw text. This field is a member of oneof_ event.
confirmation_request google.cloud.ces_v1beta.types.AssistantConfirmationRequest
A blocking confirmation the agent paused on. The agent resumes when the answer arrives on a later request's confirmation_response. Only sent to clients that declared the CONFIRMATION_CARDS capability on the request. This field is a member of oneof_ event.
session_checkpoint google.cloud.ces_v1beta.types.SessionCheckpoint
Session checkpoint/compaction recap event containing user intent and rolling summary. This field is a member of oneof_ event.
resume_snapshot google.cloud.ces_v1beta.types.TurnResumeSnapshot
A compacted replay of an in-flight turn, sent as the first event of every attach or resume before any live event. The client replaces any locally rendered state for this turn with the snapshot's contents. This field is a member of oneof_ event.
handoff google.cloud.ces_v1beta.types.TurnHandoffEvent
Tells the client to silently reconnect with resume_from_sequence_number: the task serving this stream is going away and the turn will continue elsewhere. Not an error; the stream completes normally after this event. This field is a member of oneof_ event.
turn_completed google.cloud.ces_v1beta.types.TurnCompletedEvent
The turn has ended. Sent as the last event of every turn, on the original stream and on every attached or resumed stream, so clients can end the turn on an explicit signal instead of inferring it from stream closure. This field is a member of oneof_ event.
event_id str
Unique identifier for the event.
event_time google.protobuf.timestamp_pb2.Timestamp
Timestamp when the event occurred.
ui_event google.cloud.ces_v1beta.types.UiEvent
Optional. UI event payload.
turn_metadata google.cloud.ces_v1beta.types.TurnMetadata
Optional. Turn-level metadata and intent categorization.
sequence_number int
Optional. Monotonically increasing sequence number for this session turn.
turn_in_progress bool
Optional. Indicates whether the turn is still actively running in the background.