Quick Start
How It Works
The reasoner surfaces chain-of-thought viaOutputConfig(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
| Option | Type | Default | Description |
|---|---|---|---|
reasoning_steps | bool | False | On OutputConfig — surface reasoning content |
llm | str | "gpt-4o-mini" | Model per agent — use reasoning models first |
process | str | "sequential" | Task order on AgentTeam |
Best Practices
Use a reasoning model for step one
Use a reasoning model for step one
Models like
deepseek-reasoner or o1-mini produce structured chains; general models may skip visible reasoning.Keep the extractor prompt narrow
Keep the extractor prompt narrow
Ask the second agent for the final answer only — avoid re-running full reasoning.
Enable reasoning_steps on OutputConfig
Enable reasoning_steps on OutputConfig
Set
output=OutputConfig(reasoning_steps=True) — not a standalone agent parameter.Run tasks sequentially
Run tasks sequentially
Use
AgentTeam with ordered tasks so the extractor receives the reasoner’s output as context.Related
Reasoning
Single-agent reasoning patterns
Output Config
Control verbose, stream, and reasoning output

