agent-swarm-kit 1.0.152 → 1.0.153
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 +5 -5
- package/build/index.mjs +5 -5
- package/package.json +1 -1
package/build/index.cjs
CHANGED
|
@@ -2242,7 +2242,7 @@ var ClientAgent = /** @class */ (function () {
|
|
|
2242
2242
|
return [4 /*yield*/, this.params.validate(result_4)];
|
|
2243
2243
|
case 5:
|
|
2244
2244
|
if ((validation = _a.sent())) {
|
|
2245
|
-
throw new Error("agent-swarm-kit ClientAgent agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " model
|
|
2245
|
+
throw new Error("agent-swarm-kit ClientAgent agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " model resurrect failed: ").concat(validation));
|
|
2246
2246
|
}
|
|
2247
2247
|
this.params.onOutput &&
|
|
2248
2248
|
this.params.onOutput(this.params.clientId, this.params.agentName, result_4);
|
|
@@ -2313,15 +2313,15 @@ var ClientAgent = /** @class */ (function () {
|
|
|
2313
2313
|
case 0:
|
|
2314
2314
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_DEBUG &&
|
|
2315
2315
|
this.params.logger.debug("ClientAgent agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " _resurrectModel"));
|
|
2316
|
-
console.warn("agent-swarm model
|
|
2316
|
+
console.warn("agent-swarm model resurrect for agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " strategy=").concat(GLOBAL_CONFIG.CC_RESQUE_STRATEGY, " reason=").concat(reason));
|
|
2317
2317
|
placeholder = createPlaceholder();
|
|
2318
2318
|
this.params.onResurrect &&
|
|
2319
2319
|
this.params.onResurrect(this.params.clientId, this.params.agentName, mode, reason);
|
|
2320
2320
|
if (GLOBAL_CONFIG.CC_RESQUE_STRATEGY === "recomplete") {
|
|
2321
|
-
console.warn("agent-swarm model
|
|
2321
|
+
console.warn("agent-swarm model resurrect did not solved the problem (still being called after recomplete patch) for agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " strategy=").concat(GLOBAL_CONFIG.CC_RESQUE_STRATEGY));
|
|
2322
2322
|
}
|
|
2323
2323
|
else if (GLOBAL_CONFIG.CC_RESQUE_STRATEGY === "custom") {
|
|
2324
|
-
console.warn("agent-swarm model
|
|
2324
|
+
console.warn("agent-swarm model resurrect did not solved the problem (still being called after patchedMessage emit) for agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " strategy=").concat(GLOBAL_CONFIG.CC_RESQUE_STRATEGY));
|
|
2325
2325
|
}
|
|
2326
2326
|
return [4 /*yield*/, this.params.history.push({
|
|
2327
2327
|
role: "resque",
|
|
@@ -2370,7 +2370,7 @@ var ClientAgent = /** @class */ (function () {
|
|
|
2370
2370
|
if (!(validation = _b.sent())) return [3 /*break*/, 11];
|
|
2371
2371
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_DEBUG &&
|
|
2372
2372
|
this.params.logger.debug("ClientAgent agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " _resurrectModel validation error: ").concat(validation));
|
|
2373
|
-
console.warn("agent-swarm model
|
|
2373
|
+
console.warn("agent-swarm model resurrect did not solved the problem for agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " strategy=").concat(GLOBAL_CONFIG.CC_RESQUE_STRATEGY, " validation=").concat(validation));
|
|
2374
2374
|
return [4 /*yield*/, this.params.history.push({
|
|
2375
2375
|
role: "resque",
|
|
2376
2376
|
mode: "tool",
|
package/build/index.mjs
CHANGED
|
@@ -2240,7 +2240,7 @@ var ClientAgent = /** @class */ (function () {
|
|
|
2240
2240
|
return [4 /*yield*/, this.params.validate(result_4)];
|
|
2241
2241
|
case 5:
|
|
2242
2242
|
if ((validation = _a.sent())) {
|
|
2243
|
-
throw new Error("agent-swarm-kit ClientAgent agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " model
|
|
2243
|
+
throw new Error("agent-swarm-kit ClientAgent agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " model resurrect failed: ").concat(validation));
|
|
2244
2244
|
}
|
|
2245
2245
|
this.params.onOutput &&
|
|
2246
2246
|
this.params.onOutput(this.params.clientId, this.params.agentName, result_4);
|
|
@@ -2311,15 +2311,15 @@ var ClientAgent = /** @class */ (function () {
|
|
|
2311
2311
|
case 0:
|
|
2312
2312
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_DEBUG &&
|
|
2313
2313
|
this.params.logger.debug("ClientAgent agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " _resurrectModel"));
|
|
2314
|
-
console.warn("agent-swarm model
|
|
2314
|
+
console.warn("agent-swarm model resurrect for agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " strategy=").concat(GLOBAL_CONFIG.CC_RESQUE_STRATEGY, " reason=").concat(reason));
|
|
2315
2315
|
placeholder = createPlaceholder();
|
|
2316
2316
|
this.params.onResurrect &&
|
|
2317
2317
|
this.params.onResurrect(this.params.clientId, this.params.agentName, mode, reason);
|
|
2318
2318
|
if (GLOBAL_CONFIG.CC_RESQUE_STRATEGY === "recomplete") {
|
|
2319
|
-
console.warn("agent-swarm model
|
|
2319
|
+
console.warn("agent-swarm model resurrect did not solved the problem (still being called after recomplete patch) for agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " strategy=").concat(GLOBAL_CONFIG.CC_RESQUE_STRATEGY));
|
|
2320
2320
|
}
|
|
2321
2321
|
else if (GLOBAL_CONFIG.CC_RESQUE_STRATEGY === "custom") {
|
|
2322
|
-
console.warn("agent-swarm model
|
|
2322
|
+
console.warn("agent-swarm model resurrect did not solved the problem (still being called after patchedMessage emit) for agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " strategy=").concat(GLOBAL_CONFIG.CC_RESQUE_STRATEGY));
|
|
2323
2323
|
}
|
|
2324
2324
|
return [4 /*yield*/, this.params.history.push({
|
|
2325
2325
|
role: "resque",
|
|
@@ -2368,7 +2368,7 @@ var ClientAgent = /** @class */ (function () {
|
|
|
2368
2368
|
if (!(validation = _b.sent())) return [3 /*break*/, 11];
|
|
2369
2369
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_DEBUG &&
|
|
2370
2370
|
this.params.logger.debug("ClientAgent agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " _resurrectModel validation error: ").concat(validation));
|
|
2371
|
-
console.warn("agent-swarm model
|
|
2371
|
+
console.warn("agent-swarm model resurrect did not solved the problem for agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " strategy=").concat(GLOBAL_CONFIG.CC_RESQUE_STRATEGY, " validation=").concat(validation));
|
|
2372
2372
|
return [4 /*yield*/, this.params.history.push({
|
|
2373
2373
|
role: "resque",
|
|
2374
2374
|
mode: "tool",
|