What are Tools?
Tools are functions that helps Agno Agents to interact with the external world.
Tools make agents - “agentic” by enabling them to interact with external systems like searching the web, running SQL, sending an email or calling APIs.
Agno comes with 80+ pre-built toolkits, but in most cases, you will write your own tools. The general syntax is:
In the example above, the get_weather
function is a tool. When it is called, the tool result will be shown in the output because we set show_result=True
.
Then, the Agent will stop after the tool call because we set stop_after_tool_call=True
.
Using the Toolkit Class
The Toolkit
class provides a way to manage multiple tools with additional control over their execution. You can specify which tools should stop the agent after execution and which should have their results shown.
In this example, the GoogleSearchTools
toolkit is configured to stop the agent after executing the google_search
function and to show the result of this function.
Read more about: