Skip to contents

Components and catalogs

Define the finite set of typed components the model can render.

genui_component()
Define a generative UI component
genui_catalog()
Collect components into a catalog

Built-in components

Add ready-made components and layouts to a catalog.

genui_components_bslib()
Starter component pack built on bslib
genui_card_row()
Container component: a titled row of cards

Shiny integration

Create a generative UI canvas and connect it to an ellmer chat.

genui_canvas()
Canvas container for generated components
genui_server()
Server logic for a generative UI canvas
genui_prompt()
Assemble the system prompt from a catalog

Trace and replay

Capture and restore the validated operations that produced a canvas.

genui_trace()
Read the ordered call trace of a canvas
genui_replay()
Rebuild a canvas from a saved trace, no LLM required

Dispatch

Construct, validate, and plan model-issued tool calls without Shiny or an LLM.

genui_call()
Create a normalized tool call
genui_dispatch()
Validate one tool call and plan its effect