> ## 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.

# Budget Level • Rust AI Agent SDK

> BudgetLevel: Predefined budget levels for thinking.

# BudgetLevel

> Defined in the [**thinking**](../modules/thinking) module.

<Badge color="orange">Rust AI Agent SDK</Badge>

Predefined budget levels for thinking.

## Fields

| Name      | Type      | Description                   |
| --------- | --------- | ----------------------------- |
| `Minimal` | `variant` | -                             |
| `budget`  | `variant` | -                             |
| `Minimal` | `variant` | Minimal budget (2000 tokens)  |
| `Low`     | `variant` | -                             |
| `budget`  | `variant` | -                             |
| `Low`     | `variant` | Low budget (4000 tokens)      |
| `Medium`  | `variant` | -                             |
| `budget`  | `variant` | -                             |
| `Medium`  | `variant` | Medium budget (8000 tokens)   |
| `High`    | `variant` | -                             |
| `budget`  | `variant` | -                             |
| `High`    | `variant` | High budget (16000 tokens)    |
| `Maximum` | `variant` | -                             |
| `budget`  | `variant` | -                             |
| `Maximum` | `variant` | Maximum budget (32000 tokens) |

## Methods

### `tokens`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn tokens(&self) -> usize
```

Get the token allocation for this level.

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-rust/praisonai/src/thinking/mod.rs">
  `praisonai/src/thinking/mod.rs` at line 0
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Budget" icon="wallet" href="/docs/rust/budget" />

  <Card title="Rust Token Management" icon="coins" href="/docs/rust/token-management" />
</CardGroup>
