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
async def run_command(
&self,
command: &str,
limits: Option<ResourceLimits>,
env: Option<HashMap<String, String>>,
working_dir: Option<String>,
) -> Result<SandboxResult>Parameters
ParamField
&strNo description available.
ParamField
Option<ResourceLimits>No description available.
ParamField
Option<HashMap<StringNo description available.
ParamField
Option<String>No description available.