megachangelog
Feature

Chat SDK now includes AI SDK tools

Chat SDK now ships with built-in AI tools through a new chat/ai subpath, allowing you to wire Chat SDK's read and write actions into your agent with a single createChatTools() call. Tools are configurable via presets (reader, messenger, moderator), lazy-loaded, and write operations are gated by an approval requirement option.

Chat SDK now ships a built-in toolset through the new subpath. One call wires Chat SDK's read and write actions into your agent.AI SDKchat/aicreateChatTools(chat)

and its supporting types have moved to . The previous re-exports are flagged .toAiMessageschat/aichat@deprecated

Read the to get started, or try one of our .documentationtemplates

Read more

  • write tools are gated by a option.Approval by default: requireApproval

  • , , and scope the toolset.Presets: readermessengermoderator

  • only the tools your preset allows are constructed.Lazy loading:

chat-sdkaitoolsagentsapi

Source: original entry ↗