Code
cookbook/11_models/openai/responses/tool_use.py
"""Run `uv pip install` to install dependencies."""
from agno.agent import Agent
from agno.models.openai import OpenAIResponses
from agno.tools.hackernews import HackerNewsTools
agent = Agent(
model=OpenAIResponses(id="gpt-5-mini"),
tools=[HackerNewsTools()],
markdown=True,
)
agent.print_response("Whats happening in France?")
Was this page helpful?