Vercel Ships AI SDK 7.1 for Steerable, Durable AI Agents
Summary:Vercel has released AI SDK 7.1, shifting the SDK's focus from basic model and tool invocation toward operating long-running agents in production. The update adds in-flight steering, five additional coding-agent harnesses, provider-independent Bash and web-fetch tools, typed decisions, background batches, streaming speech and transcription, asynchronous video generation, tool-concurrency controls, step-level retries, low-memory streaming, and durable OpenTelemetry tracing across process boundarie
Release positioning: From model calls to a long-running agent runtime
Vercel has released AI SDK 7.1. The release does not replace any underlying model; it moves execution control, state management, and failure recovery into a unified SDK for production agents. The update covers nine areas:
| Area | Core mechanism | Engineering value |
| --- | --- | --- |
| Harnesses and tools | Five new coding-agent adapters, Codex steering, Bash and Web Fetch | Normalizes sessions, events, and tool protocols across harnesses |
| Typed decisions | experimental_decide | Handles several structured judgments in one call |
| Batch processing | Background text and image jobs | Decouples long tasks from synchronous requests |
| In-flight steering | steer() and queue() | Corrects an agent without aborting its current tool |
| Realtime audio | Streaming speech, transcription, translation, and WebSocket | Reduces first-audio waiting and supports continuous sessions |
| Code Mode and tool search | QuickJS sandbox and deferred tool loading | Reduces tool-definition and intermediate-result context pressure |
| Async video | Start, status, and webhooks | Reliably decouples minute-long generation jobs |
| Stream and step controls | Concurrency limits, step errors, timeouts, retries, low-memory streaming | Bounds execution order and improves recovery |
| Durable agents | WorkflowAgent.generate() and durable OpenTelemetry | Resumes work across processes while preserving traces |
The central change is not another way to invoke a model. It gives models, tools, workflows, and observability a common runtime contract.
In-flight steering: Correction at a step boundary, not forced preemption
After creating a steering object with experimental_createSteering(), applications can pass it to generateText, streamText, or ToolLoopAgent. steer() inserts a user message at the next step boundary without interrupting a running tool, while queue() holds a follow-up until the current task finishes. Both return an outcome indicating whether the message was delivered. Supplying the same id makes repeated submissions idempotent, which is important when the steering message is persisted and retried over a network.
The important boundary is that steering is cooperative rather than an immediate interrupt. If the current tool runs for a long time, effective delivery latency is approximately:
T_deliver ≈ remaining tool execution time + time to the next step boundary
A long-running shell command, browser action, or external API call can therefore delay a correction. Production systems should persist steering IDs, record delivery outcomes, and distinguish between a user message being submitted and an agent actually consuming it. The Codex adapter uses the Codex app-server to make this capability available for coding-agent turns.
Code Mode and tool search: Moving orchestration out of model context
Tool-heavy agents face two related context costs. Every tool definition occupies prompt space even when it is irrelevant, and raw tool results flow back into the model's context on every turn.
The first path is @ai-sdk/code-mode. The model writes JavaScript or TypeScript that calls approved tools inside an isolated QuickJS sandbox. That code can invoke tools concurrently, combine their outputs, and filter large responses before they return to the model. experimental_toolCallers determines which tools code mode may call and which remain directly callable by the model.
The second path is toolSearch(). Tools marked with deferLoading: true do not need to be loaded upfront; matching tools become available on the next step after a search. Conceptually, this changes:
C_total = C_history + C_all_tool_schemas + C_tool_results
into a context budget that includes only the currently relevant tool schemas. The trade-off is an extra search and waiting step. A recall failure can leave the agent unable to use a tool it planned to call.
Code Mode is not an unrestricted Node.js runtime. QuickJS expands the code-execution surface, so filesystem, network, and credential access should be exposed only through explicitly approved tool bridges. Tool definitions, side effects, and returned data need allowlists, size limits, and audit logs.
Failure recovery: Concurrency, timeouts, retries, and memory form one system
Tool concurrency and ordering
AI SDK may execute multiple tool calls concurrently within a step. This is efficient for independent reads, but it creates races when one call depends on a write produced by another. toolCallConcurrency caps parallel execution; setting it to 1 runs calls sequentially in the order the model generated them.
Concurrency is therefore not just a throughput switch. Parallelism lowers wall-clock time for unrelated I/O but demands idempotent tools. Workflows with strict state transitions should give up some concurrency to preserve deterministic ordering.
Per-step configuration and error boundaries
prepareStep can override settings such as temperature, maxOutputTokens, and reasoning configuration for each step. A deterministic tool-call phase can therefore be separated from a more expensive final reasoning phase. onStepError handles a step that fails without producing a result, including provider request errors and streams that close before any output arrives.
firstChunkMs addresses a different tail-latency pattern: the connection and stream are open, but no first content block arrives. It only bounds first-content waiting and cannot replace a total request timeout or task deadline. Production configurations need first-content timeout, total timeout, and cancellation signals together.
Mid-stream retries
The existing maxRetries setting mainly handles failures before response streaming begins. streamRetries targets provider errors that occur after output has started. When enabled, only the failed model step is rerun, while earlier completed steps, tool results, and already emitted output are preserved.
This is more compute-efficient than restarting the entire run, but it does not automatically eliminate side-effect risk. Any tool that can charge a card, send a message, write a database, or create an external resource should use a business idempotency key, and retry logs should link the failed and recovered steps.
Low-memory streaming
Normal streamText keeps a copy of the stream for replay and retains the final output for plain-text responses. experimental_streamTextLowMemory removes the replay buffer and can avoid holding the full generated text in memory, reducing resident memory for long streams.
The trade-off is explicit: lower memory means giving up SDK-level replay or full-result retention. If the application needs reconnect, resume, audit, or UI replay, it should persist events externally instead of relying on the low-memory path.
Durable agents: Non-streaming execution and cross-process tracing
WorkflowAgent.generate() adds a non-streaming path to WorkflowAgent, reusing the same durable tool loop as stream(). It is useful for services that only need the final result rather than incremental output.
The durable OpenTelemetry bridge is the more consequential addition. When an agent suspends and resumes across different processes, model and tool calls can be stitched into one agent operation instead of appearing as disconnected traces. Original timestamps are preserved on model and tool spans, making it possible to see where a durable run paused, how long it waited, and what happened after resumption.
A complete trace does not automatically make state reliable. Production deployments still need to validate run-ID persistence, cross-process context propagation, tool-side-effect idempotency, and backend retention for long-running spans. The announcement does not disclose the durable-state backend, sampling policy, or end-to-end trace-completeness rate.
Harnesses, decisions, and multimodal jobs
Harness normalization
HarnessAgent adds five runtimes: Cline, Cursor, fx, GitHub Copilot, and Grok Build. Together with existing integrations for Claude Code, Codex, and Pi, the adapters normalize sessions, stream events, tools, and usage into a common harness contract. Applications can switch coding agents without rewriting the integration layer.
That abstraction improves replaceability but does not guarantee feature parity. Event granularity, cancellation semantics, permission models, and usage accounting can differ between harnesses. Selection should therefore test the capabilities that matter to the application rather than merely checking that the adapter returns output.
Typed decisions
experimental_decide can answer multiple named choice, score, boolean, and bounding-box questions about one shared state. The state may contain text, JSON, files, or a combination of them. Choice answers use a union of predefined option keys, and boolean answers include the model's estimated probability of being true, allowing threshold-based routing. Native decision models can return probability distributions for choices and scores; otherwise, a language-model adapter is used.
A single call reduces request overhead, but the questions share state and reasoning paths, which can introduce correlated errors. A model probability is not necessarily a calibrated real-world accuracy, so thresholds should be validated against labeled business data. Choice, score, and bounding-box scales should not be assumed to remain identical across model adapters.
Batch processing
experimental_startBatch, experimental_getBatchStatus, and experimental_getBatchResults move text or image work into the background. Where supported, applications can cancel or list batches and receive completion webhooks. Text requests can use different models and include tool definitions, but client tools are not executed in a batch; their calls are returned to the application.
Batch mode therefore fits model inference and image generation, not a fully unattended agent workflow that requires the SDK itself to perform every client-side tool action.
Realtime audio and WebSocket
experimental_streamSpeech can consume the text stream from streamText, allowing playback to begin before the model has finished writing. streamTranscription and streamSpeechTranslation provide incremental transcription and speech translation, with optional word- and segment-level timestamps.
The update adds continuous OpenAI Live sessions over an application-owned WebSocket relay or browser WebRTC, server-owned WebSocket connections, and provider-managed transports. WebSocketChatTransport gives useChat a persistent WebSocket for UI message streams, with cancellation and sequence-based resume.
Streaming can improve time-to-first-audio, but the release provides no first-audio latency, jitter, or transcription-revision measurements. Production deployments still need explicit authentication, connection-state handling, heartbeats, reconnect ordering, and cross-instance message routing.
Async video
experimental_startVideo immediately returns a serializable operation reference. Applications can query status later or use a webhook when the provider supports it. frameImages supplies first and last frames, while inputReferences can include reference images or videos.
The benefit is architectural rather than a claim of faster generation: minute-long jobs no longer need a synchronous request. Persisting the operation reference, making webhook handling idempotent, and handling provider-side expiration remain application responsibilities.
Release cadence and compatibility
AI SDK now follows a fixed schedule. Except in January, a minor release ships on the Monday closest to the first of each month. One major release is published each year in June, replacing that month's minor release. A previous major receives one year of full support, followed by six months of critical security fixes only. The announcement states that AI SDK 5 support ends at the end of 2026, while AI SDK 6 support ends on June 1, 2027.
Predictable timing helps upgrade planning, but it also means more frequent API churn. Since many new capabilities are marked experimental, teams should deploy exact package versions, isolate experimental interfaces behind internal adapters, and validate upgrades in staging first.
How to evaluate it: A feature list is not a performance benchmark
The release notes confirm which interfaces and behaviors exist, but they provide no unified measurements for throughput, time to first token, peak memory, recovery rate, or task cost under a fixed model, tool set, concurrency level, and network environment. It would therefore be premature to claim that 7.1 is faster, more reliable, or cheaper than AI SDK 7.
A more useful evaluation keeps the model, prompt, tool schemas, and task set constant, then compares the 7.x baseline with 7.1 on the same hardware. Important measurements include:
- Task completion rate, tool-call correctness, and context-token consumption for tool-heavy workloads;
- Delivery latency from a steering submission to its effective step;
- Tool-search recall, missed-tool rate, and added step latency;
- Code Mode task gains, QuickJS execution overhead, and sandbox escape surface;
- The effect of concurrency limits on wall-clock time and side-effect correctness;
- Recovery rate, duplicate calls, and duplicate side effects after mid-stream failures;
- Peak RSS, replay capability, and reconnect behavior for low-memory streams;
- Trace-completeness rate after durable runs resume across processes;
- Time to first audio, audio jitter, and transcript stability for streaming speech.
Deployment guidance
- Pin versions and establish a baseline: Pin the exact 7.1 package in CI and preserve a 7.x control result using the same models, providers, and tools. This prevents model changes from being misattributed to the SDK.
- Isolate experimental APIs: Put
experimental_decide, Code Mode, low-memory streaming, and async video behind internal adapters so experimental changes remain at the boundary. - Apply least privilege to tools: Bind Bash to an isolated sandbox, use domain allowlists or blocklists for Web Fetch, and expose only task-required tools to Code Mode.
- Design for concurrency and idempotency: Run independent tools in parallel, set
toolCallConcurrency: 1where writes depend on order, and attach business idempotency keys to every external side effect. - Combine timeout and retry policies: Configure
firstChunkMs, total request timeouts, cancellation signals, andstreamRetriestogether, with explicit branches for non-retryable failures. - Test the recovery path: Before deploying durable agents, inject process exits, mid-request provider errors, and network reconnection to verify state recovery, duplicate-side-effect handling, and OpenTelemetry continuity.
- Separate single-pass and replayable streams: Use low-memory mode for long streams that are consumed once and do not need resume. Keep external event storage for auditing, reconnect, or UI replay.
- Roll out gradually and measure real cost: Track latency and error rate alongside model calls, tool calls, retry amplification, context tokens, and human-intervention rate per task.
The significance of AI SDK 7.1 is not a new model. It moves agents from running a single tool loop toward accepting corrections, bounding concurrency, recovering failed steps, and leaving an auditable execution record across long-running tasks. Its API surface is broad, but production maturity still needs to be established through controlled benchmarks, fault injection, and permission auditing.
— END —Source: Vercel Blog (2026-12-03)
Tags: #AI SDK 7.1 #Vercel #Agent Orchestration #Tool Calling #Durable Execution
Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.
Community Comments