@ai-sdk/google 3.0.94 → 3.0.96

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @ai-sdk/google
2
2
 
3
+ ## 3.0.96
4
+
5
+ ### Patch Changes
6
+
7
+ - 0d51472: fix(provider/google): associate multiple code execution results with their tool call
8
+
9
+ ## 3.0.95
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [19093fd]
14
+ - @ai-sdk/provider-utils@4.0.40
15
+
3
16
  ## 3.0.94
4
17
 
5
18
  ### Patch Changes
package/dist/index.js CHANGED
@@ -30,7 +30,7 @@ module.exports = __toCommonJS(index_exports);
30
30
  var import_provider_utils23 = require("@ai-sdk/provider-utils");
31
31
 
32
32
  // src/version.ts
33
- var VERSION = true ? "3.0.94" : "0.0.0-test";
33
+ var VERSION = true ? "3.0.96" : "0.0.0-test";
34
34
 
35
35
  // src/google-generative-ai-embedding-model.ts
36
36
  var import_provider = require("@ai-sdk/provider");
@@ -1703,7 +1703,7 @@ var GoogleGenerativeAILanguageModel = class {
1703
1703
  } else if ("codeExecutionResult" in part && part.codeExecutionResult) {
1704
1704
  content.push({
1705
1705
  type: "tool-result",
1706
- // Assumes a result directly follows its corresponding call part.
1706
+ // Results correspond to the most recent executable code part.
1707
1707
  toolCallId: lastCodeExecutionToolCallId,
1708
1708
  toolName: "code_execution",
1709
1709
  result: {
@@ -1711,7 +1711,6 @@ var GoogleGenerativeAILanguageModel = class {
1711
1711
  output: (_d = part.codeExecutionResult.output) != null ? _d : ""
1712
1712
  }
1713
1713
  });
1714
- lastCodeExecutionToolCallId = void 0;
1715
1714
  } else if ("text" in part && part.text != null) {
1716
1715
  const thoughtSignatureMetadata = part.thoughtSignature ? {
1717
1716
  [providerOptionsName]: {
@@ -1973,7 +1972,6 @@ var GoogleGenerativeAILanguageModel = class {
1973
1972
  output: (_d = part.codeExecutionResult.output) != null ? _d : ""
1974
1973
  }
1975
1974
  });
1976
- lastCodeExecutionToolCallId = void 0;
1977
1975
  }
1978
1976
  } else if ("text" in part && part.text != null) {
1979
1977
  const thoughtSignatureMetadata = part.thoughtSignature ? {