Code
cookbook/models/litellm/tool_use.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
from agno.agent import Agent
from agno.models.litellm import LiteLLM
from agno.tools.duckduckgo import DuckDuckGoTools
openai_agent = Agent(
model=LiteLLM(
id="gpt-4o",
name="LiteLLM",
),
markdown=True,
tools=[DuckDuckGoTools(search=True, news=True)],
)
# Ask a question that would likely trigger tool use
openai_agent.print_response("What is the latest news about technology trends?")
Was this page helpful?