> ## 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 Config • Rust AI Agent SDK

> ThinkingConfig: Configuration for thinking behavior.

# ThinkingConfig

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

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

Configuration for thinking behavior.

## Fields

| Name            | Type             | Description                        |
| --------------- | ---------------- | ---------------------------------- |
| `enabled`       | `bool`           | Whether thinking is enabled        |
| `budget`        | `ThinkingBudget` | Budget for thinking                |
| `show_thinking` | `bool`           | Whether to show thinking in output |
| `log_usage`     | `bool`           | Whether to log thinking usage      |

## Methods

### `enabled`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn enabled() -> Self
```

Create a new config with thinking enabled.

### `with_level`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn with_level(level: BudgetLevel) -> Self
```

Create a new config with a specific budget level.

**Parameters:**

| Name    | Type          |
| ------- | ------------- |
| `level` | `BudgetLevel` |

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Configuration" icon="gear" href="/docs/rust/configuration" />

  <Card title="Rust Installation" icon="download" href="/docs/rust/installation" />

  <Card title="Rust Thinking" icon="lightbulb" href="/docs/rust/thinking" />

  <Card title="Rust Reasoning" icon="brain" href="/docs/rust/reasoning" />
</CardGroup>
