ai 6.0.0 → 6.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -852,7 +852,7 @@ import {
852
852
  } from "@ai-sdk/provider-utils";
853
853
 
854
854
  // src/version.ts
855
- var VERSION = true ? "6.0.0" : "0.0.0-test";
855
+ var VERSION = true ? "6.0.2" : "0.0.0-test";
856
856
 
857
857
  // src/util/download/download.ts
858
858
  var download = async ({ url }) => {
@@ -7669,7 +7669,7 @@ async function safeValidateUIMessages({
7669
7669
  })
7670
7670
  };
7671
7671
  }
7672
- if (toolPart.state === "input-available" || toolPart.state === "output-available" || toolPart.state === "output-error") {
7672
+ if (toolPart.state === "input-available" || toolPart.state === "output-available" || toolPart.state === "output-error" && toolPart.input !== void 0) {
7673
7673
  await validateTypes2({
7674
7674
  value: toolPart.input,
7675
7675
  schema: tool2.inputSchema