The constructor acts as the user-friendly factory.
The configuration for the tool.
Readonly[A unique symbol to identify ADK base tool class.
Readonly[A unique symbol to identify ADK function tool class.
ReadonlydescriptionReadonlyisReadonlynameThe Google API LLM variant to use.
Returns the function declaration with an appended instruction warning the model not to re-invoke the tool while it is still running.
Whether this call is gated on human approval — the static flag, or the predicate evaluated against the validated arguments.
The arguments the tool would run with.
OptionaltoolContext: ContextThe context of the call, when there is one.
Whether the call requires confirmation.
Processes the outgoing LLM request for this tool.
Use cases:
The request to process the LLM request.
Invokes the user-defined execute function with the model-provided
arguments, after parsing them when parameters is a Zod object schema.
Any other parameters value is passed through unchecked.
The tool request containing arguments and tool context.
A promise resolving to the function's return value.
A FunctionTool for long-running operations whose result is returned asynchronously.
The framework invokes the user-provided function and delivers the response back to the model once it completes, matched up by the function call's
id. The model is also instructed not to re-invoke the tool while a call is already in flight.