Class StreamChatAiAssistantRequest (0.7.4)

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

Request message for SessionService.StreamChatAiAssistant.

Attributes

Name Description
name str
Required. The assistant session to be used to run the assistant. Format: projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}
message str
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.
attached_gcs_uris MutableSequence[str]
Optional. Cloud Storage URIs for files uploaded by the user during this turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf".
context_token str
Optional. Opaque onboarding context token returned by 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.
confirmation_response google.cloud.ces_v1beta.types.AssistantConfirmationResponse
Optional. The user's answer to a pending AssistantConfirmationRequest. When set, the server resumes the paused agent with this answer instead of (or in addition to) starting a new prompt turn.
client_capabilities MutableSequence[google.cloud.ces_v1beta.types.StreamChatAiAssistantRequest.ClientCapability]
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.
operation_completed_event google.cloud.ces_v1beta.types.OperationCompletedEvent
Optional. Resumes an assistant session paused waiting for a client-managed long-running operation to complete.
resume_from_sequence_number int
Optional. Optional cursor to resume and replay events from an in-flight or completed turn.
attach_only bool
Optional. Optional flag to attach to an existing in-flight turn without submitting a new message.

Classes

ClientCapability

ClientCapability(value)

Response features a client can declare.