pub struct JavascriptExecutionLimits {
pub v8_heap_limit_mb: Option<u32>,
pub sync_rpc_wait_timeout_ms: Option<u64>,
pub cpu_time_limit_ms: Option<u32>,
pub wall_clock_limit_ms: Option<u32>,
pub import_cache_materialize_timeout_ms: Option<u64>,
pub max_timers: Option<usize>,
pub reactor_work_quantum: Option<usize>,
pub bridge_call_timeout_ms: Option<u64>,
}Expand description
Per-execution JavaScript runtime limits, carried as typed fields on the
execution request rather than AGENTOS_* env vars. The sidecar populates
these from the per-VM VmLimits (which originate from CreateVmConfig on
the BARE wire); None selects the engine default. See the env-vs-wire rule
in crates/sidecar/CLAUDE.md.
Fields§
§v8_heap_limit_mb: Option<u32>V8 heap cap in MB. None/Some(0) keeps the engine default heap.
sync_rpc_wait_timeout_ms: Option<u64>Sync-RPC blocking-wait ceiling in ms. None keeps the engine default.
cpu_time_limit_ms: Option<u32>Active JavaScript CPU-time budget in ms. None keeps the engine default;
Some(0) disables the CPU watchdog.
wall_clock_limit_ms: Option<u32>JavaScript wall-clock backstop in ms. None keeps the engine default;
Some(0) disables the wall-clock watchdog.
import_cache_materialize_timeout_ms: Option<u64>Timeout for materializing the per-VM Node import cache.
max_timers: Option<usize>Maximum live JavaScript timers in this execution. None keeps the
engine default. The sidecar supplies the VM-scoped configured value.
reactor_work_quantum: Option<usize>Maximum readiness identities delivered in one V8 turn. Sidecar VM
execution must supply limits.reactor.workQuantum here.
bridge_call_timeout_ms: Option<u64>Per-call host bridge deadline. Sidecar VMs supply
limits.reactor.operationDeadlineMs; zero is invalid.
Trait Implementations§
Source§impl Clone for JavascriptExecutionLimits
impl Clone for JavascriptExecutionLimits
Source§fn clone(&self) -> JavascriptExecutionLimits
fn clone(&self) -> JavascriptExecutionLimits
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more