ai 5.0.95 → 5.0.97

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
@@ -684,7 +684,7 @@ import {
684
684
  } from "@ai-sdk/provider-utils";
685
685
 
686
686
  // src/version.ts
687
- var VERSION = true ? "5.0.95" : "0.0.0-test";
687
+ var VERSION = true ? "5.0.97" : "0.0.0-test";
688
688
 
689
689
  // src/util/download/download.ts
690
690
  var download = async ({ url }) => {
@@ -2115,7 +2115,8 @@ function toResponseMessages({
2115
2115
  tool: tools == null ? void 0 : tools[toolResult.toolName],
2116
2116
  output: toolResult.type === "tool-result" ? toolResult.output : toolResult.error,
2117
2117
  errorMode: toolResult.type === "tool-error" ? "text" : "none"
2118
- })
2118
+ }),
2119
+ ...toolResult.providerMetadata != null ? { providerOptions: toolResult.providerMetadata } : {}
2119
2120
  }));
2120
2121
  if (toolResultContent.length > 0) {
2121
2122
  responseMessages.push({