stentor-models 1.57.211 → 1.58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,11 @@
1
1
  /*! Copyright (c) 2021, XAPPmedia */
2
2
  import { KnowledgeBaseGenerated, KnowledgeBaseResult } from "../Request";
3
+ /**
4
+ * Filters for searching.
5
+ *
6
+ * In order to leverage these, you must add them to the document when it is indexed.
7
+ */
8
+ export type KnowledgeBaseServiceFilters = "locationId" | string;
3
9
  /**
4
10
  * A knowledge base that can be queried
5
11
  */
@@ -12,6 +18,9 @@ export interface KnowledgeBaseService {
12
18
  */
13
19
  query(query: string, options?: {
14
20
  controller?: AbortController;
21
+ filters?: {
22
+ [key: KnowledgeBaseServiceFilters]: string;
23
+ };
15
24
  }): Promise<KnowledgeBaseResult>;
16
25
  /**
17
26
  * Retrieval Augmented Generation Response
@@ -22,5 +31,8 @@ export interface KnowledgeBaseService {
22
31
  rag?(query: string, options?: {
23
32
  controller?: AbortController;
24
33
  temperature?: number;
34
+ filters?: {
35
+ [key: KnowledgeBaseServiceFilters]: string;
36
+ };
25
37
  }): Promise<KnowledgeBaseGenerated>;
26
38
  }
package/lib/index.d.ts CHANGED
@@ -1,43 +1,43 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
- export * from "./Action";
3
- export * from "./App";
4
- export * from "./Channel";
5
- export * from "./Conditional";
2
+ export type * from "./Action";
3
+ export type * from "./App";
4
+ export type * from "./Channel";
5
+ export type * from "./Conditional";
6
6
  export * from "./Context";
7
- export * from "./Contextual";
8
- export * from "./Crm";
9
- export * from "./DateTime";
10
- export * from "./DelegatingHandler";
11
- export * from "./DeliveryAddress";
12
- export * from "./Device";
13
- export * from "./Display";
14
- export * from "./Email";
15
- export * from "./Entity";
16
- export * from "./Events";
17
- export * from "./Handler";
18
- export * from "./History";
19
- export * from "./Intent";
20
- export * from "./JSONDependent";
21
- export * from "./Knowledgebase";
22
- export * from "./Locale";
23
- export * from "./Location";
24
- export * from "./Logic";
25
- export * from "./Match";
26
- export * from "./Media";
27
- export * from "./Message";
28
- export * from "./NLU";
29
- export * from "./Path";
30
- export * from "./Pii";
31
- export * from "./Request";
32
- export * from "./RequestHandler";
7
+ export type * from "./Contextual";
8
+ export type * from "./Crm";
9
+ export type * from "./DateTime";
10
+ export type * from "./DelegatingHandler";
11
+ export type * from "./DeliveryAddress";
12
+ export type * from "./Device";
13
+ export type * from "./Display";
14
+ export type * from "./Email";
15
+ export type * from "./Entity";
16
+ export type * from "./Events";
17
+ export type * from "./Handler";
18
+ export type * from "./History";
19
+ export type * from "./Intent";
20
+ export type * from "./JSONDependent";
21
+ export type * from "./Knowledgebase";
22
+ export type * from "./Locale";
23
+ export type * from "./Location";
24
+ export type * from "./Logic";
25
+ export type * from "./Match";
26
+ export type * from "./Media";
27
+ export type * from "./Message";
28
+ export type * from "./NLU";
29
+ export type * from "./Path";
30
+ export type * from "./Pii";
31
+ export type * from "./Request";
32
+ export type * from "./RequestHandler";
33
33
  export * from "./Response";
34
- export * from "./Runtime";
35
- export * from "./Services";
36
- export * from "./Slot";
37
- export * from "./SMS";
38
- export * from "./Storage";
39
- export * from "./Suggestion";
40
- export * from "./TransactionData";
41
- export * from "./UserData";
42
- export * from "./UserProfile";
43
- export * from "./UtteranceTest";
34
+ export type * from "./Runtime";
35
+ export type * from "./Services";
36
+ export type * from "./Slot";
37
+ export type * from "./SMS";
38
+ export type * from "./Storage";
39
+ export type * from "./Suggestion";
40
+ export type * from "./TransactionData";
41
+ export type * from "./UserData";
42
+ export type * from "./UserProfile";
43
+ export type * from "./UtteranceTest";
package/lib/index.js CHANGED
@@ -14,47 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- /*! Copyright (c) 2019, XAPPmedia */
18
- __exportStar(require("./Action"), exports);
19
- __exportStar(require("./App"), exports);
20
- __exportStar(require("./Channel"), exports);
21
- __exportStar(require("./Conditional"), exports);
22
17
  __exportStar(require("./Context"), exports);
23
- __exportStar(require("./Contextual"), exports);
24
- __exportStar(require("./Crm"), exports);
25
- __exportStar(require("./DateTime"), exports);
26
- __exportStar(require("./DelegatingHandler"), exports);
27
- __exportStar(require("./DeliveryAddress"), exports);
28
- __exportStar(require("./Device"), exports);
29
- __exportStar(require("./Display"), exports);
30
- __exportStar(require("./Email"), exports);
31
- __exportStar(require("./Entity"), exports);
32
- __exportStar(require("./Events"), exports);
33
- __exportStar(require("./Handler"), exports);
34
- __exportStar(require("./History"), exports);
35
- __exportStar(require("./Intent"), exports);
36
- __exportStar(require("./JSONDependent"), exports);
37
- __exportStar(require("./Knowledgebase"), exports);
38
- __exportStar(require("./Locale"), exports);
39
- __exportStar(require("./Location"), exports);
40
- __exportStar(require("./Logic"), exports);
41
- __exportStar(require("./Match"), exports);
42
- __exportStar(require("./Media"), exports);
43
- __exportStar(require("./Message"), exports);
44
- __exportStar(require("./NLU"), exports);
45
- __exportStar(require("./Path"), exports);
46
- __exportStar(require("./Pii"), exports);
47
- __exportStar(require("./Request"), exports);
48
- __exportStar(require("./RequestHandler"), exports);
49
18
  __exportStar(require("./Response"), exports);
50
- __exportStar(require("./Runtime"), exports);
51
- __exportStar(require("./Services"), exports);
52
- __exportStar(require("./Slot"), exports);
53
- __exportStar(require("./SMS"), exports);
54
- __exportStar(require("./Storage"), exports);
55
- __exportStar(require("./Suggestion"), exports);
56
- __exportStar(require("./TransactionData"), exports);
57
- __exportStar(require("./UserData"), exports);
58
- __exportStar(require("./UserProfile"), exports);
59
- __exportStar(require("./UtteranceTest"), exports);
60
19
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oCAAoC;AACpC,2CAAyB;AACzB,wCAAsB;AACtB,4CAA0B;AAC1B,gDAA8B;AAC9B,4CAA0B;AAC1B,+CAA6B;AAC7B,wCAAsB;AACtB,6CAA2B;AAC3B,sDAAoC;AACpC,oDAAkC;AAClC,2CAAyB;AACzB,4CAA0B;AAC1B,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,4CAA0B;AAC1B,4CAA0B;AAC1B,2CAAyB;AACzB,kDAAgC;AAChC,kDAAgC;AAChC,2CAAyB;AACzB,6CAA2B;AAC3B,0CAAwB;AACxB,0CAAwB;AACxB,0CAAwB;AACxB,4CAA0B;AAC1B,wCAAsB;AACtB,yCAAuB;AACvB,wCAAsB;AACtB,4CAA0B;AAC1B,mDAAiC;AACjC,6CAA2B;AAC3B,4CAA0B;AAC1B,6CAA2B;AAC3B,yCAAuB;AACvB,wCAAsB;AACtB,4CAA0B;AAC1B,+CAA6B;AAC7B,oDAAkC;AAClC,6CAA2B;AAC3B,gDAA8B;AAC9B,kDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAKA,4CAA0B;AA2B1B,6CAA2B"}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "1.57.211",
7
+ "version": "1.58.0",
8
8
  "description": "Models for 📣 stentor",
9
9
  "types": "lib/index",
10
10
  "typings": "lib/index",
@@ -22,7 +22,7 @@
22
22
  "@xapp/config": "0.2.3",
23
23
  "rollup": "3.28.1",
24
24
  "tslib": "2.6.2",
25
- "typescript": "5.1.6"
25
+ "typescript": "5.2.2"
26
26
  },
27
27
  "scripts": {
28
28
  "api": "api-extractor run --local",
@@ -33,5 +33,5 @@
33
33
  "dependencies": {
34
34
  "@xapp/patterns": "2.0.1"
35
35
  },
36
- "gitHead": "9a2e32f321e3b4e48c5aaa4d1f60a2b5848b6258"
36
+ "gitHead": "a88b1dae3d88406768e35a7d78e876477f682baf"
37
37
  }