ART Framework API Docs
    Preparing search index...

    Class LLMStreamSocket

    A dedicated socket for broadcasting LLM stream events (StreamEvent) to UI subscribers. Extends the generic TypedSocket and implements filtering based on StreamEvent.type.

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Notifies all relevant subscribers with new data.

      Parameters

      • data: StreamEvent

        The data payload to send to subscribers.

      • Optionaloptions: { targetSessionId?: string; targetThreadId?: string }

        Optional targeting options (e.g., targetThreadId).

      • OptionalfilterCheck: (data: StreamEvent, filter?: StreamEventTypeFilter) => boolean

        A function to check if a subscription's filter matches the data.

      Returns void