github vercel/ai @ai-sdk/harness@1.0.182

latest releases: @ai-sdk/zai@3.0.53, @ai-sdk/xai@5.0.44, @ai-sdk/workflow-harness@1.0.182...
55 minutes ago

Patch Changes

  • 1a94af3: Forward the redactToolErrors option in toUIMessageStream and toUIMessageStreamResponse.

    When the context validation of a host tool fails, the tool-error stream part now carries an error with the message that the runtime receives (Tool context validation failed.). Previously it carried the detailed validation error, which includes the context value. The detailed error is still passed to onToolExecutionEnd.

    When a host tool throws a value that is not an Error or a string, the tool-error stream part now carries the text that the runtime receives (String(value)), not the thrown value.

    Both changes apply to every consumer of the stream part: fullStream, step content, and the onError callback of a UI message stream, also when redactToolErrors is true.

  • Updated dependencies [11323f9]

  • Updated dependencies [2ebc78b]

  • Updated dependencies [2ebc78b]

  • Updated dependencies [cb4fa52]

  • Updated dependencies [ceeee29]

  • Updated dependencies [1a94af3]

    • ai@7.0.171
    • @ai-sdk/provider-utils@5.0.80
    • @ai-sdk/provider@4.0.38

Don't miss a new ai release

NewReleases is sending notifications on new releases.