AI SDK 7: app agent cần hợp đồng thực thi trước khi thêm 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 thêm reasoning control, scoped context, tool approvals, WorkflowAgent, MCP Apps, sandbox và telemetry.

Vercel AI SDK 7 thêm reasoning control, scoped context, tool approvals, WorkflowAgent, MCP Apps, sandbox và telemetry.

Execution contract read

Rủi ro: provider vẫn khác nhau. Bot đơn giản không cần hết, nhưng sản phẩm có file, API, approval cần contract rõ.

What happened

AI SDK 7 phát hành ngày 25/6/2026, mở rộng development, runtime, harness integration và observability cho agent.

Why it matters

Thực tế cần tách prompt, runtime context và tool context. Credential và tenant data không nên đi vào prompt.

Community signal

Cộng đồng hỏi nhiều về cost, streaming tool output, BYOK, reasoning traces, Guardrails và workflow multi-agent.

Checklist

Checklist: contextSchema cho từng tool, approval cho hành động rủi ro, durable execution, timeout riêng, MCP Apps sandbox và trace đầy đủ.

Risks

Rủi ro: provider vẫn khác nhau. Bot đơn giản không cần hết, nhưng sản phẩm có file, API, approval cần contract rõ.

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 cho từng tool, approval cho hành động rủi ro, durable execution, timeout riêng, MCP Apps sandbox và trace đầy đủ.

Nguồn