
5/2/2024
What this post added
AI SDK 3.1 introduces AI SDK Core, a unified API for LLM interactions supporting text generation, structured object generation (with Zod schema validation), and tool calls. It defines a Language Model Specification for provider integrations and includes new functions like `generateText`, `generateObject`, and `streamUI`. AI SDK UI offers framework-agnostic hooks (`useChat`, `useCompletion`, `useAssistant`) for building chat interfaces. AI SDK RSC's `streamUI` function enables generative UI with React Server Components, allowing LLMs to render custom components and use tools.