Companion
Properties
Key under which the user's reply is placed in the resume FunctionResponse.
Functions
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.
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.
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.