Create a new agent tool
Name of the tool
Description of the tool
Whether the tool is a long running operation, which typically returns a resource id first and finishes the operation later.
Whether the tool execution should be retried on failure
Maximum retry attempts
Base delay for retry in ms (will be used with exponential backoff)
Maximum delay for retry in ms
OptionaloutputThe key to store the tool output in the state
ProtectedloggerProtectedapiGets the API variant for this tool
Processes the outgoing LLM request for this tool.
Use cases:
The outgoing LLM request, mutable by this method
Executes the tool with error handling and retries
Arguments for the tool
Tool execution context
Result of the tool execution or error information
Execute the tool by running the agent with the provided input
A tool that uses an agent to perform a task.
This tool allows specialized agents to be used as reusable tools within other agents, enabling modular agent composition and domain-specific expertise as services.