@ai-sdk/workflow@2.0.59
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.
Why this signal matters
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.
Actionable 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.
- Agent usefulness
- 77/100
- Confidence
- 96%
- Canonical data
- JSON + Markdown
What builders should check
- 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.