agent-swarm-kit 1.1.8 → 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/package.json +1 -1
- package/types.d.ts +10 -8
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -2893,7 +2893,9 @@ interface IWikiSchema {
|
|
|
2893
2893
|
*/
|
|
2894
2894
|
type WikiName = string;
|
|
2895
2895
|
|
|
2896
|
-
type MCPToolValue =
|
|
2896
|
+
type MCPToolValue = {
|
|
2897
|
+
[x: string]: unknown;
|
|
2898
|
+
} | undefined;
|
|
2897
2899
|
type MCPToolProperties = {
|
|
2898
2900
|
[key: string]: {
|
|
2899
2901
|
type: string;
|
|
@@ -2901,7 +2903,7 @@ type MCPToolProperties = {
|
|
|
2901
2903
|
description?: string;
|
|
2902
2904
|
};
|
|
2903
2905
|
};
|
|
2904
|
-
interface IMCPToolCallDto<T =
|
|
2906
|
+
interface IMCPToolCallDto<T = MCPToolValue> {
|
|
2905
2907
|
toolId: string;
|
|
2906
2908
|
clientId: string;
|
|
2907
2909
|
agentName: AgentName;
|
|
@@ -2922,19 +2924,19 @@ interface IMCPTool<Properties = MCPToolProperties> {
|
|
|
2922
2924
|
interface IMCP {
|
|
2923
2925
|
listTools(clientId: string): Promise<IMCPTool[]>;
|
|
2924
2926
|
hasTool(toolName: string, clientId: string): Promise<boolean>;
|
|
2925
|
-
callTool<T =
|
|
2927
|
+
callTool<T = MCPToolValue>(toolName: string, dto: IMCPToolCallDto<T>): Promise<void>;
|
|
2926
2928
|
}
|
|
2927
2929
|
interface IMCPCallbacks {
|
|
2928
2930
|
onInit(): void;
|
|
2929
2931
|
onDispose(clientId: string): void;
|
|
2930
2932
|
onFetch(clientId: string): void;
|
|
2931
2933
|
onList(clientId: string): void;
|
|
2932
|
-
onCall<T =
|
|
2934
|
+
onCall<T = MCPToolValue>(toolName: string, dto: IMCPToolCallDto<T>): void;
|
|
2933
2935
|
}
|
|
2934
2936
|
interface IMCPSchema {
|
|
2935
2937
|
mcpName: MCPName;
|
|
2936
2938
|
listTools: (clientId: string) => Promise<IMCPTool<unknown>[]>;
|
|
2937
|
-
callTool: <T =
|
|
2939
|
+
callTool: <T = MCPToolValue>(toolName: string, dto: IMCPToolCallDto<T>) => Promise<void>;
|
|
2938
2940
|
callbacks?: Partial<IMCPCallbacks>;
|
|
2939
2941
|
}
|
|
2940
2942
|
interface IMCPParams extends IMCPSchema {
|
|
@@ -8750,7 +8752,7 @@ declare class ClientMCP implements IMCP {
|
|
|
8750
8752
|
private fetchTools;
|
|
8751
8753
|
listTools(clientId: string): Promise<IMCPTool<MCPToolProperties>[]>;
|
|
8752
8754
|
hasTool(toolName: string, clientId: string): Promise<boolean>;
|
|
8753
|
-
callTool<T =
|
|
8755
|
+
callTool<T = MCPToolValue>(toolName: string, dto: IMCPToolCallDto<T>): Promise<void>;
|
|
8754
8756
|
dispose(clientId: string): void;
|
|
8755
8757
|
}
|
|
8756
8758
|
|
|
@@ -8762,7 +8764,7 @@ declare class MCPConnectionService implements IMCP {
|
|
|
8762
8764
|
getMCP: ((mcpName: MCPName) => ClientMCP) & functools_kit.IClearableMemoize<string> & functools_kit.IControlMemoize<string, ClientMCP>;
|
|
8763
8765
|
listTools(clientId: string): Promise<IMCPTool[]>;
|
|
8764
8766
|
hasTool(toolName: string, clientId: string): Promise<boolean>;
|
|
8765
|
-
callTool<T =
|
|
8767
|
+
callTool<T = MCPToolValue>(toolName: string, dto: IMCPToolCallDto<T>): Promise<void>;
|
|
8766
8768
|
}
|
|
8767
8769
|
|
|
8768
8770
|
declare class MCPSchemaService {
|
|
@@ -8787,7 +8789,7 @@ declare class MCPPublicService implements TMCPConnectionService {
|
|
|
8787
8789
|
private readonly mcpConnectionService;
|
|
8788
8790
|
listTools(methodName: string, clientId: string, mcpName: string): Promise<IMCPTool[]>;
|
|
8789
8791
|
hasTool(methodName: string, clientId: string, mcpName: string, toolName: string): Promise<boolean>;
|
|
8790
|
-
callTool<T =
|
|
8792
|
+
callTool<T = MCPToolValue>(methodName: string, clientId: string, mcpName: string, toolName: string, dto: IMCPToolCallDto<T>): Promise<void>;
|
|
8791
8793
|
}
|
|
8792
8794
|
|
|
8793
8795
|
declare class MCPValidationService {
|