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

# Planning Config • Rust AI Agent SDK

> PlanningConfig: Configuration for planning mode

# PlanningConfig

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

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

Configuration for planning mode

## Fields

| Name           | Type                   | Description                                   |
| -------------- | ---------------------- | --------------------------------------------- |
| `enabled`      | `bool`                 | Enable planning                               |
| `llm`          | `Option&lt;String&gt;` | Planning LLM (if different from main)         |
| `reasoning`    | `bool`                 | Enable reasoning during planning              |
| `auto_approve` | `bool`                 | Auto-approve plans without user confirmation  |
| `read_only`    | `bool`                 | Read-only mode (only read operations allowed) |

## Methods

### `new`

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

Create a new planning config

### `enabled`

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

Enable planning

### `llm`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn llm(mut self, llm: impl Into<String>) -> Self
```

Set planning LLM

**Parameters:**

| Name  | Type                      |
| ----- | ------------------------- |
| `llm` | `impl Into&lt;String&gt;` |

### `with_reasoning`

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

Enable reasoning

### `auto_approve`

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

Enable auto-approve

### `read_only`

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

Enable read-only mode

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-rust/praisonai/src/config.rs#L488">
  `praisonai/src/config.rs` at line 488
</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 Planning" icon="map" href="/docs/rust/planning" />

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