Esta página se muestra en inglés. Una traducción al español está en curso.
WorkflowsMay 7, 2026·4 min de lectura

Agno Reasoning — Built-In Step-by-Step Tool Use

Agno Reasoning gives any Agent built-in chain-of-thought + tool use. Set reasoning=True; the agent plans, calls tools, returns answers with audit.

Listo para agents

Instalación con revisión previa

Este activo requiere revisión. El prompt copiado pide dry-run, muestra escrituras y continúa solo tras confirmación.

Needs Confirmation · 66/100Política: confirmar
Superficie agent
Cualquier agent MCP/CLI
Tipo
Skill
Instalación
Single
Confianza
Confianza: New
Entrada
Asset
Comando con revisión previa
npx -y tokrepo@latest install 06228dd0-95b8-4e4d-830d-d2a8c16898f1 --target codex

Primero dry-run, confirma las escrituras y luego ejecuta este comando.

Introducción

Agno Reasoning is the built-in chain-of-thought + tool-use loop. Set reasoning=True on any Agno Agent — internally Agno runs a plan-act-reflect cycle, calls tools, and returns the final answer plus an audit trail of every step. Best for: production agents where you need explainable answers, not just outputs. Works with: Agno 1.0+, any LLM via LiteLLM. Setup time: 1 minute.


Enable reasoning

from agno.agent import Agent
from agno.models.anthropic import Claude
from agno.tools.duckduckgo import DuckDuckGoTools
from agno.tools.calculator import CalculatorTools

agent = Agent(
    model=Claude(id="claude-3-5-sonnet-20241022"),
    tools=[DuckDuckGoTools(), CalculatorTools()],
    reasoning=True,
    reasoning_min_steps=3,    # take at least 3 reasoning steps
    reasoning_max_steps=10,   # cap to prevent runaway
    show_tool_calls=True,
    markdown=True,
)

agent.print_response(
    "Compare the energy density of LFP and NMC batteries in Wh/kg, then "
    "calculate how many extra km a Tesla Model 3 with NMC vs LFP would get.",
    show_full_reasoning=True,
)

The output shows each reasoning step:

[Step 1: Plan] I need: (1) energy density of LFP, (2) of NMC, (3) Model 3 weight, (4) calculation.
[Step 2: Search] DuckDuckGoTools(query="LFP battery energy density Wh/kg")
[Step 3: Search] DuckDuckGoTools(query="NMC battery energy density Wh/kg")
[Step 4: Calc] CalculatorTools(...)
[Step 5: Reflect] Numbers consistent. Producing final answer.

Final answer:
- LFP: ~150 Wh/kg
- NMC: ~250 Wh/kg
- Model 3 ~80 km extra range with NMC

When to enable reasoning vs leave it off

Use reasoning Skip reasoning
Multi-step research, math, planning One-shot Q&A
Tool-use over 3+ tools Fixed prompt template
Debugging "why did the agent answer X" Latency-critical chat
Compliance / audit needed Latency < 1s required

Reasoning adds ~2-10x to runtime depending on reasoning_max_steps, so enable selectively per task class.


FAQ

Q: Is Agno free? A: Yes — Agno is open-source under MPL-2.0. The framework, Agents, Reasoning, Memory, Knowledge are all free. Agno Cloud (managed monitoring) is paid.

Q: Reasoning vs OpenAI o1 — what's the difference? A: o1 is a reasoning model with hidden CoT. Agno Reasoning is a framework feature that wraps any model in an explicit reasoning loop with tool use. You can layer them: use o1 as the model AND enable Agno Reasoning for tool orchestration.

Q: How does this differ from Agno's plain Agent? A: A plain Agent calls tools when the model decides. Reasoning forces a structured plan-act-reflect cycle with min_steps and max_steps you control — better for traceability, slightly higher latency.


Quick Use

  1. pip install agno anthropic duckduckgo-search
  2. Create an Agent with reasoning=True plus tools
  3. Call agent.print_response(query, show_full_reasoning=True) to see each step

Intro

Agno Reasoning is the built-in chain-of-thought + tool-use loop. Set reasoning=True on any Agno Agent — internally Agno runs a plan-act-reflect cycle, calls tools, and returns the final answer plus an audit trail of every step. Best for: production agents where you need explainable answers, not just outputs. Works with: Agno 1.0+, any LLM via LiteLLM. Setup time: 1 minute.


Enable reasoning

from agno.agent import Agent
from agno.models.anthropic import Claude
from agno.tools.duckduckgo import DuckDuckGoTools
from agno.tools.calculator import CalculatorTools

agent = Agent(
    model=Claude(id="claude-3-5-sonnet-20241022"),
    tools=[DuckDuckGoTools(), CalculatorTools()],
    reasoning=True,
    reasoning_min_steps=3,    # take at least 3 reasoning steps
    reasoning_max_steps=10,   # cap to prevent runaway
    show_tool_calls=True,
    markdown=True,
)

agent.print_response(
    "Compare the energy density of LFP and NMC batteries in Wh/kg, then "
    "calculate how many extra km a Tesla Model 3 with NMC vs LFP would get.",
    show_full_reasoning=True,
)

The output shows each reasoning step:

[Step 1: Plan] I need: (1) energy density of LFP, (2) of NMC, (3) Model 3 weight, (4) calculation.
[Step 2: Search] DuckDuckGoTools(query="LFP battery energy density Wh/kg")
[Step 3: Search] DuckDuckGoTools(query="NMC battery energy density Wh/kg")
[Step 4: Calc] CalculatorTools(...)
[Step 5: Reflect] Numbers consistent. Producing final answer.

Final answer:
- LFP: ~150 Wh/kg
- NMC: ~250 Wh/kg
- Model 3 ~80 km extra range with NMC

When to enable reasoning vs leave it off

Use reasoning Skip reasoning
Multi-step research, math, planning One-shot Q&A
Tool-use over 3+ tools Fixed prompt template
Debugging "why did the agent answer X" Latency-critical chat
Compliance / audit needed Latency < 1s required

Reasoning adds ~2-10x to runtime depending on reasoning_max_steps, so enable selectively per task class.


FAQ

Q: Is Agno free? A: Yes — Agno is open-source under MPL-2.0. The framework, Agents, Reasoning, Memory, Knowledge are all free. Agno Cloud (managed monitoring) is paid.

Q: Reasoning vs OpenAI o1 — what's the difference? A: o1 is a reasoning model with hidden CoT. Agno Reasoning is a framework feature that wraps any model in an explicit reasoning loop with tool use. You can layer them: use o1 as the model AND enable Agno Reasoning for tool orchestration.

Q: How does this differ from Agno's plain Agent? A: A plain Agent calls tools when the model decides. Reasoning forces a structured plan-act-reflect cycle with min_steps and max_steps you control — better for traceability, slightly higher latency.


Source & Thanks

Built by Agno. Licensed under MPL-2.0.

agno-agi/agno — ⭐ 22,000+

🙏

Fuente y agradecimientos

Built by Agno. Licensed under MPL-2.0.

agno-agi/agno — ⭐ 22,000+

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados