Execute File • Rust AI Agent SDK

execute_file: Execute a file in the sandbox.

execute_file

Async

Method

</div>

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

Execute a file in the sandbox.

Signature

python
async def execute_file(
        &self,
        file_path: &str,
        args: Option<Vec<String>>,
        limits: Option<ResourceLimits>,
        env: Option<HashMap<String, String>>,
    ) -> Result<SandboxResult>

Parameters

ParamField &str

No description available.

ParamField Option&lt;Vec&lt;String&gt;&gt;

No description available.

ParamField Option&lt;ResourceLimits&gt;

No description available.

ParamField Option&lt;HashMap&lt;String

No description available.

Returns

Rust Files Rust Documents