Patch Changes
- 60dc26c: Keep failed tool call error text consistent with the model's message history by default. Set
redactToolErrors: trueto replace it with the result ofonError. - 9e8f918: Prevent excessive memory and CPU usage when validating malformed UI messages.
validateUIMessages,safeValidateUIMessages, and the agent UI stream helpers reported the issues of every part schema for every invalid part, so a small request with many malformed parts could exhaust memory. Each part is now validated against the schemas for its type only, validation stops at the first invalid message or part, and an invalid JSON value in provider or tool metadata is reported as a single issue. - Updated dependencies [271ca50]
- Updated dependencies [f0a7beb]
- @ai-sdk/gateway@3.0.236