Chat SDK đã có AI SDK Tools: tính năng agent cần thiết kế quyền trước

Tech
·Dante Chun
Chat SDK đã có AI SDK Tools: tính năng agent cần thiết kế quyền trước
Chat SDK đã có AI SDK Tools: tính năng agent cần thiết kế quyền trước

Tích hợp này giảm phần code nối giữa chat và tool của agent. Nhưng càng dễ mở hành động thật cho model, thiết kế quyền, phê duyệt, audit log và rollback càng quan trọng.

Tín hiệu từ cộng đồng developer cho thấy câu hỏi chính: tool nào an toàn, khi nào cần người dùng duyệt, và lỗi được giải thích ra sao.

What changed

Vercel announced on May 20, 2026 that Chat SDK now includes an AI SDK toolset. The important pieces are chat/ai and createChatTools(chat), which make chat state and agent actions easier to connect.

Agent tool flow with approval, audit, and recovery boundaries.
Agent tool flow with approval, audit, and recovery boundaries.

Practical takeaway

  • Separate read-only tools from write tools.
  • Require approval for actions that change external systems.
  • Log inputs, actor, approver, result, and failure reason.
  • Design rollback or human escalation before launch.
  • Keep hard restrictions in server policy, not only prompts.

Risk

The risk is not tool calling itself. The risk is giving a model product authority without a visible control surface. Good agent UX automates low-risk work and slows down only where trust requires it.

Sources