ReasoningStep
TheReasoningStep class represents a single step in the reasoning process, whether generated by Reasoning Tools, Reasoning Agents, or native reasoning models.
Attributes
NextAction Enum
TheNextAction enum defines possible next steps in the reasoning process:
ReasoningSteps
TheReasoningSteps class is a container for multiple reasoning steps, used as the structured output for Reasoning Agents.
Attributes
ReasoningTools
TheReasoningTools 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
- Reasoning Overview - Introduction to reasoning approaches
- Reasoning Agents Guide - Using Reasoning Agents
- Reasoning Tools Guide - Using Reasoning Tools
- Reasoning Models Guide - Using native reasoning models