Vercel's AI SDK has received several updates across its components, including @ai-sdk/workflow-harness@1.0.87, @ai-sdk/workflow@2.0.8, and @ai-sdk/xai@3.0.125. These releases introduce new functionalities and address existing behaviors within the SDK.
The @ai-sdk/workflow-harness@1.0.87 release includes new harness adapters and batch completion webhooks. The @ai-sdk/workflow@2.0.8 update, released on August 24, focuses on continuing workflow turns despite tool errors. The @ai-sdk/xai@3.0.125 release, also from August 24, specifically addresses image moderation reporting.
Key Points
- The
@ai-sdk/harness-cursor@1.0.0package implements a Cursor harness adapter. - The
@ai-sdk/harness-fx@1.0.0package implements an fx harness adapter. experimental_startTextBatchnow accepts a webhook for batch completion, according to the Vercel AI SDK Changelog.- The AI SDK preserves active text and reasoning parts when another merged UI message stream finishes a step.
- Workflow stream normalization has been aligned with explicit part end chunks.
generateText,streamText, andWorkflowAgentturns can continue with a model-visible tool error when revalidated tool input is invalid, as per the@ai-sdk/workflow@2.0.8release.- The
@ai-sdk/xaiprovider now reports image moderation blocks as content policy errors.
Context
According to the Vercel AI SDK Changelog, these updates are part of ongoing development for the Vercel AI SDK. The changes are managed through a Changesets release GitHub action, which automates the publishing of packages to npm upon merging. The updates reflect continuous refinement of the SDK's capabilities in handling AI model interactions, workflow management, and content moderation.
Why It Matters
These updates provide developers with enhanced control over AI workflow execution and improved error handling within the Vercel AI SDK. The introduction of batch completion webhooks and refined tool error management can lead to more robust and responsive AI applications. Additionally, clearer reporting for image moderation blocks helps developers manage content policy adherence more effectively.
What To Do
- Review the
@ai-sdk/workflow-harness@1.0.87release notes for details on the new Cursor and fx harness adapters. - Explore the
experimental_startTextBatchfunction to integrate batch completion webhooks into applications. - Note the changes in how
generateText,streamText, andWorkflowAgenthandle model-visible tool errors. - Observe the updated reporting mechanism for image moderation blocks when using the
@ai-sdk/xaiprovider.
