stentor-models 1.49.1 → 1.50.8
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.
- package/lib/NLU/NLUService.d.ts +18 -0
- package/package.json +3 -3
package/lib/NLU/NLUService.d.ts
CHANGED
|
@@ -8,13 +8,31 @@ export interface NLUQueryResponse {
|
|
|
8
8
|
knowledgeAnswer?: KnowledgeAnswer;
|
|
9
9
|
}
|
|
10
10
|
export interface NLURequestProps {
|
|
11
|
+
/**
|
|
12
|
+
* Optional locale to request, defaults to "en"
|
|
13
|
+
*/
|
|
14
|
+
locale?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Optional userId to pass with the request
|
|
17
|
+
*/
|
|
11
18
|
userId?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Optional sessionId to pass with the request
|
|
21
|
+
*/
|
|
12
22
|
sessionId?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Optional active context to pass with the request, used to weight
|
|
25
|
+
* certain intents.
|
|
26
|
+
*/
|
|
13
27
|
activeContext?: ActiveContext[];
|
|
28
|
+
requestAttributes?: {
|
|
29
|
+
[key: string]: string;
|
|
30
|
+
};
|
|
14
31
|
}
|
|
15
32
|
/**
|
|
16
33
|
* Service which can turn raw text into an intent and slots (optional).
|
|
17
34
|
*/
|
|
18
35
|
export interface NLUService {
|
|
19
36
|
query(q: string, props?: NLURequestProps): Promise<NLUQueryResponse>;
|
|
37
|
+
setContext?(props: NLURequestProps): Promise<void>;
|
|
20
38
|
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.
|
|
7
|
+
"version": "1.50.8",
|
|
8
8
|
"description": "Models for 📣 stentor",
|
|
9
9
|
"types": "lib/index",
|
|
10
10
|
"typings": "lib/index",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"node": "^10 || ^12 || ^14"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@microsoft/api-extractor": "7.19.
|
|
20
|
+
"@microsoft/api-extractor": "7.19.4",
|
|
21
21
|
"@rollup/plugin-typescript": "8.3.0",
|
|
22
22
|
"@xapp/config": "0.2.3",
|
|
23
23
|
"rollup": "2.62.0",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@xapp/patterns": "1.39.30"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "1cf822a6b9d370bfacba64bf5d5f040ea3927920"
|
|
37
37
|
}
|