cheshirecat-typescript-client 1.2.3 → 1.2.5

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.
Files changed (51) hide show
  1. package/README.md +8 -6
  2. package/dist/client.d.ts +5 -5
  3. package/dist/client.js.map +1 -1
  4. package/dist/clients/httpclient.d.ts +1 -1
  5. package/dist/clients/httpclient.js +2 -2
  6. package/dist/clients/httpclient.js.map +1 -1
  7. package/dist/clients/wsclient.d.ts +3 -3
  8. package/dist/clients/wsclient.js +2 -4
  9. package/dist/clients/wsclient.js.map +1 -1
  10. package/dist/endpoints/abstract.d.ts +5 -5
  11. package/dist/endpoints/abstract.js +2 -2
  12. package/dist/endpoints/abstract.js.map +1 -1
  13. package/dist/endpoints/admins.d.ts +3 -3
  14. package/dist/endpoints/admins.js +8 -8
  15. package/dist/endpoints/admins.js.map +1 -1
  16. package/dist/endpoints/authHandler.d.ts +7 -7
  17. package/dist/endpoints/authHandler.js +6 -6
  18. package/dist/endpoints/authHandler.js.map +1 -1
  19. package/dist/endpoints/chunker.d.ts +7 -10
  20. package/dist/endpoints/chunker.js +6 -9
  21. package/dist/endpoints/chunker.js.map +1 -1
  22. package/dist/endpoints/customEndpoint.d.ts +4 -4
  23. package/dist/endpoints/customEndpoint.js +6 -6
  24. package/dist/endpoints/customEndpoint.js.map +1 -1
  25. package/dist/endpoints/embedder.js +1 -1
  26. package/dist/endpoints/embedder.js.map +1 -1
  27. package/dist/endpoints/fileManager.d.ts +8 -11
  28. package/dist/endpoints/fileManager.js +6 -9
  29. package/dist/endpoints/fileManager.js.map +1 -1
  30. package/dist/endpoints/largeLanguageModel.d.ts +7 -10
  31. package/dist/endpoints/largeLanguageModel.js +6 -9
  32. package/dist/endpoints/largeLanguageModel.js.map +1 -1
  33. package/dist/endpoints/memory.d.ts +43 -62
  34. package/dist/endpoints/memory.js +40 -59
  35. package/dist/endpoints/memory.js.map +1 -1
  36. package/dist/endpoints/message.d.ts +2 -2
  37. package/dist/endpoints/message.js +1 -1
  38. package/dist/endpoints/message.js.map +1 -1
  39. package/dist/endpoints/plugins.d.ts +12 -17
  40. package/dist/endpoints/plugins.js +11 -16
  41. package/dist/endpoints/plugins.js.map +1 -1
  42. package/dist/endpoints/rabbitHole.d.ts +11 -15
  43. package/dist/endpoints/rabbitHole.js +8 -12
  44. package/dist/endpoints/rabbitHole.js.map +1 -1
  45. package/dist/endpoints/settings.d.ts +12 -22
  46. package/dist/endpoints/settings.js +11 -21
  47. package/dist/endpoints/settings.js.map +1 -1
  48. package/dist/endpoints/users.d.ts +8 -21
  49. package/dist/endpoints/users.js +6 -19
  50. package/dist/endpoints/users.js.map +1 -1
  51. package/package.json +1 -1
