Skip to main content

Module events

Module events 

Source
Expand description

Cortex Event Bus — typed events from every component.

The EventBus is a tokio::sync::broadcast channel that carries CortexEvent values. Any consumer — MCP server, REST SSE endpoint, web dashboard, log files — can subscribe independently. When no subscribers exist, events are silently dropped (zero overhead).

Structs§

EventBus
The central event bus for Cortex.

Enums§

CortexEvent
Every event Cortex emits. Serialized to JSON for SSE, MCP, and socket streaming.

Functions§

event_matches_domain
Check if an event is related to a specific domain.
now_timestamp
Get the ISO-8601 timestamp for the current time.