Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.praison.ai/llms.txt

Use this file to discover all available pages before exploring further.

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