AI SDK 7:Agentアプリはまず実行契約を設計する段階へ
Vercel AI SDK 7はreasoning control、scoped context、tool approvals、WorkflowAgent、MCP Apps、sandbox、telemetryを追加しました。
Execution contract read
リスク: provider差は残ります。単純なFAQ botには重いですが、file、external API、approvalがある製品では実行契約が必要です。
What happened
AI SDK 7は2026年6月25日に公開され、agent development、runtime、harness integration、observabilityを広げました。
Why it matters
実務ではprompt、runtime context、tool contextを分けることが重要です。credentialやtenant stateをpromptに混ぜるべきではありません。
Community signal
コミュニティではcost、tool output streaming、BYOK、reasoning trace、Guardrails、multi-agent workflowへの質問が目立ちます。
Checklist
Checklist: toolごとのcontextSchema、危険操作のapproval、durable execution、timeout budget、MCP Apps sandbox、end-to-end traceを用意します。
Risks
リスク: provider差は残ります。単純なFAQ botには重いですが、file、external API、approvalがある製品では実行契約が必要です。
Runtime contract map
| Area | AI SDK 7 surface | Operational question |
|---|---|---|
| Context | runtimeContext, toolsContext, contextSchema | Keep tenant state and credentials out of prompt text. |
| Approval | Tool-level policy and human gates | Revalidate risky tool calls before execution continues. |
| Durability | WorkflowAgent or workflow layer | Survive deploys, restarts, and delayed approvals. |
| UI boundary | MCP Apps plus sandboxed iframe | Separate user review surfaces from model-visible tools. |
| Observability | OpenTelemetry, lifecycle events, usage | Trace steps, tool calls, approvals, errors, and cost together. |
Checklist
• Checklist: toolごとのcontextSchema、危険操作のapproval、durable execution、timeout budget、MCP Apps sandbox、end-to-end traceを用意します。
出典
- Vercel Blog: AI SDK 7
- Vercel Changelog: AI SDK 7 is now available
- AI SDK Docs: Migrate AI SDK 6.x to 7.0
- Vercel KB: Pass state to AI SDK tools and agents with context
- AI SDK Docs: Model Context Protocol tools
- AI SDK Docs: MCP Apps
- AI SDK Docs: Getting started with coding agents
- Vercel Community: AI SDK topics