public sealed class StreamChatAiAssistantResponse : IMessage<StreamChatAiAssistantResponse>, IEquatable<StreamChatAiAssistantResponse>, IDeepCloneable<StreamChatAiAssistantResponse>, IBufferMessage, IMessageReference documentation and code samples for the Gemini Enterprise for Customer Experience v1beta API class StreamChatAiAssistantResponse.
Response message for [SessionService.StreamChatAiAssistant][google.cloud.ces.v1beta.SessionService.StreamChatAiAssistant].
Implements
IMessageStreamChatAiAssistantResponse, IEquatableStreamChatAiAssistantResponse, IDeepCloneableStreamChatAiAssistantResponse, IBufferMessage, IMessageNamespace
Google.Cloud.Ces.V1BetaAssembly
Google.Cloud.Ces.V1Beta.dll
Constructors
StreamChatAiAssistantResponse()
public StreamChatAiAssistantResponse()StreamChatAiAssistantResponse(StreamChatAiAssistantResponse)
public StreamChatAiAssistantResponse(StreamChatAiAssistantResponse other)| Parameter | |
|---|---|
| Name | Description |
other |
StreamChatAiAssistantResponse |
Properties
ArtifactChunk
public ArtifactChunk ArtifactChunk { get; set; }Generated-document artifact event (live preview deltas + final GCS pointer).
| Property Value | |
|---|---|
| Type | Description |
ArtifactChunk |
|
ConfirmationRequest
public AssistantConfirmationRequest ConfirmationRequest { get; set; }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.
| Property Value | |
|---|---|
| Type | Description |
AssistantConfirmationRequest |
|
EventCase
public StreamChatAiAssistantResponse.EventOneofCase EventCase { get; }| Property Value | |
|---|---|
| Type | Description |
StreamChatAiAssistantResponseEventOneofCase |
|
EventId
public string EventId { get; set; }Unique identifier for the event.
| Property Value | |
|---|---|
| Type | Description |
string |
|
EventTime
public Timestamp EventTime { get; set; }Timestamp when the event occurred.
| Property Value | |
|---|---|
| Type | Description |
Timestamp |
|
Handoff
public TurnHandoffEvent Handoff { get; set; }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.
| Property Value | |
|---|---|
| Type | Description |
TurnHandoffEvent |
|
HasTextChunk
public bool HasTextChunk { get; }Gets whether the "text_chunk" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasThoughtChunk
public bool HasThoughtChunk { get; }Gets whether the "thought_chunk" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
OptionQuestionsChunk
public OptionQuestionsChunk OptionQuestionsChunk { get; set; }Structured clarification options parsed out of the model turn. The console renders these as a selectable option list instead of raw text.
| Property Value | |
|---|---|
| Type | Description |
OptionQuestionsChunk |
|
ResumeSnapshot
public TurnResumeSnapshot ResumeSnapshot { get; set; }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.
| Property Value | |
|---|---|
| Type | Description |
TurnResumeSnapshot |
|
SequenceNumber
public long SequenceNumber { get; set; }Optional. Monotonically increasing sequence number for this session turn.
| Property Value | |
|---|---|
| Type | Description |
long |
|
SessionCheckpoint
public SessionCheckpoint SessionCheckpoint { get; set; }Session checkpoint/compaction recap event containing user intent and rolling summary.
| Property Value | |
|---|---|
| Type | Description |
SessionCheckpoint |
|
Status
public Status Status { get; set; }Simple status update.
| Property Value | |
|---|---|
| Type | Description |
Status |
|
TextChunk
public string TextChunk { get; set; }Text Token (for streaming Gemini responses word-by-word).
| Property Value | |
|---|---|
| Type | Description |
string |
|
ThoughtChunk
public string ThoughtChunk { get; set; }Thought text chunk (agent's reasoning before generating response).
| Property Value | |
|---|---|
| Type | Description |
string |
|
ToolCall
public ToolCall ToolCall { get; set; }Tool call execution event.
| Property Value | |
|---|---|
| Type | Description |
ToolCall |
|
ToolResponse
public ToolResponse ToolResponse { get; set; }Tool call response event.
| Property Value | |
|---|---|
| Type | Description |
ToolResponse |
|
TurnCompleted
public TurnCompletedEvent TurnCompleted { get; set; }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.
| Property Value | |
|---|---|
| Type | Description |
TurnCompletedEvent |
|
TurnInProgress
public bool TurnInProgress { get; set; }Optional. Indicates whether the turn is still actively running in the background.
| Property Value | |
|---|---|
| Type | Description |
bool |
|
TurnMetadata
public TurnMetadata TurnMetadata { get; set; }Optional. Turn-level metadata and intent categorization.
| Property Value | |
|---|---|
| Type | Description |
TurnMetadata |
|
UiEvent
public UiEvent UiEvent { get; set; }Optional. UI event payload.
| Property Value | |
|---|---|
| Type | Description |
UiEvent |
|