AI SDK 7: aplikasi agent perlu kontrak eksekusi sebelum menambah 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 membawa reasoning control, scoped context, tool approvals, WorkflowAgent, MCP Apps, sandbox, dan telemetry.

Vercel AI SDK 7 membawa reasoning control, scoped context, tool approvals, WorkflowAgent, MCP Apps, sandbox, dan telemetry.

Execution contract read

Risiko: abstraksi tidak menghapus perbedaan provider. Untuk bot sederhana mungkin berlebihan, tetapi produk agent membutuhkan batas eksekusi yang jelas.

What happened

AI SDK 7 dirilis 25 Juni 2026 dan memperluas cara agent dikembangkan, dijalankan, diintegrasikan dengan harness, dan diobservasi.

Why it matters

Pisahkan prompt, runtime context, dan tool context. Kredensial, tenant data, dan access token tidak seharusnya masuk ke prompt.

Community signal

Sinyal komunitas berpusat pada biaya, streaming tool output, BYOK, reasoning traces, Guardrails, dan workflow multi-agent.

Checklist

Checklist: contextSchema per tool, approval untuk aksi berisiko, durable execution, timeout terpisah, sandbox MCP Apps, dan trace menyeluruh.

Risks

Risiko: abstraksi tidak menghapus perbedaan provider. Untuk bot sederhana mungkin berlebihan, tetapi produk agent membutuhkan batas eksekusi yang jelas.

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 per tool, approval untuk aksi berisiko, durable execution, timeout terpisah, sandbox MCP Apps, dan trace menyeluruh.

Sumber