agent-swarm-kit 1.1.13 → 1.1.14
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 +494 -481
- package/build/index.mjs +494 -481
- package/package.json +1 -1
- package/types.d.ts +9 -5
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -2899,6 +2899,10 @@ type WikiName = string;
|
|
|
2899
2899
|
type MCPToolValue = {
|
|
2900
2900
|
[x: string]: unknown;
|
|
2901
2901
|
} | undefined;
|
|
2902
|
+
/**
|
|
2903
|
+
* When MCP tool return string it will automatically commit to the agent
|
|
2904
|
+
*/
|
|
2905
|
+
type MCPToolOutput = string | undefined | void;
|
|
2902
2906
|
/**
|
|
2903
2907
|
* Type representing the properties of an MCP tool's input schema.
|
|
2904
2908
|
*/
|
|
@@ -2966,7 +2970,7 @@ interface IMCP {
|
|
|
2966
2970
|
* @param dto - The data transfer object containing tool call parameters.
|
|
2967
2971
|
* @returns A promise resolving when the tool call is complete.
|
|
2968
2972
|
*/
|
|
2969
|
-
callTool<T extends MCPToolValue = MCPToolValue>(toolName: string, dto: IMCPToolCallDto<T>): Promise<
|
|
2973
|
+
callTool<T extends MCPToolValue = MCPToolValue>(toolName: string, dto: IMCPToolCallDto<T>): Promise<MCPToolOutput>;
|
|
2970
2974
|
}
|
|
2971
2975
|
/**
|
|
2972
2976
|
* Interface for MCP callback functions triggered during various lifecycle events.
|
|
@@ -3016,7 +3020,7 @@ interface IMCPSchema {
|
|
|
3016
3020
|
* @param dto - The data transfer object containing tool call parameters.
|
|
3017
3021
|
* @returns A promise resolving when the tool call is complete.
|
|
3018
3022
|
*/
|
|
3019
|
-
callTool: <T extends MCPToolValue = MCPToolValue>(toolName: string, dto: IMCPToolCallDto<T>) => Promise<
|
|
3023
|
+
callTool: <T extends MCPToolValue = MCPToolValue>(toolName: string, dto: IMCPToolCallDto<T>) => Promise<MCPToolOutput>;
|
|
3020
3024
|
/** Optional callbacks for MCP lifecycle events. */
|
|
3021
3025
|
callbacks?: Partial<IMCPCallbacks>;
|
|
3022
3026
|
}
|
|
@@ -8889,7 +8893,7 @@ declare class ClientMCP implements IMCP {
|
|
|
8889
8893
|
* @param dto - The data transfer object containing tool call parameters.
|
|
8890
8894
|
* @returns A promise resolving when the tool call is complete.
|
|
8891
8895
|
*/
|
|
8892
|
-
callTool<T extends MCPToolValue = MCPToolValue>(toolName: string, dto: IMCPToolCallDto<T>): Promise<
|
|
8896
|
+
callTool<T extends MCPToolValue = MCPToolValue>(toolName: string, dto: IMCPToolCallDto<T>): Promise<MCPToolOutput>;
|
|
8893
8897
|
/**
|
|
8894
8898
|
* Disposes of resources associated with a client, clearing cached tools and invoking the dispose callback.
|
|
8895
8899
|
* @param clientId - The ID of the client whose resources are to be disposed.
|
|
@@ -8935,7 +8939,7 @@ declare class MCPConnectionService implements IMCP {
|
|
|
8935
8939
|
* @param dto - The data transfer object containing tool call parameters.
|
|
8936
8940
|
* @returns A promise resolving when the tool call is complete.
|
|
8937
8941
|
*/
|
|
8938
|
-
callTool<T extends MCPToolValue = MCPToolValue>(toolName: string, dto: IMCPToolCallDto<T>): Promise<
|
|
8942
|
+
callTool<T extends MCPToolValue = MCPToolValue>(toolName: string, dto: IMCPToolCallDto<T>): Promise<MCPToolOutput>;
|
|
8939
8943
|
/**
|
|
8940
8944
|
* Disposes of resources associated with a client, clearing cached MCP instances.
|
|
8941
8945
|
* @param clientId - The ID of the client whose resources are to be disposed.
|
|
@@ -9024,7 +9028,7 @@ declare class MCPPublicService implements TMCPConnectionService {
|
|
|
9024
9028
|
* @param dto - The data transfer object containing tool call parameters.
|
|
9025
9029
|
* @returns A promise resolving when the tool call is complete.
|
|
9026
9030
|
*/
|
|
9027
|
-
callTool<T extends MCPToolValue = MCPToolValue>(methodName: string, clientId: string, mcpName: string, toolName: string, dto: IMCPToolCallDto<T>): Promise<
|
|
9031
|
+
callTool<T extends MCPToolValue = MCPToolValue>(methodName: string, clientId: string, mcpName: string, toolName: string, dto: IMCPToolCallDto<T>): Promise<MCPToolOutput>;
|
|
9028
9032
|
/**
|
|
9029
9033
|
* Disposes of resources associated with a client within a specified context.
|
|
9030
9034
|
* @param methodName - The name of the method for context tracking.
|