agent-swarm-kit 1.0.102 → 1.0.103
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/build/index.cjs +7 -1
- package/build/index.mjs +7 -1
- package/package.json +1 -1
package/build/index.cjs
CHANGED
|
@@ -7638,7 +7638,8 @@ var DocService = /** @class */ (function () {
|
|
|
7638
7638
|
if ((_c = fn.parameters) === null || _c === void 0 ? void 0 : _c.properties) {
|
|
7639
7639
|
result.push("");
|
|
7640
7640
|
result.push("#### Parameters for model");
|
|
7641
|
-
Object.entries(fn.parameters.properties)
|
|
7641
|
+
var entries = Object.entries(fn.parameters.properties);
|
|
7642
|
+
entries.forEach(function (_a, idx) {
|
|
7642
7643
|
var _b = __read(_a, 2), key = _b[0], _c = _b[1], type = _c.type, description = _c.description, e = _c.enum;
|
|
7643
7644
|
result.push("");
|
|
7644
7645
|
result.push("> **".concat(idx + 1, ". ").concat(key, "**"));
|
|
@@ -7659,6 +7660,11 @@ var DocService = /** @class */ (function () {
|
|
|
7659
7660
|
result.push("*Required:* [".concat(fn.parameters.required.includes(key) ? "x" : " ", "]"));
|
|
7660
7661
|
}
|
|
7661
7662
|
});
|
|
7663
|
+
if (!entries.length) {
|
|
7664
|
+
result.push("");
|
|
7665
|
+
result.push("*Empty parameters*");
|
|
7666
|
+
result.push("");
|
|
7667
|
+
}
|
|
7662
7668
|
}
|
|
7663
7669
|
if (callbacks) {
|
|
7664
7670
|
result.push("");
|
package/build/index.mjs
CHANGED
|
@@ -7636,7 +7636,8 @@ var DocService = /** @class */ (function () {
|
|
|
7636
7636
|
if ((_c = fn.parameters) === null || _c === void 0 ? void 0 : _c.properties) {
|
|
7637
7637
|
result.push("");
|
|
7638
7638
|
result.push("#### Parameters for model");
|
|
7639
|
-
Object.entries(fn.parameters.properties)
|
|
7639
|
+
var entries = Object.entries(fn.parameters.properties);
|
|
7640
|
+
entries.forEach(function (_a, idx) {
|
|
7640
7641
|
var _b = __read(_a, 2), key = _b[0], _c = _b[1], type = _c.type, description = _c.description, e = _c.enum;
|
|
7641
7642
|
result.push("");
|
|
7642
7643
|
result.push("> **".concat(idx + 1, ". ").concat(key, "**"));
|
|
@@ -7657,6 +7658,11 @@ var DocService = /** @class */ (function () {
|
|
|
7657
7658
|
result.push("*Required:* [".concat(fn.parameters.required.includes(key) ? "x" : " ", "]"));
|
|
7658
7659
|
}
|
|
7659
7660
|
});
|
|
7661
|
+
if (!entries.length) {
|
|
7662
|
+
result.push("");
|
|
7663
|
+
result.push("*Empty parameters*");
|
|
7664
|
+
result.push("");
|
|
7665
|
+
}
|
|
7660
7666
|
}
|
|
7661
7667
|
if (callbacks) {
|
|
7662
7668
|
result.push("");
|