This example demonstrates 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=.
from agno.agent import Agentfrom agno.models.openai import OpenAIChatreasoning_agent = Agent( model=OpenAIChat(id="gpt-5-mini"), reasoning_model=OpenAIChat( id="gpt-5-mini", # 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 Agentreasoning_agent = Agent( model=OpenAIChat(id="gpt-5-mini", 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,)