Expand description
Async runtime kernel for the behest agent runtime.
During migration from behest::runtime, some doc and pub lint
warnings are temporarily relaxed. They will be re-enabled once
the migration is complete.
Re-exports§
pub use error::RuntimeError;
Modules§
- accumulator
- Streaming accumulator for text and tool calls.
- agent
- Agent runtime — streaming-first execution kernel.
- cache_
stats - Aggregated prompt cache statistics for a run or a window of events.
- compaction
- Context compaction — LLM-driven conversation summarisation.
- component
- The
Componenttrait: lifecycle contract for every pluggable runtime building block. - component_
factory - Adapters that wrap existing runtime traits as
Components. - components
- Self-contained
Componentimplementations that construct providers, stores, and adapters from JSON configuration. - context
- Context pipeline for runtime.
- doom_
loop - Doom loop detection for agent runs.
- error
- Runtime error types.
- event
- Re-export of the canonical
AgentEventand its payload structs frombehest_event. - event_
publisher - External event publishing boundary for runtime events.
- event_
store - Reliable runtime event log.
- extension
ExtensionPoint<T>: a typed, name-indexed, hot-swappable collection.- extensions
Extensions: the composable, hot-pluggable facade over every pluggable runtime element.- factory_
registry - Factory registry for runtime components.
- input
- Input admission and promotion pipeline.
- invocation
- Transport-neutral runtime invocation facade.
- lifecycle
- Cooperative shutdown primitives.
- managed
ManagedRuntime: unified container orchestratingAgentRuntime,ComponentRegistry, andShutdownTokeninto a single lifecycle.- memory
- In-memory implementations of runtime stores.
- policy
- Runtime policy configuration.
- registry
ComponentRegistry: ordered, dependency-aware, type-erased registry for everyComponentin the runtime.- router
- Model router for runtime.
- run
- Run lifecycle types.
- run_
loop - Agent run loop — the core iterative execution engine.
- session_
gate - Per-session concurrency gate.
- snapshot
- Agent execution snapshotting and recovery.
- state
- Event-sourced run state reconstruction.
- store
- Runtime store facade.
- stream
- Transport-neutral runtime stream primitives.
- stream_
adapter - Best-effort live fanout for runtime events.
- subscription
- Coordination layer combining replay and live fanout.
- token
- Token estimation using character-based heuristics.
- tool_
output - Tool output truncation with head+tail sampling.
- tool_
runtime - Tool runtime layer with validation, timeout, and bounded parallelism.
- tool_
scope - LIFO scoped tool registry with shadow-stack semantics.
- turn
- Turn-based state machine for agent control flow.