AI SDK 7: agent apps сначала требуют контракт выполнения

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 differences остаются. Для простого бота это много, но при files, external APIs и approvals контракт дешевле инцидентов.

What happened

AI SDK 7 вышел 25 июня 2026 года и расширил разработку, выполнение, harness integration и наблюдаемость агентов.

Why it matters

Главная практика: разделить prompt, runtime context и tool context. Credentials и tenant data не должны попадать в prompt.

Community signal

Сообщество обсуждает cost, streaming tool output, BYOK, reasoning traces, Guardrails и multi-agent workflows. Боль уже операционная.

Checklist

Checklist: contextSchema на tool, approvals для рискованных действий, durable execution, отдельные timeout budgets, MCP Apps sandbox и full trace.

Risks

Риск: provider differences остаются. Для простого бота это много, но при files, external APIs и approvals контракт дешевле инцидентов.

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, approvals для рискованных действий, durable execution, отдельные timeout budgets, MCP Apps sandbox и full trace.

Источники