stentor-models 1.57.96 → 1.57.101
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 +13 -20
- package/package.json +3 -3
package/lib/NLU/NLUService.d.ts
CHANGED
|
@@ -1,25 +1,18 @@
|
|
|
1
1
|
/*! Copyright (c) 2019, XAPPmedia */
|
|
2
|
-
import {
|
|
2
|
+
import { IntentRequest, InputUnknownRequest } from "../Request";
|
|
3
3
|
import { ActiveContext } from "../Response";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
*/
|
|
17
|
-
matchConfidence?: number;
|
|
18
|
-
/**
|
|
19
|
-
* Some NLUs will also return knowledgebase results.
|
|
20
|
-
*/
|
|
21
|
-
knowledgeAnswer?: KnowledgeAnswer;
|
|
22
|
-
}
|
|
4
|
+
/**
|
|
5
|
+
* Slightly smaller intent request without the sessionId and other identifying information. It also doesn't pass through the original raw query.
|
|
6
|
+
*/
|
|
7
|
+
export type NLUIntentRequest = Pick<IntentRequest, "type" | "intentId" | "slots" | "matchConfidence" | "knowledgeAnswer" | "knowledgeBaseResult" | "sentimentAnalysis">;
|
|
8
|
+
/**
|
|
9
|
+
* Slightly smaller input unknown request without a sessionId and other identifying information. It also doesn't pass through the original raw query.
|
|
10
|
+
*/
|
|
11
|
+
export type NLUInputUnknownRequest = Pick<InputUnknownRequest, "type" | "intentId" | "knowledgeBaseResult" | "sentimentAnalysis">;
|
|
12
|
+
/**
|
|
13
|
+
* Response from the NLU
|
|
14
|
+
*/
|
|
15
|
+
export type NLUQueryResponse = NLUIntentRequest | NLUInputUnknownRequest;
|
|
23
16
|
export interface NLURequestProps {
|
|
24
17
|
/**
|
|
25
18
|
* Optional locale to request, defaults to "en"
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.57.
|
|
7
|
+
"version": "1.57.101",
|
|
8
8
|
"description": "Models for 📣 stentor",
|
|
9
9
|
"types": "lib/index",
|
|
10
10
|
"typings": "lib/index",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@microsoft/api-extractor": "7.34.4",
|
|
21
|
-
"@rollup/plugin-typescript": "11.
|
|
21
|
+
"@rollup/plugin-typescript": "11.1.0",
|
|
22
22
|
"@xapp/config": "0.2.3",
|
|
23
23
|
"rollup": "3.20.2",
|
|
24
24
|
"tslib": "2.5.0",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@xapp/patterns": "2.0.1"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "3f34c8fabb611dfb027d04d8b8b4594371187c40"
|
|
37
37
|
}
|