@mondaydotcomorg/agent-toolkit 2.25.0 → 2.27.0

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.
@@ -59,13 +59,63 @@ declare abstract class BaseMondayApiTool<Input extends ZodRawShape | undefined,
59
59
  private trackToolExecution;
60
60
  }
61
61
 
62
- declare const allMondayAppsTools: (new (...args: any[]) => Tool<any, any>)[];
62
+ declare enum MondayAppsToolCategory {
63
+ APP = "app",
64
+ APP_VERSION = "app_version",
65
+ APP_FEATURE = "app_feature",
66
+ STORAGE = "storage",
67
+ MONDAY_CODE = "monday_code"
68
+ }
69
+
70
+ interface MondayApiResponse {
71
+ statusCode: number;
72
+ headers?: Record<string, string>;
73
+ [key: string]: any;
74
+ }
75
+ type MondayAppsToolType = new (mondayApiToken?: string) => BaseMondayAppsTool<any, any>;
76
+ declare abstract class BaseMondayAppsTool<Input extends ZodRawShape | undefined, Output extends Record<string, unknown> = never> implements Tool<Input, Output> {
77
+ abstract name: string;
78
+ abstract type: ToolType;
79
+ abstract category: MondayAppsToolCategory;
80
+ private mondayApiToken?;
81
+ abstract annotations: ToolAnnotations;
82
+ constructor(mondayApiToken?: string);
83
+ abstract getDescription(): string;
84
+ abstract getInputSchema(): Input;
85
+ /**
86
+ * Public execute method that automatically tracks execution
87
+ */
88
+ execute(input?: ToolInputType<Input>): Promise<ToolOutputType<Output>>;
89
+ /**
90
+ * Abstract method that subclasses should implement for their actual logic
91
+ */
92
+ protected abstract executeInternal(input?: ToolInputType<Input>): Promise<ToolOutputType<Output>>;
93
+ /**
94
+ * Execute an API request to the Monday.com API
95
+ */
96
+ protected executeApiRequest<T extends MondayApiResponse>(method: string, endpoint: string, options?: {
97
+ data?: any;
98
+ query?: Record<string, any>;
99
+ headers?: Record<string, string>;
100
+ timeout?: number;
101
+ }): Promise<T>;
102
+ /**
103
+ * Tracks tool execution with timing and error information
104
+ * @param toolName - The name of the tool being executed
105
+ * @param executionTimeInMs - The time taken to execute the tool in milliseconds
106
+ * @param isError - Whether the execution resulted in an error
107
+ * @param params - The parameters passed to the tool
108
+ */
109
+ private trackToolExecution;
110
+ }
111
+
112
+ declare const allMondayAppsTools: MondayAppsToolType[];
63
113
 
64
114
  declare const allMondayDevTools: BaseMondayApiToolConstructor[];
65
115
 
66
116
  declare const allGraphqlApiTools: BaseMondayApiToolConstructor[];
67
117
 
68
- declare const allTools: ((new (...args: any[]) => Tool<any, any>) | BaseMondayApiToolConstructor)[];
118
+ declare const allTools: (MondayAppsToolType | BaseMondayApiToolConstructor)[];
69
119
 
70
120
  declare enum ToolMode {
71
121
  API = "api",