agent-swarm-kit 1.0.137 → 1.0.139

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 CHANGED
@@ -1497,7 +1497,7 @@ var CC_TOOL_CALL_EXCEPTION_FLUSH_PROMPT = "Start the conversation";
1497
1497
  /**
1498
1498
  * @description fix for invalid tool calls on IlyaGusev/saiga_yandexgpt_8b_gguf (LMStudio, appear time to time)
1499
1499
  */
1500
- var CC_TOOL_CALL_EXCEPTION_RECOMPLETE_PROMPT = "I see your previous message is malformed. Think again and resend it correct";
1500
+ var CC_TOOL_CALL_EXCEPTION_RECOMPLETE_PROMPT = functoolsKit.str.newline("Please analyze the last tool call message and identify any errors in its syntax or parameters.", "Then, provide a corrected version of the tool call that properly follows the required format and includes all necessary parameters with appropriate values.", "Include a brief explanation of what was fixed as a text content of a new message with correct tool calls request");
1501
1501
  /**
1502
1502
  * @description custom function to fix the model
1503
1503
  */
@@ -6039,6 +6039,7 @@ var SessionPublicService = /** @class */ (function () {
6039
6039
  }); }, {
6040
6040
  clientId: clientId,
6041
6041
  executionId: executionId,
6042
+ processId: GLOBAL_CONFIG.CC_PROCESS_UUID,
6042
6043
  })];
6043
6044
  });
6044
6045
  }); };
@@ -13006,6 +13007,7 @@ var executeForce = beginContext(function (content, clientId) { return __awaiter(
13006
13007
  }); }, {
13007
13008
  clientId: clientId,
13008
13009
  executionId: executionId,
13010
+ processId: GLOBAL_CONFIG.CC_PROCESS_UUID,
13009
13011
  })];
13010
13012
  });
13011
13013
  }); });
@@ -13265,6 +13267,7 @@ var execute = beginContext(function (content, clientId, agentName) { return __aw
13265
13267
  }); }, {
13266
13268
  clientId: clientId,
13267
13269
  executionId: executionId,
13270
+ processId: GLOBAL_CONFIG.CC_PROCESS_UUID,
13268
13271
  })];
13269
13272
  }
13270
13273
  });
@@ -13391,6 +13394,7 @@ var runStateless = beginContext(function (content, clientId, agentName) { return
13391
13394
  }); }, {
13392
13395
  clientId: clientId,
13393
13396
  executionId: executionId,
13397
+ processId: GLOBAL_CONFIG.CC_PROCESS_UUID,
13394
13398
  })];
13395
13399
  }
13396
13400
  });
@@ -13448,6 +13452,7 @@ var runStatelessForce = beginContext(function (content, clientId) { return __awa
13448
13452
  }); }, {
13449
13453
  clientId: clientId,
13450
13454
  executionId: executionId,
13455
+ processId: GLOBAL_CONFIG.CC_PROCESS_UUID,
13451
13456
  })];
13452
13457
  });
13453
13458
  }); });
@@ -13755,6 +13760,7 @@ var complete = beginContext(function (content, clientId, swarmName) { return __a
13755
13760
  }); }, {
13756
13761
  clientId: clientId,
13757
13762
  executionId: executionId,
13763
+ processId: GLOBAL_CONFIG.CC_PROCESS_UUID,
13758
13764
  })];
13759
13765
  }
13760
13766
  });
@@ -13812,6 +13818,7 @@ var sessionInternal = beginContext(function (clientId, swarmName) {
13812
13818
  }); }, {
13813
13819
  clientId: clientId,
13814
13820
  executionId: executionId,
13821
+ processId: GLOBAL_CONFIG.CC_PROCESS_UUID,
13815
13822
  })];
13816
13823
  });
13817
13824
  }); })),
package/build/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { scoped } from 'di-scoped';
2
2
  import { createActivator } from 'di-kit';
3
- import { trycatch, singleshot, memoize, randomString, ToolRegistry, Subject, queued, getErrorMessage, errorData, sleep, not, isObject, createAwaiter, cancelable, CANCELED_PROMISE_SYMBOL, execpool, SortedArray, Source, schedule, rate, ttl } from 'functools-kit';
3
+ import { trycatch, singleshot, memoize, str, randomString, ToolRegistry, Subject, queued, getErrorMessage, errorData, sleep, not, isObject, createAwaiter, cancelable, CANCELED_PROMISE_SYMBOL, execpool, SortedArray, Source, schedule, rate, ttl } from 'functools-kit';
4
4
  import xml2js from 'xml2js';
