Why Use Thinking?
Thinking is most valuable when your agent has multiple tools and needs to:- Create an execution plan before acting
- Call tools in a specific sequence
- Synthesize results from multiple sources
Enabling Thinking
To enable thinking capabilities, setenable_thinking_tool=True when creating your agent:
How Thinking Works
When thinking is enabled, the agent follows a structured “blueprint” approach:- Strategic Planning: The agent creates a complete, sequential plan of tool calls
- Orchestrated Execution: Tools are executed step-by-step according to the plan
- Final Synthesis: Results from all tools are combined into a comprehensive answer
Thinking vs. Basic Mode
| Feature | Basic Mode | Thinking Mode |
|---|---|---|
| Planning | Ad-hoc tool calls | Structured blueprint creation |
| Execution | Direct tool execution | Orchestrated step-by-step execution |
| Best For | Single tool tasks | Multi-tool coordination |
Thinking Configuration
Agent-Level Thinking
Task-Level Thinking
Mixed Configuration
When to Use Thinking
Thinking is ideal for:- Multi-source Research: Gathering data from multiple tools and synthesizing
- Step-by-Step Analysis: Tasks requiring sequential tool execution
- Complex Workflows: When tool outputs feed into subsequent tool calls
- Data Aggregation: Combining results from several sources
Example: Financial Analysis with Multiple Tools
Example: Multi-City Research
Thinking Output Structure
When thinking is enabled, the agent provides:- Reasoning: Detailed strategy for approaching the task
- Execution Plan: Step-by-step tool call sequence
- Criticism: Self-assessment identifying potential issues
- Final Synthesis: Comprehensive answer combining all tool results
Performance Considerations
Important: Thinking capabilities consume more tokens and processing time than basic mode due to the planning and synthesis steps. Use thinking when the orchestration value outweighs the cost.Best Practices
- Use for Multi-Tool Tasks: Enable thinking when you have 2+ tools that need coordination
- Disable for Simple Queries: Use basic mode for single-tool or no-tool tasks
- Provide Clear Instructions: Help the agent plan by being specific about what you need
- Include Multiple Tools: Thinking shines when there are tools to orchestrate
- Monitor with Debug Mode: Use
debug=Trueto understand the planning process

