News

AI SDK 7.1 from Vercel: steer a running agent, plus dev news for December 3, 2026

What is new in AI SDK 7.1: steering a running agent, code mode, batch jobs and a fixed release calendar, and what it means if you are learning to code.

CodeWorlds Editorial
AI SDK 7.1 from Vercel: steer a running agent, plus dev news for December 3, 2026
  • Vercel
In this article5

Vercel released AI SDK 7.1 on December 3, the next version of its TypeScript library for building apps and agents on language models. You can now correct an agent halfway through a task without stopping it, and the library moves to a fixed calendar: a minor release every month, a major one once a year.

What is new in AI SDK 7.1

The announcement on the Vercel blog groups the changes into nine categories. Installation is unchanged: npm i ai (or pnpm, yarn, bun). Many of the new functions carry an experimental_ prefix, so treat them that way.

Correcting an agent while it works

Until now, a user who spotted a mistake mid-task could wait for the turn to end or abort and start over. In 7.1 you create an object with experimental_createSteering() and pass it to generateText, streamText or ToolLoopAgent. Its steer() method adds a user message at the next step boundary and leaves running tools alone. queue() holds a follow-up until the agent has finished its current task. In the announcement's example the agent is checking the weather in Paris when the user adds that they meant Paris, Texas.

Fewer tools in the context

An agent with many tools has two problems: every tool definition takes up room in the prompt, and every intermediate result passes through the model's context. With the @ai-sdk/code-mode package the model writes JavaScript or TypeScript that calls your tools inside an isolated QuickJS sandbox, combines the results and filters large responses before anything returns to the model. toolSearch() loads definitions on demand: tools marked deferLoading: true only become available on the step after a search.

The first provider-independent tools arrived too. @ai-sdk/tool-bash runs commands in the sandbox session you hand it, and @ai-sdk/tool-web-fetch reads pages and documents by URL, with a list of allowed or blocked domains.

Typed decisions and batch jobs

experimental_decide answers several named questions about the same state in one call: pick from a list, score on a scale, yes or no, a bounding box on an image. The answers are typed, so a choice is a union of the keys you defined. A yes/no answer comes with a probability field, which lets you route a ticket onward only above a threshold.

experimental_startBatch submits a set of text or image requests and immediately returns a reference you can store. You collect the status and results later. It works with AI Gateway and with Anthropic, Google, OpenAI and xAI models.

Long runs under control

toolCallConcurrency caps how many tools run in parallel within one step, and a value of 1 runs them in order. streamRetries reruns only the model step that failed after streaming had started (plain maxRetries only catches errors from before the response begins). HarnessAgent, the shared API for running existing coding agents, gained five adapters: Cline, Cursor, fx, GitHub Copilot and Grok Build.

A fixed release calendar

Minor versions are due every month, on the Monday closest to the 1st (January excepted), and one major version a year, in June. The previous major gets a year of full support and then six more months of critical security fixes. Support for AI SDK 5 ends at the end of 2026, and for AI SDK 6 on June 1, 2027.

What this means if you are learning to code

AI SDK is one of the simpler ways to call a model from a Next.js app or a plain Node.js script and stream the answer back. If you are just starting out, leave the 7.1 additions for later. Begin with generateText, streamText and one tool of your own; the async functions and objects from the JavaScript and TypeScript course are enough for that. The answer types in experimental_decide are ordinary literal unions, covered in the TypeScript docs.

You already know steering from the other side if you work with Claude Code or Cursor: you type a note while the agent is still running. In the AI-assisted coding course you practise that as a user, and AI SDK shows what the mechanism looks like in code.

In my view the most practical news for learners is the release calendar: you can finally tell when a tutorial example will go stale. If you come across material built on AI SDK 5, remember that its support runs out in a few weeks. For the platform itself, see the article about Vercel.

Also today

  • Vue 3.5.47. A fixes-only release with more than 25 of them: the SFC compiler, hydration, SSR, KeepAlive, Suspense and Teleport. compiler-sfc now follows re-exports to the real type declaration, and a once watcher no longer fires its callback again before the first call has finished. Release on GitHub, changelog
  • Gemini API: system instructions mid-conversation. The Interactions API accepts a system_input step at any turn with a new instruction or a tool change (added_tools, removed_tools), while earlier turns stay in the prompt cache. It is a public preview for all Gemini 4 models, with no separate fee. Google blog
  • Claude Code 2.1.336. The command lists in /help are searchable, and an edit that changes thousands of lines no longer freezes the program: very long diffs show their line counts, and ctrl+o opens the whole diff. Release on GitHub
  • React Native 0.89.0-rc.5. The fifth release candidate for 0.89 fixes the packager's reload command, which stopped working after its first use, and a possible React Native DevTools crash when previewing text responses with non-ASCII characters. Release on GitHub
  • Vercel CDN gets afterCacheBypass rules. Through the Build Output API, frameworks can say when to skip the cache for a prerendered page, based on request or cached response headers. Next.js 16.5 uses it first: bots such as Bingbot or Slackbot bypass the cache only when the page is missing metadata, and on nextjs.org over 70% of those requests are now cache hits. Vercel changelog
  • Tailscale 1.106 with post-quantum key exchange. Two devices on this version or later add an ephemeral ML-KEM-768 key agreement to the WireGuard handshake. With an older client on the other side, the connection falls back to the standard handshake. Tailscale blog

Frequently asked questions

What is AI SDK?

It is Vercel's TypeScript library for working with language models, installed as the ai package. Model providers plug in through separate packages such as @ai-sdk/openai or @ai-sdk/anthropic, while your code keeps using the same functions, like generateText and streamText. The AI SDK documentation shows where to start.

How do I update a project to AI SDK 7.1?

Run npm i ai, or the equivalent in pnpm, yarn or bun. The announcement describes no migration steps from AI SDK 7, and the new functions are opt-in additions.

How long are AI SDK 5 and AI SDK 6 supported?

AI SDK 5 loses support at the end of 2026, and AI SDK 6 on June 1, 2027. Each previous major gets a year of full support with backported bug fixes, then six more months of critical security fixes only.

Sources


This article was prepared with the help of AI from primary sources and reviewed by the CodeWorlds editorial team.