Vercel has updated its AI SDK, introducing @ai-sdk/harness-cursor@1.0.0 and @ai-sdk/harness-fx@1.0.0 with new harness adapters. The ai@7.0.79 package also includes batch completion webhooks and refinements to UI message streaming.
Key Points
- The @ai-sdk/harness-cursor@1.0.0 package implements a Cursor harness adapter.
- The @ai-sdk/harness-fx@1.0.0 package implements an FX harness adapter.
- ai@7.0.79 introduces batch completion webhooks, with
experimental_startTextBatchaccepting a webhook. - ai@7.0.79 preserves active text and reasoning parts when a merged UI message stream finishes a step.
- Workflow stream normalization in ai@7.0.79 aligns with explicit part end chunks.
- @ai-sdk/workflow@2.0.8 allows
generateText,streamText, andWorkflowAgentturns to continue with a model-visible tool error when revalidated tool input is invalid.
Context
According to Vercel's AI SDK changelog, these updates are part of ongoing development for the SDK. The changes include both new features, such as the harness adapters and webhooks, and refinements to existing functionalities like message stream handling and workflow agent behavior. The @ai-sdk/workflow@2.0.8 release, dated 24 Aug, specifically addresses how the SDK handles tool errors within generateText, streamText, and WorkflowAgent operations.
Why It Matters
These updates provide developers with new tools for integrating AI models and improve the robustness of existing workflow capabilities. The addition of batch completion webhooks could enable more efficient processing of AI-generated text, while the harness adapters offer new integration points for different environments. Adjustments to message stream handling and tool error management aim to enhance the reliability and user experience of AI-powered applications built with the Vercel AI SDK.
What To Do
- Review the @ai-sdk/harness-cursor@1.0.0 and @ai-sdk/harness-fx@1.0.0 documentation for details on implementing the new harness adapters.
- Investigate the
experimental_startTextBatchfunction in ai@7.0.79 to explore batch completion webhooks. - Note the changes in UI message stream preservation and workflow stream normalization in ai@7.0.79 for applications using merged UI message streams.
- Test the behavior of
generateText,streamText, andWorkflowAgentwith model-visible tool errors in @ai-sdk/workflow@2.0.8 to understand the updated error handling.
