SandboxedConfig
Configuration for a sandboxed task executed via Monty.
Attributes
| Attribute | Type | Description |
|---|---|---|
| max_memory | int = 52428800 | Maximum memory in bytes allocated for the sandboxed task, defaulting to 50 MB. |
| max_stack_depth | int = 256 | The maximum depth of the call stack allowed during execution to prevent stack overflow errors. |
| timeout_ms | int = 30000 | The maximum duration in milliseconds the sandboxed task is permitted to run before being terminated. |
| type_check | bool = true | Flag indicating whether to perform runtime type validation on the sandboxed code execution. |
Constructor
Signature
def SandboxedConfig() - > null
Signature
def SandboxedConfig(
max_memory: int = 52428800,
max_stack_depth: int = 256,
timeout_ms: int = 30000,
type_check: bool = True
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| max_memory | int = 52428800 | The maximum memory allocation in bytes allowed for the sandboxed environment. |
| max_stack_depth | int = 256 | The maximum depth of the call stack to prevent recursion-based overflows. |
| timeout_ms | int = 30000 | The execution time limit in milliseconds before the task is forcefully terminated. |
| type_check | bool = True | A flag indicating whether strict type checking should be enforced during task execution. |