SandboxConfig
Defined in the sandbox module.Rust AI Agent SDK Configuration for a sandbox.
Fields
| Name | Type | Description |
|---|---|---|
sandbox_type | String | Sandbox type (docker, subprocess, etc.) |
image | Option<String> | Docker image to use (if docker type) |
working_dir | Option<String> | Working directory |
env | HashMap<String | Environment variables |
limits | ResourceLimits | Resource limits |
auto_cleanup | bool | Whether to auto-cleanup after execution |
Methods
new
docker
| Name | Type |
|---|---|
image | impl Into<String> |
subprocess
working_dir
| Name | Type |
|---|---|
dir | impl Into<String> |
env
| Name | Type |
|---|---|
key | impl Into<String> |
value | impl Into<String> |
limits
| Name | Type |
|---|---|
limits | ResourceLimits |
auto_cleanup
| Name | Type |
|---|---|
cleanup | bool |
Source
View on GitHub
praisonai/src/sandbox/mod.rs at line 311
