Skip to main content

Module sandbox

Module sandbox 

Source
Expand description

Sandbox integration for bash tool execution.

When SandboxConfig is provided via SessionOptions::with_sandbox(), the bash tool routes commands through an A3S Box MicroVM instead of std::process::Command. The workspace directory is mounted read-write at /workspace inside the sandbox.

§Feature Flag

The concrete [BoxSandboxHandle] implementation requires the sandbox Cargo feature and the a3s-box-sdk crate. Without the feature, setting a SandboxConfig emits a warning but has no effect.

Structs§

SandboxConfig
Configuration for routing bash tool execution through an A3S Box sandbox.
SandboxOutput
Output from running a command inside a sandbox.

Traits§

BashSandbox
Abstraction over sandbox bash execution used by the bash built-in tool.