agent-swarm-kit 1.0.96 → 1.0.98
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 +10 -10
- package/build/index.mjs +10 -10
- package/package.json +1 -1
package/build/index.cjs
CHANGED
|
@@ -7609,23 +7609,23 @@ var DocService = /** @class */ (function () {
|
|
|
7609
7609
|
var _e = this_1.toolSchemaService.get(agentSchema.tools[i]), fn = _e.function, docNote = _e.docNote, callbacks = _e.callbacks;
|
|
7610
7610
|
if (fn.name) {
|
|
7611
7611
|
result.push("");
|
|
7612
|
-
result.push("
|
|
7612
|
+
result.push("#### Name for model");
|
|
7613
7613
|
result.push("");
|
|
7614
7614
|
result.push("`".concat(fn.name, "`"));
|
|
7615
7615
|
}
|
|
7616
7616
|
if (fn.description) {
|
|
7617
7617
|
result.push("");
|
|
7618
|
-
result.push("
|
|
7618
|
+
result.push("#### Description for model");
|
|
7619
7619
|
result.push("");
|
|
7620
7620
|
result.push("`".concat(fn.description, "`"));
|
|
7621
7621
|
}
|
|
7622
7622
|
if ((_c = fn.parameters) === null || _c === void 0 ? void 0 : _c.properties) {
|
|
7623
7623
|
result.push("");
|
|
7624
|
-
result.push("
|
|
7624
|
+
result.push("#### Parameters for model");
|
|
7625
7625
|
Object.entries(fn.parameters.properties).forEach(function (_a, idx) {
|
|
7626
7626
|
var _b = __read(_a, 2), key = _b[0], _c = _b[1], type = _c.type, description = _c.description, e = _c.enum;
|
|
7627
7627
|
result.push("");
|
|
7628
|
-
result.push(">
|
|
7628
|
+
result.push("> ".concat(idx + 1, ". ").concat(key));
|
|
7629
7629
|
{
|
|
7630
7630
|
result.push("");
|
|
7631
7631
|
result.push("*Type:* `".concat(type, "`"));
|
|
@@ -7646,7 +7646,7 @@ var DocService = /** @class */ (function () {
|
|
|
7646
7646
|
}
|
|
7647
7647
|
if (callbacks) {
|
|
7648
7648
|
result.push("");
|
|
7649
|
-
result.push("
|
|
7649
|
+
result.push("#### Tool callbacks");
|
|
7650
7650
|
result.push("");
|
|
7651
7651
|
var callbackList = Object.keys(callbacks);
|
|
7652
7652
|
for (var i_3 = 0; i_3 !== callbackList.length; i_3++) {
|
|
@@ -7655,7 +7655,7 @@ var DocService = /** @class */ (function () {
|
|
|
7655
7655
|
}
|
|
7656
7656
|
if (docNote) {
|
|
7657
7657
|
result.push("");
|
|
7658
|
-
result.push("
|
|
7658
|
+
result.push("#### Note for developer");
|
|
7659
7659
|
result.push("");
|
|
7660
7660
|
result.push(docNote);
|
|
7661
7661
|
}
|
|
@@ -7677,7 +7677,7 @@ var DocService = /** @class */ (function () {
|
|
|
7677
7677
|
_a = this.storageSchemaService.get(agentSchema.storages[i]), docDescription = _a.docDescription, embedding = _a.embedding, shared = _a.shared, callbacks = _a.callbacks;
|
|
7678
7678
|
if (docDescription) {
|
|
7679
7679
|
result.push("");
|
|
7680
|
-
result.push("
|
|
7680
|
+
result.push("#### Storage description");
|
|
7681
7681
|
result.push("");
|
|
7682
7682
|
result.push(docDescription);
|
|
7683
7683
|
}
|
|
@@ -7691,7 +7691,7 @@ var DocService = /** @class */ (function () {
|
|
|
7691
7691
|
}
|
|
7692
7692
|
if (callbacks) {
|
|
7693
7693
|
result.push("");
|
|
7694
|
-
result.push("
|
|
7694
|
+
result.push("#### Storage callbacks");
|
|
7695
7695
|
result.push("");
|
|
7696
7696
|
callbackList = Object.keys(callbacks);
|
|
7697
7697
|
for (i_1 = 0; i_1 !== callbackList.length; i_1++) {
|
|
@@ -7712,7 +7712,7 @@ var DocService = /** @class */ (function () {
|
|
|
7712
7712
|
_b = this.stateSchemaService.get(agentSchema.states[i]), docDescription = _b.docDescription, shared = _b.shared, callbacks = _b.callbacks;
|
|
7713
7713
|
if (docDescription) {
|
|
7714
7714
|
result.push("");
|
|
7715
|
-
result.push("
|
|
7715
|
+
result.push("#### State description");
|
|
7716
7716
|
result.push("");
|
|
7717
7717
|
result.push(docDescription);
|
|
7718
7718
|
}
|
|
@@ -7722,7 +7722,7 @@ var DocService = /** @class */ (function () {
|
|
|
7722
7722
|
}
|
|
7723
7723
|
if (callbacks) {
|
|
7724
7724
|
result.push("");
|
|
7725
|
-
result.push("
|
|
7725
|
+
result.push("#### State callbacks");
|
|
7726
7726
|
result.push("");
|
|
7727
7727
|
callbackList = Object.keys(callbacks);
|
|
7728
7728
|
for (i_2 = 0; i_2 !== callbackList.length; i_2++) {
|
package/build/index.mjs
CHANGED
|
@@ -7607,23 +7607,23 @@ var DocService = /** @class */ (function () {
|
|
|
7607
7607
|
var _e = this_1.toolSchemaService.get(agentSchema.tools[i]), fn = _e.function, docNote = _e.docNote, callbacks = _e.callbacks;
|
|
7608
7608
|
if (fn.name) {
|
|
7609
7609
|
result.push("");
|
|
7610
|
-
result.push("
|
|
7610
|
+
result.push("#### Name for model");
|
|
7611
7611
|
result.push("");
|
|
7612
7612
|
result.push("`".concat(fn.name, "`"));
|
|
7613
7613
|
}
|
|
7614
7614
|
if (fn.description) {
|
|
7615
7615
|
result.push("");
|
|
7616
|
-
result.push("
|
|
7616
|
+
result.push("#### Description for model");
|
|
7617
7617
|
result.push("");
|
|
7618
7618
|
result.push("`".concat(fn.description, "`"));
|
|
7619
7619
|
}
|
|
7620
7620
|
if ((_c = fn.parameters) === null || _c === void 0 ? void 0 : _c.properties) {
|
|
7621
7621
|
result.push("");
|
|
7622
|
-
result.push("
|
|
7622
|
+
result.push("#### Parameters for model");
|
|
7623
7623
|
Object.entries(fn.parameters.properties).forEach(function (_a, idx) {
|
|
7624
7624
|
var _b = __read(_a, 2), key = _b[0], _c = _b[1], type = _c.type, description = _c.description, e = _c.enum;
|
|
7625
7625
|
result.push("");
|
|
7626
|
-
result.push(">
|
|
7626
|
+
result.push("> ".concat(idx + 1, ". ").concat(key));
|
|
7627
7627
|
{
|
|
7628
7628
|
result.push("");
|
|
7629
7629
|
result.push("*Type:* `".concat(type, "`"));
|
|
@@ -7644,7 +7644,7 @@ var DocService = /** @class */ (function () {
|
|
|
7644
7644
|
}
|
|
7645
7645
|
if (callbacks) {
|
|
7646
7646
|
result.push("");
|
|
7647
|
-
result.push("
|
|
7647
|
+
result.push("#### Tool callbacks");
|
|
7648
7648
|
result.push("");
|
|
7649
7649
|
var callbackList = Object.keys(callbacks);
|
|
7650
7650
|
for (var i_3 = 0; i_3 !== callbackList.length; i_3++) {
|
|
@@ -7653,7 +7653,7 @@ var DocService = /** @class */ (function () {
|
|
|
7653
7653
|
}
|
|
7654
7654
|
if (docNote) {
|
|
7655
7655
|
result.push("");
|
|
7656
|
-
result.push("
|
|
7656
|
+
result.push("#### Note for developer");
|
|
7657
7657
|
result.push("");
|
|
7658
7658
|
result.push(docNote);
|
|
7659
7659
|
}
|
|
@@ -7675,7 +7675,7 @@ var DocService = /** @class */ (function () {
|
|
|
7675
7675
|
_a = this.storageSchemaService.get(agentSchema.storages[i]), docDescription = _a.docDescription, embedding = _a.embedding, shared = _a.shared, callbacks = _a.callbacks;
|
|
7676
7676
|
if (docDescription) {
|
|
7677
7677
|
result.push("");
|
|
7678
|
-
result.push("
|
|
7678
|
+
result.push("#### Storage description");
|
|
7679
7679
|
result.push("");
|
|
7680
7680
|
result.push(docDescription);
|
|
7681
7681
|
}
|
|
@@ -7689,7 +7689,7 @@ var DocService = /** @class */ (function () {
|
|
|
7689
7689
|
}
|
|
7690
7690
|
if (callbacks) {
|
|
7691
7691
|
result.push("");
|
|
7692
|
-
result.push("
|
|
7692
|
+
result.push("#### Storage callbacks");
|
|
7693
7693
|
result.push("");
|
|
7694
7694
|
callbackList = Object.keys(callbacks);
|
|
7695
7695
|
for (i_1 = 0; i_1 !== callbackList.length; i_1++) {
|
|
@@ -7710,7 +7710,7 @@ var DocService = /** @class */ (function () {
|
|
|
7710
7710
|
_b = this.stateSchemaService.get(agentSchema.states[i]), docDescription = _b.docDescription, shared = _b.shared, callbacks = _b.callbacks;
|
|
7711
7711
|
if (docDescription) {
|
|
7712
7712
|
result.push("");
|
|
7713
|
-
result.push("
|
|
7713
|
+
result.push("#### State description");
|
|
7714
7714
|
result.push("");
|
|
7715
7715
|
result.push(docDescription);
|
|
7716
7716
|
}
|
|
@@ -7720,7 +7720,7 @@ var DocService = /** @class */ (function () {
|
|
|
7720
7720
|
}
|
|
7721
7721
|
if (callbacks) {
|
|
7722
7722
|
result.push("");
|
|
7723
|
-
result.push("
|
|
7723
|
+
result.push("#### State callbacks");
|
|
7724
7724
|
result.push("");
|
|
7725
7725
|
callbackList = Object.keys(callbacks);
|
|
7726
7726
|
for (i_2 = 0; i_2 !== callbackList.length; i_2++) {
|