knowmax-quest-types 2.35.3 → 2.36.0-beta.10

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,6 +1,20 @@
1
1
  import { DocumentInsightAction } from "./IDocumentInsightOptions";
2
+ /** Response of Knowmax Quest Document Insight request. */
2
3
  export interface IDocumentInsight {
4
+ /** Status of document insight retrieval. */
5
+ status: 'Ok' | 'IntelligenceModelError' | 'Error';
6
+ /** Error specific for problems with intelligence model status initialization. */
7
+ intelligenceModelStatus: 'Ok' | 'NotFound' | 'UnsupportedType';
8
+ /** Identification for this conversation. Provide with follow up messages in this conversation to maintain conversation history. */
9
+ conversationId: string;
10
+ /** Interpreted Quest id of document node for which document insight was requested. */
3
11
  questId: string;
12
+ /** Executed action */
4
13
  action: DocumentInsightAction;
14
+ /** Textual response. Might contain markdown formatted contents. */
5
15
  text: string;
16
+ /** Maximum number of messages in conversation allowed. */
17
+ maxConversationDepth: number;
18
+ /** Current number in conversation */
19
+ conversationDepth: number;
6
20
  }
@@ -3,9 +3,26 @@ export declare enum DocumentInsightAction {
3
3
  Summarize = "Summarize",
4
4
  Translate = "Translate"
5
5
  }
6
+ export declare enum DocumentInsightChatMessageRole {
7
+ System = "System",
8
+ Assistant = "Assistant",
9
+ User = "User",
10
+ Tool = "Tool"
11
+ }
12
+ export interface IDocumentInsightChatMessage {
13
+ role: DocumentInsightChatMessageRole;
14
+ text: string;
15
+ }
16
+ /** Describes Knowmax Quest Document Insight request. */
6
17
  export interface IDocumentInsightOptions {
18
+ /** The label of the intelligence model to use. If not provided, applicationName must be provided to determine intelligence model. */
19
+ intelligenceModelLabel?: string;
20
+ /** Used to determine intelligence model for application if intelligenceModelLabel is not provided. */
21
+ applicationName?: string;
22
+ /** Set to conversation id received after first request to maintain conversation history. Set to undefined to start new conversation. */
23
+ conversationId?: string;
7
24
  action: DocumentInsightAction;
8
- prompts?: string[];
25
+ chatMessages?: IDocumentInsightChatMessage[];
9
26
  maxWords?: number;
10
27
  language?: string;
11
28
  }
@@ -4,3 +4,10 @@ export var DocumentInsightAction;
4
4
  DocumentInsightAction["Summarize"] = "Summarize";
5
5
  DocumentInsightAction["Translate"] = "Translate";
6
6
  })(DocumentInsightAction || (DocumentInsightAction = {}));
7
+ export var DocumentInsightChatMessageRole;
8
+ (function (DocumentInsightChatMessageRole) {
9
+ DocumentInsightChatMessageRole["System"] = "System";
10
+ DocumentInsightChatMessageRole["Assistant"] = "Assistant";
11
+ DocumentInsightChatMessageRole["User"] = "User";
12
+ DocumentInsightChatMessageRole["Tool"] = "Tool";
13
+ })(DocumentInsightChatMessageRole || (DocumentInsightChatMessageRole = {}));
@@ -0,0 +1,10 @@
1
+ export interface IIndexResearch {
2
+ conversationId: string;
3
+ text: string;
4
+ citations?: IIndexResearchCitation[];
5
+ }
6
+ export interface IIndexResearchCitation {
7
+ questId: string;
8
+ title: string;
9
+ contents: string;
10
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ export interface IIndexResearchOptions {
2
+ applicationName?: string;
3
+ indexDefinitionName?: string;
4
+ conversationId?: string;
5
+ query: string;
6
+ filter?: string;
7
+ }
@@ -0,0 +1 @@
1
+ export {};
package/dist/index.d.ts CHANGED
@@ -33,3 +33,5 @@ export * from './IListRequest';
33
33
  export * from './ISecurityLabels';
34
34
  export * from './IDocumentInsightOptions';
35
35
  export * from './IDocumentInsight';
36
+ export * from './IIndexResearchOptions';
37
+ export * from './IIndexResearch';
package/dist/index.js CHANGED
@@ -33,3 +33,5 @@ export * from './IListRequest';
33
33
  export * from './ISecurityLabels';
34
34
  export * from './IDocumentInsightOptions';
35
35
  export * from './IDocumentInsight';
36
+ export * from './IIndexResearchOptions';
37
+ export * from './IIndexResearch';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knowmax-quest-types",
3
- "version": "2.35.3",
3
+ "version": "2.36.0-beta.10",
4
4
  "description": "Contains type definitions for communicating with Knowmax Quest.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -27,6 +27,6 @@
27
27
  "rimraf": "6.0.1",
28
28
  "ts-jest": "^29.2.5",
29
29
  "ts-node": "^10.9.2",
30
- "typescript": "5.7.2"
30
+ "typescript": "5.7.3"
31
31
  }
32
32
  }