@epam/ai-dial-shared 0.47.0-dev.87 → 0.47.0-dev.90
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/index.esm.js
CHANGED
|
@@ -92,6 +92,18 @@ var LikeState;
|
|
|
92
92
|
LikeState[LikeState["Liked"] = 1] = "Liked";
|
|
93
93
|
LikeState[LikeState["NoState"] = 0] = "NoState";
|
|
94
94
|
})(LikeState || (LikeState = {}));
|
|
95
|
+
var MessageAnnotationSelectorType;
|
|
96
|
+
(function (MessageAnnotationSelectorType) {
|
|
97
|
+
MessageAnnotationSelectorType["TextCharacterRange"] = "text_character_range";
|
|
98
|
+
MessageAnnotationSelectorType["TextLineRange"] = "text_line_range";
|
|
99
|
+
MessageAnnotationSelectorType["PdfPageRange"] = "pdf_page_range";
|
|
100
|
+
MessageAnnotationSelectorType["PdfRegion"] = "pdf_region";
|
|
101
|
+
MessageAnnotationSelectorType["ImageRegion"] = "image_region";
|
|
102
|
+
MessageAnnotationSelectorType["ImageMask"] = "image_mask";
|
|
103
|
+
MessageAnnotationSelectorType["ExcelRcRange"] = "excel_rc_range";
|
|
104
|
+
MessageAnnotationSelectorType["HTMLId"] = "html_id";
|
|
105
|
+
MessageAnnotationSelectorType["HTMLText"] = "html_text";
|
|
106
|
+
})(MessageAnnotationSelectorType || (MessageAnnotationSelectorType = {}));
|
|
95
107
|
var UploadStatus;
|
|
96
108
|
(function (UploadStatus) {
|
|
97
109
|
UploadStatus["UNINITIALIZED"] = "UNINITIALIZED";
|
|
@@ -262,6 +274,7 @@ var OverlayRequests;
|
|
|
262
274
|
OverlayRequests["updateMessage"] = "UPDATE_MESSAGE";
|
|
263
275
|
OverlayRequests["setInputContent"] = "SET_INPUT_CONTENT";
|
|
264
276
|
OverlayRequests["setSystemPrompt"] = "SET_SYSTEM_PROMPT";
|
|
277
|
+
OverlayRequests["setTemperature"] = "SET_TEMPERATURE";
|
|
265
278
|
OverlayRequests["setOverlayOptions"] = "SET_OVERLAY_OPTIONS";
|
|
266
279
|
OverlayRequests["getConversations"] = "GET_CONVERSATIONS";
|
|
267
280
|
OverlayRequests["getSelectedConversations"] = "GET_SELECTED_CONVERSATIONS";
|
|
@@ -363,4 +376,4 @@ var VisualizerConnectorRequests;
|
|
|
363
376
|
VisualizerConnectorRequests["setVisualizerOptions"] = "SET_VISUALIZER_OPTIONS";
|
|
364
377
|
})(VisualizerConnectorRequests || (VisualizerConnectorRequests = {}));
|
|
365
378
|
|
|
366
|
-
export { ConversationResponseFormat, DeferredRequest, DialSchemaProperties, Feature, FeatureType, FormSchemaPropertyWidget, LikeState, MessageButtonPlacement, OverlayEvents, OverlayRequests, PublishActions, Role, SharePermission, Task, ToolsetAuthStatus, ToolsetAuthTypes, ToolsetTransportType, UploadStatus, VisualizerConnectorEvents, VisualizerConnectorRequests, overlayAppName, overlayLibName, setStyles, validateFeature, visualizerConnectorLibName };
|
|
379
|
+
export { ConversationResponseFormat, DeferredRequest, DialSchemaProperties, Feature, FeatureType, FormSchemaPropertyWidget, LikeState, MessageAnnotationSelectorType, MessageButtonPlacement, OverlayEvents, OverlayRequests, PublishActions, Role, SharePermission, Task, ToolsetAuthStatus, ToolsetAuthTypes, ToolsetTransportType, UploadStatus, VisualizerConnectorEvents, VisualizerConnectorRequests, overlayAppName, overlayLibName, setStyles, validateFeature, visualizerConnectorLibName };
|
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@ export declare enum OverlayRequests {
|
|
|
6
6
|
updateMessage = "UPDATE_MESSAGE",
|
|
7
7
|
setInputContent = "SET_INPUT_CONTENT",
|
|
8
8
|
setSystemPrompt = "SET_SYSTEM_PROMPT",
|
|
9
|
+
setTemperature = "SET_TEMPERATURE",
|
|
9
10
|
setOverlayOptions = "SET_OVERLAY_OPTIONS",
|
|
10
11
|
getConversations = "GET_CONVERSATIONS",
|
|
11
12
|
getSelectedConversations = "GET_SELECTED_CONVERSATIONS",
|
package/src/types/chat.d.ts
CHANGED
|
@@ -40,6 +40,77 @@ export interface MessageSettings {
|
|
|
40
40
|
export interface ConversationEntityModel {
|
|
41
41
|
id: string;
|
|
42
42
|
}
|
|
43
|
+
export declare enum MessageAnnotationSelectorType {
|
|
44
|
+
TextCharacterRange = "text_character_range",
|
|
45
|
+
TextLineRange = "text_line_range",
|
|
46
|
+
PdfPageRange = "pdf_page_range",
|
|
47
|
+
PdfRegion = "pdf_region",
|
|
48
|
+
ImageRegion = "image_region",
|
|
49
|
+
ImageMask = "image_mask",
|
|
50
|
+
ExcelRcRange = "excel_rc_range",
|
|
51
|
+
HTMLId = "html_id",
|
|
52
|
+
HTMLText = "html_text"
|
|
53
|
+
}
|
|
54
|
+
export interface MessageAnnotationBBox {
|
|
55
|
+
left: number;
|
|
56
|
+
top: number;
|
|
57
|
+
width: number;
|
|
58
|
+
height: number;
|
|
59
|
+
}
|
|
60
|
+
export type MessageAnnotationSelector = {
|
|
61
|
+
type: MessageAnnotationSelectorType.TextCharacterRange | MessageAnnotationSelectorType.TextLineRange | MessageAnnotationSelectorType.PdfPageRange;
|
|
62
|
+
start: number;
|
|
63
|
+
end: number;
|
|
64
|
+
} | {
|
|
65
|
+
type: MessageAnnotationSelectorType.PdfRegion;
|
|
66
|
+
page: number;
|
|
67
|
+
bbox: MessageAnnotationBBox;
|
|
68
|
+
} | {
|
|
69
|
+
type: MessageAnnotationSelectorType.ImageRegion;
|
|
70
|
+
bbox: MessageAnnotationBBox;
|
|
71
|
+
} | {
|
|
72
|
+
type: MessageAnnotationSelectorType.ImageMask;
|
|
73
|
+
mask: string;
|
|
74
|
+
} | {
|
|
75
|
+
type: MessageAnnotationSelectorType.ExcelRcRange;
|
|
76
|
+
start: {
|
|
77
|
+
row: number;
|
|
78
|
+
col: number;
|
|
79
|
+
};
|
|
80
|
+
end: {
|
|
81
|
+
row: number;
|
|
82
|
+
col: number;
|
|
83
|
+
};
|
|
84
|
+
} | {
|
|
85
|
+
type: MessageAnnotationSelectorType.HTMLId;
|
|
86
|
+
id: string;
|
|
87
|
+
} | {
|
|
88
|
+
type: MessageAnnotationSelectorType.HTMLText;
|
|
89
|
+
text: string;
|
|
90
|
+
};
|
|
91
|
+
export interface ChatCompletionSource {
|
|
92
|
+
message_index: number | null;
|
|
93
|
+
content_part_index: number | null;
|
|
94
|
+
attachment_index: number | null;
|
|
95
|
+
}
|
|
96
|
+
export interface AttachmentSource {
|
|
97
|
+
type: 'attachment';
|
|
98
|
+
attachment: Attachment;
|
|
99
|
+
}
|
|
100
|
+
export interface MessageAnnotation {
|
|
101
|
+
index: number;
|
|
102
|
+
target: {
|
|
103
|
+
source?: ChatCompletionSource;
|
|
104
|
+
selector: MessageAnnotationSelector;
|
|
105
|
+
};
|
|
106
|
+
body: {
|
|
107
|
+
title?: string;
|
|
108
|
+
quote?: string;
|
|
109
|
+
source?: ChatCompletionSource | AttachmentSource;
|
|
110
|
+
selector?: MessageAnnotationSelector | MessageAnnotationSelector[];
|
|
111
|
+
configuration?: Record<string, unknown>;
|
|
112
|
+
};
|
|
113
|
+
}
|
|
43
114
|
export interface Message {
|
|
44
115
|
role: Role;
|
|
45
116
|
content: string;
|
|
@@ -52,6 +123,9 @@ export interface Message {
|
|
|
52
123
|
configuration_schema?: MessageFormSchema;
|
|
53
124
|
configuration_value?: MessageFormValue;
|
|
54
125
|
};
|
|
126
|
+
custom_fields?: {
|
|
127
|
+
annotations?: MessageAnnotation[];
|
|
128
|
+
};
|
|
55
129
|
like?: LikeState;
|
|
56
130
|
errorMessage?: string;
|
|
57
131
|
model?: ConversationEntityModel;
|
|
@@ -16,6 +16,9 @@ export interface SetInputContentRequest {
|
|
|
16
16
|
export interface SetSystemPromptRequest {
|
|
17
17
|
systemPrompt: string;
|
|
18
18
|
}
|
|
19
|
+
export interface SetTemperatureRequest {
|
|
20
|
+
temperature: number;
|
|
21
|
+
}
|
|
19
22
|
export interface CreateConversationRequest {
|
|
20
23
|
parentPath?: string | null;
|
|
21
24
|
local?: boolean | null;
|
|
@@ -3,6 +3,7 @@ import { LatestExportConversationsFormat } from '../import-export';
|
|
|
3
3
|
import { OverlayConversation } from './conversation';
|
|
4
4
|
export type SendMessageResponse = void;
|
|
5
5
|
export type SetSystemPromptResponse = void;
|
|
6
|
+
export type SetTemperatureResponse = void;
|
|
6
7
|
export interface GetMessagesResponse {
|
|
7
8
|
messages: Message[];
|
|
8
9
|
}
|