> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# thinking • AI Agent SDK

> Extended Thinking Budgets Module for PraisonAI Agents.

# thinking

<Badge color="blue">AI Agent</Badge>

Extended Thinking Budgets Module for PraisonAI Agents.

Provides configurable thinking budgets for LLM reasoning:

* Token budgets for extended thinking
* Time budgets for reasoning
* Adaptive budget allocation
* Budget tracking and reporting

Zero Performance Impact:

* All imports are lazy loaded via **getattr**
* Budgets only applied when configured
* No overhead when not in use

Usage:
from praisonaiagents.thinking import ThinkingBudget, ThinkingConfig

# Create a thinking budget

budget = ThinkingBudget(
max\_tokens=16000,
max\_time\_seconds=60,
adaptive=True
)

# Apply to agent

agent = Agent(
instructions="...",
thinking\_budget=budget
)

## Import

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
from praisonaiagents import thinking
```
