Skip to main content
Agents use tools to take actions and interact with external systems. Tools are functions that an Agent can run to achieve tasks. For example: searching the web, running SQL, sending an email or calling APIs. You can use any Python function as a tool or use a pre-built Agno toolkit. The general syntax is:
The tools list can also be a callable factory, resolved at run time.

Using a Toolkit

Agno provides many pre-built toolkits that you can add to your Agents. For example, add the HackerNews toolkit to fetch tech news.
You can find more toolkits in the Toolkits guide.
1

Create News Agent

Create a file news_agent.py
news_agent.py
2

Run the agent

Install dependencies
Run the agent

Writing your own Tools

For more control, write your own Python functions and add them as tools to an Agent. For example, here’s how to add a get_top_hackernews_stories tool to an Agent.
hn_agent.py
Read more about:

Developer Resources