knowmax-quest-types 3.0.1 → 3.2.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 +1 @@
1
- {"version":3,"file":"IIntelligenceChatMessage.js","sourceRoot":"","sources":["../../src/IIntelligenceChatMessage.ts"],"names":[],"mappings":";;;AAAA,IAAY,6BAA0G;AAAtH,WAAY,6BAA6B;IAAG,kDAAiB,CAAA;IAAE,wDAAuB,CAAA;IAAE,8CAAa,CAAA;IAAE,8CAAa,CAAA;AAAC,CAAC,EAA1G,6BAA6B,6CAA7B,6BAA6B,QAA6E"}
1
+ {"version":3,"file":"IIntelligenceChatMessage.js","sourceRoot":"","sources":["../../src/IIntelligenceChatMessage.ts"],"names":[],"mappings":";;;AAEA,IAAY,6BAA0G;AAAtH,WAAY,6BAA6B;IAAG,kDAAiB,CAAA;IAAE,wDAAuB,CAAA;IAAE,8CAAa,CAAA;IAAE,8CAAa,CAAA;AAAC,CAAC,EAA1G,6BAA6B,6CAA7B,6BAA6B,QAA6E"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IIntelligenceIntentDocument.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIntelligenceIntentDocument.js","sourceRoot":"","sources":["../../src/IIntelligenceIntentDocument.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"IIntelligenceChatMessage.js","sourceRoot":"","sources":["../../src/IIntelligenceChatMessage.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,6BAA0G;AAAtH,WAAY,6BAA6B;IAAG,kDAAiB,CAAA;IAAE,wDAAuB,CAAA;IAAE,8CAAa,CAAA;IAAE,8CAAa,CAAA;AAAC,CAAC,EAA1G,6BAA6B,KAA7B,6BAA6B,QAA6E"}
1
+ {"version":3,"file":"IIntelligenceChatMessage.js","sourceRoot":"","sources":["../../src/IIntelligenceChatMessage.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,6BAA0G;AAAtH,WAAY,6BAA6B;IAAG,kDAAiB,CAAA;IAAE,wDAAuB,CAAA;IAAE,8CAAa,CAAA;IAAE,8CAAa,CAAA;AAAC,CAAC,EAA1G,6BAA6B,KAA7B,6BAA6B,QAA6E"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IIntelligenceIntentDocument.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIntelligenceIntentDocument.js","sourceRoot":"","sources":["../../src/IIntelligenceIntentDocument.ts"],"names":[],"mappings":""}
@@ -1,6 +1,8 @@
1
1
  import type { IIntelligenceBaseOptions } from '.';
2
2
  export interface IIndexResearchOptions extends IIntelligenceBaseOptions {
3
- /** Azure AI Search filter to use for query. */
3
+ /** Azure AI Search filter expression to use for filtering the search results from which to extract the answer. */
4
4
  filter?: string;
5
+ /** Set to attempt to determine intent of the question in order to add an extra filter to improve the quality of the answer. */
6
+ filterIntent?: boolean;
5
7
  }
6
8
  //# sourceMappingURL=IIndexResearchOptions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IIndexResearchOptions.d.ts","sourceRoot":"","sources":["../../src/IIndexResearchOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,GAAG,CAAA;AAEjD,MAAM,WAAW,qBAAsB,SAAQ,wBAAwB;IACrE,+CAA+C;IAC/C,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB"}
1
+ {"version":3,"file":"IIndexResearchOptions.d.ts","sourceRoot":"","sources":["../../src/IIndexResearchOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,GAAG,CAAA;AAEjD,MAAM,WAAW,qBAAsB,SAAQ,wBAAwB;IACrE,kHAAkH;IAClH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf,+HAA+H;IAC/H,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB"}
@@ -1,3 +1,5 @@
1
+ import type { IIntelligenceCitation } from './IIntelligenceCitation';
2
+ import type { IIntelligenceIntentDocument } from './IIntelligenceIntentDocument';
1
3
  export declare enum IntelligenceChatMessageOrigin {
2
4
  System = "System",
3
5
  Assistant = "Assistant",
@@ -7,5 +9,11 @@ export declare enum IntelligenceChatMessageOrigin {
7
9
  export interface IIntelligenceChatMessage {
8
10
  origin: IntelligenceChatMessageOrigin;
9
11
  text: string;
12
+ /** Only set for answers by Quest Research. */
13
+ citations?: IIntelligenceCitation[];
14
+ /** Only set for answers by Quest Research using Intent detection for automatic filtering. */
15
+ intentDocuments?: IIntelligenceIntentDocument[];
16
+ /** Set when the intent was resolved by the AI and was actually matched to known Quest documents. */
17
+ intentResolved: boolean;
10
18
  }
11
19
  //# sourceMappingURL=IIntelligenceChatMessage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IIntelligenceChatMessage.d.ts","sourceRoot":"","sources":["../../src/IIntelligenceChatMessage.ts"],"names":[],"mappings":"AAAA,oBAAY,6BAA6B;IAAG,MAAM,WAAW;IAAE,SAAS,cAAc;IAAE,IAAI,SAAS;IAAE,IAAI,SAAS;CAAE;AAEtH,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,6BAA6B,CAAC;IAEtC,IAAI,EAAE,MAAM,CAAC;CACd"}
1
+ {"version":3,"file":"IIntelligenceChatMessage.d.ts","sourceRoot":"","sources":["../../src/IIntelligenceChatMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AACpE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAA;AAChF,oBAAY,6BAA6B;IAAG,MAAM,WAAW;IAAE,SAAS,cAAc;IAAE,IAAI,SAAS;IAAE,IAAI,SAAS;CAAE;AAEtH,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,6BAA6B,CAAA;IAErC,IAAI,EAAE,MAAM,CAAA;IAEZ,8CAA8C;IAC9C,SAAS,CAAC,EAAE,qBAAqB,EAAE,CAAA;IAEnC,6FAA6F;IAC7F,eAAe,CAAC,EAAE,2BAA2B,EAAE,CAAA;IAE/C,oGAAoG;IACpG,cAAc,EAAE,OAAO,CAAA;CACxB"}
@@ -1 +1 @@
1
- {"version":3,"file":"IIntelligenceCitation.d.ts","sourceRoot":"","sources":["../../src/IIntelligenceCitation.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,CAAC;IAElB,OAAO,EAAE,MAAM,CAAC;IAEhB,KAAK,EAAE,MAAM,CAAC;IAEd,QAAQ,EAAE,MAAM,CAAC;CAClB"}
1
+ {"version":3,"file":"IIntelligenceCitation.d.ts","sourceRoot":"","sources":["../../src/IIntelligenceCitation.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,CAAA;IAEjB,OAAO,EAAE,MAAM,CAAA;IAEf,KAAK,EAAE,MAAM,CAAA;IAEb,QAAQ,EAAE,MAAM,CAAA;CACjB"}
@@ -0,0 +1,24 @@
1
+ export interface IIntelligenceIntentDocument {
2
+ /** Original AI detrermined intent id as specified by user. This is the id that was used to identify the document in the request. */
3
+ intentId: string;
4
+ /** Set by id determined by Intelligence Intent Interceptor when the intent was intercepted. */
5
+ intentInterceptedId?: string;
6
+ /** AI determined version indication of the document as specified by user. */
7
+ intentVersion?: string;
8
+ /** AI generated variants of intent specified by user. Like document title's or technical identifications. */
9
+ variants?: string[];
10
+ /** Resolved Quest documents that match the intent specified by user. */
11
+ documents?: IIntelligenceIntentDocumentResolved[];
12
+ /** Set when the intent was intercepted by an intelligence intent interceptor. */
13
+ intercepted: boolean;
14
+ /** Set when this intent was inherited from a previous user prompt because t prompt did not contain any intent documents. */
15
+ inherited: boolean;
16
+ }
17
+ export interface IIntelligenceIntentDocumentResolved {
18
+ questId: string;
19
+ title: string;
20
+ versionDate?: string;
21
+ version?: number;
22
+ score: number;
23
+ }
24
+ //# sourceMappingURL=IIntelligenceIntentDocument.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IIntelligenceIntentDocument.d.ts","sourceRoot":"","sources":["../../src/IIntelligenceIntentDocument.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,2BAA2B;IAC1C,oIAAoI;IACpI,QAAQ,EAAE,MAAM,CAAA;IAEhB,+FAA+F;IAC/F,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAE5B,6EAA6E;IAC7E,aAAa,CAAC,EAAE,MAAM,CAAA;IAEtB,6GAA6G;IAC7G,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IAEnB,wEAAwE;IACxE,SAAS,CAAC,EAAE,mCAAmC,EAAE,CAAA;IAEjD,iFAAiF;IACjF,WAAW,EAAE,OAAO,CAAA;IAEpB,4HAA4H;IAC5H,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,WAAW,mCAAmC;IAClD,OAAO,EAAE,MAAM,CAAA;IAEf,KAAK,EAAE,MAAM,CAAA;IAEb,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB,KAAK,EAAE,MAAM,CAAA;CACd"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knowmax-quest-types",
3
- "version": "3.0.1",
3
+ "version": "3.2.0",
4
4
  "description": "Contains type definitions for communicating with Knowmax Quest.",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/index.js",
@@ -39,8 +39,8 @@
39
39
  "author": "Knowmax BV",
40
40
  "license": "MIT",
41
41
  "devDependencies": {
42
- "@jest/globals": "^30.0.2",
43
- "jest": "^30.0.2",
42
+ "@jest/globals": "^30.0.3",
43
+ "jest": "^30.0.3",
44
44
  "rimraf": "6.0.1",
45
45
  "ts-jest": "^29.4.0",
46
46
  "ts-node": "^10.9.2",