Skip to main content
reopt Handbook
reopt Handbook
Vercel Enterprise AI Platform

Platform Foundation

Platform ArchitectureAI SDK RuntimeAI Gateway Control Plane

Execution Runtime

Workflow Durable ExecutionSandbox Tool RuntimeMCP Enterprise DataQueues and Async Jobs

Prompt and Quality

Prompt Engineering and GuardrailsRAG and Retrieval-Augmented GenerationObservability and Evaluation

Operations

Security GovernanceCost and ReliabilityDeployment and AI CI/CD

Scenarios

Customer Support Agent ArchitectureInternal Research Agent ArchitectureApproval Backoffice AutomationCoding Orchestration

Orchestration Patterns

Graph-Centric OrchestrationPractical Orchestration PlaybookMulti-Agent Architecture

Appendix

Migration GuideReferencesVerificationUpdates
Handbook›Vercel Enterprise AI Platform›AI SDK Runtime
한국어KOEnglishEN

AI SDK Runtime

Use AI SDK as the application runtime layer for streaming, tools, agents, and telemetry.

Written and reviewed by Eric Han · Co-founder & CTO, reopt

Key takeaways

  • AI SDK is the application runtime layer that turns model behavior into concrete product features: messages, streaming, structured output, tool calls, and telemetry.
  • Keep tool schemas narrow and explicit, and scope which tools are available per user and task.
  • Always validate structured output against its schema before triggering any side effect.
  • Persist generation IDs and separate ephemeral UI state from durable task state for later review.
  • Wire telemetry into product and cost dashboards so quality, cost, and latency stay connected.

AI SDK 7 compatibility contract

AI SDK 7 requires Node.js 22+ and ESM. Use Node.js 24 for these examples.

Older APICurrent API
stepCountIsisStepCount
systeminstructions; older name remains a deprecated fallback
onFinish / onStepFinishonEnd / onStepEnd
experimental_telemetrytelemetry plus a registered integration
result.fullStreamresult.stream
Result response methodsTop-level stateless stream/response helpers

Instructions returned by prepareStep carry into subsequent steps. Explicitly restore them for one-step overrides. Review stream, tool, approval, usage, and regression behavior after any codemod.

AI SDK 7 migration.

AI SDK is the application layer where product behavior becomes concrete: messages, streaming, structured outputs, tool calls, telemetry, and UI state.

Runtime Responsibilities

ResponsibilityOperating question
Message handlingWhat is persisted and replayed?
StreamingWhat partial states can users see?
Tool callingWhich tools are available for this user and task?
Structured outputWhich schema must the model satisfy?
TelemetryWhich traces connect quality, cost, and latency?
Error handlingWhat happens when model or tool calls fail?

Runtime Rules

  • Keep tool schemas narrow and explicit.
  • Validate structured output before side effects.
  • Persist generation IDs for later review.
  • Separate UI state from durable task state.
  • Connect telemetry to product and cost dashboards.

Related docs

Verification Report

Expo Enterprise Production · Official sources, freshness, source conflicts, and code example verification for the Expo SDK 56 handbook.

Prompt Engineering and Guardrails

Design prompts, schemas, safety checks, and review gates for enterprise AI systems.

Ch1. Eve Mental Model

Enterprise Eve Agent Development · Understand Eve as filesystem authoring, durable workflow execution, runtime harness, and channel protocol.

Verification

A checklist for validating an enterprise AI platform on Vercel.

SDK 55 Breaking Change Archive

Expo Enterprise Production · Compatibility path for the old SDK 55 breaking changes page. Use the SDK 56 page for the current baseline.

Platform Architecture

Split enterprise AI systems into experience, control, runtime, async, and governance planes.

AI Gateway Control Plane

Centralize model routing, provider fallback, usage policy, and cost governance.

On this page

AI SDK 7 compatibility contractRuntime ResponsibilitiesRuntime Rules