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
@@ -1 +1 @@
1
- {"version":3,"file":"customEndpoint.js","sourceRoot":"","sources":["../../src/endpoints/customEndpoint.ts"],"names":[],"mappings":";;;AAAA,yCAA4C;AAE5C,MAAa,cAAe,SAAQ,2BAAgB;IAChD;;OAEG;IACH,KAAK,CAAC,SAAS,CAAC,GAAW,EAAE,OAAuB,EAAE,MAAsB;QACxE,OAAO,IAAI,CAAC,GAAG,CAAM,GAAG,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC/C,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,UAAU,CAAC,GAAW,EAAE,OAAa,EAAE,OAAuB,EAAE,MAAsB;QACxF,OAAO,IAAI,CAAC,IAAI,CAAM,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACzD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,SAAS,CAAC,GAAW,EAAE,OAAa,EAAE,OAAuB,EAAE,MAAsB;QACvF,OAAO,IAAI,CAAC,GAAG,CAAM,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACxD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,YAAY,CAAC,GAAW,EAAE,OAAa,EAAE,OAAuB,EAAE,MAAsB;QAC1F,OAAO,IAAI,CAAC,MAAM,CAAM,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;CACJ;AA5BD,wCA4BC"}
1
+ {"version":3,"file":"customEndpoint.js","sourceRoot":"","sources":["../../src/endpoints/customEndpoint.ts"],"names":[],"mappings":";;;AAAA,yCAA4C;AAE5C,MAAa,cAAe,SAAQ,2BAAgB;IAChD;;OAEG;IACH,KAAK,CAAC,SAAS,CAAC,GAAW,EAAE,OAAe,EAAE,MAAsB,EAAE,KAAW;QAC7E,OAAO,IAAI,CAAC,GAAG,CAAM,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IACtD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,UAAU,CAAC,GAAW,EAAE,OAAe,EAAE,OAAa,EAAE,MAAsB;QAChF,OAAO,IAAI,CAAC,IAAI,CAAM,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACzD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,SAAS,CAAC,GAAW,EAAE,OAAe,EAAE,OAAa,EAAE,MAAsB;QAC/E,OAAO,IAAI,CAAC,GAAG,CAAM,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACxD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,YAAY,CAAC,GAAW,EAAE,OAAe,EAAE,MAAsB,EAAE,OAAa;QAClF,OAAO,IAAI,CAAC,MAAM,CAAM,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;CACJ;AA5BD,wCA4BC"}
@@ -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
  }