StreamChatAiAssistantResponse class

Response message for SessionService.StreamChatAiAssistant.

Constructors

StreamChatAiAssistantResponse({ArtifactChunk? artifactChunk, AssistantConfirmationRequest? confirmationRequest, String? eventId, String? eventTime, TurnHandoffEvent? handoff, OptionQuestionsChunk? optionQuestionsChunk, TurnResumeSnapshot? resumeSnapshot, String? sequenceNumber, SessionCheckpoint? sessionCheckpoint, Status? status, String? textChunk, String? thoughtChunk, ToolCall? toolCall, ToolResponse? toolResponse, TurnCompletedEvent? turnCompleted, bool? turnInProgress, TurnMetadata? turnMetadata, UiEvent? uiEvent})
StreamChatAiAssistantResponse.fromJson(Map json_)

Properties

artifactChunk ↔ ArtifactChunk?
Generated-document artifact event (live preview deltas + final GCS pointer).
getter/setter pair
confirmationRequest ↔ AssistantConfirmationRequest?
A blocking confirmation the agent paused on.
getter/setter pair
eventId ↔ String?
Unique identifier for the event.
getter/setter pair
eventTime ↔ String?
Timestamp when the event occurred.
getter/setter pair
handoff ↔ 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.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
optionQuestionsChunk ↔ OptionQuestionsChunk?
Structured clarification options parsed out of the model turn.
getter/setter pair
resumeSnapshot ↔ TurnResumeSnapshot?
A compacted replay of an in-flight turn, sent as the first event of every attach or resume before any live event.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sequenceNumber ↔ String?
Monotonically increasing sequence number for this session turn.
getter/setter pair
sessionCheckpoint ↔ SessionCheckpoint?
Session checkpoint/compaction recap event containing user intent and rolling summary.
getter/setter pair
status ↔ Status?
Simple status update.
getter/setter pair
textChunk ↔ String?
Text Token (for streaming Gemini responses word-by-word).
getter/setter pair
thoughtChunk ↔ String?
Thought text chunk (agent's reasoning before generating response).
getter/setter pair
toolCall ↔ ToolCall?
Tool call execution event.
getter/setter pair
toolResponse ↔ ToolResponse?
Tool call response event.
getter/setter pair
turnCompleted ↔ TurnCompletedEvent?
The turn has ended.
getter/setter pair
turnInProgress ↔ bool?
Indicates whether the turn is still actively running in the background.
getter/setter pair
turnMetadata ↔ TurnMetadata?
Turn-level metadata and intent categorization.
getter/setter pair
uiEvent ↔ UiEvent?
UI event payload.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited