AbstractBase constructor for a tool.
The parameters for BaseTool.
ReadonlydescriptionReadonlyisReadonlynameThe Google API LLM variant to use.
Gets the OpenAPI specification of this tool in the form of a FunctionDeclaration.
NOTE
processLlmRequest to add function declaration to LLM request.The FunctionDeclaration of this tool, or undefined if it doesn't need to be added to LlmRequest.config.
Processes the outgoing LLM request for this tool.
Use cases:
The request to process the LLM request.
AbstractrunRuns the tool with the given arguments and context.
NOTE
The request to run the tool.
A promise that resolves to the tool response.
The base class for all tools.