cheshirecat-typescript-client 1.2.3 → 1.2.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.
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 +4 -4
  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
@@ -34,7 +34,7 @@ class EmbedderEndpoint extends abstract_1.AbstractEndpoint {
34
34
  * @returns The updated settings of the embedder
35
35
  */
36
36
  async putEmbedderSettings(embedder, values) {
37
- return this.put(this.formatUrl(`/settings/${embedder}`), values, this.systemId);
37
+ return this.put(this.formatUrl(`/settings/${embedder}`), this.systemId, values);
38
38
  }
39
39
  }
40
40
  exports.EmbedderEndpoint = EmbedderEndpoint;
@@ -1 +1 @@
1
- {"version":3,"file":"embedder.js","sourceRoot":"","sources":["../../src/endpoints/embedder.ts"],"names":[],"mappings":";;;AACA,yCAA4C;AAE5C,MAAa,gBAAiB,SAAQ,2BAAgB;IACxC,MAAM,GAAG,WAAW,CAAC;IAE/B;;;;;OAKG;IACH,KAAK,CAAC,oBAAoB;QACtB,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,EAC3B,IAAI,CAAC,QAAQ,CAChB,CAAC;IACN,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,mBAAmB,CAAC,QAAgB;QACtC,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,SAAS,CAAC,aAAa,QAAQ,EAAE,CAAC,EACvC,IAAI,CAAC,QAAQ,CAChB,CAAC;IACN,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,mBAAmB,CAAC,QAAgB,EAAE,MAA2B;QACnE,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,SAAS,CAAC,aAAa,QAAQ,EAAE,CAAC,EACvC,MAAM,EACN,IAAI,CAAC,QAAQ,CAChB,CAAC;IACN,CAAC;CACJ;AA/CD,4CA+CC"}
1
+ {"version":3,"file":"embedder.js","sourceRoot":"","sources":["../../src/endpoints/embedder.ts"],"names":[],"mappings":";;;AACA,yCAA4C;AAE5C,MAAa,gBAAiB,SAAQ,2BAAgB;IACxC,MAAM,GAAG,WAAW,CAAC;IAE/B;;;;;OAKG;IACH,KAAK,CAAC,oBAAoB;QACtB,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,EAC3B,IAAI,CAAC,QAAQ,CAChB,CAAC;IACN,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,mBAAmB,CAAC,QAAgB;QACtC,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,SAAS,CAAC,aAAa,QAAQ,EAAE,CAAC,EACvC,IAAI,CAAC,QAAQ,CAChB,CAAC;IACN,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,mBAAmB,CAAC,QAAgB,EAAE,MAA2B;QACnE,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,SAAS,CAAC,aAAa,QAAQ,EAAE,CAAC,EACvC,IAAI,CAAC,QAAQ,EACb,MAAM,CACT,CAAC;IACN,CAAC;CACJ;AA/CD,4CA+CC"}
@@ -4,35 +4,32 @@ import { FileManagerAttributes } from "../models/api/fileManager";
4
4
  export declare class FileManagerEndpoint extends AbstractEndpoint {
5
5
  protected prefix: string;
6
6
  /**
7
- * This endpoint returns the settings of all plugin file managers, either for the agent identified by the agentId
8
- * parameter (for multi-agent installations) or for the default agent (for single-agent installations).
7
+ * This endpoint returns the settings of all plugin file managers.
9
8
  *
10
9
  * @param agentId The ID of the agent to get the settings of
11
10
  *
12
11
  * @returns the settings of all plugin file managers
13
12
  *
14
13
  */
15
- getFileManagersSettings(agentId?: string | null): Promise<FactoryObjectSettingsOutput>;
14
+ getFileManagersSettings(agentId: string): Promise<FactoryObjectSettingsOutput>;
16
15
  /**
17
- * This endpoint returns the settings of a specific plugin file manager, either for the agent identified by the agentId
18
- * parameter (for multi-agent installations) or for the default agent (for single-agent installations).
16
+ * This endpoint returns the settings of a specific plugin file manager.
19
17
  *
20
18
  * @param fileManager the name of the plugin file manager
21
19
  * @param agentId The ID of the agent to get the settings of
22
20
  *
23
21
  * @returns the settings of the specified plugin file manager
24
22
  */
25
- getFileManagerSettings(fileManager: string, agentId?: string | null): Promise<FactoryObjectSettingsOutput>;
23
+ getFileManagerSettings(fileManager: string, agentId: string): Promise<FactoryObjectSettingsOutput>;
26
24
  /**
27
- * This endpoint updates the settings of a specific Plugin file manager, either for the agent identified by the agentId
28
- * parameter (for multi-agent installations) or for the default agent (for single-agent installations).
25
+ * This endpoint updates the settings of a specific Plugin file manager.
29
26
  *
30
27
  * @param fileManager the name of the plugin file manager
31
- * @param values the new settings for the plugin file manager
32
28
  * @param agentId The ID of the agent to get the settings of
29
+ * @param values the new settings for the plugin file manager
33
30
  *
34
31
  * @returns the updated settings of the specified plugin file manager
35
32
  */
36
- putFileManagerSettings(fileManager: string, values: Record<string, any>, agentId?: string | null): Promise<FactoryObjectSettingsOutput>;
37
- getFileManagerAttributes(agentId?: string | null): Promise<FileManagerAttributes>;
33
+ putFileManagerSettings(fileManager: string, agentId: string, values: Record<string, any>): Promise<FactoryObjectSettingsOutput>;
34
+ getFileManagerAttributes(agentId: string): Promise<FileManagerAttributes>;
38
35
  }
