SandboxConfig
Defined in the config module.AI Agent Configuration for sandbox execution. Attributes: sandbox_type: Type of sandbox (docker, subprocess, e2b) image: Docker image to use (for docker sandbox) working_dir: Working directory within sandbox env: Environment variables resource_limits: Resource limits security_policy: Security policy auto_cleanup: Whether to auto-cleanup after execution persist_files: Whether to persist files between executions mount_paths: Paths to mount into sandbox (host:container) metadata: Additional configuration
Properties
str
No description available.
str
No description available.
str
No description available.
Dict[str, str]
No description available.
ResourceLimits
No description available.
SecurityPolicy
No description available.
bool
No description available.
bool
No description available.
List[str]
No description available.
Dict[str, Any]
No description available.
Methods
docker()
Create a Docker sandbox configuration.
subprocess()
Create a subprocess sandbox configuration.
e2b()
Create an E2B sandbox configuration.
novita()
Create a Novita sandbox configuration.
capsule()
Create a Capsule sandbox configuration.
native()
Create an OS-native sandbox configuration.
Internal & Generic Methods
Internal & Generic Methods
- to_dict: Convert to dictionary.
Source
View on GitHub
praisonaiagents/sandbox/config.py at line 92
