knowmax-quest-types 2.36.0 → 2.37.0-beta.1

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.
@@ -4,7 +4,7 @@ export interface IDocumentInsight {
4
4
  status: 'Ok' | 'IntelligenceModelError' | 'InputTooLong' | 'ContentFilter' | 'Error';
5
5
  /** Error specific for problems with intelligence model status initialization. */
6
6
  intelligenceModelStatus: 'Ok' | 'NotFound' | 'UnsupportedType';
7
- /** In case status is set to error, this propety might contain technical details about the error. */
7
+ /** In case status is set to error, this property might contain technical details about the error. */
8
8
  errorDetails?: string;
9
9
  /** Identification for this conversation. Provide with follow up messages in this conversation to maintain conversation history. */
10
10
  conversationId?: string;
@@ -1,17 +1,8 @@
1
- export declare enum DocumentInsightChatMessageRole {
2
- System = "System",
3
- Assistant = "Assistant",
4
- User = "User",
5
- Tool = "Tool"
6
- }
1
+ import type { IIntelligenceChatMessage } from '.';
7
2
  export declare enum DocumentInsightResponseFormat {
8
3
  Text = "Text",
9
4
  Json = "Json"
10
5
  }
11
- export interface IDocumentInsightChatMessage {
12
- role: DocumentInsightChatMessageRole;
13
- text: string;
14
- }
15
6
  /** Describes Knowmax Quest Document Insight request. */
16
7
  export interface IDocumentInsightOptions {
17
8
  /** The label of the intelligence model to use. If not provided, applicationName must be provided to determine intelligence model. */
@@ -20,7 +11,7 @@ export interface IDocumentInsightOptions {
20
11
  applicationName?: string;
21
12
  /** Set to conversation id received after first request to maintain conversation history. Set to undefined to start new conversation. */
22
13
  conversationId?: string;
23
- chatMessages?: IDocumentInsightChatMessage[];
14
+ chatMessages?: IIntelligenceChatMessage[];
24
15
  /** Set to explicitly not use the contents of the document in generating answer. In that case only technical data like metadata, version data and table of contents will be used. Defaults to false. */
25
16
  ignoreContents?: boolean;
26
17
  /** Set to ignore conversation for this request. Na data will be read or written from or to conversation history. */
@@ -1,10 +1,3 @@
1
- export var DocumentInsightChatMessageRole;
2
- (function (DocumentInsightChatMessageRole) {
3
- DocumentInsightChatMessageRole["System"] = "System";
4
- DocumentInsightChatMessageRole["Assistant"] = "Assistant";
5
- DocumentInsightChatMessageRole["User"] = "User";
6
- DocumentInsightChatMessageRole["Tool"] = "Tool";
7
- })(DocumentInsightChatMessageRole || (DocumentInsightChatMessageRole = {}));
8
1
  export var DocumentInsightResponseFormat;
9
2
  (function (DocumentInsightResponseFormat) {
10
3
  DocumentInsightResponseFormat["Text"] = "Text";
@@ -1,7 +1,19 @@
1
1
  export interface IIndexResearch {
2
- conversationId: string;
3
- text: string;
2
+ /** Status of index research request. */
3
+ status: 'Ok' | 'IndexError' | 'IntelligenceModelError' | 'ContentFilter' | 'Error';
4
+ /** Error specific for problems with intelligence model status initialization. */
5
+ intelligenceModelStatus: 'Ok' | 'NotFound' | 'UnsupportedType';
6
+ /** In case status is set to error, this property might contain technical details about the error. */
7
+ errorDetails?: string;
8
+ /** Identification for this conversation. Provide with follow up messages in this conversation to maintain conversation history. */
9
+ conversationId?: string;
10
+ text?: string;
11
+ /** List of citations possible referenced from text. */
4
12
  citations?: IIndexResearchCitation[];
13
+ /** Maximum number of messages in conversation allowed. */
14
+ maxConversationDepth: number;
15
+ /** Current number in conversation */
16
+ conversationDepth: number;
5
17
  }
6
18
  export interface IIndexResearchCitation {
7
19
  questId: string;
@@ -1,7 +1,15 @@
1
+ import type { IIntelligenceChatMessage } from '.';
1
2
  export interface IIndexResearchOptions {
2
- applicationName?: string;
3
+ /** The label of the intelligence model to use. If not provided, applicationName must be provided to determine intelligence model. */
4
+ intelligenceModelLabel?: string;
5
+ /** Name of index definition to use. If not provided, applicationName must be provided to determine index definition. */
3
6
  indexDefinitionName?: string;
7
+ /** Used to determine intelligence model for application if intelligenceModelLabel is not provided. */
8
+ applicationName?: string;
4
9
  conversationId?: string;
5
- query: string;
10
+ chatMessages?: IIntelligenceChatMessage[];
11
+ /** Filter to use for query. */
6
12
  filter?: string;
13
+ /** Set to ignore conversation for this request. Na data will be read or written from or to conversation history. */
14
+ ignoreConversation?: boolean;
7
15
  }
@@ -0,0 +1,10 @@
1
+ export declare enum IntelligenceChatMessageRole {
2
+ System = "System",
3
+ Assistant = "Assistant",
4
+ User = "User",
5
+ Tool = "Tool"
6
+ }
7
+ export interface IIntelligenceChatMessage {
8
+ role: IntelligenceChatMessageRole;
9
+ text: string;
10
+ }
@@ -0,0 +1,7 @@
1
+ export var IntelligenceChatMessageRole;
2
+ (function (IntelligenceChatMessageRole) {
3
+ IntelligenceChatMessageRole["System"] = "System";
4
+ IntelligenceChatMessageRole["Assistant"] = "Assistant";
5
+ IntelligenceChatMessageRole["User"] = "User";
6
+ IntelligenceChatMessageRole["Tool"] = "Tool";
7
+ })(IntelligenceChatMessageRole || (IntelligenceChatMessageRole = {}));
package/dist/index.d.ts CHANGED
@@ -35,3 +35,4 @@ export * from './IDocumentInsightOptions';
35
35
  export * from './IDocumentInsight';
36
36
  export * from './IIndexResearchOptions';
37
37
  export * from './IIndexResearch';
38
+ export * from './IIntelligenceChatMessage';
package/dist/index.js CHANGED
@@ -35,3 +35,4 @@ export * from './IDocumentInsightOptions';
35
35
  export * from './IDocumentInsight';
36
36
  export * from './IIndexResearchOptions';
37
37
  export * from './IIndexResearch';
38
+ export * from './IIntelligenceChatMessage';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knowmax-quest-types",
3
- "version": "2.36.0",
3
+ "version": "2.37.0-beta.1",
4
4
  "description": "Contains type definitions for communicating with Knowmax Quest.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -25,7 +25,7 @@
25
25
  "@jest/globals": "^29.7.0",
26
26
  "jest": "^29.7.0",
27
27
  "rimraf": "6.0.1",
28
- "ts-jest": "^29.2.5",
28
+ "ts-jest": "^29.2.6",
29
29
  "ts-node": "^10.9.2",
30
30
  "typescript": "5.7.3"
31
31
  }