@@ -5,8 +5,7 @@ const abstract_1 = require("./abstract");
5
5
  class FileManagerEndpoint extends abstract_1.AbstractEndpoint {
6
6
  prefix = '/file_manager';
7
7
  /**
8
- * This endpoint returns the settings of all plugin file managers, either for the agent identified by the agentId
9
- * parameter (for multi-agent installations) or for the default agent (for single-agent installations).
8
+ * This endpoint returns the settings of all plugin file managers.
10
9
  *
11
10
  * @param agentId The ID of the agent to get the settings of
12
11
  *
@@ -17,8 +16,7 @@ class FileManagerEndpoint extends abstract_1.AbstractEndpoint {
17
16
  return this.get(this.formatUrl("/settings"), agentId);
18
17
  }
19
18
  /**
20
- * This endpoint returns the settings of a specific plugin file manager, either for the agent identified by the agentId
21
- * parameter (for multi-agent installations) or for the default agent (for single-agent installations).
19
+ * This endpoint returns the settings of a specific plugin file manager.
22
20
  *
23
21
  * @param fileManager the name of the plugin file manager
24
22
  * @param agentId The ID of the agent to get the settings of
@@ -29,17 +27,16 @@ class FileManagerEndpoint extends abstract_1.AbstractEndpoint {
29
27
  return this.get(this.formatUrl(`/settings/${fileManager}`), agentId);
30
28
  }
31
29
  /**
32
- * This endpoint updates the settings of a specific Plugin file manager, either for the agent identified by the agentId
33
- * parameter (for multi-agent installations) or for the default agent (for single-agent installations).
30
+ * This endpoint updates the settings of a specific Plugin file manager.
34
31
  *
35
32
  * @param fileManager the name of the plugin file manager
36
- * @param values the new settings for the plugin file manager
37
33
  * @param agentId The ID of the agent to get the settings of
34
+ * @param values the new settings for the plugin file manager
38
35
  *
39
36
  * @returns the updated settings of the specified plugin file manager
40
37
  */
41
- async putFileManagerSettings(fileManager, values, agentId) {
42
- return this.put(this.formatUrl(`/settings/${fileManager}`), values, agentId);
38
+ async putFileManagerSettings(fileManager, agentId, values) {
39
+ return this.put(this.formatUrl(`/settings/${fileManager}`), agentId, values);
43
40
  }
44
41
  async getFileManagerAttributes(agentId) {
45
42
  return this.get(this.formatUrl("/"), agentId);
@@ -1 +1 @@
1
- {"version":3,"file":"fileManager.js","sourceRoot":"","sources":["../../src/endpoints/fileManager.ts"],"names":[],"mappings":";;;AAAA,yCAA4C;AAI5C,MAAa,mBAAoB,SAAQ,2BAAgB;IAC3C,MAAM,GAAG,eAAe,CAAC;IAEnC;;;;;;;;OAQG;IACH,KAAK,CAAC,uBAAuB,CAAC,OAAuB;QACjD,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,EAC3B,OAAO,CACV,CAAC;IACN,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,sBAAsB,CAAC,WAAmB,EAAE,OAAuB;QACrE,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,SAAS,CAAC,aAAa,WAAW,EAAE,CAAC,EAC1C,OAAO,CACV,CAAC;IACN,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,sBAAsB,CACxB,WAAmB,EACnB,MAA2B,EAC3B,OAAuB;QAEvB,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,SAAS,CAAC,aAAa,WAAW,EAAE,CAAC,EAC1C,MAAM,EACN,OAAO,CACV,CAAC;IACN,CAAC;IAED,KAAK,CAAC,wBAAwB,CAAC,OAAuB;QAClD,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EACnB,OAAO,CACV,CAAC;IACN,CAAC;CACJ;AA/DD,kDA+DC"}
1
+ {"version":3,"file":"fileManager.js","sourceRoot":"","sources":["../../src/endpoints/fileManager.ts"],"names":[],"mappings":";;;AAAA,yCAA4C;AAI5C,MAAa,mBAAoB,SAAQ,2BAAgB;IAC3C,MAAM,GAAG,eAAe,CAAC;IAEnC;;;;;;;OAOG;IACH,KAAK,CAAC,uBAAuB,CAAC,OAAe;QACzC,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,EAC3B,OAAO,CACV,CAAC;IACN,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,sBAAsB,CAAC,WAAmB,EAAE,OAAe;QAC7D,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,SAAS,CAAC,aAAa,WAAW,EAAE,CAAC,EAC1C,OAAO,CACV,CAAC;IACN,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,sBAAsB,CACxB,WAAmB,EACnB,OAAe,EACf,MAA2B;QAE3B,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,SAAS,CAAC,aAAa,WAAW,EAAE,CAAC,EAC1C,OAAO,EACP,MAAM,CACT,CAAC;IACN,CAAC;IAED,KAAK,CAAC,wBAAwB,CAAC,OAAe;QAC1C,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EACnB,OAAO,CACV,CAAC;IACN,CAAC;CACJ;AA5DD,kDA4DC"}
@@ -3,33 +3,30 @@ import { FactoryObjectSettingOutput, FactoryObjectSettingsOutput } from "../mode
3
3
  export declare class LargeLanguageModelEndpoint extends AbstractEndpoint {
4
4
  protected prefix: string;
5
5
  /**
6
- * This endpoint returns the settings of all large language models, either for the agent identified by the agentId
7
- * parameter (for multi-agent installations) or for the default agent (for single-agent installations).
6
+ * This endpoint returns the settings of all large language models.
8
7
  *
9
8
  * @param agentId The ID of the agent to get the settings of
10
9
  *
11
10
  * @returns The settings of all the large language models
12
11
  */
13
- getLargeLanguageModelsSettings(agentId?: string | null): Promise<FactoryObjectSettingsOutput>;
12
+ getLargeLanguageModelsSettings(agentId: string): Promise<FactoryObjectSettingsOutput>;
14
13
  /**
15
- * This endpoint returns the settings of a specific large language model, either for the agent identified by the
16
- * agentId parameter (for multi-agent installations) or for the default agent (for single-agent installations).
14
+ * This endpoint returns the settings of a specific large language model.
17
15
  *
18
16
  * @param llm The name of the large language model to get the settings of
19
17
  * @param agentId The ID of the agent to get the settings of
20
18
  *
21
19
  * @returns The settings of the large language model
22
20
  */
23
- getLargeLanguageModelSettings(llm: string, agentId?: string | null): Promise<FactoryObjectSettingOutput>;
21
+ getLargeLanguageModelSettings(llm: string, agentId: string): Promise<FactoryObjectSettingOutput>;
24
22
  /**
25
- * This endpoint updates the settings of a specific large language model, either for the agent identified by the
26
- * agentId parameter (for multi-agent installations) or for the default agent (for single-agent installations).
23
+ * This endpoint updates the settings of a specific large language model.
27
24
  *
28
25
  * @param llm The name of the large language model to update the settings of
29
- * @param values The new settings of the large language model
30
26
  * @param agentId The ID of the agent to update the settings of
27
+ * @param values The new settings of the large language model
31
28
  *
32
29
  * @returns The updated settings of the large language model
33
30
  */
34
- putLargeLanguageModelSettings(llm: string, values: Record<string, any>, agentId?: string | null): Promise<FactoryObjectSettingOutput>;
31
+ putLargeLanguageModelSettings(llm: string, agentId: string, values: Record<string, any>): Promise<FactoryObjectSettingOutput>;
35
32
  }
@@ -5,8 +5,7 @@ const abstract_1 = require("./abstract");
5
5
  class LargeLanguageModelEndpoint extends abstract_1.AbstractEndpoint {
6
6
  prefix = "/llm";
7
7
  /**
8
- * This endpoint returns the settings of all large language models, either for the agent identified by the agentId
9
- * parameter (for multi-agent installations) or for the default agent (for single-agent installations).
8
+ * This endpoint returns the settings of all large language models.
10
9
  *
11
10
  * @param agentId The ID of the agent to get the settings of
12
11
  *
@@ -16,8 +15,7 @@ class LargeLanguageModelEndpoint extends abstract_1.AbstractEndpoint {
16
15
  return this.get(this.formatUrl("/settings"), agentId);
17
16
  }
18
17
  /**
19
- * This endpoint returns the settings of a specific large language model, either for the agent identified by the
20
- * agentId parameter (for multi-agent installations) or for the default agent (for single-agent installations).
18
+ * This endpoint returns the settings of a specific large language model.
21
19
  *
22
20
  * @param llm The name of the large language model to get the settings of
23
21
  * @param agentId The ID of the agent to get the settings of
@@ -28,17 +26,16 @@ class LargeLanguageModelEndpoint extends abstract_1.AbstractEndpoint {
28
26
  return this.get(this.formatUrl(`/settings/${llm}`), agentId);
29
27
  }
30
28
  /**
31
- * This endpoint updates the settings of a specific large language model, 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 endpoint updates the settings of a specific large language model.
33
30
  *
34
31
  * @param llm The name of the large language model to update the settings of
35
- * @param values The new settings of the large language model
36
32
  * @param agentId The ID of the agent to update the settings of
33
+ * @param values The new settings of the large language model
37
34
  *
38
35
  * @returns The updated settings of the large language model
39
36
  */
40
- async putLargeLanguageModelSettings(llm, values, agentId) {
41
- return this.put(this.formatUrl(`/settings/${llm}`), values, agentId);
37
+ async putLargeLanguageModelSettings(llm, agentId, values) {
38
+ return this.put(this.formatUrl(`/settings/${llm}`), agentId, values);
42
39
  }
43
40
  }
44
41
  exports.LargeLanguageModelEndpoint = LargeLanguageModelEndpoint;
@@ -1 +1 @@
1
- {"version":3,"file":"largeLanguageModel.js","sourceRoot":"","sources":["../../src/endpoints/largeLanguageModel.ts"],"names":[],"mappings":";;;AAAA,yCAA4C;AAG5C,MAAa,0BAA2B,SAAQ,2BAAgB;IAClD,MAAM,GAAG,MAAM,CAAC;IAE1B;;;;;;;OAOG;IACH,KAAK,CAAC,8BAA8B,CAAC,OAAuB;QACxD,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,EAC3B,OAAO,CACV,CAAC;IACN,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,6BAA6B,CAAC,GAAW,EAAE,OAAuB;QACpE,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,SAAS,CAAC,aAAa,GAAG,EAAE,CAAC,EAClC,OAAO,CACV,CAAC;IACN,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,6BAA6B,CAC/B,GAAW,EACX,MAA2B,EAC3B,OAAuB;QAEvB,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,SAAS,CAAC,aAAa,GAAG,EAAE,CAAC,EAClC,MAAM,EACN,OAAO,CACV,CAAC;IACN,CAAC;CACJ;AAvDD,gEAuDC"}
1
+ {"version":3,"file":"largeLanguageModel.js","sourceRoot":"","sources":["../../src/endpoints/largeLanguageModel.ts"],"names":[],"mappings":";;;AAAA,yCAA4C;AAG5C,MAAa,0BAA2B,SAAQ,2BAAgB;IAClD,MAAM,GAAG,MAAM,CAAC;IAE1B;;;;;;OAMG;IACH,KAAK,CAAC,8BAA8B,CAAC,OAAe;QAChD,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,EAC3B,OAAO,CACV,CAAC;IACN,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,6BAA6B,CAAC,GAAW,EAAE,OAAe;QAC5D,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,SAAS,CAAC,aAAa,GAAG,EAAE,CAAC,EAClC,OAAO,CACV,CAAC;IACN,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,6BAA6B,CAC/B,GAAW,EACX,OAAe,EACf,MAA2B;QAE3B,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,SAAS,CAAC,aAAa,GAAG,EAAE,CAAC,EAClC,OAAO,EACP,MAAM,CACT,CAAC;IACN,CAAC;CACJ;AApDD,gEAoDC"}
@@ -6,147 +6,128 @@ import { Why } from "../models/dtos";
6
6
  export declare class MemoryEndpoint extends AbstractEndpoint {
7
7
  protected prefix: string;
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
  */
16
- getMemoryCollections(agentId?: string | null): Promise<CollectionsOutput>;
15
+ getMemoryCollections(agentId: string): Promise<CollectionsOutput>;
17
16
  /**
18
- * This endpoint deletes the all the points in all the collections of memory, either for the agent identified by
19
- * the agentId parameter (for multi-agent installations) or for the default agent (for single-agent installations).
17
+ * This endpoint deletes all the points in all the collections of memory.
20
18
  *
21
- * @param agentId The agent ID for multi-agent installations.
19
+ * @param agentId The agent ID.
22
20
  *
23
21
  * @returns The output of the deletion operation.
24
22
  */
25
- deleteAllMemoryCollectionPoints(agentId?: string | null): Promise<CollectionPointsDestroyOutput>;
23
+ deleteAllMemoryCollectionPoints(agentId: string): Promise<CollectionPointsDestroyOutput>;
26
24
  /**
27
- * This method deletes all the points in a single collection of memory, either for the agent identified by the
28
- * agentId parameter (for multi-agent installations) or for the default agent (for single-agent installations).
25
+ * This method deletes all the points in a single collection of memory.
29
26
  *
30
27
  * @param collection The collection to delete the points from.
31
- * @param agentId The agent ID for multi-agent installations.
28
+ * @param agentId The agent ID.
32
29
  *
33
30
  * @returns The output of the deletion operation.
34
31
  */
35
- deleteAllSingleMemoryCollectionPoints(collection: Collection, agentId?: string | null): Promise<CollectionPointsDestroyOutput>;
32
+ deleteAllSingleMemoryCollectionPoints(collection: Collection, agentId: string): Promise<CollectionPointsDestroyOutput>;
36
33
  /**
37
- * This endpoint returns the conversation history, either for the agent identified by the agentId parameter
38
- * (for multi-agent installations) or for the default agent (for single-agent installations). If the userId
39
- * parameter is provided, the conversation history is filtered by the user ID.
34
+ * This endpoint returns the conversation history.
40
35
  *
41
- * @param agentId The agent ID for multi-agent installations.
36
+ * @param agentId The agent ID.
42
37
  * @param userId The user ID to filter the conversation history by.
43
38
  *
44
39
  * @returns The conversation history.
45
40
  */
46
- getConversationHistory(agentId?: string | null, userId?: string | null): Promise<ConversationHistoryOutput>;
41
+ getConversationHistory(agentId: string, userId: string): Promise<ConversationHistoryOutput>;
47
42
  /**
48
- * This endpoint deletes the conversation history, either for the agent identified by the agentId parameter
49
- * (for multi-agent installations) or for the default agent (for single-agent installations). If the userId
50
- * parameter is provided, the conversation history is filtered by the user ID.
43
+ * This endpoint deletes the conversation history.
51
44
  *
52
- * @param agentId The agent ID for multi-agent installations.
45
+ * @param agentId The agent ID.
53
46
  * @param userId The user ID to filter the conversation history by.
54
47
  *
55
48
  * @returns The output of the deletion operation.
56
49
  */
57
- deleteConversationHistory(agentId?: string | null, userId?: string | null): Promise<ConversationHistoryDeleteOutput>;
50
+ deleteConversationHistory(agentId: string, userId: string): Promise<ConversationHistoryDeleteOutput>;
58
51
  /**
59
- * This endpoint creates a new element in the conversation history, either for the agent identified by the agentId
60
- * parameter (for multi-agent installations) or for the default agent (for single-agent installations). If the
61
- * userId parameter is provided, the conversation history is added to the user ID.
52
+ * This endpoint creates a new element in the conversation history.
62
53
  *
63
54
  * @param who The speaker of the conversation history.
64
55
  * @param text The text of the conversation history.
56
+ * @param agentId The agent ID.
57
+ * @param userId The user ID to add the conversation history to.
65
58
  * @param image The image of the conversation history.
66
59
  * @param why The reason for the conversation history.
67
- * @param agentId The agent ID for multi-agent installations.
68
- * @param userId The user ID to add the conversation history to.
69
60
  *
70
61
  * @returns The conversation history.
71
62
  */
72
- postConversationHistory(who: Role, text: string, image?: string | null, why?: Why | null, agentId?: string | null, userId?: string | null): Promise<ConversationHistoryOutput>;
63
+ postConversationHistory(who: Role, text: string, agentId: string, userId: string, image?: string | null, why?: Why | null): Promise<ConversationHistoryOutput>;
73
64
  /**
74
- * This endpoint retrieves memory points based on the input text, either for the agent identified by the agentId
75
- * parameter (for multi-agent installations) or for the default agent (for single-agent installations). The text
76
- * parameter is the input text for which the memory points are retrieved. The k parameter is the number of memory
77
- * points to retrieve.
78
- * If the userId parameter is provided, the memory points are filtered by the user ID.
65
+ * This endpoint retrieves memory points based on the input text. The text parameter is the input text for which the
66
+ * memory points are retrieved. The k parameter is the number of memory points to retrieve.
79
67
  *
80
68
  * @param text The input text for which the memory points are retrieved.
69
+ * @param agentId The agent ID.
70
+ * @param userId The user ID to filter the memory points by.
81
71
  * @param k The number of memory points to retrieve.
82
72
  * @param metadata The metadata to filter the memory points by.
83
- * @param agentId The agent ID for multi-agent installations.
84
- * @param userId The user ID to filter the memory points by.
85
73
  *
86
74
  * @returns The memory recall output.
87
75
  */
88
- getMemoryRecall(text: string, k?: number | null, metadata?: any, agentId?: string | null, userId?: string | null): Promise<MemoryRecallOutput>;
76
+ getMemoryRecall(text: string, agentId: string, userId: string, k?: number | null, metadata?: any): Promise<MemoryRecallOutput>;
89
77
  /**
90
- * This method posts a memory point, either for the agent identified by the agentId parameter (for multi-agent
91
- * installations) or for the default agent (for single-agent installations).
92
- * If the userId parameter is provided, the memory point is associated with the user ID.
78
+ * This method posts a memory point.
93
79
  *
94
80
  * @param collection The collection to post the memory point to.
95
- * @param memoryPoint The memory point to post.
96
- * @param agentId The agent ID for multi-agent installations.
81
+ * @param agentId The agent ID.
97
82
  * @param userId The user ID to associate the memory point with.
83
+ * @param memoryPoint The memory point to post.
98
84
  *
99
85
  * @returns The memory point output.
100
86
  */
101
- postMemoryPoint(collection: Collection, memoryPoint: MemoryPointOutput, agentId?: string | null, userId?: string | null): Promise<MemoryPointOutput>;
87
+ postMemoryPoint(collection: Collection, agentId: string, userId: string, memoryPoint: MemoryPointOutput): Promise<MemoryPointOutput>;
102
88
  /**
103
- * This method puts a memory point, either for the agent identified by the agentId parameter (for multi-agent
104
- * installations) or for the default agent (for single-agent installations).
105
- * If the userId parameter is provided, the memory point is associated with the user ID.
89
+ * This method puts a memory point.
106
90
  *
107
91
  * @param collection The collection to put the memory point to.
92
+ * @param agentId The agent ID.
93
+ * @param userId The user ID to associate the memory point with.
108
94
  * @param memoryPoint The memory point to put.
109
95
  * @param pointId The ID of the memory point to put.
110
- * @param agentId The agent ID for multi-agent installations.
111
- * @param userId The user ID to associate the memory point with.
112
96
  *
113
97
  * @returns The memory point output.
114
98
  */
115
- putMemoryPoint(collection: Collection, memoryPoint: MemoryPointOutput, pointId: string, agentId?: string | null, userId?: string | null): Promise<MemoryPointOutput>;
99
+ putMemoryPoint(collection: Collection, agentId: string, userId: string, memoryPoint: MemoryPointOutput, pointId: string): Promise<MemoryPointOutput>;
116
100
  /**
117
- * This endpoint deletes a memory point, either for the agent identified by the agentId parameter (for multi-agent
118
- * installations) or for the default agent (for single-agent installations).
101
+ * This endpoint deletes a memory point, either for the agent identified by the agentId parameter.
119
102
  *
120
103
  * @param collection The collection to retrieve the memory point from.
121
104
  * @param pointId The ID of the memory point to retrieve.
122
- * @param agentId The agent ID for multi-agent installations.
105
+ * @param agentId The agent ID.
123
106
  *
124
107
  * @returns The memory point output.
125
108
  */
126
- deleteMemoryPoint(collection: Collection, pointId: string, agentId?: string | null): Promise<MemoryPointDeleteOutput>;
109
+ deleteMemoryPoint(collection: Collection, pointId: string, agentId: string): Promise<MemoryPointDeleteOutput>;
127
110
  /**
128
- * This endpoint deletes memory points based on the metadata, either for the agent identified by the agentId
129
- * parameter (for multi-agent installations) or for the default agent (for single-agent installations). The metadata
130
- * parameter is a dictionary of key-value pairs that the memory points must match.
111
+ * This endpoint deletes memory points based on the metadata. The metadata parameter is a dictionary of key-value
112
+ * pairs that the memory points must match.
131
113
  *
132
114
  * @param collection The collection to retrieve the memory points from.
115
+ * @param agentId The agent ID.
133
116
  * @param metadata The metadata to filter the memory points by.
134
- * @param agentId The agent ID for multi-agent installations.
135
117
  *
136
118
  * @returns The output of the deletion operation.
137
119
  */
138
- deleteMemoryPointsByMetadata(collection: Collection, metadata?: any, agentId?: string | null): Promise<MemoryPointsDeleteByMetadataOutput>;
120
+ deleteMemoryPointsByMetadata(collection: Collection, agentId: string, metadata?: any): Promise<MemoryPointsDeleteByMetadataOutput>;
139
121
  /**
140
- * This endpoint retrieves memory points, either for the agent identified by the agentId parameter (for multi-agent
141
- * installations) or for the default agent (for single-agent installations). The limit parameter is the maximum
142
- * number of memory points to retrieve. The offset parameter is the number of memory points to skip.
122
+ * This endpoint retrieves memory points. The limit parameter is the maximum number of memory points to retrieve.
123
+ * The offset parameter is the number of memory points to skip.
143
124
  *
144
125
  * @param collection The collection to retrieve the memory points from.
126
+ * @param agentId The agent ID.
145
127
  * @param limit The maximum number of memory points to retrieve.
146
128
  * @param offset The number of memory points to skip.
147
- * @param agentId The agent ID for multi-agent installations.
148
129
  *
149
130
  * @returns The memory points output.
150
131
  */
151
- getMemoryPoints(collection: Collection, limit?: number | null, offset?: number | null, agentId?: string | null): Promise<MemoryPointsOutput>;
132
+ getMemoryPoints(collection: Collection, agentId: string, limit?: number | null, offset?: number | null): Promise<MemoryPointsOutput>;
152
133
  }
@@ -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 }),