Chat SDK now includes a built-in AI SDK toolset that lets developers integrate Chat's read and write operations into AI agents.
- •createChatTools(chat) function connects Chat SDK capabilities with the AI SDK for agent development
- •Three presets (reader, messenger, moderator) allow scope-specific tool configurations for different use cases
- •Write tools require approval by default through the requireApproval option for safety
- •Lazy loading ensures only the tools specified by your preset are instantiated
- •toAiMessages type and utilities have moved to the chat/ai subpath with previous chat re-exports marked deprecated
This summary was automatically generated by AI based on the original article and may not be fully accurate.