@mondaydotcomorg/agent-toolkit 2.0.9 → 2.1.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.
@@ -1,6 +1,6 @@
1
- import { ApiClientConfig } from '@mondaydotcomorg/api';
2
1
  import { ChatCompletionTool, ChatCompletionMessageToolCall, ChatCompletionToolMessageParam } from 'openai/resources';
3
2
  import { ZodRawShape, z, ZodTypeAny } from 'zod';
3
+ import { ApiClientConfig } from '@mondaydotcomorg/api';
4
4
 
5
5
  interface Executable<Input, Output> {
6
6
  execute: (input?: Input) => Promise<Output>;
@@ -12,8 +12,8 @@ type ToolOutputType<T extends Record<string, unknown>> = {
12
12
  metadata?: T;
13
13
  };
14
14
  declare enum ToolType {
15
- QUERY = "query",
16
- MUTATION = "mutation",
15
+ READ = "read",
16
+ WRITE = "write",
17
17
  ALL_API = "all_api"
18
18
  }
19
19
  interface Tool<Input extends ZodRawShape | undefined, Output extends Record<string, unknown> = never> extends Executable<ToolInputType<Input>, ToolOutputType<Output>> {
@@ -23,23 +23,33 @@ interface Tool<Input extends ZodRawShape | undefined, Output extends Record<stri
23
23
  getInputSchema(): Input;
24
24
  }
25
25
 
26
+ declare enum ToolMode {
27
+ API = "api",
28
+ APPS = "apps"
29
+ }
26
30
  type ToolsConfiguration = {
27
31
  include?: string[];
28
32
  exclude?: string[];
29
33
  readOnlyMode?: boolean;
34
+ mode?: ToolMode;
30
35
  enableDynamicApiTools?: boolean | 'only';
31
36
  };
32
-
33
37
  type MondayAgentToolkitConfig = {
34
38
  mondayApiToken: ApiClientConfig['token'];
35
39
  mondayApiVersion?: ApiClientConfig['apiVersion'];
36
40
  mondayApiRequestConfig?: ApiClientConfig['requestConfig'];
37
41
  toolsConfiguration?: ToolsConfiguration;
38
42
  };
43
+
39
44
  declare class MondayAgentToolkit {
40
45
  private readonly mondayApi;
46
+ private readonly mondayApiToken;
41
47
  tools: Tool<any, any>[];
42
48
  constructor(config: MondayAgentToolkitConfig);
49
+ /**
50
+ * Initialize both API and CLI tools
51
+ */
52
+ private initializeTools;
43
53
  /**
44
54
  * Returns the tools that are available to be used in the OpenAI API.
45
55
  *
@@ -57,4 +67,4 @@ declare class MondayAgentToolkit {
57
67
  handleToolCall(toolCall: ChatCompletionMessageToolCall): Promise<ChatCompletionToolMessageParam>;
58
68
  }
59
69
 
60
- export { MondayAgentToolkit, MondayAgentToolkitConfig };
70
+ export { MondayAgentToolkit };