Run Command • Rust AI Agent SDK

run_command: Run a shell command in the sandbox.

run_command

Async

Method

</div>

This is a method of the SandboxProtocol class in the sandbox module.

Run a shell command in the sandbox.

Signature

python
async def run_command(
        &self,
        command: &str,
        limits: Option<ResourceLimits>,
        env: Option<HashMap<String, String>>,
        working_dir: Option<String>,
    ) -> Result<SandboxResult>

Parameters

ParamField &str

No description available.

ParamField Option&lt;ResourceLimits&gt;

No description available.

ParamField Option&lt;HashMap&lt;String

No description available.

ParamField Option&lt;String&gt;

No description available.

Returns

Rust CLI