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
CodeAgent.execute_codeCodeAgent.aexecuteMiddlewareManager.execute_model_callMiddlewareManager.execute_tool_callHookRunner.execute_sync
Source
View on GitHub
praisonaiagents/sandbox/protocols.py at line 233
