Vercel

Introducing AI SDK 3.0 with Generative UI support

Mar 1, 2024
Introducing AI SDK 3.0 with Generative UI support
SummaryAI, from the source post

Introduces Vercel AI SDK 3.0, enabling Generative UI by allowing LLMs to stream React Server Components (RSC). This moves beyond plaintext/markdown responses to rich, component-based interfaces. The new `render` method in the SDK supports OpenAI-compatible Functions/Tools, mapping LLM calls to specific RSCs for dynamic data retrieval and UI rendering. It also provides lower-level streaming APIs for custom component streaming. The post clarifies that this relies on RSC and Server Actions, currently implemented in Next.js App Router, and is compatible with LLMs supporting OpenAI's SDK and function calling.

More from the AI Gateway and AI SDK Integration trail