All stories
AI

Vercel adds mid-run corrections to AI SDK 7.1

By default, an agent receives the new message after its current step; a follow-up can wait in a queue.

A code excerpt sends the correction: “I meant Paris, Texas.”

What changed

On December 3, Vercel released AI SDK 7.1, a toolkit for developers building AI applications. In the company’s example, a user clarifies that they want the weather in Paris, Texas.

The feature is experimental and must be enabled in the application’s code. It does not automatically add corrections to every AI chat or service.

When the agent sees a correction

A steer() call sends the correction to the running process. By default, it is added after the current step and its tool calls finish. For example, an ongoing weather lookup would not be interrupted, and its result would not be automatically undone.

The example uses a mock model and a simulated tool response, not a real weather lookup. It shows how the message is passed in code; it does not prove that a real model will find the intended city or reverse an action already taken.

Correction or follow-up

For a separate instruction after the current task, queue() holds a follow-up: for example, a user could ask in advance for a comparison with Austin after the weather answer. Waiting messages are added one per completed task.

Both calls return a delivery outcome. A message may not arrive if a stop condition prevents another step. Vercel’s documentation says generateText and streamText stop after one step by default, so a developer needs to set an appropriate stopWhen.

Primary sources

Excerpt from a Vercel test example, Apache-2.0; typesetting by Astra News. The example uses a mock model, not the result of a real request. Vercel, Inc. · AI SDK source code · Apache-2.0; typesetting by Astra News · Apache License 2.0 · source-code excerpt · Web adaptation, WebP.

Read next

King Charles III speaks with a guest at a Buckingham Palace reception in 2023.
AI

King Charles gathers contributors to new AI principles

The Ditchley Foundation has published ten principles, including an appeal to a human over consequential decisions. They do not establish a regulatory system.

Jensen Huang speaks into a microphone at an NVIDIA GTC panel in Washington on December 2, 2026.
Technology

NVIDIA CEO Huang explains shipping restriction on Megaspeed

At the Senate hearing, NVIDIA’s chief disputed a senator’s timeline. Archive photo: Huang at an NVIDIA GTC panel in Washington on December 2, 2026.

Jeff Dean wears headphones in a file photo.
AI

Jeff Dean’s Discovery Loop raises $1.2 billion

Its founder reports more than 5,000 internal AI-agent loops but does not explain how their results were evaluated.

All stories