Skip to main content
This reference covers the core data structures and events used across all reasoning approaches in Agno (Reasoning Models, Reasoning Tools, and Reasoning Agents).

ReasoningStep

The ReasoningStep class represents a single step in the reasoning process, whether generated by Reasoning Tools, Reasoning Agents, or native reasoning models.

Attributes

NextAction Enum

The NextAction enum defines possible next steps in the reasoning process:

ReasoningSteps

The ReasoningSteps class is a container for multiple reasoning steps, used as the structured output for Reasoning Agents.

Attributes

ReasoningTools

The ReasoningTools toolkit provides explicit tools for structured thinking.

Constructor Parameters

Methods

think()

Use as a scratchpad to reason about problems step-by-step. Parameters: Returns: str - Formatted list of all reasoning steps taken so far

analyze()

Analyze results from previous actions and determine next steps. Parameters: Returns: str - Formatted list of all reasoning steps taken so far

Reasoning Events

Events emitted during reasoning processes when using Reasoning Agents or Reasoning Models.

Event Types

ReasoningStartedEvent

Emitted when reasoning begins. Attributes:

ReasoningStepEvent

Emitted for each reasoning step during the process. Attributes:

ReasoningCompletedEvent

Emitted when reasoning finishes. Attributes:

Agent Configuration for Reasoning

Reasoning Agent Parameters

Parameters for configuring Reasoning Agents (reasoning=True):

Display Parameters

Parameters for showing reasoning during execution:

See Also