knowmax-quest-types 2.36.0-beta.9 → 2.36.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,16 +1,19 @@
|
|
|
1
|
-
import { DocumentInsightAction } from "./IDocumentInsightOptions";
|
|
2
1
|
/** Response of Knowmax Quest Document Insight request. */
|
|
3
2
|
export interface IDocumentInsight {
|
|
4
3
|
/** Status of document insight retrieval. */
|
|
5
|
-
status: 'Ok' | 'IntelligenceModelError' | 'Error';
|
|
4
|
+
status: 'Ok' | 'IntelligenceModelError' | 'InputTooLong' | 'ContentFilter' | 'Error';
|
|
6
5
|
/** Error specific for problems with intelligence model status initialization. */
|
|
7
6
|
intelligenceModelStatus: 'Ok' | 'NotFound' | 'UnsupportedType';
|
|
7
|
+
/** In case status is set to error, this propety might contain technical details about the error. */
|
|
8
|
+
errorDetails?: string;
|
|
8
9
|
/** Identification for this conversation. Provide with follow up messages in this conversation to maintain conversation history. */
|
|
9
|
-
conversationId
|
|
10
|
+
conversationId?: string;
|
|
10
11
|
/** Interpreted Quest id of document node for which document insight was requested. */
|
|
11
12
|
questId: string;
|
|
12
|
-
/** Executed action */
|
|
13
|
-
action: DocumentInsightAction;
|
|
14
13
|
/** Textual response. Might contain markdown formatted contents. */
|
|
15
|
-
text
|
|
14
|
+
text?: string;
|
|
15
|
+
/** Maximum number of messages in conversation allowed. */
|
|
16
|
+
maxConversationDepth: number;
|
|
17
|
+
/** Current number in conversation */
|
|
18
|
+
conversationDepth: number;
|
|
16
19
|
}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
export declare enum DocumentInsightAction {
|
|
2
|
-
Custom = "Custom",
|
|
3
|
-
Summarize = "Summarize",
|
|
4
|
-
Translate = "Translate"
|
|
5
|
-
}
|
|
6
1
|
export declare enum DocumentInsightChatMessageRole {
|
|
7
2
|
System = "System",
|
|
8
3
|
Assistant = "Assistant",
|
|
9
4
|
User = "User",
|
|
10
5
|
Tool = "Tool"
|
|
11
6
|
}
|
|
7
|
+
export declare enum DocumentInsightResponseFormat {
|
|
8
|
+
Text = "Text",
|
|
9
|
+
Json = "Json"
|
|
10
|
+
}
|
|
12
11
|
export interface IDocumentInsightChatMessage {
|
|
13
12
|
role: DocumentInsightChatMessageRole;
|
|
14
13
|
text: string;
|
|
@@ -21,8 +20,11 @@ export interface IDocumentInsightOptions {
|
|
|
21
20
|
applicationName?: string;
|
|
22
21
|
/** Set to conversation id received after first request to maintain conversation history. Set to undefined to start new conversation. */
|
|
23
22
|
conversationId?: string;
|
|
24
|
-
action: DocumentInsightAction;
|
|
25
23
|
chatMessages?: IDocumentInsightChatMessage[];
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
/** 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
|
+
ignoreContents?: boolean;
|
|
26
|
+
/** Set to ignore conversation for this request. Na data will be read or written from or to conversation history. */
|
|
27
|
+
ignoreConversation?: boolean;
|
|
28
|
+
/** Set to requested type to instruct AI model to format results. Empty for default (text). */
|
|
29
|
+
responseFormat?: DocumentInsightResponseFormat;
|
|
28
30
|
}
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
export var DocumentInsightAction;
|
|
2
|
-
(function (DocumentInsightAction) {
|
|
3
|
-
DocumentInsightAction["Custom"] = "Custom";
|
|
4
|
-
DocumentInsightAction["Summarize"] = "Summarize";
|
|
5
|
-
DocumentInsightAction["Translate"] = "Translate";
|
|
6
|
-
})(DocumentInsightAction || (DocumentInsightAction = {}));
|
|
7
1
|
export var DocumentInsightChatMessageRole;
|
|
8
2
|
(function (DocumentInsightChatMessageRole) {
|
|
9
3
|
DocumentInsightChatMessageRole["System"] = "System";
|
|
@@ -11,3 +5,8 @@ export var DocumentInsightChatMessageRole;
|
|
|
11
5
|
DocumentInsightChatMessageRole["User"] = "User";
|
|
12
6
|
DocumentInsightChatMessageRole["Tool"] = "Tool";
|
|
13
7
|
})(DocumentInsightChatMessageRole || (DocumentInsightChatMessageRole = {}));
|
|
8
|
+
export var DocumentInsightResponseFormat;
|
|
9
|
+
(function (DocumentInsightResponseFormat) {
|
|
10
|
+
DocumentInsightResponseFormat["Text"] = "Text";
|
|
11
|
+
DocumentInsightResponseFormat["Json"] = "Json";
|
|
12
|
+
})(DocumentInsightResponseFormat || (DocumentInsightResponseFormat = {}));
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
export interface IMetadataValueSuggestion {
|
|
3
3
|
/** Identification of metadata when requesting suggestions. Usually in format familylabel.label */
|
|
4
4
|
metadataDefinition: string;
|
|
5
|
+
/** Origin of suggestion. */
|
|
6
|
+
origin: 'Collection' | 'Document' | 'Regular' | 'Octa';
|
|
5
7
|
/** Suggested values for metadata. */
|
|
6
8
|
values: IMetadataValueSuggestionItem[];
|
|
7
9
|
}
|