Optionaloptions: { description?: string; name?: string }Readonly[A unique symbol to identify ADK base tool class.
Readonly[A unique symbol to identify ADK function tool class.
Readonly[A unique symbol to identify ADK LangchainTool class.
ReadonlydescriptionReadonlyisReadonlynameReadonlytoolThe wrapped LangChain tool.
The Google API LLM variant to use.
Invokes the tool in live streaming mode, injecting any active input stream from the invocation context and yielding items from the returned stream.
The live tool invocation request.
Builds the FunctionDeclaration for the wrapped LangChain tool.
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: Context
The 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.
Wrapper class that adapts a LangChain tool for use in ADK.
If the original tool name and description are not suitable, you can override them in the constructor.