Skip to main content

Crate agentos_runtime

Crate agentos_runtime 

Source
Expand description

Process-owned trusted runtime services.

Production sidecars construct exactly one SidecarRuntime at their process entrypoint. Subsystems receive a clone of RuntimeContext; they never construct Tokio runtimes of their own.

Re-exports§

pub use supervision::TaskClass;
pub use supervision::TaskClassSnapshot;
pub use supervision::TaskOwner;
pub use supervision::TaskSpawnError;
pub use supervision::TaskSupervisor;
pub use supervision::TaskTerminalReason;
pub use supervision::TaskTerminalReport;

Modules§

accounting
Hierarchical count/byte admission with exact RAII ownership.
capability
One generation-aware registry for native and kernel-backed capabilities.
fairness
Deterministic hierarchical deficit round robin for VM-owned capabilities.
metrics
Fixed-cardinality runtime telemetry and bounded stderr fallback formatting.
readiness
Durable, revisioned per-VM readiness with a capacity-one wake lane.
supervision
Bounded task ownership, terminal accounting, and owner notification.

Structs§

BlockingExecutor
RuntimeBuildError
RuntimeConfig
RuntimeContext
RuntimeFairnessConfig
RuntimeProtocolConfig
Process-owned bounds for the multiplexed sidecar transport.
RuntimeResourceConfig
SidecarRuntime

Enums§

BlockingJobError

Constants§

DEFAULT_PROTOCOL_MAX_COMPLETED_RESPONSES
DEFAULT_PROTOCOL_MAX_CONTROL_BYTES
DEFAULT_PROTOCOL_MAX_CONTROL_FRAMES
DEFAULT_PROTOCOL_MAX_EGRESS_BYTES
DEFAULT_PROTOCOL_MAX_EGRESS_FRAMES
DEFAULT_PROTOCOL_MAX_INGRESS_BYTES
DEFAULT_PROTOCOL_MAX_INGRESS_FRAMES
DEFAULT_PROTOCOL_MAX_OUTBOUND_REQUESTS
DEFAULT_PROTOCOL_MAX_PENDING_RESPONSES
DEFAULT_PROTOCOL_MAX_PENDING_RESPONSE_BYTES
DEFAULT_PROTOCOL_MAX_PROCESS_EVENTS

Functions§

is_runtime_worker_thread
Whether the current OS thread is one of the process runtime’s fixed workers.