@ai-sdk/google 2.0.82 → 2.0.83

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
@@ -7,7 +7,7 @@ import {
7
7
  } from "@ai-sdk/provider-utils";
8
8
 
9
9
  // src/version.ts
10
- var VERSION = true ? "2.0.82" : "0.0.0-test";
10
+ var VERSION = true ? "2.0.83" : "0.0.0-test";
11
11
 
12
12
  // src/google-generative-ai-embedding-model.ts
13
13
  import {
@@ -1176,7 +1176,7 @@ var GoogleGenerativeAILanguageModel = class {
1176
1176
  } else if ("codeExecutionResult" in part && part.codeExecutionResult) {
1177
1177
  content.push({
1178
1178
  type: "tool-result",
1179
- // Assumes a result directly follows its corresponding call part.
1179
+ // Results correspond to the most recent executable code part.
1180
1180
  toolCallId: lastCodeExecutionToolCallId,
1181
1181
  toolName: "code_execution",
1182
1182
  result: {
@@ -1185,7 +1185,6 @@ var GoogleGenerativeAILanguageModel = class {
1185
1185
  },
1186
1186
  providerExecuted: true
1187
1187
  });
1188
- lastCodeExecutionToolCallId = void 0;
1189
1188
  } else if ("text" in part && part.text != null) {
1190
1189
  const thoughtSignatureMetadata = part.thoughtSignature ? { google: { thoughtSignature: part.thoughtSignature } } : void 0;
1191
1190
  if (part.text.length === 0) {
@@ -1369,7 +1368,6 @@ var GoogleGenerativeAILanguageModel = class {
1369
1368
  },
1370
1369
  providerExecuted: true
1371
1370
  });
1372
- lastCodeExecutionToolCallId = void 0;
1373
1371
  }
1374
1372
  } else if ("text" in part && part.text != null) {
1375
1373
  const thoughtSignatureMetadata = part.thoughtSignature ? {