knowmax-quest-types 2.35.3 → 2.36.0-beta.2
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/dist/IDocumentInsight.d.ts +4 -0
- package/dist/IDocumentInsightOptions.d.ts +12 -1
- package/dist/IDocumentInsightOptions.js +7 -0
- package/dist/IIndexResearch.d.ts +10 -0
- package/dist/IIndexResearch.js +1 -0
- package/dist/IIndexResearchOptions.d.ts +7 -0
- package/dist/IIndexResearchOptions.js +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { DocumentInsightAction } from "./IDocumentInsightOptions";
|
|
2
|
+
/** Response of Knowmax Quest Document Insight request. */
|
|
2
3
|
export interface IDocumentInsight {
|
|
4
|
+
/** Interpreted Quest id of document node for which document insight was requested. */
|
|
3
5
|
questId: string;
|
|
6
|
+
/** Executed action */
|
|
4
7
|
action: DocumentInsightAction;
|
|
8
|
+
/** Textual response. Might contain markdown formatted contents. */
|
|
5
9
|
text: string;
|
|
6
10
|
}
|
|
@@ -3,9 +3,20 @@ 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 {
|
|
7
18
|
action: DocumentInsightAction;
|
|
8
|
-
|
|
19
|
+
chatMessages?: IDocumentInsightChatMessage[];
|
|
9
20
|
maxWords?: number;
|
|
10
21
|
language?: string;
|
|
11
22
|
}
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|