KnowledgeOS API Reference
    Preparing search index...

    Interface Event<T>

    EventBus — Central communication mechanism for KnowledgeOS

    The EventBus is the only communication mechanism between subsystems. Subsystems never communicate directly — all messages go through the EventBus.

    Features:

    • Publish/Subscribe pattern
    • Priority-based handler execution
    • Async dispatch with error isolation
    • Event type filtering
    • Subscription management

    specs/Knowledge-Graph-Event-Specification.md

    interface Event<T = unknown> {
        data: T;
        id: string;
        metadata?: Record<string, string>;
        source: string;
        timestamp: string;
        type: string;
    }

    Type Parameters

    • T = unknown
    Index
    data: T
    id: string
    metadata?: Record<string, string>
    source: string
    timestamp: string
    type: string