Skip to main content

ResourceLimits

Defined in the protocols module.
Resource limits for sandbox execution. Attributes: memory_mb: Maximum memory in megabytes (0 = unlimited) cpu_percent: Maximum CPU percentage (0 = unlimited) timeout_seconds: Maximum execution time in seconds max_processes: Maximum number of processes max_open_files: Maximum number of open files network_enabled: Whether network access is allowed disk_write_mb: Maximum disk write in megabytes (0 = unlimited)

Properties

memory_mb
int
No description available.
cpu_percent
int
No description available.
timeout_seconds
int
No description available.
max_processes
int
No description available.
max_open_files
int
No description available.
network_enabled
bool
No description available.
disk_write_mb
int
No description available.

Methods

  • from_dict: Create from dictionary.
  • to_dict: Convert to dictionary.