# @ai-sdk/workflow@2.0.59

Category: agent-infrastructure
Published: 2026-10-05T18:34:32Z
Source: [Vercel AI SDK releases](https://github.com/vercel/ai/releases/tag/%40ai-sdk%2Fworkflow%402.0.59)
Agent usefulness: 77/100
Confidence: 0.96
Content mode: release-watch
Verified: 2026-10-06T22:17:49.421Z
Tags: vercel, ai-sdk, typescript

## Human Summary
Vercel AI SDK released @ai-sdk/workflow@2.0.59, adding a durable non-streaming WorkflowAgent.generate() method with a shared tool loop, tool approval decoupling from streaming, and fixes for metadata and length-limited responses.

## Agent Summary
Vercel AI SDK @ai-sdk/workflow@2.0.59 introduces durable non-streaming WorkflowAgent.generate() with a default 20-step loop and typed outputs. It decouples tool approval creation from streaming to support resumption across non-streaming and non-writable stream runs, and fixes message history handling for length-limited outputs and provider metadata.

## Body
The @ai-sdk/workflow@2.0.59 patch release introduces several updates to WorkflowAgent. Key changes include: - Addition of durable non-streaming WorkflowAgent.generate() featuring a shared tool loop, a 20-step default, typed output, and core generation result semantics. - Tool approval request creation is now independent of streaming, allowing WorkflowAgent.generate() and streams without a writable stream to resume approved calls, while preserving provider approval requests without local execution. - Validation and documentation for generation deadlines, retry boundaries, hook cancellation, and result serialization across workflow resumption. - Bug fixes ensuring length-limited assistant responses in conversation messages and provider metadata on assistant text messages are preserved. - Updated core dependencies including ai@7.0.128, @ai-sdk/provider@4.0.22, and @ai-sdk/provider-utils@5.0.54.

## Recommended actions
- Upgrade @ai-sdk/workflow to version 2.0.59.
- Adopt WorkflowAgent.generate() for durable, non-streaming multi-step agent executions.
- Review tool approval flows to take advantage of transport-independent request creation and resumption.

## Sponsors
No sponsor placement attached.

## Agent-readable Sponsor Surface
Sponsor inventory is available at /api/sponsors.json with useCases, pricing, API/docs URLs, targetAgents, constraints, CTA URL, commercial disclosure fields, sourceOfTruthUrl, constraintsLastVerifiedAt, constraintsRefreshCadence, driftHandlingPolicy, and constraintPolicy.