@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.
@@ -1506,7 +1506,7 @@ var GoogleGenerativeAILanguageModel = class {
1506
1506
  } else if ("codeExecutionResult" in part && part.codeExecutionResult) {
1507
1507
  content.push({
1508
1508
  type: "tool-result",
1509
- // Assumes a result directly follows its corresponding call part.
1509
+ // Results correspond to the most recent executable code part.
1510
1510
  toolCallId: lastCodeExecutionToolCallId,
1511
1511
  toolName: "code_execution",
1512
1512
  result: {
@@ -1514,7 +1514,6 @@ var GoogleGenerativeAILanguageModel = class {
1514
1514
  output: (_d = part.codeExecutionResult.output) != null ? _d : ""
1515
1515
  }
1516
1516
  });
1517
- lastCodeExecutionToolCallId = void 0;
1518
1517
  } else if ("text" in part && part.text != null) {
1519
1518
  const thoughtSignatureMetadata = part.thoughtSignature ? {
1520
1519
  [providerOptionsName]: {
@@ -1776,7 +1775,6 @@ var GoogleGenerativeAILanguageModel = class {
1776
1775
  output: (_d = part.codeExecutionResult.output) != null ? _d : ""
1777
1776
  }
1778
1777
  });
1779
- lastCodeExecutionToolCallId = void 0;
1780
1778
  }
1781
1779
  } else if ("text" in part && part.text != null) {
1782
1780
  const thoughtSignatureMetadata = part.thoughtSignature ? {