Vercel has updated its AI SDK, with @ai-sdk/workflow@2.0.9 and @ai-sdk/workflow-harness@1.0.87 being released. These updates introduce new harness adapters and refine how UI message streams and workflow normalization are handled.
Key Points
- The
@ai-sdk/workflow@2.0.9release includes changes to preserve active text and reasoning parts when a merged UI message stream finishes a step. - Workflow stream normalization has been aligned with explicit part end chunks in
@ai-sdk/workflow@2.0.9. - Batch completion webhooks have been added, with
experimental_startTextBatchnow accepting a webhook. @ai-sdk/harness-cursor@1.0.0implements a Cursor harness adapter.@ai-sdk/harness-fx@1.0.0implements an fx harness adapter.@ai-sdk/workflow@2.0.8, released on August 24, continued approvedgenerateText,streamText, andWorkflowAgentturns with a model-visible tool error when revalidated tool input was invalid.
Context
According to the Vercel AI SDK Changelog, these updates are part of ongoing development for the SDK. The changes are published to npm automatically when a release is ready. The @ai-sdk/workflow@2.0.8 release, which occurred on August 24, addressed how the SDK handles tool errors within generateText, streamText, and WorkflowAgent turns.
Why It Matters
These updates indicate Vercel's continued investment in the AI SDK, offering developers more robust tools for managing AI workflows and integrating with different interfaces. The introduction of new harness adapters and webhook support expands the SDK's capabilities for custom implementations and batch processing.
What To Do
- Review the
@ai-sdk/workflow@2.0.9changelog for details on UI message stream and workflow normalization changes. - Investigate the new Cursor and fx harness adapters for potential integration into existing projects.
- Explore the
experimental_startTextBatchfunction and its support for batch completion webhooks. - Note the behavior of
generateText,streamText, andWorkflowAgentturns when tool input is invalid, as addressed in@ai-sdk/workflow@2.0.8.
