Example
Passcache_results=True to the Toolkit constructor to enable caching for that Toolkit.
cache_tool_calls.py
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
You are viewing v1 docs. For the latest documentation, visit docs.agno.com
cache_results=True to the Toolkit constructor to enable caching for that Toolkit.
import asyncio
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.tools.duckduckgo import DuckDuckGoTools
agent = Agent(
model=OpenAIChat(id="gpt-4o-mini"),
tools=[DuckDuckGoTools(search=True, news=True)],
show_tool_calls=True,
)
asyncio.run(
agent.aprint_response(
"What is the latest news about technology and search for recent AI developments?",
markdown=True,
)
)
Was this page helpful?