Gemini Enterprise for Customer Experience v1beta API - Class StreamChatAiAssistantRequest (1.0.0-beta10)

public sealed class StreamChatAiAssistantRequest : IMessage<StreamChatAiAssistantRequest>, IEquatable<StreamChatAiAssistantRequest>, IDeepCloneable<StreamChatAiAssistantRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Gemini Enterprise for Customer Experience v1beta API class StreamChatAiAssistantRequest.

Request message for [SessionService.StreamChatAiAssistant][google.cloud.ces.v1beta.SessionService.StreamChatAiAssistant].

Inheritance

object > StreamChatAiAssistantRequest

Namespace

Google.Cloud.Ces.V1Beta

Assembly

Google.Cloud.Ces.V1Beta.dll

Constructors

StreamChatAiAssistantRequest()

public StreamChatAiAssistantRequest()

StreamChatAiAssistantRequest(StreamChatAiAssistantRequest)

public StreamChatAiAssistantRequest(StreamChatAiAssistantRequest other)
Parameter
Name Description
other StreamChatAiAssistantRequest

Properties

AssistantSessionName

public AssistantSessionName AssistantSessionName { get; set; }

AssistantSessionName-typed view over the Name resource name property.

Property Value
Type Description
AssistantSessionName

AttachOnly

public bool AttachOnly { get; set; }

Optional. Optional flag to attach to an existing in-flight turn without submitting a new message.

Property Value
Type Description
bool

AttachedGcsUris

public RepeatedField<string> AttachedGcsUris { get; }

Optional. Cloud Storage URIs for files uploaded by the user during this turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"

Property Value
Type Description
RepeatedFieldstring

ClientCapabilities

public RepeatedField<StreamChatAiAssistantRequest.Types.ClientCapability> ClientCapabilities { get; }

Optional. Response features this client can render. The server only emits events that need a capability (e.g. confirmation_request) when the capability is declared, so older clients never receive events they would silently drop.

Property Value
Type Description
RepeatedFieldStreamChatAiAssistantRequestTypesClientCapability

ConfirmationResponse

public AssistantConfirmationResponse ConfirmationResponse { get; set; }

Optional. The user's answer to a pending [AssistantConfirmationRequest][google.cloud.ces.v1beta.AssistantConfirmationRequest]. When set, the server resumes the paused agent with this answer instead of (or in addition to) starting a new prompt turn.

Property Value
Type Description
AssistantConfirmationResponse

ContextToken

public string ContextToken { get; set; }

Optional. Opaque onboarding context token returned by [SessionService.GenerateOnboardingSuggestions][google.cloud.ces.v1beta.SessionService.GenerateOnboardingSuggestions]. When set and still fresh, the server reuses the onboarding snapshot computed for the zero state instead of recomputing it for the first conversation turn.

Property Value
Type Description
string

Message

public string Message { get; set; }

Optional. The message to send to the assistant agent. May be empty when confirmation_response is set (answering a pending confirmation without adding a new message); at least one of the two must be provided.

Property Value
Type Description
string

Name

public string Name { get; set; }

Required. The assistant session to be used to run the assistant. Format: projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}

Property Value
Type Description
string

OperationCompletedEvent

public OperationCompletedEvent OperationCompletedEvent { get; set; }

Optional. Resumes an assistant session paused waiting for a client-managed long-running operation to complete.

Property Value
Type Description
OperationCompletedEvent

ResumeFromSequenceNumber

public long ResumeFromSequenceNumber { get; set; }

Optional. Optional cursor to resume and replay events from an in-flight or completed turn.

Property Value
Type Description
long