agent-swarm-kit 1.1.7 → 1.1.9

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
@@ -3639,6 +3639,7 @@ const mapMcpToolCall = ({ name, description = name, inputSchema }, self) => {
3639
3639
  self.params.logger.debug(`ClientAgent agentName=${self.params.agentName} clientId=${self.params.clientId} calling MCP tool toolName=${name}`);
3640
3640
  await self.params.mcp.callTool(name, dto);
3641
3641
  },
3642
+ validate: () => true,
3642
3643
  };
3643
3644
  };
3644
3645
  /**
package/build/index.mjs CHANGED
@@ -3637,6 +3637,7 @@ const mapMcpToolCall = ({ name, description = name, inputSchema }, self) => {
3637
3637
  self.params.logger.debug(`ClientAgent agentName=${self.params.agentName} clientId=${self.params.clientId} calling MCP tool toolName=${name}`);
3638
3638
  await self.params.mcp.callTool(name, dto);
3639
3639
  },
3640
+ validate: () => true,
3640
3641
  };
3641
3642
  };
3642
3643
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-swarm-kit",
3
- "version": "1.1.7",
3
+ "version": "1.1.9",
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
@@ -2893,6 +2893,9 @@ interface IWikiSchema {
2893
2893
  */
2894
2894
  type WikiName = string;
2895
2895
 
2896
+ type MCPToolValue = {
2897
+ [x: string]: unknown;
2898
+ } | undefined;
2896
2899
  type MCPToolProperties = {
2897
2900
  [key: string]: {
2898
2901
  type: string;
@@ -2900,7 +2903,7 @@ type MCPToolProperties = {
2900
2903
  description?: string;
2901
2904
  };
2902
2905
  };
2903
- interface IMCPToolCallDto<T = Record<string, ToolValue>> {
2906
+ interface IMCPToolCallDto<T = MCPToolValue> {
2904
2907
  toolId: string;
2905
2908
  clientId: string;
2906
2909
  agentName: AgentName;
@@ -2921,19 +2924,19 @@ interface IMCPTool<Properties = MCPToolProperties> {
2921
2924
  interface IMCP {
2922
2925
  listTools(clientId: string): Promise<IMCPTool[]>;
2923
2926
  hasTool(toolName: string, clientId: string): Promise<boolean>;
2924
- callTool<T = Record<string, ToolValue>>(toolName: string, dto: IMCPToolCallDto<T>): Promise<void>;
2927
+ callTool<T = MCPToolValue>(toolName: string, dto: IMCPToolCallDto<T>): Promise<void>;
2925
2928
  }
2926
2929
  interface IMCPCallbacks {
2927
2930
  onInit(): void;
2928
2931
  onDispose(clientId: string): void;
2929
2932
  onFetch(clientId: string): void;
2930
2933
  onList(clientId: string): void;
2931
- onCall<T = Record<string, ToolValue>>(toolName: string, dto: IMCPToolCallDto<T>): void;
2934
+ onCall<T = MCPToolValue>(toolName: string, dto: IMCPToolCallDto<T>): void;
2932
2935
  }
2933
2936
  interface IMCPSchema {
2934
2937
  mcpName: MCPName;
2935
2938
  listTools: (clientId: string) => Promise<IMCPTool<unknown>[]>;
2936
- callTool: <T = Record<string, ToolValue>>(toolName: string, dto: IMCPToolCallDto<T>) => Promise<void>;
2939
+ callTool: <T = MCPToolValue>(toolName: string, dto: IMCPToolCallDto<T>) => Promise<void>;
2937
2940
  callbacks?: Partial<IMCPCallbacks>;
2938
2941
  }
2939
2942
  interface IMCPParams extends IMCPSchema {
@@ -8749,7 +8752,7 @@ declare class ClientMCP implements IMCP {
8749
8752
  private fetchTools;
8750
8753
  listTools(clientId: string): Promise<IMCPTool<MCPToolProperties>[]>;
8751
8754
  hasTool(toolName: string, clientId: string): Promise<boolean>;
8752
- callTool<T = Record<string, ToolValue>>(toolName: string, dto: IMCPToolCallDto<T>): Promise<void>;
8755
+ callTool<T = MCPToolValue>(toolName: string, dto: IMCPToolCallDto<T>): Promise<void>;
8753
8756
  dispose(clientId: string): void;
8754
8757
  }
8755
8758
 
@@ -8761,7 +8764,7 @@ declare class MCPConnectionService implements IMCP {
8761
8764
  getMCP: ((mcpName: MCPName) => ClientMCP) & functools_kit.IClearableMemoize<string> & functools_kit.IControlMemoize<string, ClientMCP>;
8762
8765
  listTools(clientId: string): Promise<IMCPTool[]>;
8763
8766
  hasTool(toolName: string, clientId: string): Promise<boolean>;
8764
- callTool<T = Record<string, ToolValue>>(toolName: string, dto: IMCPToolCallDto<T>): Promise<void>;
8767
+ callTool<T = MCPToolValue>(toolName: string, dto: IMCPToolCallDto<T>): Promise<void>;
8765
8768
  }
8766
8769
 
8767
8770
  declare class MCPSchemaService {
@@ -8786,7 +8789,7 @@ declare class MCPPublicService implements TMCPConnectionService {
8786
8789
  private readonly mcpConnectionService;
8787
8790
  listTools(methodName: string, clientId: string, mcpName: string): Promise<IMCPTool[]>;
8788
8791
  hasTool(methodName: string, clientId: string, mcpName: string, toolName: string): Promise<boolean>;
8789
- callTool<T = Record<string, ToolValue>>(methodName: string, clientId: string, mcpName: string, toolName: string, dto: IMCPToolCallDto<T>): Promise<void>;
8792
+ callTool<T = MCPToolValue>(methodName: string, clientId: string, mcpName: string, toolName: string, dto: IMCPToolCallDto<T>): Promise<void>;
8790
8793
  }
8791
8794
 
8792
8795
  declare class MCPValidationService {