Patch Changes
-
1a94af3: Forward the
redactToolErrorsoption intoUIMessageStreamandtoUIMessageStreamResponse.When the context validation of a host tool fails, the
tool-errorstream 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 toonToolExecutionEnd.When a host tool throws a value that is not an
Erroror a string, thetool-errorstream 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 theonErrorcallback of a UI message stream, also whenredactToolErrorsistrue. -
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