SandboxProtocol
Defined in the sandbox module.Rust AI Agent SDK Protocol for sandbox implementations. Sandboxes provide isolated environments for safe code execution. Implementations can use Docker, subprocess isolation, or other containerization technologies.
Methods
is_available
sandbox_type
start
stop
execute
| Name | Type |
|---|---|
code | &str |
language | &str |
limits | Option<ResourceLimits> |
env | Option<HashMap<String |
working_dir | Option<String> |
execute_file
| Name | Type |
|---|---|
file_path | &str |
args | Option<Vec<String>> |
limits | Option<ResourceLimits> |
env | Option<HashMap<String |
run_command
| Name | Type |
|---|---|
command | &str |
limits | Option<ResourceLimits> |
env | Option<HashMap<String |
working_dir | Option<String> |
write_file
| Name | Type |
|---|---|
path | &str |
content | &[u8] |
read_file
| Name | Type |
|---|---|
path | &str |
list_files
| Name | Type |
|---|---|
path | &str |
get_status
cleanup
reset
Source
View on GitHub
praisonai/src/sandbox/mod.rs at line 0
