Skip to main content
Reasoning agents think step-by-step before acting, breaking complex problems into structured solutions.
The user poses a complex problem; the agent reasons step-by-step before responding.

Quick Start

1

Simple Usage

2

With Configuration

Use a reasoning-optimised model for multi-step problems:

How It Works


Common Patterns

Multi-agent reasoning pipeline

Reasoning with tools

Structured output


Best Practices

Vague inputs produce vague reasoning. State the problem with context: instead of “help with marketing”, use “suggest three low-budget marketing strategies for a B2B SaaS startup targeting mid-sized logistics companies.”
Models like o1-mini, o3-mini, or claude-3-7-sonnet perform better on multi-step problems. Use standard models for simpler tasks to save cost and latency.
Complex reasoning benefits from specialisation. Assign analysis to one agent and solution design to another — each agent focuses on its strength without context overload.
When reasoning must produce actionable decisions, use output_pydantic to get typed results. This ensures reasoning outputs are machine-readable and integration-ready.

Planning Mode

Enable agents to plan before executing multi-step tasks

Reasoning Extract

Chain a reasoning model with a smaller agent to extract concise answers