Generative UI
Spec-driven generative UI for assistant-ui. The data format an assistant streams, the component registry that resolves it, and the renderer that turns it into React elements.
Pages
JSONGenerativeUICreate present and prompt_user tools from a generative UI component library, with options for display mode and action dispatch.Generative UI ComponentsDefine the component library JSONGenerativeUI can render, including schemas, render functions, and the default vocabulary.Generative UI ActionsRegister handlers for model-emitted $action payloads and dispatch them from interactive generative UI components.Generative UI SpecThe serializable node tree an assistant emits to describe generative UI. Covers the GenerativeUISpec format, its nodes, and the message part that carries the spec.Generative UI RenderingRender generative UI trees, build present-tool schemas, and inspect or serialize model-produced UI nodes.Generative UI TokensShared token arrays used by the default generative UI vocabulary for sizing, color, alignment, and component variants.