OptionalclassCSS class on the root element.
OptionalmappingsAG-UI mappings so STATE_* events project onto the entity graph.
OptionalonCalled with the fully accumulated text when the stream ends.
OptionalonCalled with each token delta as it arrives.
OptionalonCalled on stream error.
OptionalplaceholderPlaceholder shown before the first token arrives.
OptionalrenderRender override for the accumulated content.
The live event stream to consume. Changing this prop replaces the stream.
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.