The post has been translated automatically. Original language: Russian
On December 3, 2026, Vercel released AI SDK 7.1, a minor library release for TypeScript, on which chat interfaces and AI agents are built on top of models from OpenAI, Anthropic, Google, xAI and other providers. The release is big: agent management in the middle of work, batch processing of requests, a "code mode" with a sandbox, and new settings for the reliability of streaming generation. Patch 7.1.1 was released on December 4.
Agent management without stopping
The main novelty is steering. An object created via experimental_createSteering() is passed to generateText, streamText, or ToolLoopAgent. The steer() method adds a message at the nearest step boundary and does not interrupt already running tools, while queue() postpones an additional task until the current one is completed. Both methods return a result, and the optional id makes resending safe. Control messages arrive in separate parts of the steering-message stream and are visible in useChat and step history.
HarnessAgent adapters to Cline, Cursor, GitHub Copilot, Grok Build, and fx have been added for external agents. The Codex adapter now works via the app server and also accepts prompts in the middle of a turn.
Tools and code mode
- The tool-bash package with the createBashTool function executes commands in a sandbox passed as an experimental_sandbox.
- The web fetch tool package (createWebFetchTool) loads pages and maintains lists of allowed and prohibited domains.
- toolSearch(), along with the deferLoading: true flag, loads tool descriptions on request, rather than sending the entire model set at once.
- The code-mode package with experimental_codeModeTool allows the model to write JavaScript or TypeScript code that is executed in the QuickJS sandbox. experimental_toolCallers sets which tools such code can invoke.
Batch processing and flow reliability
The experimental_startBatch, experimental_getBatchStatus, and experimental_getBatchResults functions send a batch of requests and retrieve the results later, when ready, you can receive a webhookUrl call. Support has been announced for AI Gateway, Anthropic, Google, OpenAI and xAI. An important detail: client tools are not executed in batch mode, and calls are returned to the application.
Several settings have been added for production:
- toolCallConcurrency limits the number of parallel tool calls. A value of 1 starts them one at a time.;
- The timeout with the firstChunkMs parameter interrupts the step if the stream has opened, but the content has not arrived on time.;
- streamRetries (enabled explicitly) repeats only the dropped step in case of a provider error, and the completed steps and the output already given are saved.;
- prepareStep can change the temperature, maxOutputTokens, and reasoning for a single step.
What does this mean in practice?
First of all, check the step handlers: if a step fails without a result, onStepError is now called instead of onStepEnd. If logging or billing are kept on onStepEnd, the dropped steps will drop out of them. In patch 7.1.1, the workflow package has changed error hiding, and sendSources has become false by default — sources can disappear from the interface until you explicitly enable them.
Most of the new APIs are marked with the experimental prefix, and their signatures may change in the next minor versions, so it's better to pin the exact version of the package. The bash tool should be given an isolated sandbox, and the page loading tool should be given a short list of allowed domains: otherwise, the agent gets access to the internal network. Batch mode is convenient for night marking and classification, but you will have to perform the logic of the tools yourself.
Finally, about the timing: Vercel releases minor versions monthly and one major version in June. Support for AI SDK 5 ends at the end of 2026, and AI SDK 6 ends on June 1, 2027, so it's time to transfer projects to the fifth version.
The draft text was prepared with the participation of AI, the facts were checked against the original source — the official blog of Vercel about the AI SDK 7.1 and the release notes of the project on GitHub
3 декабря 2026 года Vercel выпустила AI SDK 7.1 — минорный релиз библиотеки для TypeScript, на которой строят чат-интерфейсы и ИИ-агентов поверх моделей OpenAI, Anthropic, Google, xAI и других провайдеров. Релиз большой: появились управление агентом посреди работы, пакетная обработка запросов, «режим кода» с песочницей и новые настройки надёжности потоковой генерации. 4 декабря вышел патч 7.1.1.
Управление агентом без остановки
Главная новинка — steering. Объект, созданный через experimental_createSteering(), передаётся в generateText, streamText или ToolLoopAgent. Метод steer() добавляет сообщение на ближайшей границе шага и не прерывает уже запущенные инструменты, а queue() откладывает дополнительную задачу до завершения текущей. Оба метода возвращают результат, а необязательный id делает повторную отправку безопасной. Сообщения управления приходят в потоке отдельными частями steering-message и видны в useChat и истории шагов.
Для внешних агентов появились адаптеры HarnessAgent к Cline, Cursor, GitHub Copilot, Grok Build и fx. Адаптер Codex теперь работает через app-server и тоже принимает подсказки посреди хода.
Инструменты и режим кода
- Пакет tool-bash с функцией createBashTool выполняет команды в песочнице, переданной как experimental_sandbox.
- Пакет tool-web-fetch (createWebFetchTool) загружает страницы и поддерживает списки разрешённых и запрещённых доменов.
- toolSearch() вместе с флагом deferLoading: true подгружает описания инструментов по запросу, а не отправляет весь набор модели сразу.
- Пакет code-mode с experimental_codeModeTool позволяет модели написать код на JavaScript или TypeScript, который исполняется в песочнице QuickJS. Через experimental_toolCallers задаётся, какие инструменты такой код может вызывать.
Пакетная обработка и надёжность потока
Функции experimental_startBatch, experimental_getBatchStatus и experimental_getBatchResults отправляют пачку запросов и забирают результаты позже, по готовности можно получить вызов webhookUrl. Поддержка заявлена для AI Gateway, Anthropic, Google, OpenAI и xAI. Важная деталь: клиентские инструменты в пакетном режиме не исполняются, вызовы возвращаются приложению.
Для продакшена добавили несколько настроек:
- toolCallConcurrency ограничивает число параллельных вызовов инструментов, значение 1 запускает их по очереди;
- timeout с параметром firstChunkMs прерывает шаг, если поток открылся, но содержимое не пришло вовремя;
- streamRetries (включается явно) повторяет при ошибке провайдера только упавший шаг, а завершённые шаги и уже отданный вывод сохраняются;
- prepareStep может менять temperature, maxOutputTokens и reasoning для отдельного шага.
Что это значит на практике
Прежде всего проверьте обработчики шагов: при сбое шага без результата теперь вызывается onStepError вместо onStepEnd. Если логирование или биллинг держатся на onStepEnd, упавшие шаги из них выпадут. В патче 7.1.1 у пакета workflow изменилось скрытие ошибок, а sendSources по умолчанию стал false — источники могут пропасть из интерфейса, пока не включите их явно.
Большинство новых API помечены префиксом experimental, их сигнатуры могут поменяться в следующих минорных версиях, поэтому лучше закрепить точную версию пакета. Инструменту bash стоит давать именно изолированную песочницу, а инструменту загрузки страниц — короткий список разрешённых доменов: иначе агент получает доступ к внутренней сети. Пакетный режим удобен для ночной разметки и классификации, но логику инструментов придётся выполнять самостоятельно.
Наконец, о сроках: Vercel выпускает минорные версии ежемесячно и одну мажорную в июне. Поддержка AI SDK 5 заканчивается в конце 2026 года, AI SDK 6 — 1 июня 2027 года, так что проекты на пятой версии пора переводить.
Черновик текста подготовлен с участием ИИ, факты сверены с первоисточником — официальный блог Vercel об AI SDK 7.1 и release notes проекта на GitHub
Comments 0
Newest Popular