AI SDK @ai-sdk/workflow 2.0.95: experimental_transform removed from WorkflowAgent.stream() (November 5, 2026)
WorkflowAgent.stream() no longer takes experimental_transform, and the StreamTextTransform type export is gone. Code using it won't compile.
What changed
@ai-sdk/workflow 2.0.95, released November 5, 2026 as a patch, removes the experimental_transform option from WorkflowAgent.stream(). The StreamTextTransform type export is removed too. The release notes say stream transforms cannot run reliably across workflow step boundaries.
If your code passes experimental_transform to a durable WorkflowAgent, or imports StreamTextTransform from this package, it breaks on update even though the version number only went up by a patch.
Prerequisites
- A project using
WorkflowAgentfrom@ai-sdk/workflow
Steps
- Search your code for
experimental_transformonWorkflowAgent.stream()calls and for imports ofStreamTextTransformfrom@ai-sdk/workflow. - Remove the option. If you need to change the text, do it where you consume the stream, after it leaves the workflow.
- If you are not ready, pin
@ai-sdk/workflowbelow 2.0.95 inpackage.json. - Update:
npm install @ai-sdk/workflow@latest.
Test it
Run your TypeScript build. It should compile with no errors about experimental_transform or StreamTextTransform. Then run one workflow end to end and check the streamed output still reaches your UI.
Not confirmed
The release notes do not name a replacement API for transforms inside a workflow.
