Skip to content

@ai-sdk/workflow@2.0.123

Choose a tag to compare

@github-actions github-actions released this 04 Dec 22:07
768cd3a

Patch Changes

  • aa4ab3b: fix(workflow): delegate toUIMessageChunk to AI SDK Core so custom parts and metadata are preserved

    toUIMessageChunk in @ai-sdk/workflow now delegates standard stream parts to ai's toUIMessageChunk instead of maintaining a separate switch statement. This preserves provider custom parts (such as openai.compaction), tool result/error metadata (preliminary, providerExecuted, providerMetadata, toolMetadata, dynamic), reasoning-file, tool-approval-response, and citations, and aligns error redaction and sendSources defaults (false) with AI SDK Core. Both toUIMessageChunk and createModelCallToUIChunkTransform now accept and forward sendReasoning, sendSources, onError, and redactToolErrors.

  • Updated dependencies [b039b9a]

    • ai@7.1.1