Skip to content

timeout_policy

Unified timeout policy for the agent platform.

TimeoutPolicy is the single root configuration that propagates through every sub-component (A2A client, LLM client, coordination runtime, activation retries). It replaces scattered hardcoded defaults with an explicit three-clock streaming model.

Unconditional: compiled for both WASM and native targets.

Top-level timeout configuration.

Propagated from CRD → AgentRuntimeConfigAgentBuilder → sub-components. OSS users get TimeoutPolicy::streaming_default() automatically via AgentBuilder::from_config_path().

Fields

FieldTypeDescription
connect_msu64TCP + TLS handshake timeout (ms). Default: 10_000.
first_byte_msu64Time until first data chunk arrives (ms). Default: 45_000.
idle_msu64Max silence between consecutive chunks (ms). Resets on each chunk. Default: 90_000.
activation_budget_msu64Total activation budget for cold-start retries (ms). Default: 60_000.
wall_clock_msOption<u64>Wall-clock ceiling for LLM execution loops (ms).

Methods

fn streaming_default() -> Self

Streaming-optimized defaults. Used for agents that serve SSE streams.

fn rpc_default() -> Self

RPC (non-streaming) defaults. Total wall-clock 30s, no idle.

fn to_streaming_policy(&self) -> StreamingPolicy

Derive a StreamingPolicy for transport-level clients.