Class AssistantConfirmationRequest (0.7.4)

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

A blocking question or confirmation the assistant needs answered before an agent action can proceed. The requesting agent is paused and resumes only when the answer arrives on a later StreamChatAiAssistantRequest.confirmation_response.

Attributes

Name Description
confirmation_id str
Identifier correlating this request with its response. Opaque to clients; must be echoed verbatim on the answering request.
context str
Context describing what is being confirmed (e.g. the action the agent wants to take, or the question it needs answered). Rendered as plain text, not Markdown.
positive_label str
Label for the approving action of a binary confirmation (e.g. "Publish"). Unset when questions is populated.
negative_label str
Label for the declining action of a binary confirmation (e.g. "Not yet"). Unset when questions is populated.
questions MutableSequence[google.cloud.ces_v1beta.types.OptionQuestionsChunk.Question]
Multi-choice form of the confirmation. When populated, the card renders a selectable option list and the chosen option's submit_text (or free-form user text) is returned as AssistantConfirmationResponse.answer_text.
tool str
Name of the tool call the agent paused on (e.g. "update_app"), for the card header. Unset for pure questions.
agent_name str
Display label of the agent that raised the confirmation (e.g. "Contract Architect"), for the card header.
expire_time google.protobuf.timestamp_pb2.Timestamp
Time after which this confirmation can no longer be answered. An expired card renders as inactive, and the server declines the confirmation on the next turn so the paused agent does not wait indefinitely.