Chat SDK adds AI SDK toolset
Key point
Chat SDK now provides an AI SDK toolset by default via `chat/ai`.
Details
Chat SDK now includes an AI SDK toolset by default through a new chat/ai subpath. Calling createChatTools(chat) once lets you connect Chat SDK's read and write actions to an agent.
Write tools are gated by an approval process via the requireApproval option by default. Tool scopes are divided into reader, messenger, and moderator presets, and only allowed tools are lazily loaded.
toAiMessages and related types have also been moved to chat/ai. The existing chat re-export is now marked @deprecated, and you can get started via the docs and templates.
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.