Code
cookbook/11_models/openai/responses/async_tool_use.py
"""Run `uv pip install` to install dependencies."""
import asyncio
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,
)
asyncio.run(agent.aprint_response("Whats happening in France?", stream=True))
Was this page helpful?