Tools
Tools let the agent take actions. The LLM decides which tool to call and with what arguments.Registering Tools
Pass tools to theTools collection:
Using FunctionTool
Wrap any callable as a tool. Parameter schema is auto-generated from the function signature:Agent with Tools
How It Works
- LLM sees tool schemas and decides to call a tool
ToolExecutorruns the tool with provided arguments- Tool results are formatted as messages and fed back to the LLM
- LLM uses the results to formulate a final response
- Loop continues until LLM responds without tool calls