@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.mjs
CHANGED
|
@@ -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
|
-
//
|
|
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 ? {
|