agent-swarm-kit 1.0.9 → 1.0.11

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
@@ -2453,6 +2453,7 @@ var commitToolOutput = function (content, clientId, agentName) { return __awaite
2453
2453
  swarm.loggerService.log('function "commitToolOutput" skipped due to the agent change', {
2454
2454
  currentAgentName: currentAgentName,
2455
2455
  agentName: agentName,
2456
+ clientId: clientId,
2456
2457
  });
2457
2458
  return [2 /*return*/];
2458
2459
  }
@@ -2480,6 +2481,7 @@ var commitSystemMessage = function (content, clientId, agentName) { return __awa
2480
2481
  swarm.loggerService.log('function "commitSystemMessage" skipped due to the agent change', {
2481
2482
  currentAgentName: currentAgentName,
2482
2483
  agentName: agentName,
2484
+ clientId: clientId,
2483
2485
  });
2484
2486
  return [2 /*return*/];
2485
2487
  }
@@ -2507,6 +2509,7 @@ var execute = function (content, clientId, agentName) { return __awaiter(void 0,
2507
2509
  swarm.loggerService.log('function "execute" skipped due to the agent change', {
2508
2510
  currentAgentName: currentAgentName,
2509
2511
  agentName: agentName,
2512
+ clientId: clientId,
2510
2513
  });
2511
2514
  return [2 /*return*/];
2512
2515
  }
package/build/index.mjs CHANGED
@@ -2451,6 +2451,7 @@ var commitToolOutput = function (content, clientId, agentName) { return __awaite
2451
2451
  swarm.loggerService.log('function "commitToolOutput" skipped due to the agent change', {
2452
2452
  currentAgentName: currentAgentName,
2453
2453
  agentName: agentName,
2454
+ clientId: clientId,
2454
2455
  });
2455
2456
  return [2 /*return*/];
2456
2457
  }
@@ -2478,6 +2479,7 @@ var commitSystemMessage = function (content, clientId, agentName) { return __awa
2478
2479
  swarm.loggerService.log('function "commitSystemMessage" skipped due to the agent change', {
2479
2480
  currentAgentName: currentAgentName,
2480
2481
  agentName: agentName,
2482
+ clientId: clientId,
2481
2483
  });
2482
2484
  return [2 /*return*/];
2483
2485
  }
@@ -2505,6 +2507,7 @@ var execute = function (content, clientId, agentName) { return __awaiter(void 0,
2505
2507
  swarm.loggerService.log('function "execute" skipped due to the agent change', {
2506
2508
  currentAgentName: currentAgentName,
2507
2509
  agentName: agentName,
2510
+ clientId: clientId,
2508
2511
  });
2509
2512
  return [2 /*return*/];
2510
2513
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-swarm-kit",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
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
@@ -35,6 +35,14 @@ interface IHistorySchema {
35
35
  items: IPubsubArray<IModelMessage>;
36
36
  }
37
37
 
38
+ interface IToolCall {
39
+ function: {
40
+ name: string;
41
+ arguments: {
42
+ [key: string]: any;
43
+ };
44
+ };
45
+ }
38
46
  interface ITool {
39
47
  type: string;
40
48
  function: {
@@ -480,4 +488,4 @@ declare const GLOBAL_CONFIG: {
480
488
  };
481
489
  declare const setConfig: (config: typeof GLOBAL_CONFIG) => void;
482
490
 
483
- export { ContextService, type IAgentSchema, type IAgentTool, type ICompletionSchema, type ISwarmSchema, type ReceiveMessageFn, type SendMessageFn$1 as SendMessageFn, addAgent, addCompletion, addSwarm, addTool, changeAgent, commitSystemMessage, commitToolOutput, complete, disposeConnection, execute, getAgentHistory, getRawHistory, makeConnection, session, setConfig, swarm };
491
+ export { ContextService, type IAgentSchema, type IAgentTool, type ICompletionSchema, type IIncomingMessage, type IModelMessage, type IOutgoingMessage, type ISwarmSchema, type ITool, type IToolCall, type ReceiveMessageFn, type SendMessageFn$1 as SendMessageFn, addAgent, addCompletion, addSwarm, addTool, changeAgent, commitSystemMessage, commitToolOutput, complete, disposeConnection, execute, getAgentHistory, getRawHistory, makeConnection, session, setConfig, swarm };