@@ -6,10 +6,9 @@ class MemoryEndpoint extends abstract_1.AbstractEndpoint {
6
6
  prefix = "/memory";
7
7
  // -- Memory Collections API
8
8
  /**
9
- * This endpoint returns the collections of memory points, either for the agent identified by the agentId parameter
10
- * (for multi-agent installations) or for the default agent (for single-agent installations).
9
+ * This endpoint returns the collections of memory points.
11
10
  *
12
- * @param agentId The agent ID for multi-agent installations.
11
+ * @param agentId The agent ID
13
12
  *
14
13
  * @returns The collections of memory points.
15
14
  */
@@ -17,10 +16,9 @@ class MemoryEndpoint extends abstract_1.AbstractEndpoint {
17
16
  return this.get(this.formatUrl("/collections"), agentId);
18
17
  }
19
18
  /**
20
- * This endpoint deletes the all the points in all the collections of memory, either for the agent identified by
21
- * the agentId parameter (for multi-agent installations) or for the default agent (for single-agent installations).
19
+ * This endpoint deletes all the points in all the collections of memory.
22
20
  *
23
- * @param agentId The agent ID for multi-agent installations.
21
+ * @param agentId The agent ID.
24
22
  *
25
23
  * @returns The output of the deletion operation.
26
24
  */
@@ -28,11 +26,10 @@ class MemoryEndpoint extends abstract_1.AbstractEndpoint {
28
26
  return this.delete(this.formatUrl("/collections"), agentId);
29
27
  }
30
28
  /**
31
- * This method deletes all the points in a single collection of memory, either for the agent identified by the
32
- * agentId parameter (for multi-agent installations) or for the default agent (for single-agent installations).
29
+ * This method deletes all the points in a single collection of memory.
33
30
  *
34
31
  * @param collection The collection to delete the points from.
35
- * @param agentId The agent ID for multi-agent installations.
32
+ * @param agentId The agent ID.
36
33
  *
37
34
  * @returns The output of the deletion operation.
38
35
  */
@@ -42,11 +39,9 @@ class MemoryEndpoint extends abstract_1.AbstractEndpoint {
42
39
  // END Memory Collections API --
43
40
  // -- Memory Conversation History API
44
41
  /**
45
- * This endpoint returns the conversation history, either for the agent identified by the agentId parameter
46
- * (for multi-agent installations) or for the default agent (for single-agent installations). If the userId
47
- * parameter is provided, the conversation history is filtered by the user ID.
42
+ * This endpoint returns the conversation history.
48
43
  *
49
- * @param agentId The agent ID for multi-agent installations.
44
+ * @param agentId The agent ID.
50
45
  * @param userId The user ID to filter the conversation history by.
51
46
  *
52
47
  * @returns The conversation history.
@@ -55,11 +50,9 @@ class MemoryEndpoint extends abstract_1.AbstractEndpoint {
55
50
  return this.get(this.formatUrl("/conversation_history"), agentId, userId);
56
51
  }
57
52
  /**
58
- * This endpoint deletes the conversation history, either for the agent identified by the agentId parameter
59
- * (for multi-agent installations) or for the default agent (for single-agent installations). If the userId
60
- * parameter is provided, the conversation history is filtered by the user ID.
53
+ * This endpoint deletes the conversation history.
61
54
  *
62
- * @param agentId The agent ID for multi-agent installations.
55
+ * @param agentId The agent ID.
63
56
  * @param userId The user ID to filter the conversation history by.
64
57
  *
65
58
  * @returns The output of the deletion operation.
@@ -68,46 +61,41 @@ class MemoryEndpoint extends abstract_1.AbstractEndpoint {
68
61
  return this.delete(this.formatUrl("/conversation_history"), agentId, userId);
69
62
  }
70
63
  /**
71
- * This endpoint creates a new element in the conversation history, either for the agent identified by the agentId
72
- * parameter (for multi-agent installations) or for the default agent (for single-agent installations). If the
73
- * userId parameter is provided, the conversation history is added to the user ID.
64
+ * This endpoint creates a new element in the conversation history.
74
65
  *
75
66
  * @param who The speaker of the conversation history.
76
67
  * @param text The text of the conversation history.
68
+ * @param agentId The agent ID.
69
+ * @param userId The user ID to add the conversation history to.
77
70
  * @param image The image of the conversation history.
78
71
  * @param why The reason for the conversation history.
79
- * @param agentId The agent ID for multi-agent installations.
80
- * @param userId The user ID to add the conversation history to.
81
72
  *
82
73
  * @returns The conversation history.
83
74
  */
84
- async postConversationHistory(who, text, image, why, agentId, userId) {
75
+ async postConversationHistory(who, text, agentId, userId, image, why) {
85
76
  const payload = {
86
77
  who: who.toString(),
87
78
  text,
88
79
  ...(image && { image }),
89
80
  ...(why && { why: why.toArray() }),
90
81
  };
91
- return this.post(this.formatUrl("/conversation_history"), payload, agentId, userId);
82
+ return this.post(this.formatUrl("/conversation_history"), agentId, payload, userId);
92
83
  }
93
84
  // END Memory Conversation History API --
94
85
  // -- Memory Points API
95
86
  /**
96
- * This endpoint retrieves memory points based on the input text, either for the agent identified by the agentId
97
- * parameter (for multi-agent installations) or for the default agent (for single-agent installations). The text
98
- * parameter is the input text for which the memory points are retrieved. The k parameter is the number of memory
99
- * points to retrieve.
100
- * If the userId parameter is provided, the memory points are filtered by the user ID.
87
+ * This endpoint retrieves memory points based on the input text. The text parameter is the input text for which the
88
+ * memory points are retrieved. The k parameter is the number of memory points to retrieve.
101
89
  *
102
90
  * @param text The input text for which the memory points are retrieved.
91
+ * @param agentId The agent ID.
92
+ * @param userId The user ID to filter the memory points by.
103
93
  * @param k The number of memory points to retrieve.
104
94
  * @param metadata The metadata to filter the memory points by.
105
- * @param agentId The agent ID for multi-agent installations.
106
- * @param userId The user ID to filter the memory points by.
107
95
  *
108
96
  * @returns The memory recall output.
109
97
  */
110
- async getMemoryRecall(text, k, metadata, agentId, userId) {
98
+ async getMemoryRecall(text, agentId, userId, k, metadata) {
111
99
  const query = {
112
100
  text,
113
101
  ...(k && { k }),
@@ -116,49 +104,44 @@ class MemoryEndpoint extends abstract_1.AbstractEndpoint {
116
104
  return this.get(this.formatUrl("/recall"), agentId, userId, query);
117
105
  }
118
106
  /**
119
- * This method posts a memory point, either for the agent identified by the agentId parameter (for multi-agent
120
- * installations) or for the default agent (for single-agent installations).
121
- * If the userId parameter is provided, the memory point is associated with the user ID.
107
+ * This method posts a memory point.
122
108
  *
123
109
  * @param collection The collection to post the memory point to.
124
- * @param memoryPoint The memory point to post.
125
- * @param agentId The agent ID for multi-agent installations.
110
+ * @param agentId The agent ID.
126
111
  * @param userId The user ID to associate the memory point with.
112
+ * @param memoryPoint The memory point to post.
127
113
  *
128
114
  * @returns The memory point output.
129
115
  */
130
- async postMemoryPoint(collection, memoryPoint, agentId, userId) {
116
+ async postMemoryPoint(collection, agentId, userId, memoryPoint) {
131
117
  if (userId && !memoryPoint.metadata["source"]) {
132
118
  memoryPoint.metadata["source"] = userId;
133
119
  }
134
- return this.post(this.formatUrl("/collections/" + collection.toString() + "/points"), memoryPoint, agentId);
120
+ return this.post(this.formatUrl("/collections/" + collection.toString() + "/points"), agentId, memoryPoint);
135
121
  }
136
122
  /**
137
- * This method puts a memory point, either for the agent identified by the agentId parameter (for multi-agent
138
- * installations) or for the default agent (for single-agent installations).
139
- * If the userId parameter is provided, the memory point is associated with the user ID.
123
+ * This method puts a memory point.
140
124
  *
141
125
  * @param collection The collection to put the memory point to.
126
+ * @param agentId The agent ID.
127
+ * @param userId The user ID to associate the memory point with.
142
128
  * @param memoryPoint The memory point to put.
143
129
  * @param pointId The ID of the memory point to put.
144
- * @param agentId The agent ID for multi-agent installations.
145
- * @param userId The user ID to associate the memory point with.
146
130
  *
147
131
  * @returns The memory point output.
148
132
  */
149
- async putMemoryPoint(collection, memoryPoint, pointId, agentId, userId) {
133
+ async putMemoryPoint(collection, agentId, userId, memoryPoint, pointId) {
150
134
  if (userId && !memoryPoint.metadata["source"]) {
151
135
  memoryPoint.metadata["source"] = userId;
152
136
  }
153
- return this.put(this.formatUrl("/collections/" + collection.toString() + "/points/" + pointId), memoryPoint, agentId);
137
+ return this.put(this.formatUrl("/collections/" + collection.toString() + "/points/" + pointId), agentId, memoryPoint);
154
138
  }
155
139
  /**
156
- * This endpoint deletes a memory point, either for the agent identified by the agentId parameter (for multi-agent
157
- * installations) or for the default agent (for single-agent installations).
140
+ * This endpoint deletes a memory point, either for the agent identified by the agentId parameter.
158
141
  *
159
142
  * @param collection The collection to retrieve the memory point from.
160
143
  * @param pointId The ID of the memory point to retrieve.
161
- * @param agentId The agent ID for multi-agent installations.
144
+ * @param agentId The agent ID.
162
145
  *
163
146
  * @returns The memory point output.
164
147
  */
@@ -166,32 +149,30 @@ class MemoryEndpoint extends abstract_1.AbstractEndpoint {
166
149
  return this.delete(this.formatUrl("/collections/" + collection.toString() + "/points/" + pointId), agentId);
167
150
  }
168
151
  /**
169
- * This endpoint deletes memory points based on the metadata, either for the agent identified by the agentId
170
- * parameter (for multi-agent installations) or for the default agent (for single-agent installations). The metadata
171
- * parameter is a dictionary of key-value pairs that the memory points must match.
152
+ * This endpoint deletes memory points based on the metadata. The metadata parameter is a dictionary of key-value
153
+ * pairs that the memory points must match.
172
154
  *
173
155
  * @param collection The collection to retrieve the memory points from.
156
+ * @param agentId The agent ID.
174
157
  * @param metadata The metadata to filter the memory points by.
175
- * @param agentId The agent ID for multi-agent installations.
176
158
  *
177
159
  * @returns The output of the deletion operation.
178
160
  */
179
- async deleteMemoryPointsByMetadata(collection, metadata, agentId) {
161
+ async deleteMemoryPointsByMetadata(collection, agentId, metadata) {
180
162
  return this.delete(this.formatUrl("/collections/" + collection.toString() + "/points"), agentId, null, metadata);
181
163
  }
182
164
  /**
183
- * This endpoint retrieves memory points, either for the agent identified by the agentId parameter (for multi-agent
184
- * installations) or for the default agent (for single-agent installations). The limit parameter is the maximum
185
- * number of memory points to retrieve. The offset parameter is the number of memory points to skip.
165
+ * This endpoint retrieves memory points. The limit parameter is the maximum number of memory points to retrieve.
166
+ * The offset parameter is the number of memory points to skip.
186
167
  *
187
168
  * @param collection The collection to retrieve the memory points from.
169
+ * @param agentId The agent ID.
188
170
  * @param limit The maximum number of memory points to retrieve.
189
171
  * @param offset The number of memory points to skip.
190
- * @param agentId The agent ID for multi-agent installations.
191
172
  *
192
173
  * @returns The memory points output.
193
174
  */
194
- async getMemoryPoints(collection, limit, offset, agentId) {
175
+ async getMemoryPoints(collection, agentId, limit, offset) {
195
176
  const query = {
196
177
  ...(limit && { limit }),
197
178
  ...(offset && { offset }),
@@ -1 +1 @@
1
- {"version":3,"file":"memory.js","sourceRoot":"","sources":["../../src/endpoints/memory.ts"],"names":[],"mappings":";;;AAAA,yCAA4C;AAiB5C,MAAa,cAAe,SAAQ,2BAAgB;IACtC,MAAM,GAAG,SAAS,CAAC;IAE7B,4BAA4B;IAE5B;;;;;;;OAOG;IACH,KAAK,CAAC,oBAAoB,CAAC,OAAuB;QAC9C,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,+BAA+B,CAAC,OAAuB;QACzD,OAAO,IAAI,CAAC,MAAM,CAAgC,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC,CAAC;IAC/F,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,qCAAqC,CACvC,UAAsB,EACtB,OAAuB;QAEvB,OAAO,IAAI,CAAC,MAAM,CAAgC,IAAI,CAAC,SAAS,CAAC,eAAe,GAAG,UAAU,CAAC,QAAQ,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC;IACxH,CAAC;IAED,gCAAgC;IAEhC,qCAAqC;IAErC;;;;;;;;;OASG;IACH,KAAK,CAAC,sBAAsB,CACxB,OAAuB,EACvB,MAAsB;QAEtB,OAAO,IAAI,CAAC,GAAG,CAA4B,IAAI,CAAC,SAAS,CAAC,uBAAuB,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACzG,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,yBAAyB,CAC3B,OAAuB,EACvB,MAAsB;QAEtB,OAAO,IAAI,CAAC,MAAM,C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,CAAC,SAAS,CAAC,eAAe,GAAG,UAAU,CAAC,QAAQ,EAAE,GAAG,SAAS,CAAC,EACnE,OAAO,EACP,IAAI,EACJ,QAAQ,CACX,CAAC;IACN,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,eAAe,CACjB,UAAsB,EACtB,OAAe,EACf,KAAqB,EACrB,MAAsB;QAEtB,MAAM,KAAK,GAAG;YACV,GAAG,CAAC,KAAK,IAAI,EAAC,KAAK,EAAC,CAAC;YACrB,GAAG,CAAC,MAAM,IAAI,EAAC,MAAM,EAAC,CAAC;SAC1B,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,SAAS,CAAC,eAAe,GAAG,UAAU,CAAC,QAAQ,EAAE,GAAG,SAAS,CAAC,EACnE,OAAO,EACP,IAAI,EACJ,KAAK,CACR,CAAC;IACN,CAAC;CAGJ;AAnRD,wCAmRC"}
@@ -11,7 +11,7 @@ export declare class MessageEndpoint extends AbstractEndpoint {
11
11
  *
12
12
  * @returns The response from the server
13
13
  */
14
- sendHttpMessage(message: Message, agentId?: string | null, userId?: string | null): Promise<MessageOutput>;
14
+ sendHttpMessage(message: Message, agentId: string, userId: string): Promise<MessageOutput>;
15
15
  /**
16
16
  * This endpoint sends a message to the agent identified by the agentId parameter. The message is sent via WebSocket.
17
17
  *
@@ -22,5 +22,5 @@ export declare class MessageEndpoint extends AbstractEndpoint {
22
22
  *
23
23
  * @returns The response from the server
24
24
  */
25
- sendWebsocketMessage(message: Message, agentId?: string | null, userId?: string | null, closure?: (content: string) => void | null): Promise<MessageOutput>;
25
+ sendWebsocketMessage(message: Message, agentId: string, userId: string, closure?: (content: string) => void | null): Promise<MessageOutput>;
26
26
  }
@@ -13,7 +13,7 @@ class MessageEndpoint extends abstract_1.AbstractEndpoint {
13
13
  * @returns The response from the server
14
14
  */
15
15
  async sendHttpMessage(message, agentId, userId) {
16
- return this.post("/message", message.toJSON(), agentId, userId);
16
+ return this.post("/message", agentId, message.toJSON(), userId);
17
17
  }
18
18
  /**
19
19
  * This endpoint sends a message to the agent identified by the agentId parameter. The message is sent via WebSocket.
@@ -1 +1 @@
1
- {"version":3,"file":"message.js","sourceRoot":"","sources":["../../src/endpoints/message.ts"],"names":[],"mappings":";;;AAAA,yCAA4C;AAM5C,MAAa,eAAgB,SAAQ,2BAAgB;IACjD;;;;;;;;OAQG;IACH,KAAK,CAAC,eAAe,CAAC,OAAgB,EAAE,OAAuB,EAAE,MAAsB;QACnF,OAAO,IAAI,CAAC,IAAI,CACZ,UAAU,EACV,OAAO,CAAC,MAAM,EAAE,EAChB,OAAO,EACP,MAAM,CACT,CAAC;IACN,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,oBAAoB,CACtB,OAAgB,EAChB,OAAuB,EACvB,MAAsB,EACtB,OAA0C;QAE1C,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;QAC9C,IAAI,CAAC,IAAI,EAAE,CAAC;YACR,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;QAC9C,CAAC;QAED,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QAEjD,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACnC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE;gBACnB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC,CAAC,CAAC;YAEH,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,IAAmB,EAAE,EAAE;gBACzC,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;gBAEhC,2BAA2B;gBAC3B,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC;oBACrC,IAAI,OAAO;wBAAE,OAAO,CAAC,OAAO,CAAC,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I,KAAK,CAAC,0CAA0C,CAAC,CAAC,CAAC;YAClE,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AA1ED,0CA0EC"}
@@ -4,53 +4,48 @@ import { PluginSettingsOutput } from "../models/api/nested/plugins";
4
4
  export declare class PluginsEndpoint extends AbstractEndpoint {
5
5
  protected prefix: string;
6
6
  /**
7
- * This endpoint returns the available plugins, either for the agent identified by the agentId parameter
8
- * (for multi-agent installations) or for the default agent (for single-agent installations).
7
+ * This endpoint returns the available plugins.
9
8
  *
10
- * @param pluginName - The name of the plugin to filter the results by (optional).
11
9
  * @param agentId - The ID of the agent to get the available plugins for.
10
+ * @param pluginName - The name of the plugin to filter the results by (optional).
12
11
  *
13
12
  * @returns The available plugins.
14
13
  */
15
- getAvailablePlugins(pluginName?: string | null, agentId?: string | null): Promise<PluginCollectionOutput>;
14
+ getAvailablePlugins(agentId: string, pluginName?: string | null): Promise<PluginCollectionOutput>;
16
15
  /**
17
- * This endpoint toggles a plugin, either for the agent identified by the agentId parameter (for multi-agent
18
- * installations) or for the default agent (for single-agent installations).
16
+ * This endpoint toggles a plugin.
19
17
  *
20
18
  * @param pluginId - The ID of the plugin to toggle.
21
19
  * @param agentId - The ID of the agent to toggle the plugin for.
22
20
  *
23
21
  * @returns The plugin toggle output.
24
22
  */
25
- putTogglePlugin(pluginId: string, agentId?: string | null): Promise<PluginToggleOutput>;
23
+ putTogglePlugin(pluginId: string, agentId: string): Promise<PluginToggleOutput>;
26
24
  /**
27
- * This endpoint retrieves the plugins settings, either for the agent identified by the agentId parameter
28
- * (for multi-agent installations) or for the default agent (for single-agent installations).
25
+ * This endpoint retrieves the plugins settings.
29
26
  *
30
27
  * @param agentId - The ID of the agent to get the plugins settings for.
31
28
  *
32
29
  * @returns The plugins settings.
33
30
  */
34
- getPluginsSettings(agentId?: string | null): Promise<PluginsSettingsOutput>;
31
+ getPluginsSettings(agentId: string): Promise<PluginsSettingsOutput>;
35
32
  /**
36
- * This endpoint retrieves the plugin settings, either for the agent identified by the agentId parameter
37
- * (for multi-agent installations) or for the default agent (for single-agent installations).
33
+ * This endpoint retrieves the plugin settings.
38
34
  *
39
35
  * @param pluginId - The ID of the plugin to get the settings for.
40
36
  * @param agentId - The ID of the agent to get the plugin settings for.
41
37
  *
42
38
  * @returns The plugin settings.
43
39
  */
44
- getPluginSettings(pluginId: string, agentId?: string | null): Promise<PluginSettingsOutput>;
40
+ getPluginSettings(pluginId: string, agentId: string): Promise<PluginSettingsOutput>;
45
41
  /**
46
- * This endpoint updates the plugin settings, either for the agent identified by the agentId parameter
47
- * (for multi-agent installations) or for the default agent (for single-agent installations).
42
+ * This endpoint updates the plugin settings.
48
43
  *
49
44
  * @param pluginId - The ID of the plugin to update the settings for.
50
- * @param values - The values to update the plugin settings with.
51
45
  * @param agentId - The ID of the agent to update the plugin settings for.
46
+ * @param values - The values to update the plugin settings with.
52
47
  *
53
48
  * @returns The plugin settings.
54
49
  */
55
- putPluginSettings(pluginId: string, values: any, agentId?: string | null): Promise<PluginSettingsOutput>;
50
+ putPluginSettings(pluginId: string, agentId: string, values: any): Promise<PluginSettingsOutput>;
56
51
  }
@@ -5,20 +5,18 @@ const abstract_1 = require("./abstract");
5
5
  class PluginsEndpoint extends abstract_1.AbstractEndpoint {
6
6
  prefix = "/plugins";
7
7
  /**
8
- * This endpoint returns the available plugins, either for the agent identified by the agentId parameter
9
- * (for multi-agent installations) or for the default agent (for single-agent installations).
8
+ * This endpoint returns the available plugins.
10
9
  *
11
- * @param pluginName - The name of the plugin to filter the results by (optional).
12
10
  * @param agentId - The ID of the agent to get the available plugins for.
11
+ * @param pluginName - The name of the plugin to filter the results by (optional).
13
12
  *
14
13
  * @returns The available plugins.
15
14
  */
16
- async getAvailablePlugins(pluginName, agentId) {
15
+ async getAvailablePlugins(agentId, pluginName) {
17
16
  return this.get(this.prefix, agentId, null, pluginName ? { query: pluginName } : {});
18
17
  }
19
18
  /**
20
- * This endpoint toggles a plugin, either for the agent identified by the agentId parameter (for multi-agent
21
- * installations) or for the default agent (for single-agent installations).
19
+ * This endpoint toggles a plugin.
22
20
  *
23
21
  * @param pluginId - The ID of the plugin to toggle.
24
22
  * @param agentId - The ID of the agent to toggle the plugin for.
@@ -26,11 +24,10 @@ class PluginsEndpoint extends abstract_1.AbstractEndpoint {
26
24
  * @returns The plugin toggle output.
27
25
  */
28
26
  async putTogglePlugin(pluginId, agentId) {
29
- return this.put(this.formatUrl(`/toggle/${pluginId}`), {}, agentId);
27
+ return this.put(this.formatUrl(`/toggle/${pluginId}`), agentId);
30
28
  }
31
29
  /**
32
- * This endpoint retrieves the plugins settings, either for the agent identified by the agentId parameter
33
- * (for multi-agent installations) or for the default agent (for single-agent installations).
30
+ * This endpoint retrieves the plugins settings.
34
31
  *
35
32
  * @param agentId - The ID of the agent to get the plugins settings for.
36
33
  *
@@ -40,8 +37,7 @@ class PluginsEndpoint extends abstract_1.AbstractEndpoint {
40
37
  return this.get(this.formatUrl("/settings"), agentId);
41
38
  }
42
39
  /**
43
- * This endpoint retrieves the plugin settings, either for the agent identified by the agentId parameter
44
- * (for multi-agent installations) or for the default agent (for single-agent installations).
40
+ * This endpoint retrieves the plugin settings.
45
41
  *
46
42
  * @param pluginId - The ID of the plugin to get the settings for.
47
43
  * @param agentId - The ID of the agent to get the plugin settings for.
@@ -52,17 +48,16 @@ class PluginsEndpoint extends abstract_1.AbstractEndpoint {
52
48
  return this.get(this.formatUrl(`/settings/${pluginId}`), agentId);
53
49
  }
54
50
  /**
55
- * This endpoint updates the plugin settings, either for the agent identified by the agentId parameter
56
- * (for multi-agent installations) or for the default agent (for single-agent installations).
51
+ * This endpoint updates the plugin settings.
57
52
  *
58
53
  * @param pluginId - The ID of the plugin to update the settings for.
59
- * @param values - The values to update the plugin settings with.
60
54
  * @param agentId - The ID of the agent to update the plugin settings for.
55
+ * @param values - The values to update the plugin settings with.
61
56
  *
62
57
  * @returns The plugin settings.
63
58
  */
64
- async putPluginSettings(pluginId, values, agentId) {
65
- return this.put(this.formatUrl(`/settings/${pluginId}`), values, agentId);
59
+ async putPluginSettings(pluginId, agentId, values) {
60
+ return this.put(this.formatUrl(`/settings/${pluginId}`), agentId, values);
66
61
  }
67
62
  }
68
63
  exports.PluginsEndpoint = PluginsEndpoint;
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../src/endpoints/plugins.ts"],"names":[],"mappings":";;;AAAA,yCAA4C;AAI5C,MAAa,eAAgB,SAAQ,2BAAgB;IACvC,MAAM,GAAG,UAAU,CAAC;IAE9B;;;;;;;;OAQG;IACH,KAAK,CAAC,mBAAmB,CAAC,UAA0B,EAAE,OAAuB;QACzE,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,MAAM,EACX,OAAO,EACP,IAAI,EACJ,UAAU,CAAC,CAAC,CAAC,EAAC,KAAK,EAAE,UAAU,EAAC,CAAC,CAAC,CAAC,EAAE,CACxC,CAAC;IACN,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,eAAe,CAAC,QAAgB,EAAE,OAAuB;QAC3D,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,SAAS,CAAC,WAAW,QAAQ,EAAE,CAAC,EACrC,EAAE,EACF,OAAO,CACV,CAAC;IACN,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,kBAAkB,CAAC,OAAuB;QAC5C,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,EAC3B,OAAO,CACV,CAAC;IACN,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,iBAAiB,CAAC,QAAgB,EAAE,OAAuB;QAC7D,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,SAAS,CAAC,aAAa,QAAQ,EAAE,CAAC,EACvC,OAAO,CACV,CAAC;IACN,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,iBAAiB,CAAC,QAAgB,EAAE,MAAW,EAA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SAAS,CAAC,aAAa,QAAQ,EAAE,CAAC,EACvC,OAAO,EACP,MAAM,CACT,CAAC;IACN,CAAC;CACJ;AAhFD,0CAgFC"}
@@ -28,10 +28,10 @@ export declare class RabbitHoleEndpoint extends AbstractEndpoint {
28
28
  * @param fileSource The source of the file to upload:
29
29
  * - In Node.js: A string path to the file
30
30
  * - In browser: A File object
31
+ * @param agentId ID of the agent to associate with this upload
31
32
  * @param fileName Optional custom name for the file. If not provided:
32
33
  * - In Node.js: The basename of the file path is used
33
34
  * - In browser: The name property of the File object is used
34
- * @param agentId Optional ID of the agent to associate with this upload
35
35
  * @param metadata Optional additional metadata to associate with the file
36
36
  *
37
37
  * @returns Promise resolving to the API response data
@@ -50,7 +50,7 @@ export declare class RabbitHoleEndpoint extends AbstractEndpoint {
50
50
  * const response = await rabbitHoleEndpoint.postFile('/path/to/document.pdf');
51
51
  * ```
52
52
  */
53
- postFile(fileSource: FileSource, fileName?: string | null, agentId?: string | null, metadata?: Record<string, any> | null): Promise<any>;
53
+ postFile(fileSource: FileSource, agentId: string, fileName?: string | null, metadata?: Record<string, any> | null): Promise<any>;
54
54
  /**
55
55
  * This method posts a number of files to the RabbitHole API. The files are uploaded to the RabbitHole server and
56
56
  * ingested into the RAG system.
@@ -67,7 +67,7 @@ export declare class RabbitHoleEndpoint extends AbstractEndpoint {
67
67
  * @param fileSources The sources of the file to upload:
68
68
  * - In Node.js: An array of strings path to the file
69
69
  * - In browser: An array of File objects
70
- * @param agentId Optional ID of the agent to associate with this upload
70
+ * @param agentId ID of the agent to associate with this upload
71
71
  * @param metadata Optional additional metadata to associate with the file
72
72
  *
73
73
  * @returns Promise resolving to the API response data
@@ -86,7 +86,7 @@ export declare class RabbitHoleEndpoint extends AbstractEndpoint {
86
86
  * const response = await rabbitHoleEndpoint.postFiles(['/path/to/first/document.pdf', '/path/to/second/document.pdf']);
87
87
  * ```
88
88
  */
89
- postFiles(fileSources: FileSource[], agentId?: string | null, metadata?: Record<string, any> | null): Promise<any>;
89
+ postFiles(fileSources: FileSource[], agentId: string, metadata?: Record<string, any> | null): Promise<any>;
90
90
  /**
91
91
  * This method posts a web URL to the RabbitHole API. The web URL is ingested into the RAG system. The web URL is
92
92
  * processed by the RAG system by Web scraping, and the results are stored in the RAG database. The process is
@@ -95,24 +95,23 @@ export declare class RabbitHoleEndpoint extends AbstractEndpoint {
95
95
  * process.
96
96
  *
97
97
  * @param webUrl The URL of the web page to be ingested.
98
- * @param agentId The ID of the agent to be used for the upload. If not provided, the default agent will be used.
98
+ * @param agentId The ID of the agent to be used for the upload.
99
99
  * @param metadata Additional metadata to be associated with the web URL.
100
100
  *
101
101
  * @returns The response from the RabbitHole API.
102
102
  */
103
- postWeb(webUrl: string, agentId?: string | null, metadata?: Record<string, any> | null): Promise<any>;
103
+ postWeb(webUrl: string, agentId: string, metadata?: Record<string, any> | null): Promise<any>;
104
104
  /**
105
- * This method posts a memory point, either for the agent identified by the agentId parameter (for multi-agent
106
- * installations) or for the default agent (for single-agent installations). The memory point is ingested into the
107
- * RAG system. The process is asynchronous. The provided file must be in JSON format.
105
+ * This method posts a memory point. The memory point is ingested into the RAG system. The process is asynchronous.
106
+ * The provided file must be in JSON format.
108
107
  * The CheshireCat processes the injection in the background, and the client will be informed at the end of the
109
108
  * process.
110
109
  *
111
110
  * @param fileSource The source of the file to upload:
112
111
  * - In Node.js: A string path to the file
113
112
  * - In browser: A File object
113
+ * @param agentId The ID of the agent to be used for the upload.
114
114
  * @param fileName The name of the file to be uploaded. If not provided, the name of the file will be used.
115
- * @param agentId The ID of the agent to be used for the upload. If not provided, the default agent will be used.
116
115
  *
117
116
  * @returns The response from the RabbitHole API.
118
117
  *
@@ -130,17 +129,14 @@ export declare class RabbitHoleEndpoint extends AbstractEndpoint {
130
129
  * const response = await rabbitHoleEndpoint.postMemory('/path/to/document.json');
131
130
  * ```
132
131
  */
133
- postMemory(fileSource: FileSource, fileName?: string | null, agentId?: string | null): Promise<any>;
132
+ postMemory(fileSource: FileSource, agentId: string, fileName?: string | null): Promise<any>;
134
133
  /**
135
134
  * This method retrieves the allowed MIME types for the RabbitHole API. The allowed MIME types are the MIME types
136
135
  * that are allowed to be uploaded to the RabbitHole API. The allowed MIME types are returned in a list.
137
- * If the agentId parameter is provided, the allowed MIME types are retrieved for the agent identified by the
138
- * agentId parameter (for multi-agent installations). If the agentId parameter is not provided, the allowed MIME
139
- * types are retrieved for the default agent (for single-agent installations).
140
136
  *
141
137
  * @param agentId The ID of the agent to be used for the upload. If not provided, the default agent will be used.
142
138
  *
143
139
  * @returns The allowed MIME types for the RabbitHole API.
144
140
  */
145
- getAllowedMimeTypes(agentId?: string | null): Promise<AllowedMimeTypesOutput>;
141
+ getAllowedMimeTypes(agentId: string): Promise<AllowedMimeTypesOutput>;
146
142
  }
@@ -73,10 +73,10 @@ class RabbitHoleEndpoint extends abstract_1.AbstractEndpoint {
73
73
  * @param fileSource The source of the file to upload:
74
74
  * - In Node.js: A string path to the file
75
75
  * - In browser: A File object
76
+ * @param agentId ID of the agent to associate with this upload
76
77
  * @param fileName Optional custom name for the file. If not provided:
77
78
  * - In Node.js: The basename of the file path is used
78
79
  * - In browser: The name property of the File object is used
79
- * @param agentId Optional ID of the agent to associate with this upload
80
80
  * @param metadata Optional additional metadata to associate with the file
81
81
  *
82
82
  * @returns Promise resolving to the API response data
@@ -95,7 +95,7 @@ class RabbitHoleEndpoint extends abstract_1.AbstractEndpoint {
95
95
  * const response = await rabbitHoleEndpoint.postFile('/path/to/document.pdf');
96
96
  * ```
97
97
  */
98
- async postFile(fileSource, fileName, agentId, metadata) {
98
+ async postFile(fileSource, agentId, fileName, metadata) {
99
99
  const form = (0, form_data_2.createFormData)();
100
100
  try {
101
101
  await this.appendFileToForm(form, fileSource, "file", fileName);
@@ -123,7 +123,7 @@ class RabbitHoleEndpoint extends abstract_1.AbstractEndpoint {
123
123
  * @param fileSources The sources of the file to upload:
124
124
  * - In Node.js: An array of strings path to the file
125
125
  * - In browser: An array of File objects
126
- * @param agentId Optional ID of the agent to associate with this upload
126
+ * @param agentId ID of the agent to associate with this upload
127
127
  * @param metadata Optional additional metadata to associate with the file
128
128
  *
129
129
  * @returns Promise resolving to the API response data
@@ -164,7 +164,7 @@ class RabbitHoleEndpoint extends abstract_1.AbstractEndpoint {
164
164
  * process.
165
165
  *
166
166
  * @param webUrl The URL of the web page to be ingested.
167
- * @param agentId The ID of the agent to be used for the upload. If not provided, the default agent will be used.
167
+ * @param agentId The ID of the agent to be used for the upload.
168
168
  * @param metadata Additional metadata to be associated with the web URL.
169
169
  *
170
170
  * @returns The response from the RabbitHole API.
@@ -178,17 +178,16 @@ class RabbitHoleEndpoint extends abstract_1.AbstractEndpoint {
178
178
  return response.data;
179
179
  }
180
180
  /**
181
- * This method posts a memory point, either for the agent identified by the agentId parameter (for multi-agent
182
- * installations) or for the default agent (for single-agent installations). The memory point is ingested into the
183
- * RAG system. The process is asynchronous. The provided file must be in JSON format.
181
+ * This method posts a memory point. The memory point is ingested into the RAG system. The process is asynchronous.
182
+ * The provided file must be in JSON format.
184
183
  * The CheshireCat processes the injection in the background, and the client will be informed at the end of the
185
184
  * process.
186
185
  *
187
186
  * @param fileSource The source of the file to upload:
188
187
  * - In Node.js: A string path to the file
189
188
  * - In browser: A File object
189
+ * @param agentId The ID of the agent to be used for the upload.
190
190
  * @param fileName The name of the file to be uploaded. If not provided, the name of the file will be used.
191
- * @param agentId The ID of the agent to be used for the upload. If not provided, the default agent will be used.
192
191
  *
193
192
  * @returns The response from the RabbitHole API.
194
193
  *
@@ -206,7 +205,7 @@ class RabbitHoleEndpoint extends abstract_1.AbstractEndpoint {
206
205
  * const response = await rabbitHoleEndpoint.postMemory('/path/to/document.json');
207
206
  * ```
208
207
  */
209
- async postMemory(fileSource, fileName, agentId) {
208
+ async postMemory(fileSource, agentId, fileName) {
210
209
  const form = new form_data_1.default();
211
210
  try {
212
211
  await this.appendFileToForm(form, fileSource, "file", fileName);
@@ -219,9 +218,6 @@ class RabbitHoleEndpoint extends abstract_1.AbstractEndpoint {
219
218
  /**
220
219
  * This method retrieves the allowed MIME types for the RabbitHole API. The allowed MIME types are the MIME types
221
220
  * that are allowed to be uploaded to the RabbitHole API. The allowed MIME types are returned in a list.
222
- * If the agentId parameter is provided, the allowed MIME types are retrieved for the agent identified by the
223
- * agentId parameter (for multi-agent installations). If the agentId parameter is not provided, the allowed MIME
224
- * types are retrieved for the default agent (for single-agent installations).
225
221
  *
226
222
  * @param agentId The ID of the agent to be used for the upload. If not provided, the default agent will be used.
227
223
  *
@@ -1 +1 @@
1
- {"version":3,"file":"rabbitHole.js","sourceRoot":"","sources":["../../src/endpoints/rabbitHole.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;GAMG;AACH,yCAA4C;AAC5C,0DAAiC;AACjC,sDAAuD;AACvD,sDAAwF;AACxF,kDAAsE;AAGtE,MAAa,kBAAmB,SAAQ,2BAAgB;IAC1C,MAAM,GAAG,aAAa,CAAC;IAEzB,UAAU,CAAC,UAAsB,EAAE,KAAU;QACjD,2DAA2D;QAC3D,IAAI,CAAC,IAAA,+BAAiB,GAAE,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE,CAAC;YACzD,MAAM,IAAI,KAAK,CAAC,oFAAoF,CAAC,CAAC;QAC1G,CAAC;aAAM,IAAI,IAAA,+BAAiB,GAAE,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE,CAAC;YAC/D,MAAM,IAAI,KAAK,CAAC,iEAAiE,CAAC,CAAC;QACvF,CAAC;QAED,8BAA8B;QAC9B,MAAM,KAAK,CAAC;IAChB,CAAC;IAEO,KAAK,CAAC,gBAAgB,CAC1B,IAAoC,EACpC,UAAsB,EACtB,OAAe,EACf,QAAwB;QAExB,sDAAsD;QACtD,MAAM,UAAU,GAAG,MAAM,IAAA,sBAAQ,EAAC,UAAU,CAAC,CAAC;QAE9C,2BAA2B;QAC3B,MAAM,aAAa,GAAG,QAAQ,IAAI,MAAM,IAAA,yBAAW,EAAC,UAAU,CAAC,CA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