pub struct PythonExecutionLimits {
pub output_buffer_max_bytes: Option<usize>,
pub execution_timeout_ms: Option<u64>,
pub max_old_space_mb: Option<usize>,
pub vfs_rpc_timeout_ms: Option<u64>,
pub reactor_work_quantum: Option<usize>,
pub bridge_call_timeout_ms: Option<u64>,
pub max_open_fds: Option<usize>,
}Expand description
Per-execution Python runtime limits, carried as typed fields rather than
AGENTOS_* env vars. Populated by the sidecar from the per-VM VmLimits
(originating from CreateVmConfig on the BARE wire); None selects the
engine default. See the env-vs-wire rule in crates/sidecar/CLAUDE.md.
Fields§
§output_buffer_max_bytes: Option<usize>Captured-output buffer cap in bytes. None keeps the engine default.
execution_timeout_ms: Option<u64>Execution wall-clock cap in ms. None keeps the engine default;
Some(0) disables the timeout.
max_old_space_mb: Option<usize>Pyodide V8 old-space cap in MB (0 keeps the V8 default). None keeps
the engine default.
vfs_rpc_timeout_ms: Option<u64>VFS sync-RPC wait ceiling in ms. None keeps the engine default.
reactor_work_quantum: Option<usize>VM readiness work bound forwarded unchanged to the Pyodide V8 runner.
bridge_call_timeout_ms: Option<u64>Per-call host bridge deadline forwarded unchanged to the Pyodide V8 runner.
max_open_fds: Option<usize>Maximum host-direct descriptors retained for managed Pyodide assets.
None keeps the execution engine’s bounded fallback. The native sidecar
always supplies the VM kernel’s configured descriptor limit.
Trait Implementations§
Source§impl Clone for PythonExecutionLimits
impl Clone for PythonExecutionLimits
Source§fn clone(&self) -> PythonExecutionLimits
fn clone(&self) -> PythonExecutionLimits
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more