Chat SDK now includes AI SDK tools
Source: Vercel News
Chat SDK now ships a built-in AI SDK toolset through the new chat/ai subpath. One createChatTools(chat) call wires Chat SDK's read and write actions into your agent.
Approval by default: write tools are gated by a
requireApprovaloption.Presets:
reader,messenger, andmoderatorscope the toolset.Lazy loading: only the tools your preset allows are constructed.
toAiMessages and its supporting types have moved to chat/ai. The previous chat re-exports are flagged @deprecated.
Read the documentation to get started, or try one of our templates.