Skip to main content
A reasoning agent breaks problems into steps; a follow-up agent extracts a concise answer from that chain.
The user asks a hard question; a reasoner thinks step-by-step and an extractor returns a concise answer.

Quick Start

1

Simple Usage

Enable reasoning output on a reasoning-capable model:
2

With Configuration

Chain two agents — reasoner then extractor:

How It Works

The reasoner surfaces chain-of-thought via OutputConfig(reasoning_steps=True), sequential tasks pass its output forward, and the extractor returns a short answer. Use a reasoning model (e.g. deepseek-reasoner, o1-mini) for the first agent and a fast model for extraction.

Configuration Options


Best Practices

Models like deepseek-reasoner or o1-mini produce structured chains; general models may skip visible reasoning.
Ask the second agent for the final answer only — avoid re-running full reasoning.
Set output=OutputConfig(reasoning_steps=True) — not a standalone agent parameter.
Use AgentTeam with ordered tasks so the extractor receives the reasoner’s output as context.

Reasoning

Single-agent reasoning patterns

Output Config

Control verbose, stream, and reasoning output