Sandbox Config • AI Agent SDK
SandboxConfig: Configuration for sandbox execution.
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
strNo description available.
strNo description available.
strNo description available.
Dict[str, str]No description available.
ResourceLimitsNo description available.
SecurityPolicyNo description available.
boolNo description available.
boolNo description available.
List[str]No description available.
Dict[str, Any]No description available.
Methods
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
- to_dict: Convert to dictionary.
Source
View on GitHubpraisonaiagents/sandbox/config.py at line 92