@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 +13 -0
- package/dist/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -4
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +1 -3
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +1 -3
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/google-generative-ai-language-model.ts +4 -8
package/dist/internal/index.js
CHANGED
|
@@ -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
|
-
//
|
|
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 ? {
|