5
5
  import { AsyncResource } from 'async_hooks';
6
6
  import { omit } from 'lodash-es';
@@ -1495,7 +1495,7 @@ var CC_TOOL_CALL_EXCEPTION_FLUSH_PROMPT = "Start the conversation";
1495
1495
  /**
1496
1496
  * @description fix for invalid tool calls on IlyaGusev/saiga_yandexgpt_8b_gguf (LMStudio, appear time to time)
1497
1497
  */
1498
- var CC_TOOL_CALL_EXCEPTION_RECOMPLETE_PROMPT = "I see your previous message is malformed. Think again and resend it correct";
1498
+ var CC_TOOL_CALL_EXCEPTION_RECOMPLETE_PROMPT = str.newline("Please analyze the last tool call message and identify any errors in its syntax or parameters.", "Then, provide a corrected version of the tool call that properly follows the required format and includes all necessary parameters with appropriate values.", "Include a brief explanation of what was fixed as a text content of a new message with correct tool calls request");
1499
1499
  /**
1500
1500
  * @description custom function to fix the model
1501
1501
  */
@@ -6037,6 +6037,7 @@ var SessionPublicService = /** @class */ (function () {
6037
6037
  }); }, {
6038
6038
  clientId: clientId,
6039
6039
  executionId: executionId,
6040
+ processId: GLOBAL_CONFIG.CC_PROCESS_UUID,
6040
6041
  })];
6041
6042
  });
6042
6043
  }); };
@@ -13004,6 +13005,7 @@ var executeForce = beginContext(function (content, clientId) { return __awaiter(
13004
13005
  }); }, {
13005
13006
  clientId: clientId,
13006
13007
  executionId: executionId,
13008
+ processId: GLOBAL_CONFIG.CC_PROCESS_UUID,
13007
13009
  })];
13008
13010
  });
13009
13011
  }); });
@@ -13263,6 +13265,7 @@ var execute = beginContext(function (content, clientId, agentName) { return __aw
13263
13265
  }); }, {
13264
13266
  clientId: clientId,
13265
13267
  executionId: executionId,
13268
+ processId: GLOBAL_CONFIG.CC_PROCESS_UUID,
13266
13269
  })];
13267
13270
  }
13268
13271
  });
@@ -13389,6 +13392,7 @@ var runStateless = beginContext(function (content, clientId, agentName) { return
13389
13392
  }); }, {
13390
13393
  clientId: clientId,
13391
13394
  executionId: executionId,
13395
+ processId: GLOBAL_CONFIG.CC_PROCESS_UUID,
13392
13396
  })];
13393
13397
  }
13394
13398
  });
@@ -13446,6 +13450,7 @@ var runStatelessForce = beginContext(function (content, clientId) { return __awa
13446
13450
  }); }, {
13447
13451
  clientId: clientId,
13448
13452
  executionId: executionId,
13453
+ processId: GLOBAL_CONFIG.CC_PROCESS_UUID,
13449
13454
  })];
13450
13455
  });
13451
13456
  }); });
@@ -13753,6 +13758,7 @@ var complete = beginContext(function (content, clientId, swarmName) { return __a
13753
13758
  }); }, {
13754
13759
  clientId: clientId,
13755
13760
  executionId: executionId,
13761
+ processId: GLOBAL_CONFIG.CC_PROCESS_UUID,
13756
13762
  })];
13757
13763
  }
13758
13764
  });
@@ -13810,6 +13816,7 @@ var sessionInternal = beginContext(function (clientId, swarmName) {
13810
13816
  }); }, {
13811
13817
  clientId: clientId,
13812
13818
  executionId: executionId,
13819
+ processId: GLOBAL_CONFIG.CC_PROCESS_UUID,
13813
13820
  })];
13814
13821
  });
13815
13822
  }); })),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-swarm-kit",
3
- "version": "1.0.137",
3
+ "version": "1.0.139",
4
4
  "description": "A TypeScript library for building orchestrated framework-agnostic multi-agent AI systems",
5
5
  "author": {
6
6
  "name": "Petr Tripolsky",
package/types.d.ts CHANGED
@@ -9,6 +9,7 @@ import { ICompletionArgs as ICompletionArgs$1 } from 'src/interfaces/Completion.
9
9
  interface IExecutionContext {
10
10
  clientId: string;
11
11
  executionId: string;
12
+ processId: string;
12
13
  }
13
14
  /**
14
15
  * Service providing execution context information.