knowmax-quest-types 2.37.0-beta.2 → 2.37.0-beta.5
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 +2 -15
- package/dist/IDocumentInsightOptions.d.ts +2 -11
- package/dist/IIndexResearch.d.ts +2 -21
- package/dist/IIndexResearchOptions.d.ts +3 -13
- package/dist/IIntelligenceBase.d.ts +19 -0
- package/dist/IIntelligenceBase.js +1 -0
- package/dist/IIntelligenceBaseOptions.d.ts +15 -0
- package/dist/IIntelligenceBaseOptions.js +1 -0
- package/dist/IIntelligenceCitation.d.ts +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/package.json +2 -2
|
@@ -1,19 +1,6 @@
|
|
|
1
|
+
import type { IIntelligenceBase } from '.';
|
|
1
2
|
/** Response of Knowmax Quest Document Insight request. */
|
|
2
|
-
export interface IDocumentInsight {
|
|
3
|
-
/** Status of document insight retrieval. */
|
|
4
|
-
status: 'Ok' | 'IntelligenceModelError' | 'InputTooLong' | 'ContentFilter' | 'Error';
|
|
5
|
-
/** Error specific for problems with intelligence model status initialization. */
|
|
6
|
-
intelligenceModelStatus: 'Ok' | 'NotFound' | 'UnsupportedType';
|
|
7
|
-
/** In case status is set to error, this property might contain technical details about the error. */
|
|
8
|
-
errorDetails?: string;
|
|
9
|
-
/** Identification for this conversation. Provide with follow up messages in this conversation to maintain conversation history. */
|
|
10
|
-
conversationId?: string;
|
|
3
|
+
export interface IDocumentInsight extends IIntelligenceBase {
|
|
11
4
|
/** Interpreted Quest id of document node for which document insight was requested. */
|
|
12
5
|
questId: string;
|
|
13
|
-
/** Textual response. Might contain markdown formatted contents. */
|
|
14
|
-
text?: string;
|
|
15
|
-
/** Maximum number of messages in conversation allowed. */
|
|
16
|
-
maxConversationDepth: number;
|
|
17
|
-
/** Current number in conversation */
|
|
18
|
-
conversationDepth: number;
|
|
19
6
|
}
|
|
@@ -1,21 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IIntelligenceBaseOptions } from '.';
|
|
2
2
|
export declare enum DocumentInsightResponseFormat {
|
|
3
3
|
Text = "Text",
|
|
4
4
|
Json = "Json"
|
|
5
5
|
}
|
|
6
6
|
/** Describes Knowmax Quest Document Insight request. */
|
|
7
|
-
export interface IDocumentInsightOptions {
|
|
8
|
-
/** The label of the intelligence model to use. If not provided, applicationName must be provided to determine intelligence model. */
|
|
9
|
-
intelligenceModelLabel?: string;
|
|
10
|
-
/** Used to determine intelligence model for application if intelligenceModelLabel is not provided. */
|
|
11
|
-
applicationName?: string;
|
|
12
|
-
/** Set to conversation id received after first request to maintain conversation history. Set to undefined to start new conversation. */
|
|
13
|
-
conversationId?: string;
|
|
14
|
-
chatMessages?: IIntelligenceChatMessage[];
|
|
7
|
+
export interface IDocumentInsightOptions extends IIntelligenceBaseOptions {
|
|
15
8
|
/** 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. */
|
|
16
9
|
ignoreContents?: boolean;
|
|
17
|
-
/** Set to ignore conversation for this request. Na data will be read or written from or to conversation history. */
|
|
18
|
-
ignoreConversation?: boolean;
|
|
19
10
|
/** Set to requested type to instruct AI model to format results. Empty for default (text). */
|
|
20
11
|
responseFormat?: DocumentInsightResponseFormat;
|
|
21
12
|
}
|
package/dist/IIndexResearch.d.ts
CHANGED
|
@@ -1,22 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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. */
|
|
12
|
-
citations?: IIndexResearchCitation[];
|
|
13
|
-
/** Maximum number of messages in conversation allowed. */
|
|
14
|
-
maxConversationDepth: number;
|
|
15
|
-
/** Current number in conversation */
|
|
16
|
-
conversationDepth: number;
|
|
17
|
-
}
|
|
18
|
-
export interface IIndexResearchCitation {
|
|
19
|
-
questId: string;
|
|
20
|
-
title: string;
|
|
21
|
-
contents: string;
|
|
1
|
+
import type { IIntelligenceBase } from '.';
|
|
2
|
+
export interface IIndexResearch extends IIntelligenceBase {
|
|
22
3
|
}
|
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export interface IIndexResearchOptions {
|
|
3
|
-
/**
|
|
4
|
-
intelligenceModelLabel?: string;
|
|
5
|
-
/** Name of index definition to use. If not provided, applicationName must be provided to determine index definition. */
|
|
6
|
-
indexDefinitionName?: string;
|
|
7
|
-
/** Used to determine intelligence model for application if intelligenceModelLabel is not provided. */
|
|
8
|
-
applicationName?: string;
|
|
9
|
-
conversationId?: string;
|
|
10
|
-
chatMessages?: IIntelligenceChatMessage[];
|
|
11
|
-
/** Filter to use for query. */
|
|
1
|
+
import type { IIntelligenceBaseOptions } from '.';
|
|
2
|
+
export interface IIndexResearchOptions extends IIntelligenceBaseOptions {
|
|
3
|
+
/** Azure AI Search filter to use for query. */
|
|
12
4
|
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;
|
|
15
5
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { IIntelligenceCitation } from ".";
|
|
2
|
+
export interface IIntelligenceBase {
|
|
3
|
+
/** Status of document insight retrieval. */
|
|
4
|
+
status: 'Ok' | 'IndexError' | 'IntelligenceModelError' | 'InputTooLong' | 'ContentFilter' | 'Error';
|
|
5
|
+
/** Error specific for problems with intelligence model status initialization. */
|
|
6
|
+
intelligenceModelStatus: 'Ok' | 'NotFound' | 'UnsupportedType';
|
|
7
|
+
/** In case status is set to error, this property might contain technical details about the error. */
|
|
8
|
+
errorDetails?: string;
|
|
9
|
+
/** Identification for this conversation. Provide with follow up messages in this conversation to maintain conversation history. */
|
|
10
|
+
conversationId?: string;
|
|
11
|
+
/** Textual response. Might contain markdown formatted contents. */
|
|
12
|
+
text?: string;
|
|
13
|
+
/** List of citations possible referenced from text. */
|
|
14
|
+
citations?: IIntelligenceCitation[];
|
|
15
|
+
/** Maximum number of messages in conversation allowed. */
|
|
16
|
+
maxConversationDepth: number;
|
|
17
|
+
/** Current number in conversation */
|
|
18
|
+
conversationDepth: number;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { IIntelligenceChatMessage } from '.';
|
|
2
|
+
export interface IIntelligenceBaseOptions {
|
|
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. */
|
|
6
|
+
indexDefinitionName?: string;
|
|
7
|
+
/** Used to determine intelligence model for application if intelligenceModelLabel is not provided. */
|
|
8
|
+
applicationName?: string;
|
|
9
|
+
/** Optional conversation id to maintain context across multiple requests. */
|
|
10
|
+
conversationId?: string;
|
|
11
|
+
/** Array of chat messages to use for this request. */
|
|
12
|
+
chatMessages: IIntelligenceChatMessage[];
|
|
13
|
+
/** Set to ignore conversation for this request. Na data will be read or written from or to conversation history. */
|
|
14
|
+
ignoreConversation?: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -31,6 +31,8 @@ export * from './IDocumentPredecessor';
|
|
|
31
31
|
export * from './metadata';
|
|
32
32
|
export * from './IListRequest';
|
|
33
33
|
export * from './ISecurityLabels';
|
|
34
|
+
export * from './IIntelligenceBaseOptions';
|
|
35
|
+
export * from './IIntelligenceBase';
|
|
34
36
|
export * from './IDocumentInsightOptions';
|
|
35
37
|
export * from './IDocumentInsight';
|
|
36
38
|
export * from './IIndexResearchOptions';
|
package/dist/index.js
CHANGED
|
@@ -31,6 +31,8 @@ export * from './IDocumentPredecessor';
|
|
|
31
31
|
export * from './metadata';
|
|
32
32
|
export * from './IListRequest';
|
|
33
33
|
export * from './ISecurityLabels';
|
|
34
|
+
export * from './IIntelligenceBaseOptions';
|
|
35
|
+
export * from './IIntelligenceBase';
|
|
34
36
|
export * from './IDocumentInsightOptions';
|
|
35
37
|
export * from './IDocumentInsight';
|
|
36
38
|
export * from './IIndexResearchOptions';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "knowmax-quest-types",
|
|
3
|
-
"version": "2.37.0-beta.
|
|
3
|
+
"version": "2.37.0-beta.5",
|
|
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.6",
|
|
29
29
|
"ts-node": "^10.9.2",
|
|
30
|
-
"typescript": "5.
|
|
30
|
+
"typescript": "5.8.2"
|
|
31
31
|
}
|
|
32
32
|
}
|