Quick Start
How It Works
| Phase | What happens |
|---|---|
| 1. Set | You assign a ThinkingBudget to the agent |
| 2. Think | The model reasons up to the token limit |
| 3. Answer | The agent returns the reasoned response |
Budget Levels
Pre-configured levels for different task complexity:| Level | Tokens | Use case |
|---|---|---|
minimal() | 2,000 | Quick answers |
low() | 4,000 | Simple reasoning |
medium() | 8,000 | Default balance |
high() | 16,000 | Complex analysis |
maximum() | 32,000 | Deep research |
CLI Usage
praisonai run --thinking
Pass --thinking <budget> on the praisonai run command to set an exact token budget for a one-off prompt:
--thinking is now correctly threaded through the direct-prompt path (praisonai run) in both --command and bare-prompt modes. Earlier releases raised a NameError on the direct-prompt path.| Value | Tokens | Notes |
|---|---|---|
off | 0 | Disable extended thinking |
minimal | 2,000 | Quick answers |
low | 4,000 | Simple reasoning |
medium | 8,000 | Balanced |
high | 16,000 | Complex analysis |
<int> | Exact | Any positive integer token budget |
praisonai thinking set <level> instead.
Usage Tracking
Track thinking utilisation across sessions:Best Practices
Match budget to task complexity
Match budget to task complexity
Use
minimal() or low() for quick lookups; reserve high() or maximum() for multi-step analysis where reasoning depth matters.Set via property, not constructor
Set via property, not constructor
Assign
agent.thinking_budget after creating the agent — budgets are applied lazily with zero overhead when unset.Enable adaptive scaling
Enable adaptive scaling
Set
adaptive=True so token allocation scales with task complexity via get_tokens_for_complexity().Monitor with CLI
Monitor with CLI
Use
praisonai thinking stats to review utilisation before increasing budgets in production.Related
Token Budgeting
Manage overall token spend across agent runs
Reflection
Self-review loops for higher-quality outputs

