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

# sandbox • Rust AI Agent SDK

> sandbox: Set sandbox mode

# sandbox

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

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

Set sandbox mode

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def sandbox(mut self, sandbox: bool) -> Self
```

## Parameters

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

### Returns

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Database" icon="database" href="/docs/rust/database" />

  <Card title="Rust Sandbox" icon="box" href="/docs/rust/sandbox" />

  <Card title="Rust Code Execution" icon="terminal" href="/docs/rust/code-execution" />
</CardGroup>
