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.
@@ -1,25 +1,18 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
- import { InputUnknownRequestType, IntentRequestType, KnowledgeAnswer, RequestSlotMap, SentimentedRequest } from "../Request";
2
+ import { IntentRequest, InputUnknownRequest } from "../Request";
3
3
  import { ActiveContext } from "../Response";
4
- export interface NLUQueryResponse extends SentimentedRequest {
5
- type: IntentRequestType | InputUnknownRequestType;
6
- /**
7
- * ID for the matched intent.
8
- */
9
- intentId: string;
10
- /**
11
- * Optional slots for the matched intent.
12
- */
13
- slots?: RequestSlotMap;
14
- /**
15
- * Confidence level of the intent match. On a scale from 0-1 where 1 is the highest confidence of a match.
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.96",
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.0.0",
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": "0fe377ee5fbe760dfbee8ae78d2f950e3f9164e8"
36
+ "gitHead": "3f34c8fabb611dfb027d04d8b8b4594371187c40"
37
37
  }