execute • Rust AI Agent SDK
execute: Execute code in the sandbox.
execute
Async
Method
</div>
This is a method of the SandboxProtocol class in the sandbox module.
Execute code in the sandbox.
Signature
async def execute(
&self,
code: &str,
language: &str,
limits: Option<ResourceLimits>,
env: Option<HashMap<String, String>>,
working_dir: Option<String>,
) -> Result<SandboxResult>Parameters
ParamField
&strNo description available.
ParamField
&strNo description available.
ParamField
Option<ResourceLimits>No description available.
ParamField
Option<HashMap<StringNo description available.
ParamField
Option<String>No description available.