Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
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
import asyncio from agno.agent import Agent from agno.cli.console import console from agno.models.openai import OpenAIChat task = "9.11 and 9.9 -- which is bigger?" regular_agent = Agent(model=OpenAIChat(id="gpt-4o"), markdown=True) reasoning_agent = Agent( model=OpenAIChat(id="gpt-4o"), reasoning=True, markdown=True, ) console.rule("[bold green]Regular Agent[/bold green]") asyncio.run(regular_agent.aprint_response(task, stream=True)) console.rule("[bold yellow]Reasoning Agent[/bold yellow]") asyncio.run( reasoning_agent.aprint_response(task, stream=True, show_full_reasoning=True) )
Create a virtual environment
Terminal
python3 -m venv .venv source .venv/bin/activate
python3 -m venv .venv .venv/scripts/activate
Install libraries
pip install -U openai agno
Run Agent
python cookbook/agent_concepts/async/reasoning.py
Was this page helpful?