Chat SDK now ships a built-in [AI SDK](https://ai-sdk.dev/docs/foundations/tools) 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 requireApproval
option.
**Presets: **reader
, messenger
, and moderator
scope the toolset.
**Lazy : **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.