Skip to main content

execute_file

AsyncMethod
This is a method of the SandboxProtocol class in the protocols module.
Execute a file in the sandbox.

Signature

async def execute_file(file_path: str, args: Optional[List[str]], limits: Optional[ResourceLimits], env: Optional[Dict[str, str]]) -> SandboxResult

Parameters

file_path
str
required
Path to file to execute
args
Optional
Command line arguments
limits
Optional
Resource limits for execution
env
Optional
Environment variables

Returns

Returns
SandboxResult
Execution result

Source

View on GitHub

praisonaiagents/sandbox/protocols.py at line 255