Prometheus Entity Management API
    Preparing search index...

    entity-stream.tsx — EntityStream: renders a live stream of agent events.

    EntityStream is the lowest-level primitive: it accepts an AsyncIterable of StreamEvents and renders the raw token stream as it arrives. It is useful for non-chat contexts — inline LLM completions, "generating..." surfaces, etc.

    STATE_SNAPSHOT / STATE_DELTA events are still projected into the entity graph just as in EntityChat/EntityCopilot.

    Layering: Component → stores via applyAgUiSnapshot/Delta directly (no intermediate hook because the component IS the hook surface here — it owns stream consumption). Entity graph writes go through the core module.

    interface EntityStreamProps {
        className?: string;
        mappings?: AgUiStateMapping[];
        onComplete?: (text: string) => void;
        onDelta?: (token: string) => void;
        onError?: (error: Error) => void;
        placeholder?: ReactNode;
        renderContent?: (text: string, streaming: boolean) => ReactNode;
        stream: AsyncIterable<StreamEvent, any, any> | null | undefined;
    }
    Index
    className?: string

    CSS class on the root element.

    mappings?: AgUiStateMapping[]

    AG-UI mappings so STATE_* events project onto the entity graph.

    onComplete?: (text: string) => void

    Called with the fully accumulated text when the stream ends.

    onDelta?: (token: string) => void

    Called with each token delta as it arrives.

    onError?: (error: Error) => void

    Called on stream error.

    placeholder?: ReactNode

    Placeholder shown before the first token arrives.

    renderContent?: (text: string, streaming: boolean) => ReactNode

    Render override for the accumulated content.

    stream: AsyncIterable<StreamEvent, any, any> | null | undefined

    The live event stream to consume. Changing this prop replaces the stream.