Companion

object Companion

Properties

Link copied to clipboard

Key under which the user's reply is placed in the resume FunctionResponse.

Functions

Link copied to clipboard

Resolves an event's Event.actions.requestedToolConfirmations into a map keyed by SYNTHETIC adk_request_confirmation call id (the id the wire-format FunctionResponse resume path expects), suitable to assign to pendingConfirmations.

Link copied to clipboard

Resolves a paused long-running call awaiting user input (e.g. adk_request_input, get_user_choice) from an event. Returns the call whose id is in Event.longRunningToolIds and is not a confirmation call (those have dedicated handling), or null if there is none. Its options arg, when present, is captured so a numeric reply can select an option.

Link copied to clipboard

Returns true when the given non-null error string from a FunctionResponse should be surfaced to the operator. Suppresses blank values and FunctionTool.CONFIRMATION_REQUIRED_ERROR, which is the transient placeholder that a confirmation-gated FunctionTool returns on its first invocation - it is not a real failure (the framework re-executes the tool once the user supplies a confirmation), and printing it as "BaseTool Error" misleads the operator. Other error strings - including FunctionTool.REJECTED_ERROR after the user explicitly types 'no' - are still surfaced.