Documentation Index
Fetch the complete documentation index at: https://agno-v2-shaloo-ai-support-link.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Example showing how to use a non-reasoning model as a reasoning model.
For reasoning, we recommend using a Reasoning Agent (with reasoning=True), or to use an appropriate reasoning model with reasoning_model.
Add the following code to your Python file
non-reasoning-model-cot.py
from agno.agent import Agent
from agno.models.openai import OpenAIResponses
reasoning_agent = Agent(
model=OpenAIResponses(id="gpt-5.2"),
reasoning_model=OpenAIResponses(
id="gpt-5.2", # This model will be used for reasoning, although it is not a native reasoning model.
max_tokens=1200,
),
markdown=True,
)
reasoning_agent.print_response(
"Give me steps to write a python script for fibonacci series",
stream=True,
show_full_reasoning=True,
)
# It uses the default model of the Agent
reasoning_agent = Agent(
model=OpenAIResponses(id="gpt-5.2", max_tokens=1200),
reasoning=True,
markdown=True,
)
reasoning_agent.print_response(
"Give me steps to write a python script for fibonacci series",
stream=True,
show_full_reasoning=True,
)
Set up your virtual environment
uv venv --python 3.12
source .venv/bin/activate
Install dependencies
uv pip install -U openai agno
Export your OpenAI API key
export OPENAI_API_KEY="your_openai_api_key_here"
Run Agent
python non-reasoning-model-cot.py