Skip to main content

Module context_os

Module context_os 

Source

Re-exports§

pub use observation::LocalObservationPayload;
pub use observation::LocalObservationSource;
pub use observation::LocalObservationV1;
pub use observation::ObservationPersistenceError;
pub use redaction::RedactionLevel;
pub use redaction::redact_event_payload;
pub use redaction::redact_payload_value;

Modules§

observation
Private, durable observations owned by the ContextBus.
redaction

Structs§

ContextBus
ContextEventV1
ContextOsMetrics
Process-local metrics for Context OS observability.
ContextOsRuntime
Shared runtime backing Context OS features (shared sessions + event bus).
FilteredSubscription
A subscription wrapper that applies a TopicFilter to received events.
MetricsSnapshot
SharedSessionKey
SharedSessionStore
TopicFilter
Filter for selective event subscriptions. All fields are optional; None means “accept all”. Directed events are included by default; callers without an agent identity can opt into the broadcast-only view with TopicFilter::broadcast_only.

Enums§

ConsistencyLevel
Consistency requirement for shared context events. Ordered from least to most strict for filtering comparisons.
ContextEventKindV1
SubscriptionKind
Wraps either a plain broadcast::Receiver or a FilteredSubscription so the SSE route can handle both with the same code path.

Functions§

emit_directed_event
Emit an event directed at specific agents only.
emit_event
Convenience: append an event to the global bus with metrics tracking.
runtime
secondary_event_kind
Classify a tool name into a secondary event kind (beyond ToolCallRecorded).
try_runtime
Fallible access to the same runtime authority. Failed initialization is not cached, so restoring the configured storage permits a subsequent retry.