Tools
Let an agent call functions to take action beyond plain text.
Tools allow an agent to perform actions instead of only generating text.
By using tools, your agent can execute Python functions, retrieve information, perform calculations, interact with APIs, and much more.
How Tools Work#
Flow
User Request
↓
Agent
↓
Tool (if needed)
↓
Tool Result
↓
Final ResponseTypes of Tools#
ABZ Agent SDK supports two types of tools.
Function Tools#
Function Tools allow you to convert your own Python functions into tools that an agent can use.
Examples include:
- Weather APIs
- Calculators
- Database Queries
- File Operations
- Email Automation
- External APIs
Built-in Tools#
Built-in Tools are ready-to-use tools included with ABZ Agent SDK.
Refer to the Built-in Tools page for the complete list.
Registering Tools#
Python
agent = Agent(
...
tools=[...]
)When Should You Use Tools?#
Use tools whenever your agent needs to perform an action instead of simply generating text.
Examples include:
- Calling APIs
- Reading files
- Performing calculations
- Sending emails
- Database operations
Best Practices#
- Keep each tool focused on one task.
- Give tools descriptive names.
- Return clean and predictable results.
- Only register the tools your application needs.
Next Step#
Continue to Function Tools.