@iqai/adk 0.3.4 → 0.3.5
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 +6 -0
- package/dist/index.js +8 -7
- package/dist/index.mjs +8 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1774,13 +1774,14 @@ var AiSdkLlm = (_class6 = class extends BaseLlm {
|
|
|
1774
1774
|
(part) => part.functionResponse
|
|
1775
1775
|
);
|
|
1776
1776
|
const contentParts2 = functionResponses.map((part) => {
|
|
1777
|
-
let output
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1777
|
+
let output;
|
|
1778
|
+
const response = part.functionResponse.response;
|
|
1779
|
+
if (response === void 0 || response === null) {
|
|
1780
|
+
output = { type: "json", value: null };
|
|
1781
|
+
} else if (typeof response === "string") {
|
|
1782
|
+
output = { type: "text", value: response };
|
|
1783
|
+
} else {
|
|
1784
|
+
output = { type: "json", value: response };
|
|
1784
1785
|
}
|
|
1785
1786
|
return {
|
|
1786
1787
|
type: "tool-result",
|
package/dist/index.mjs
CHANGED
|
@@ -1774,13 +1774,14 @@ var AiSdkLlm = class extends BaseLlm {
|
|
|
1774
1774
|
(part) => part.functionResponse
|
|
1775
1775
|
);
|
|
1776
1776
|
const contentParts2 = functionResponses.map((part) => {
|
|
1777
|
-
let output
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1777
|
+
let output;
|
|
1778
|
+
const response = part.functionResponse.response;
|
|
1779
|
+
if (response === void 0 || response === null) {
|
|
1780
|
+
output = { type: "json", value: null };
|
|
1781
|
+
} else if (typeof response === "string") {
|
|
1782
|
+
output = { type: "text", value: response };
|
|
1783
|
+
} else {
|
|
1784
|
+
output = { type: "json", value: response };
|
|
1784
1785
|
}
|
|
1785
1786
|
return {
|
|
1786
1787
|
type: "tool-result",
|