Chat SDK รวม AI SDK Tools แล้ว: ฟีเจอร์เอเจนต์ต้องเริ่มจากสิทธิ์และการอนุมัติ
การรวมนี้ทำให้การเชื่อมต่อ tool กับ chat ง่ายขึ้น แต่เมื่อเปิดให้โมเดลทำงานจริงได้ง่ายขึ้น การออกแบบสิทธิ์ การอนุมัติ audit log และ rollback ก็ยิ่งสำคัญ
สัญญาณจากชุมชนนักพัฒนาชี้ไปที่คำถามเดียวกัน: tool ใดปลอดภัย ต้องขออนุมัติเมื่อไร และอธิบายความผิดพลาดอย่างไร
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.
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.