About
Official implementation guide for @assistant-ui/react-generative-ui, an open-source runtime that lets models compose JSON interface trees through a present tool. It covers registered React components, Zod prop schemas, opt-in streaming, action handlers, and adapters for Slack, Teams, and A2UI.
Summary
1. Model-composed layouts: Generates nested interfaces from a component vocabulary instead of binding one fixed widget to each tool
2. Explicit rendering contract: Resolves registered components by name, validates props, and supports partially streamed props
3. Interactive responses: Routes form values and button actions to application handlers, with separate present and prompt_user flows
4. Runnable integration: Includes an end-to-end example and a compiler that separates server schemas from client render functions
5. Cross-platform path: Converts the built-in vocabulary to Slack Block Kit and Teams Adaptive Cards, and accepts A2UI surfaces