@ai-sdk/google 3.0.95 → 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.
@@ -1497,7 +1497,7 @@ var GoogleGenerativeAILanguageModel = class {
1497
1497
  } else if ("codeExecutionResult" in part && part.codeExecutionResult) {
1498
1498
  content.push({
1499
1499
  type: "tool-result",
1500
- // Assumes a result directly follows its corresponding call part.
1500
+ // Results correspond to the most recent executable code part.
1501
1501
  toolCallId: lastCodeExecutionToolCallId,
1502
1502
  toolName: "code_execution",
1503
1503
  result: {
@@ -1505,7 +1505,6 @@ var GoogleGenerativeAILanguageModel = class {
1505
1505
  output: (_d = part.codeExecutionResult.output) != null ? _d : ""
1506
1506
  }
1507
1507
  });
1508
- lastCodeExecutionToolCallId = void 0;
1509
1508
  } else if ("text" in part && part.text != null) {
1510
1509
  const thoughtSignatureMetadata = part.thoughtSignature ? {
1511
1510
  [providerOptionsName]: {
@@ -1767,7 +1766,6 @@ var GoogleGenerativeAILanguageModel = class {
1767
1766
  output: (_d = part.codeExecutionResult.output) != null ? _d : ""
1768
1767
  }
1769
1768
  });
1770
- lastCodeExecutionToolCallId = void 0;
1771
1769
  }
1772
1770
  } else if ("text" in part && part.text != null) {
1773
1771
  const thoughtSignatureMetadata = part.thoughtSignature ? {