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
Write clear, specific problem statements
Write clear, specific problem statements
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.”
Use reasoning-optimised models for complex tasks
Use reasoning-optimised models for complex tasks
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.Break problems into sub-tasks with multi-agent pipelines
Break problems into sub-tasks with multi-agent pipelines
Complex reasoning benefits from specialisation. Assign analysis to one agent and solution design to another — each agent focuses on its strength without context overload.
Use structured output for decision-making
Use structured output for decision-making
When reasoning must produce actionable decisions, use
output_pydantic to get typed results. This ensures reasoning outputs are machine-readable and integration-ready.Related
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

