Vercel announced the release of @ai-sdk/workflow@2.0.0 on August 19 at 22:19 UTC, according to its GitHub changelog. This update includes a major change to Workflow 5, which is currently available under a beta tag. Applications using the SDK must now install Workflow 5.
Key Points
- The @ai-sdk/workflow@2.0.0 release upgrades to Workflow 5.
- Support for Workflow 4 has been dropped.
- Applications must install Workflow 5, which is available under a beta tag.
- A patch clears partial UI message parts when a WorkflowAgent model-call step is retried.
- The @ai-sdk/sandbox-vercel@1.0.76 release allows passing caller-owned
sandboxSessiontoHarnessAgent.createSession().
Context
According to Vercel's changelog, the update to @ai-sdk/workflow@2.0.0 mandates the use of Workflow 5. This version is currently in beta. Additionally, a patch in this release addresses the clearing of partial UI message parts during retries of a WorkflowAgent model-call step. A related update, @ai-sdk/sandbox-vercel@1.0.76, released on August 19 at 17:58 UTC, introduces a feature for HarnessAgent.createSession() to accept a caller-owned sandboxSession, allowing the omission of the sandbox argument from the HarnessAgent constructor.
Why It Matters
Developers using the Vercel AI SDK Workflow will need to update their applications to Workflow 5, which may require adjustments due to the deprecation of Workflow 4. The change to HarnessAgent.createSession() in the sandbox component offers more flexibility in managing sandbox sessions.
What To Do
- Review the Vercel AI SDK documentation for Workflow 5 installation instructions.
- Test existing applications with Workflow 5 to identify any necessary code modifications.
- Note the change regarding
sandboxSessioninHarnessAgent.createSession()for sandbox integrations. - Monitor the beta status of Workflow 5 for its full release.
