Chat SDK now ships a native AI SDK toolset via the new `chat/ai` subpath. One call, `createChatTools(chat)`, wires all of Chat SDK's read and write actions directly into your AI SDK agent.
Three presets scope the toolset: `reader`, `messenger`, and `moderator`. Write tools require explicit opt-in via a `requireApproval` option, and lazy loading means only the tools your preset permits are constructed. The `toAiMessages` function and its types have migrated to `chat/ai`, with the old `chat` exports now marked `@deprecated`.
The deprecation path and the preset permission model are what make this worth reading in full. How you scope and gate tool access in agentic chat has real security implications. Start with the official documentation at chat-sdk.dev/docs/ai or pull a template from chat-sdk.dev/resources.
[READ ORIGINAL →]