@mondaydotcomorg/agent-toolkit 5.0.3 → 5.0.4

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.
@@ -33,34 +33,25 @@ type MondayApiToolContext = {
33
33
  agentClientName?: string;
34
34
  clientRedirectUris?: string[];
35
35
  };
36
- type BaseMondayApiToolConstructor = new (api: ApiClient, token?: string) => BaseMondayApiTool<any>;
36
+ type BaseMondayApiToolConstructor = new (api: ApiClient) => BaseMondayApiTool<any>;
37
37
  declare abstract class BaseMondayApiTool<Input extends ZodRawShape | undefined, Output extends Record<string, unknown> = never> implements Tool<Input, Output> {
38
38
  protected readonly mondayApi: ApiClient;
39
- protected readonly apiToken?: string | undefined;
40
39
  protected readonly context?: MondayApiToolContext | undefined;
41
40
  abstract name: string;
42
41
  abstract type: ToolType;
43
42
  abstract annotations: ToolAnnotations;
44
43
  enabledByDefault?: boolean;
45
- constructor(mondayApi: ApiClient, apiToken?: string | undefined, context?: MondayApiToolContext | undefined);
44
+ constructor(mondayApi: ApiClient, context?: MondayApiToolContext | undefined);
46
45
  abstract getDescription(): string;
47
46
  abstract getInputSchema(): Input;
48
47
  /**
49
- * Public execute method that automatically tracks execution
48
+ * Public execute method
50
49
  */
51
50
  execute(input?: ToolInputType<Input>): Promise<ToolOutputType<Output>>;
52
51
  /**
53
52
  * Abstract method that subclasses should implement for their actual logic
54
53
  */
55
54
  protected abstract executeInternal(input?: ToolInputType<Input>): Promise<ToolOutputType<Output>>;
56
- /**
57
- * Tracks tool execution with timing and error information
58
- * @param toolName - The name of the tool being executed
59
- * @param executionTimeInMs - The time taken to execute the tool in milliseconds
60
- * @param isError - Whether the execution resulted in an error
61
- * @param params - The parameters passed to the tool
62
- */
63
- private trackToolExecution;
64
55
  }
65
56
 
66
57
  declare enum MondayAppsToolCategory {