Vercel has updated its @ai-sdk/workflow package to version 1.0.68, released on August 18.
This update focuses on refining the behavior of the WorkflowAgent regarding model-call retries and error reporting within model streams. The changes aim to prevent redundant retries and provide more direct access to error information.
Key Points
- The @ai-sdk/workflow package was updated to version 1.0.68.
- The release occurred on August 18.
- WorkflowAgent now honors model-call retry settings without stacking workflow step retries.
- The original value from model stream error parts is now exposed on resolved WorkflowAgent results.
- This exposure occurs without retrying the durable model step.
Context
According to Vercel, these patch changes address specific behaviors within the WorkflowAgent component of the AI SDK. The updates ensure that retry mechanisms for model calls are respected without creating additional, potentially redundant, workflow step retries. Additionally, they improve error visibility by making original error values from model streams accessible.
Why It Matters
These updates can help developers using the Vercel AI SDK to manage workflow execution more predictably and debug issues more efficiently. By preventing stacked retries, the changes may lead to more stable and performant applications, while improved error reporting can streamline the identification and resolution of problems originating from model streams.
What To Do
- Review the @ai-sdk/workflow changelog for version 1.0.68.
- Note the changes to WorkflowAgent retry settings.
- Observe how model stream error parts are now exposed in resolved WorkflowAgent results.
- Consider updating to @ai-sdk/workflow@1.0.68 to incorporate these changes.
