Introduction
Reasoning is the ability to think and validate before responding or taking action.
Reasoning Agents go through an internal chain of thought before responding, working through different ideas, validating and correcting as needed. Agno supports 3 approaches to reasoning:
Which approach works best will depend on your use case, we recommend trying them all and immersing yourself in this new era of Reasoning Agents.
Reasoning Models
Reasoning models are a separate class of large language models trained with reinforcement learning to think before they answer. They produce an internal chain of thought before responding. Examples of reasoning models include OpenAI o-series, Claude 3.7 sonnet in extended-thinking mode, Gemini 2.0 flash thinking and DeepSeek-R1.
Reasoning at the model layer is all about what the model does before it starts generating a response. Reasoning models excel at single-shot use-cases. They’re perfect for solving hard problems (coding, math, physics) that don’t require multiple turns, or calling tools sequentially.
Example
Read more about reasoning models in the Reasoning Models Guide.
Reasoning Model + Response Model
What if we wanted to use a Reasoning Model to reason but a different model to generate the response? It is well known that reasoning models are great at solving problems but not that great at responding in a natural way (like claude sonnet or gpt-4.5).
By using a separate model for reasoning and a different model for responding, we can have the best of both worlds.
Example
Let’s use deepseek-r1 from Groq for reasoning and claude sonnet for a natural response.
Reasoning Tools
By giving a model a “think” tool, we can greatly improve its reasoning capabilities by providing a dedicated space for structured thinking. This is a simple, yet effective approach to add reasoning to non-reasoning models.
The research was first published by Anthropic in this blog post but has been practiced by many AI Engineers (including our own team) long before it was published.
Example
Read more about reasoning tools in the Reasoning Tools Guide.
Reasoning Agents
Reasoning Agents are a new type of multi-agent system developed by Agno that combines chain of thought reasoning with tool use.
You can enable reasoning on any Agent by setting reasoning=True
.
When an Agent with reasoning=True
is given a task, a separate “Reasoning Agent” first solves the problem using chain-of-thought. At each step, it calls tools to gather information, validate results, and iterate until it reaches a final answer. Once the Reasoning Agent has a final answer, it hands the results back to the original Agent to validate and provide a response.
Example
Read more about reasoning agents in the Reasoning Agents Guide.