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

# With Level • Rust AI Agent SDK

> with_level: Create a new config with a specific budget level.

# with\_level

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**ThinkingConfig**](../classes/ThinkingConfig) class in the [**thinking**](../modules/thinking) module.

Create a new config with a specific budget level.

## Signature

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

## Parameters

<ParamField query="level" type="BudgetLevel" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="Self">
  The result of the operation.
</ResponseField>
