
AI SDK 7 is now available in beta, and it's the most agent-focused release the toolkit has shipped. Where earlier versions laid the groundwork for multi-step tool calling and streaming, version 7 tackles the hard problems that show up when you try to run agents in production: state that survives crashes, tools that need human sign-off, secrets that should never reach the model, and harnesses like Claude Code or Codex that you want to swap without rewriting your agent logic.
The durability problem, finally solved
The biggest addition is WorkflowAgent, a native integration between the AI SDK and Vercel's Workflow SDK. The core issue it addresses is simple but painful:
a standard ToolLoopAgent runs entirely in memory, so if the process crashes, all progress is lost. For production agents that make multiple tool calls, this creates problems around statefulness, resumability, human-in-the-loop approvals, and observability.
WorkflowAgent solves these by running inside a Vercel Workflow, where each tool execution is a durable step with automatic retries.
The practical upshot:
durable streams persist agent output, and getWritable() gives you a persistent stream that multiple clients can connect to, disconnect from, and reconnect to later. The workflow keeps running even if the user closes the browser, and when they come back, the client resumes exactly where the stream left off , no Redis or custom pub/sub required.
Because the workflow is durable, approval requests survive process restarts , the user can approve hours later and the agent will resume. This is the kind of guarantee that previously required wiring up your own queue infrastructure.

Tool approvals and context isolation
Agent safety gets a serious upgrade in v7.
By default, tools with an execute function run automatically as the model calls them. You can now require approval before execution by setting
Don't miss what's next in AI
Join 300,000+ engineers and researchers who get the signal, not the noise.
- Full access to in-depth AI research breakdowns
- Be the first to know what's trending before it hits mainstream
- Daily curated papers, repos, and industry moves
