knowmax-quest-types 2.36.0-beta.13 → 2.36.0-beta.15

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,4 +1,3 @@
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. */
@@ -11,8 +10,6 @@ export interface IDocumentInsight {
11
10
  conversationId: string;
12
11
  /** Interpreted Quest id of document node for which document insight was requested. */
13
12
  questId: string;
14
- /** Executed action */
15
- action: DocumentInsightAction;
16
13
  /** Textual response. Might contain markdown formatted contents. */
17
14
  text: string;
18
15
  /** Maximum number of messages in conversation allowed. */
@@ -1,8 +1,3 @@
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",
@@ -21,10 +16,11 @@ export interface IDocumentInsightOptions {
21
16
  applicationName?: string;
22
17
  /** Set to conversation id received after first request to maintain conversation history. Set to undefined to start new conversation. */
23
18
  conversationId?: string;
24
- action: DocumentInsightAction;
25
19
  chatMessages?: IDocumentInsightChatMessage[];
26
20
  /** 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. */
27
21
  ignoreContents?: boolean;
28
- maxWords?: number;
29
- language?: string;
22
+ /** Set to ignore conversation for this request. Na data will be read or written from or to conversation history. */
23
+ ignoreConversation?: boolean;
24
+ /** Set to true to instruct AI model to format results as JSON. */
25
+ responseFormatJson?: boolean;
30
26
  }
@@ -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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knowmax-quest-types",
3
- "version": "2.36.0-beta.13",
3
+ "version": "2.36.0-beta.15",
4
4
  "description": "Contains type definitions for communicating with Knowmax Quest.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",