stentor-models 1.59.31 → 1.59.33

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.
@@ -3,6 +3,7 @@ import { Message } from "../Message";
3
3
  import { IntentRequest, InputUnknownRequest } from "../Request";
4
4
  import { ActiveContext } from "../Response";
5
5
  import { KnowledgeBaseServiceFilters } from "../Services";
6
+ import { SessionStore } from "../Storage";
6
7
  /**
7
8
  * Slightly smaller intent request without the sessionId and other identifying information. It also doesn't pass through the original raw query.
8
9
  */
@@ -49,6 +50,10 @@ export interface NLURequestProps {
49
50
  * Current session transcript
50
51
  */
51
52
  transcript?: Message[];
53
+ /**
54
+ * Optional session store
55
+ */
56
+ session?: SessionStore;
52
57
  /**
53
58
  * Optional filters for knowledge base service calls
54
59
  */
@@ -88,9 +88,15 @@ export interface KnowledgeBaseSuggested extends KnowledgeBaseDocument {
88
88
  */
89
89
  export interface KnowledgeBaseFAQ {
90
90
  /**
91
- * The question
91
+ * The question that is the closest match
92
92
  */
93
93
  question: string;
94
+ /**
95
+ * Optional, some FAQ based systems can return multiple questions that match to the same answer. This will be populated if they exist.
96
+ *
97
+ * There most likely be a duplicate of the question field.
98
+ */
99
+ questions?: string[];
94
100
  /**
95
101
  * URI, either the source or a location where more information can be found.
96
102
  */
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "1.59.31",
7
+ "version": "1.59.33",
8
8
  "description": "Models for 📣 stentor",
9
9
  "types": "lib/index",
10
10
  "typings": "lib/index",
@@ -33,5 +33,5 @@
33
33
  "dependencies": {
34
34
  "@xapp/patterns": "2.0.2"
35
35
  },
36
- "gitHead": "bcfc16658bb6483e33119f4ea2c046fae3189b68"
36
+ "gitHead": "da6f13ca2b97acd1533be651d07311b30b83cc15"
37
37
  }