AI SDK 7: แอป agent ต้องมี execution contract ก่อนเพิ่ม tools

Tech
Diagram showing AI SDK 7 agent inputs flowing into reasoning control, scoped context, tool approvals, durability, sandbox execution, MCP Apps, and telemetry
Vercel AI SDK 7 เพิ่ม reasoning control, scoped context, tool approvals, WorkflowAgent, MCP Apps, sandbox และ telemetry

Vercel AI SDK 7 เพิ่ม reasoning control, scoped context, tool approvals, WorkflowAgent, MCP Apps, sandbox และ telemetry

Execution contract read

ความเสี่ยง: provider ยังต่างกันอยู่ สำหรับ chatbot ง่ายๆ อาจเกินจำเป็น แต่ product agent ต้องมีขอบเขตชัดเจน

What happened

AI SDK 7 เปิดตัววันที่ 25 มิถุนายน 2026 และขยายการพัฒนา runtime, harness integration และ observability สำหรับ agents

Why it matters

ควรแยก prompt, runtime context และ tool context ข้อมูล tenant และ credentials ไม่ควรอยู่ใน prompt

Community signal

สัญญาณชุมชนพูดถึง cost, streaming tool output, BYOK, reasoning traces, Guardrails และ multi-agent workflows

Checklist

Checklist: ทำ contextSchema ต่อ tool, approval สำหรับ action เสี่ยง, durable execution, timeout หลายชั้น, MCP Apps sandbox และ tracing ครบ

Risks

ความเสี่ยง: provider ยังต่างกันอยู่ สำหรับ chatbot ง่ายๆ อาจเกินจำเป็น แต่ product agent ต้องมีขอบเขตชัดเจน

Runtime contract map

AreaAI SDK 7 surfaceOperational question
ContextruntimeContext, toolsContext, contextSchemaKeep tenant state and credentials out of prompt text.
ApprovalTool-level policy and human gatesRevalidate risky tool calls before execution continues.
DurabilityWorkflowAgent or workflow layerSurvive deploys, restarts, and delayed approvals.
UI boundaryMCP Apps plus sandboxed iframeSeparate user review surfaces from model-visible tools.
ObservabilityOpenTelemetry, lifecycle events, usageTrace steps, tool calls, approvals, errors, and cost together.

Checklist

Checklist: ทำ contextSchema ต่อ tool, approval สำหรับ action เสี่ยง, durable execution, timeout หลายชั้น, MCP Apps sandbox และ tracing ครบ

แหล่งที่มา

다른 글