Skip to main content

execute

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

Signature

Parameters

str
required
Code to execute
str
default:"'python'"
Programming language (python, bash, etc.)
Optional
Resource limits for execution
Optional
Environment variables
Optional
Working directory for execution

Returns

SandboxResult
Execution result

Used By

Source

View on GitHub

praisonaiagents/sandbox/protocols.py at line 233