agent-swarm-kit 1.0.139 → 1.0.140
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 +3 -3
- package/build/index.mjs +3 -3
- package/package.json +1 -1
- package/types.d.ts +1 -1
package/build/index.cjs
CHANGED
|
@@ -1501,7 +1501,7 @@ var CC_TOOL_CALL_EXCEPTION_RECOMPLETE_PROMPT = functoolsKit.str.newline("Please
|
|
|
1501
1501
|
/**
|
|
1502
1502
|
* @description custom function to fix the model
|
|
1503
1503
|
*/
|
|
1504
|
-
var
|
|
1504
|
+
var CC_TOOL_CALL_EXCEPTION_CUSTOM_FUNCTION = function () { return Promise.resolve(); };
|
|
1505
1505
|
/**
|
|
1506
1506
|
* @description When the model output is empty just say hello to the customer
|
|
1507
1507
|
*/
|
|
@@ -1592,7 +1592,7 @@ var GLOBAL_CONFIG = {
|
|
|
1592
1592
|
CC_FN_PLANTUML: CC_FN_PLANTUML,
|
|
1593
1593
|
CC_PROCESS_UUID: CC_PROCESS_UUID,
|
|
1594
1594
|
CC_BANHAMMER_PLACEHOLDER: CC_BANHAMMER_PLACEHOLDER,
|
|
1595
|
-
|
|
1595
|
+
CC_TOOL_CALL_EXCEPTION_CUSTOM_FUNCTION: CC_TOOL_CALL_EXCEPTION_CUSTOM_FUNCTION,
|
|
1596
1596
|
};
|
|
1597
1597
|
GLOBAL_CONFIG.CC_RESQUE_STRATEGY = "recomplete";
|
|
1598
1598
|
var setConfig = function (config) {
|
|
@@ -2289,7 +2289,7 @@ var ClientAgent = /** @class */ (function () {
|
|
|
2289
2289
|
return [3 /*break*/, 8];
|
|
2290
2290
|
case 5:
|
|
2291
2291
|
if (!(GLOBAL_CONFIG.CC_RESQUE_STRATEGY === "custom")) return [3 /*break*/, 7];
|
|
2292
|
-
return [4 /*yield*/, GLOBAL_CONFIG.
|
|
2292
|
+
return [4 /*yield*/, GLOBAL_CONFIG.CC_TOOL_CALL_EXCEPTION_CUSTOM_FUNCTION(this.params.clientId, this.params.agentName)];
|
|
2293
2293
|
case 6:
|
|
2294
2294
|
_a.sent();
|
|
2295
2295
|
return [3 /*break*/, 8];
|
package/build/index.mjs
CHANGED
|
@@ -1499,7 +1499,7 @@ var CC_TOOL_CALL_EXCEPTION_RECOMPLETE_PROMPT = str.newline("Please analyze the l
|
|
|
1499
1499
|
/**
|
|
1500
1500
|
* @description custom function to fix the model
|
|
1501
1501
|
*/
|
|
1502
|
-
var
|
|
1502
|
+
var CC_TOOL_CALL_EXCEPTION_CUSTOM_FUNCTION = function () { return Promise.resolve(); };
|
|
1503
1503
|
/**
|
|
1504
1504
|
* @description When the model output is empty just say hello to the customer
|
|
1505
1505
|
*/
|
|
@@ -1590,7 +1590,7 @@ var GLOBAL_CONFIG = {
|
|
|
1590
1590
|
CC_FN_PLANTUML: CC_FN_PLANTUML,
|
|
1591
1591
|
CC_PROCESS_UUID: CC_PROCESS_UUID,
|
|
1592
1592
|
CC_BANHAMMER_PLACEHOLDER: CC_BANHAMMER_PLACEHOLDER,
|
|
1593
|
-
|
|
1593
|
+
CC_TOOL_CALL_EXCEPTION_CUSTOM_FUNCTION: CC_TOOL_CALL_EXCEPTION_CUSTOM_FUNCTION,
|
|
1594
1594
|
};
|
|
1595
1595
|
GLOBAL_CONFIG.CC_RESQUE_STRATEGY = "recomplete";
|
|
1596
1596
|
var setConfig = function (config) {
|
|
@@ -2287,7 +2287,7 @@ var ClientAgent = /** @class */ (function () {
|
|
|
2287
2287
|
return [3 /*break*/, 8];
|
|
2288
2288
|
case 5:
|
|
2289
2289
|
if (!(GLOBAL_CONFIG.CC_RESQUE_STRATEGY === "custom")) return [3 /*break*/, 7];
|
|
2290
|
-
return [4 /*yield*/, GLOBAL_CONFIG.
|
|
2290
|
+
return [4 /*yield*/, GLOBAL_CONFIG.CC_TOOL_CALL_EXCEPTION_CUSTOM_FUNCTION(this.params.clientId, this.params.agentName)];
|
|
2291
2291
|
case 6:
|
|
2292
2292
|
_a.sent();
|
|
2293
2293
|
return [3 /*break*/, 8];
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -5365,7 +5365,7 @@ declare const GLOBAL_CONFIG: {
|
|
|
5365
5365
|
CC_FN_PLANTUML: (uml: string) => Promise<string>;
|
|
5366
5366
|
CC_PROCESS_UUID: string;
|
|
5367
5367
|
CC_BANHAMMER_PLACEHOLDER: string;
|
|
5368
|
-
|
|
5368
|
+
CC_TOOL_CALL_EXCEPTION_CUSTOM_FUNCTION: (clientId: string, agentName: AgentName) => Promise<void>;
|
|
5369
5369
|
};
|
|
5370
5370
|
declare const setConfig: (config: Partial<typeof GLOBAL_CONFIG>) => void;
|
|
5371
5371
|
|