Documentation Index
Fetch the complete documentation index at: https://docs-v1.agno.com/llms.txt
Use this file to discover all available pages before exploring further.
Code
cookbook/models/litellm/tool_use.py
You are viewing v1 docs. For the latest documentation, visit docs.agno.com
Documentation Index
Fetch the complete documentation index at: https://docs-v1.agno.com/llms.txt
Use this file to discover all available pages before exploring further.
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?