Thinking Module
The thinking module provides configurable thinking budgets for LLM reasoning, allowing control over token and time budgets for extended thinking.Installation
Features
- Token budgets for extended thinking
- Time budgets for reasoning
- Adaptive budget allocation
- Budget tracking and reporting
Quick Start
Classes
ThinkingBudget
Configure thinking budgets for agents.Constructor
ThinkingConfig
Configuration for thinking behavior.Attributes
ThinkingUsage
Track thinking usage.Attributes
ThinkingTracker
Track thinking across multiple calls.Usage Examples
Basic Thinking Budget
Adaptive Budget
Time-Limited Thinking
Track Usage
Best Practices
- Set appropriate budgets - Balance quality vs. cost
- Use adaptive mode - Let the system optimize for task complexity
- Monitor usage - Track thinking costs over time
- Time limits - Set time limits for time-sensitive applications

