Non-Reasoning Model Agent
Use ReasoningTools with GPT-4.1 during the normal tool loop.
Use explicit tools to add planning notes to a model without native reasoning.
GPT-4.1 is not a supported separate reasoning_model. Use ReasoningTools as below, or configure a supported native model for a separate reasoning stage.
Add the following code to your Python file
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.tools.reasoning import ReasoningTools
agent = Agent(
model=OpenAIChat(id="gpt-4.1"),
tools=[ReasoningTools(add_instructions=True)],
markdown=True,
)
agent.print_response(
"Plan a Python function for the Fibonacci sequence and check its base cases.",
stream=True,
show_full_reasoning=True,
)Set up your virtual environment
uv venv --python 3.12
source .venv/bin/activateInstall dependencies
uv pip install -U openai agnoExport your OpenAI API key
export OPENAI_API_KEY="your_openai_api_key_here"Run Agent
python non-reasoning-model-cot.py