What problem does it solve?
Real-time streaming UI patterns enable AI chat applications to emit token streams, progress indicators, and dynamic feedback during conversations, improving responsiveness and user engagement. This approach is essential when adding response lifecycle handlers, progress indicators, client effects, or thread state synchronization, and should not be used for basic chat that doesn't require real-time feedback.
Core Features & Use Cases
- Real-time response lifecycle control with onResponseStart and onResponseEnd to manage UI locks and state during AI generation.
- Streaming of server-to-client updates via onEffect, ProgressUpdateEvent, and ClientEffectEvent to reflect token progress and UI changes.
- Client tools and onClientTool to query client state, plus thread lifecycle events (onThreadChange, onThreadLoadStart, onThreadLoadEnd) for stateful conversations.
- Application patterns across UIs (interactive maps, forms, dashboards) requiring synchronized updates and live feedback.
Quick Start
Configure your chat UI component with onResponseStart/onResponseEnd, onEffect, and onClientTool handlers to stream updates and drive real-time UI.