@blueking/chat-helper 0.0.12-beta.8 → 0.0.12
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/README.md +21 -7
- package/dist/agent/type.d.ts +84 -0
- package/dist/agent/type.ts.js +5 -1
- package/dist/agent/use-agent.d.ts +573 -360
- package/dist/agent/use-agent.ts.js +365 -25
- package/dist/event/ag-ui.d.ts +4 -1
- package/dist/event/ag-ui.ts.js +107 -7
- package/dist/event/type.d.ts +15 -3
- package/dist/event/type.ts.js +2 -0
- package/dist/http/fetch/fetch.spec.d.ts +1 -0
- package/dist/http/fetch/fetch.ts.js +106 -22
- package/dist/http/index.d.ts +13 -7
- package/dist/http/module/agent.d.ts +2 -0
- package/dist/http/module/agent.ts.js +19 -2
- package/dist/http/module/index.d.ts +13 -7
- package/dist/http/module/message.d.ts +3 -3
- package/dist/http/module/message.ts.js +4 -3
- package/dist/http/module/session.d.ts +10 -5
- package/dist/http/module/session.ts.js +60 -3
- package/dist/http/transform/agent.d.ts +9 -1
- package/dist/http/transform/agent.spec.d.ts +1 -0
- package/dist/http/transform/agent.ts.js +32 -2
- package/dist/http/transform/message.ts.js +17 -5
- package/dist/index.d.ts +3844 -2720
- package/dist/message/type.d.ts +30 -3
- package/dist/message/type.ts.js +16 -0
- package/dist/message/use-message.d.ts +685 -385
- package/dist/session/index.d.ts +1 -0
- package/dist/session/index.ts.js +2 -1
- package/dist/session/pv-file-upload.d.ts +7 -0
- package/dist/session/pv-file-upload.spec.d.ts +1 -0
- package/dist/session/pv-file-upload.ts.js +64 -0
- package/dist/session/type.d.ts +57 -0
- package/dist/session/use-session.d.ts +2539 -1933
- package/dist/session/use-session.spec.d.ts +1 -0
- package/dist/session/use-session.ts.js +117 -10
- package/package.json +4 -2
|
@@ -9,6 +9,17 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
9
9
|
list: import("vue").Ref<({
|
|
10
10
|
activityType: import("./type").ActivityType;
|
|
11
11
|
content: {
|
|
12
|
+
artifacts: {
|
|
13
|
+
name: string;
|
|
14
|
+
outputId: string;
|
|
15
|
+
size: number;
|
|
16
|
+
type: string;
|
|
17
|
+
previewUrl?: string;
|
|
18
|
+
url?: string;
|
|
19
|
+
}[];
|
|
20
|
+
runId: string;
|
|
21
|
+
status: "complete" | "empty";
|
|
22
|
+
} | {
|
|
12
23
|
nodes: Record<string, import("..").IFlowAgentNode>;
|
|
13
24
|
task_id: string;
|
|
14
25
|
task_name: string;
|
|
@@ -26,7 +37,33 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
26
37
|
originFileUrl?: string;
|
|
27
38
|
url: string;
|
|
28
39
|
}[];
|
|
40
|
+
property?: {
|
|
41
|
+
[x: string]: unknown;
|
|
42
|
+
artifacts?: {
|
|
43
|
+
name: string;
|
|
44
|
+
outputId: string;
|
|
45
|
+
size: number;
|
|
46
|
+
type: string;
|
|
47
|
+
previewUrl?: string;
|
|
48
|
+
url?: string;
|
|
49
|
+
}[];
|
|
50
|
+
extra?: {
|
|
51
|
+
[x: string]: unknown;
|
|
52
|
+
cite?: string | {
|
|
53
|
+
data: {
|
|
54
|
+
key: string;
|
|
55
|
+
value: string;
|
|
56
|
+
}[];
|
|
57
|
+
title: string;
|
|
58
|
+
type: string;
|
|
59
|
+
};
|
|
60
|
+
command?: string;
|
|
61
|
+
context?: Array<Record<string, unknown>>;
|
|
62
|
+
resources?: Array<Record<string, unknown>>;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
29
65
|
role: MessageRole.Activity;
|
|
66
|
+
createdAt?: string;
|
|
30
67
|
id?: string;
|
|
31
68
|
messageId?: string;
|
|
32
69
|
name?: string;
|
|
@@ -36,6 +73,14 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
36
73
|
content?: string;
|
|
37
74
|
property?: {
|
|
38
75
|
[x: string]: unknown;
|
|
76
|
+
artifacts?: {
|
|
77
|
+
name: string;
|
|
78
|
+
outputId: string;
|
|
79
|
+
size: number;
|
|
80
|
+
type: string;
|
|
81
|
+
previewUrl?: string;
|
|
82
|
+
url?: string;
|
|
83
|
+
}[];
|
|
39
84
|
extra?: {
|
|
40
85
|
[x: string]: unknown;
|
|
41
86
|
cite?: string | {
|
|
@@ -62,6 +107,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
62
107
|
id: string;
|
|
63
108
|
type: import("./type").MessageType.Function;
|
|
64
109
|
}[];
|
|
110
|
+
createdAt?: string;
|
|
65
111
|
id?: string;
|
|
66
112
|
messageId?: string;
|
|
67
113
|
name?: string;
|
|
@@ -70,6 +116,209 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
70
116
|
} | {
|
|
71
117
|
content: string;
|
|
72
118
|
role: MessageRole.Developer;
|
|
119
|
+
createdAt?: string;
|
|
120
|
+
id?: string;
|
|
121
|
+
messageId?: string;
|
|
122
|
+
name?: string;
|
|
123
|
+
sessionCode?: string;
|
|
124
|
+
status: MessageStatus;
|
|
125
|
+
} | {
|
|
126
|
+
content: string;
|
|
127
|
+
role: MessageRole.Guide;
|
|
128
|
+
createdAt?: string;
|
|
129
|
+
id?: string;
|
|
130
|
+
messageId?: string;
|
|
131
|
+
name?: string;
|
|
132
|
+
sessionCode?: string;
|
|
133
|
+
status: MessageStatus;
|
|
134
|
+
} | {
|
|
135
|
+
content: string;
|
|
136
|
+
role: MessageRole.HiddenAssistant;
|
|
137
|
+
createdAt?: string;
|
|
138
|
+
id?: string;
|
|
139
|
+
messageId?: string;
|
|
140
|
+
name?: string;
|
|
141
|
+
sessionCode?: string;
|
|
142
|
+
status: MessageStatus;
|
|
143
|
+
} | {
|
|
144
|
+
content: string;
|
|
145
|
+
role: MessageRole.HiddenGuide;
|
|
146
|
+
createdAt?: string;
|
|
147
|
+
id?: string;
|
|
148
|
+
messageId?: string;
|
|
149
|
+
name?: string;
|
|
150
|
+
sessionCode?: string;
|
|
151
|
+
status: MessageStatus;
|
|
152
|
+
} | {
|
|
153
|
+
content: string;
|
|
154
|
+
role: MessageRole.Hidden;
|
|
155
|
+
createdAt?: string;
|
|
156
|
+
id?: string;
|
|
157
|
+
messageId?: string;
|
|
158
|
+
name?: string;
|
|
159
|
+
sessionCode?: string;
|
|
160
|
+
status: MessageStatus;
|
|
161
|
+
} | {
|
|
162
|
+
content: string;
|
|
163
|
+
role: MessageRole.HiddenSystem;
|
|
164
|
+
createdAt?: string;
|
|
165
|
+
id?: string;
|
|
166
|
+
messageId?: string;
|
|
167
|
+
name?: string;
|
|
168
|
+
sessionCode?: string;
|
|
169
|
+
status: MessageStatus;
|
|
170
|
+
} | {
|
|
171
|
+
content: string;
|
|
172
|
+
role: MessageRole.HiddenUser;
|
|
173
|
+
createdAt?: string;
|
|
174
|
+
id?: string;
|
|
175
|
+
messageId?: string;
|
|
176
|
+
name?: string;
|
|
177
|
+
sessionCode?: string;
|
|
178
|
+
status: MessageStatus;
|
|
179
|
+
} | {
|
|
180
|
+
content: string;
|
|
181
|
+
role: MessageRole.Info;
|
|
182
|
+
createdAt?: string;
|
|
183
|
+
id?: string;
|
|
184
|
+
messageId?: string;
|
|
185
|
+
name?: string;
|
|
186
|
+
sessionCode?: string;
|
|
187
|
+
status: MessageStatus;
|
|
188
|
+
} | {
|
|
189
|
+
content: string;
|
|
190
|
+
role: MessageRole.Pause;
|
|
191
|
+
createdAt?: string;
|
|
192
|
+
id?: string;
|
|
193
|
+
messageId?: string;
|
|
194
|
+
name?: string;
|
|
195
|
+
sessionCode?: string;
|
|
196
|
+
status: MessageStatus;
|
|
197
|
+
} | {
|
|
198
|
+
content: string;
|
|
199
|
+
role: MessageRole.Placeholder;
|
|
200
|
+
createdAt?: string;
|
|
201
|
+
id?: string;
|
|
202
|
+
messageId?: string;
|
|
203
|
+
name?: string;
|
|
204
|
+
sessionCode?: string;
|
|
205
|
+
status: MessageStatus;
|
|
206
|
+
} | {
|
|
207
|
+
content: string[];
|
|
208
|
+
duration?: number;
|
|
209
|
+
role: MessageRole.Reasoning;
|
|
210
|
+
createdAt?: string;
|
|
211
|
+
id?: string;
|
|
212
|
+
messageId?: string;
|
|
213
|
+
name?: string;
|
|
214
|
+
sessionCode?: string;
|
|
215
|
+
status: MessageStatus;
|
|
216
|
+
} | {
|
|
217
|
+
content: string;
|
|
218
|
+
role: MessageRole.System;
|
|
219
|
+
createdAt?: string;
|
|
220
|
+
id?: string;
|
|
221
|
+
messageId?: string;
|
|
222
|
+
name?: string;
|
|
223
|
+
sessionCode?: string;
|
|
224
|
+
status: MessageStatus;
|
|
225
|
+
} | {
|
|
226
|
+
content: string;
|
|
227
|
+
role: MessageRole.TemplateAssistant;
|
|
228
|
+
createdAt?: string;
|
|
229
|
+
id?: string;
|
|
230
|
+
messageId?: string;
|
|
231
|
+
name?: string;
|
|
232
|
+
sessionCode?: string;
|
|
233
|
+
status: MessageStatus;
|
|
234
|
+
} | {
|
|
235
|
+
content: string;
|
|
236
|
+
role: MessageRole.TemplateGuide;
|
|
237
|
+
createdAt?: string;
|
|
238
|
+
id?: string;
|
|
239
|
+
messageId?: string;
|
|
240
|
+
name?: string;
|
|
241
|
+
sessionCode?: string;
|
|
242
|
+
status: MessageStatus;
|
|
243
|
+
} | {
|
|
244
|
+
content: string;
|
|
245
|
+
role: MessageRole.TemplateHidden;
|
|
246
|
+
createdAt?: string;
|
|
247
|
+
id?: string;
|
|
248
|
+
messageId?: string;
|
|
249
|
+
name?: string;
|
|
250
|
+
sessionCode?: string;
|
|
251
|
+
status: MessageStatus;
|
|
252
|
+
} | {
|
|
253
|
+
content: string;
|
|
254
|
+
role: MessageRole.TemplateSystem;
|
|
255
|
+
createdAt?: string;
|
|
256
|
+
id?: string;
|
|
257
|
+
messageId?: string;
|
|
258
|
+
name?: string;
|
|
259
|
+
sessionCode?: string;
|
|
260
|
+
status: MessageStatus;
|
|
261
|
+
} | {
|
|
262
|
+
content: string;
|
|
263
|
+
role: MessageRole.TemplateUser;
|
|
264
|
+
createdAt?: string;
|
|
265
|
+
id?: string;
|
|
266
|
+
messageId?: string;
|
|
267
|
+
name?: string;
|
|
268
|
+
sessionCode?: string;
|
|
269
|
+
status: MessageStatus;
|
|
270
|
+
} | {
|
|
271
|
+
content: string;
|
|
272
|
+
duration?: number;
|
|
273
|
+
error?: string;
|
|
274
|
+
role: MessageRole.Tool;
|
|
275
|
+
toolCallId: string;
|
|
276
|
+
createdAt?: string;
|
|
277
|
+
id?: string;
|
|
278
|
+
messageId?: string;
|
|
279
|
+
name?: string;
|
|
280
|
+
sessionCode?: string;
|
|
281
|
+
status: MessageStatus;
|
|
282
|
+
} | {
|
|
283
|
+
content: string | ({
|
|
284
|
+
data?: string;
|
|
285
|
+
filename?: string;
|
|
286
|
+
id?: string;
|
|
287
|
+
mimeType: string;
|
|
288
|
+
size?: number;
|
|
289
|
+
type: import("./type").MessageType.Binary;
|
|
290
|
+
url?: string;
|
|
291
|
+
} | {
|
|
292
|
+
text: string;
|
|
293
|
+
type: import("./type").MessageType.Text;
|
|
294
|
+
})[];
|
|
295
|
+
property?: {
|
|
296
|
+
[x: string]: unknown;
|
|
297
|
+
artifacts?: {
|
|
298
|
+
name: string;
|
|
299
|
+
outputId: string;
|
|
300
|
+
size: number;
|
|
301
|
+
type: string;
|
|
302
|
+
previewUrl?: string;
|
|
303
|
+
url?: string;
|
|
304
|
+
}[];
|
|
305
|
+
extra?: {
|
|
306
|
+
[x: string]: unknown;
|
|
307
|
+
cite?: string | {
|
|
308
|
+
data: {
|
|
309
|
+
key: string;
|
|
310
|
+
value: string;
|
|
311
|
+
}[];
|
|
312
|
+
title: string;
|
|
313
|
+
type: string;
|
|
314
|
+
};
|
|
315
|
+
command?: string;
|
|
316
|
+
context?: Array<Record<string, unknown>>;
|
|
317
|
+
resources?: Array<Record<string, unknown>>;
|
|
318
|
+
};
|
|
319
|
+
};
|
|
320
|
+
role: MessageRole.User;
|
|
321
|
+
createdAt?: string;
|
|
73
322
|
id?: string;
|
|
74
323
|
messageId?: string;
|
|
75
324
|
name?: string;
|
|
@@ -700,6 +949,123 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
700
949
|
timestamp?: number;
|
|
701
950
|
};
|
|
702
951
|
role: MessageRole.Interrupt;
|
|
952
|
+
createdAt?: string;
|
|
953
|
+
id?: string;
|
|
954
|
+
messageId?: string;
|
|
955
|
+
name?: string;
|
|
956
|
+
sessionCode?: string;
|
|
957
|
+
status: MessageStatus;
|
|
958
|
+
})[], IMessage[] | ({
|
|
959
|
+
activityType: import("./type").ActivityType;
|
|
960
|
+
content: {
|
|
961
|
+
artifacts: {
|
|
962
|
+
name: string;
|
|
963
|
+
outputId: string;
|
|
964
|
+
size: number;
|
|
965
|
+
type: string;
|
|
966
|
+
previewUrl?: string;
|
|
967
|
+
url?: string;
|
|
968
|
+
}[];
|
|
969
|
+
runId: string;
|
|
970
|
+
status: "complete" | "empty";
|
|
971
|
+
} | {
|
|
972
|
+
nodes: Record<string, import("..").IFlowAgentNode>;
|
|
973
|
+
task_id: string;
|
|
974
|
+
task_name: string;
|
|
975
|
+
task_outputs: string[];
|
|
976
|
+
task_state: import("..").FlowTaskState;
|
|
977
|
+
}[] | {
|
|
978
|
+
content: string;
|
|
979
|
+
referenceDocument: {
|
|
980
|
+
name: string;
|
|
981
|
+
originFileUrl?: string;
|
|
982
|
+
url: string;
|
|
983
|
+
}[];
|
|
984
|
+
} | {
|
|
985
|
+
name: string;
|
|
986
|
+
originFileUrl?: string;
|
|
987
|
+
url: string;
|
|
988
|
+
}[];
|
|
989
|
+
property?: {
|
|
990
|
+
[x: string]: unknown;
|
|
991
|
+
artifacts?: {
|
|
992
|
+
name: string;
|
|
993
|
+
outputId: string;
|
|
994
|
+
size: number;
|
|
995
|
+
type: string;
|
|
996
|
+
previewUrl?: string;
|
|
997
|
+
url?: string;
|
|
998
|
+
}[];
|
|
999
|
+
extra?: {
|
|
1000
|
+
[x: string]: unknown;
|
|
1001
|
+
cite?: string | {
|
|
1002
|
+
data: {
|
|
1003
|
+
key: string;
|
|
1004
|
+
value: string;
|
|
1005
|
+
}[];
|
|
1006
|
+
title: string;
|
|
1007
|
+
type: string;
|
|
1008
|
+
};
|
|
1009
|
+
command?: string;
|
|
1010
|
+
context?: Array<Record<string, unknown>>;
|
|
1011
|
+
resources?: Array<Record<string, unknown>>;
|
|
1012
|
+
};
|
|
1013
|
+
};
|
|
1014
|
+
role: MessageRole.Activity;
|
|
1015
|
+
createdAt?: string;
|
|
1016
|
+
id?: string;
|
|
1017
|
+
messageId?: string;
|
|
1018
|
+
name?: string;
|
|
1019
|
+
sessionCode?: string;
|
|
1020
|
+
status: MessageStatus;
|
|
1021
|
+
} | {
|
|
1022
|
+
content?: string;
|
|
1023
|
+
property?: {
|
|
1024
|
+
[x: string]: unknown;
|
|
1025
|
+
artifacts?: {
|
|
1026
|
+
name: string;
|
|
1027
|
+
outputId: string;
|
|
1028
|
+
size: number;
|
|
1029
|
+
type: string;
|
|
1030
|
+
previewUrl?: string;
|
|
1031
|
+
url?: string;
|
|
1032
|
+
}[];
|
|
1033
|
+
extra?: {
|
|
1034
|
+
[x: string]: unknown;
|
|
1035
|
+
cite?: string | {
|
|
1036
|
+
data: {
|
|
1037
|
+
key: string;
|
|
1038
|
+
value: string;
|
|
1039
|
+
}[];
|
|
1040
|
+
title: string;
|
|
1041
|
+
type: string;
|
|
1042
|
+
};
|
|
1043
|
+
command?: string;
|
|
1044
|
+
context?: Array<Record<string, unknown>>;
|
|
1045
|
+
resources?: Array<Record<string, unknown>>;
|
|
1046
|
+
};
|
|
1047
|
+
};
|
|
1048
|
+
role: MessageRole.Assistant;
|
|
1049
|
+
toolCalls?: {
|
|
1050
|
+
function: {
|
|
1051
|
+
arguments: string;
|
|
1052
|
+
description?: string;
|
|
1053
|
+
mcpName?: string;
|
|
1054
|
+
name: string;
|
|
1055
|
+
};
|
|
1056
|
+
id: string;
|
|
1057
|
+
type: import("./type").MessageType.Function;
|
|
1058
|
+
}[];
|
|
1059
|
+
createdAt?: string;
|
|
1060
|
+
id?: string;
|
|
1061
|
+
messageId?: string;
|
|
1062
|
+
name?: string;
|
|
1063
|
+
sessionCode?: string;
|
|
1064
|
+
status: MessageStatus;
|
|
1065
|
+
} | {
|
|
1066
|
+
content: string;
|
|
1067
|
+
role: MessageRole.Developer;
|
|
1068
|
+
createdAt?: string;
|
|
703
1069
|
id?: string;
|
|
704
1070
|
messageId?: string;
|
|
705
1071
|
name?: string;
|
|
@@ -708,6 +1074,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
708
1074
|
} | {
|
|
709
1075
|
content: string;
|
|
710
1076
|
role: MessageRole.Guide;
|
|
1077
|
+
createdAt?: string;
|
|
711
1078
|
id?: string;
|
|
712
1079
|
messageId?: string;
|
|
713
1080
|
name?: string;
|
|
@@ -716,6 +1083,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
716
1083
|
} | {
|
|
717
1084
|
content: string;
|
|
718
1085
|
role: MessageRole.HiddenAssistant;
|
|
1086
|
+
createdAt?: string;
|
|
719
1087
|
id?: string;
|
|
720
1088
|
messageId?: string;
|
|
721
1089
|
name?: string;
|
|
@@ -724,6 +1092,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
724
1092
|
} | {
|
|
725
1093
|
content: string;
|
|
726
1094
|
role: MessageRole.HiddenGuide;
|
|
1095
|
+
createdAt?: string;
|
|
727
1096
|
id?: string;
|
|
728
1097
|
messageId?: string;
|
|
729
1098
|
name?: string;
|
|
@@ -732,6 +1101,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
732
1101
|
} | {
|
|
733
1102
|
content: string;
|
|
734
1103
|
role: MessageRole.Hidden;
|
|
1104
|
+
createdAt?: string;
|
|
735
1105
|
id?: string;
|
|
736
1106
|
messageId?: string;
|
|
737
1107
|
name?: string;
|
|
@@ -740,6 +1110,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
740
1110
|
} | {
|
|
741
1111
|
content: string;
|
|
742
1112
|
role: MessageRole.HiddenSystem;
|
|
1113
|
+
createdAt?: string;
|
|
743
1114
|
id?: string;
|
|
744
1115
|
messageId?: string;
|
|
745
1116
|
name?: string;
|
|
@@ -748,6 +1119,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
748
1119
|
} | {
|
|
749
1120
|
content: string;
|
|
750
1121
|
role: MessageRole.HiddenUser;
|
|
1122
|
+
createdAt?: string;
|
|
751
1123
|
id?: string;
|
|
752
1124
|
messageId?: string;
|
|
753
1125
|
name?: string;
|
|
@@ -756,6 +1128,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
756
1128
|
} | {
|
|
757
1129
|
content: string;
|
|
758
1130
|
role: MessageRole.Info;
|
|
1131
|
+
createdAt?: string;
|
|
759
1132
|
id?: string;
|
|
760
1133
|
messageId?: string;
|
|
761
1134
|
name?: string;
|
|
@@ -764,6 +1137,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
764
1137
|
} | {
|
|
765
1138
|
content: string;
|
|
766
1139
|
role: MessageRole.Pause;
|
|
1140
|
+
createdAt?: string;
|
|
767
1141
|
id?: string;
|
|
768
1142
|
messageId?: string;
|
|
769
1143
|
name?: string;
|
|
@@ -772,6 +1146,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
772
1146
|
} | {
|
|
773
1147
|
content: string;
|
|
774
1148
|
role: MessageRole.Placeholder;
|
|
1149
|
+
createdAt?: string;
|
|
775
1150
|
id?: string;
|
|
776
1151
|
messageId?: string;
|
|
777
1152
|
name?: string;
|
|
@@ -781,6 +1156,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
781
1156
|
content: string[];
|
|
782
1157
|
duration?: number;
|
|
783
1158
|
role: MessageRole.Reasoning;
|
|
1159
|
+
createdAt?: string;
|
|
784
1160
|
id?: string;
|
|
785
1161
|
messageId?: string;
|
|
786
1162
|
name?: string;
|
|
@@ -789,6 +1165,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
789
1165
|
} | {
|
|
790
1166
|
content: string;
|
|
791
1167
|
role: MessageRole.System;
|
|
1168
|
+
createdAt?: string;
|
|
792
1169
|
id?: string;
|
|
793
1170
|
messageId?: string;
|
|
794
1171
|
name?: string;
|
|
@@ -797,6 +1174,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
797
1174
|
} | {
|
|
798
1175
|
content: string;
|
|
799
1176
|
role: MessageRole.TemplateAssistant;
|
|
1177
|
+
createdAt?: string;
|
|
800
1178
|
id?: string;
|
|
801
1179
|
messageId?: string;
|
|
802
1180
|
name?: string;
|
|
@@ -805,6 +1183,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
805
1183
|
} | {
|
|
806
1184
|
content: string;
|
|
807
1185
|
role: MessageRole.TemplateGuide;
|
|
1186
|
+
createdAt?: string;
|
|
808
1187
|
id?: string;
|
|
809
1188
|
messageId?: string;
|
|
810
1189
|
name?: string;
|
|
@@ -813,6 +1192,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
813
1192
|
} | {
|
|
814
1193
|
content: string;
|
|
815
1194
|
role: MessageRole.TemplateHidden;
|
|
1195
|
+
createdAt?: string;
|
|
816
1196
|
id?: string;
|
|
817
1197
|
messageId?: string;
|
|
818
1198
|
name?: string;
|
|
@@ -821,6 +1201,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
821
1201
|
} | {
|
|
822
1202
|
content: string;
|
|
823
1203
|
role: MessageRole.TemplateSystem;
|
|
1204
|
+
createdAt?: string;
|
|
824
1205
|
id?: string;
|
|
825
1206
|
messageId?: string;
|
|
826
1207
|
name?: string;
|
|
@@ -829,6 +1210,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
829
1210
|
} | {
|
|
830
1211
|
content: string;
|
|
831
1212
|
role: MessageRole.TemplateUser;
|
|
1213
|
+
createdAt?: string;
|
|
832
1214
|
id?: string;
|
|
833
1215
|
messageId?: string;
|
|
834
1216
|
name?: string;
|
|
@@ -840,6 +1222,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
840
1222
|
error?: string;
|
|
841
1223
|
role: MessageRole.Tool;
|
|
842
1224
|
toolCallId: string;
|
|
1225
|
+
createdAt?: string;
|
|
843
1226
|
id?: string;
|
|
844
1227
|
messageId?: string;
|
|
845
1228
|
name?: string;
|
|
@@ -851,6 +1234,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
851
1234
|
filename?: string;
|
|
852
1235
|
id?: string;
|
|
853
1236
|
mimeType: string;
|
|
1237
|
+
size?: number;
|
|
854
1238
|
type: import("./type").MessageType.Binary;
|
|
855
1239
|
url?: string;
|
|
856
1240
|
} | {
|
|
@@ -859,57 +1243,14 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
859
1243
|
})[];
|
|
860
1244
|
property?: {
|
|
861
1245
|
[x: string]: unknown;
|
|
862
|
-
|
|
863
|
-
[x: string]: unknown;
|
|
864
|
-
cite?: string | {
|
|
865
|
-
data: {
|
|
866
|
-
key: string;
|
|
867
|
-
value: string;
|
|
868
|
-
}[];
|
|
869
|
-
title: string;
|
|
870
|
-
type: string;
|
|
871
|
-
};
|
|
872
|
-
command?: string;
|
|
873
|
-
context?: Array<Record<string, unknown>>;
|
|
874
|
-
resources?: Array<Record<string, unknown>>;
|
|
875
|
-
};
|
|
876
|
-
};
|
|
877
|
-
role: MessageRole.User;
|
|
878
|
-
id?: string;
|
|
879
|
-
messageId?: string;
|
|
880
|
-
name?: string;
|
|
881
|
-
sessionCode?: string;
|
|
882
|
-
status: MessageStatus;
|
|
883
|
-
})[], IMessage[] | ({
|
|
884
|
-
activityType: import("./type").ActivityType;
|
|
885
|
-
content: {
|
|
886
|
-
nodes: Record<string, import("..").IFlowAgentNode>;
|
|
887
|
-
task_id: string;
|
|
888
|
-
task_name: string;
|
|
889
|
-
task_outputs: string[];
|
|
890
|
-
task_state: import("..").FlowTaskState;
|
|
891
|
-
}[] | {
|
|
892
|
-
content: string;
|
|
893
|
-
referenceDocument: {
|
|
1246
|
+
artifacts?: {
|
|
894
1247
|
name: string;
|
|
895
|
-
|
|
896
|
-
|
|
1248
|
+
outputId: string;
|
|
1249
|
+
size: number;
|
|
1250
|
+
type: string;
|
|
1251
|
+
previewUrl?: string;
|
|
1252
|
+
url?: string;
|
|
897
1253
|
}[];
|
|
898
|
-
} | {
|
|
899
|
-
name: string;
|
|
900
|
-
originFileUrl?: string;
|
|
901
|
-
url: string;
|
|
902
|
-
}[];
|
|
903
|
-
role: MessageRole.Activity;
|
|
904
|
-
id?: string;
|
|
905
|
-
messageId?: string;
|
|
906
|
-
name?: string;
|
|
907
|
-
sessionCode?: string;
|
|
908
|
-
status: MessageStatus;
|
|
909
|
-
} | {
|
|
910
|
-
content?: string;
|
|
911
|
-
property?: {
|
|
912
|
-
[x: string]: unknown;
|
|
913
1254
|
extra?: {
|
|
914
1255
|
[x: string]: unknown;
|
|
915
1256
|
cite?: string | {
|
|
@@ -925,25 +1266,8 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
925
1266
|
resources?: Array<Record<string, unknown>>;
|
|
926
1267
|
};
|
|
927
1268
|
};
|
|
928
|
-
role: MessageRole.
|
|
929
|
-
|
|
930
|
-
function: {
|
|
931
|
-
arguments: string;
|
|
932
|
-
description?: string;
|
|
933
|
-
mcpName?: string;
|
|
934
|
-
name: string;
|
|
935
|
-
};
|
|
936
|
-
id: string;
|
|
937
|
-
type: import("./type").MessageType.Function;
|
|
938
|
-
}[];
|
|
939
|
-
id?: string;
|
|
940
|
-
messageId?: string;
|
|
941
|
-
name?: string;
|
|
942
|
-
sessionCode?: string;
|
|
943
|
-
status: MessageStatus;
|
|
944
|
-
} | {
|
|
945
|
-
content: string;
|
|
946
|
-
role: MessageRole.Developer;
|
|
1269
|
+
role: MessageRole.User;
|
|
1270
|
+
createdAt?: string;
|
|
947
1271
|
id?: string;
|
|
948
1272
|
messageId?: string;
|
|
949
1273
|
name?: string;
|
|
@@ -1574,6 +1898,128 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
1574
1898
|
timestamp?: number;
|
|
1575
1899
|
};
|
|
1576
1900
|
role: MessageRole.Interrupt;
|
|
1901
|
+
createdAt?: string;
|
|
1902
|
+
id?: string;
|
|
1903
|
+
messageId?: string;
|
|
1904
|
+
name?: string;
|
|
1905
|
+
sessionCode?: string;
|
|
1906
|
+
status: MessageStatus;
|
|
1907
|
+
})[]>;
|
|
1908
|
+
isListLoading: import("vue").Ref<boolean, boolean>;
|
|
1909
|
+
isDeleteLoading: import("vue").Ref<boolean, boolean>;
|
|
1910
|
+
getMessages: (sessionCode: string) => Promise<void>;
|
|
1911
|
+
clearMessages: () => Promise<void>;
|
|
1912
|
+
getCurrentLoadingMessage: () => {
|
|
1913
|
+
activityType: import("./type").ActivityType;
|
|
1914
|
+
content: {
|
|
1915
|
+
artifacts: {
|
|
1916
|
+
name: string;
|
|
1917
|
+
outputId: string;
|
|
1918
|
+
size: number;
|
|
1919
|
+
type: string;
|
|
1920
|
+
previewUrl?: string;
|
|
1921
|
+
url?: string;
|
|
1922
|
+
}[];
|
|
1923
|
+
runId: string;
|
|
1924
|
+
status: "complete" | "empty";
|
|
1925
|
+
} | {
|
|
1926
|
+
nodes: Record<string, import("..").IFlowAgentNode>;
|
|
1927
|
+
task_id: string;
|
|
1928
|
+
task_name: string;
|
|
1929
|
+
task_outputs: string[];
|
|
1930
|
+
task_state: import("..").FlowTaskState;
|
|
1931
|
+
}[] | {
|
|
1932
|
+
content: string;
|
|
1933
|
+
referenceDocument: {
|
|
1934
|
+
name: string;
|
|
1935
|
+
originFileUrl?: string;
|
|
1936
|
+
url: string;
|
|
1937
|
+
}[];
|
|
1938
|
+
} | {
|
|
1939
|
+
name: string;
|
|
1940
|
+
originFileUrl?: string;
|
|
1941
|
+
url: string;
|
|
1942
|
+
}[];
|
|
1943
|
+
property?: {
|
|
1944
|
+
[x: string]: unknown;
|
|
1945
|
+
artifacts?: {
|
|
1946
|
+
name: string;
|
|
1947
|
+
outputId: string;
|
|
1948
|
+
size: number;
|
|
1949
|
+
type: string;
|
|
1950
|
+
previewUrl?: string;
|
|
1951
|
+
url?: string;
|
|
1952
|
+
}[];
|
|
1953
|
+
extra?: {
|
|
1954
|
+
[x: string]: unknown;
|
|
1955
|
+
cite?: string | {
|
|
1956
|
+
data: {
|
|
1957
|
+
key: string;
|
|
1958
|
+
value: string;
|
|
1959
|
+
}[];
|
|
1960
|
+
title: string;
|
|
1961
|
+
type: string;
|
|
1962
|
+
};
|
|
1963
|
+
command?: string;
|
|
1964
|
+
context?: Array<Record<string, unknown>>;
|
|
1965
|
+
resources?: Array<Record<string, unknown>>;
|
|
1966
|
+
};
|
|
1967
|
+
};
|
|
1968
|
+
role: MessageRole.Activity;
|
|
1969
|
+
createdAt?: string;
|
|
1970
|
+
id?: string;
|
|
1971
|
+
messageId?: string;
|
|
1972
|
+
name?: string;
|
|
1973
|
+
sessionCode?: string;
|
|
1974
|
+
status: MessageStatus;
|
|
1975
|
+
} | {
|
|
1976
|
+
content?: string;
|
|
1977
|
+
property?: {
|
|
1978
|
+
[x: string]: unknown;
|
|
1979
|
+
artifacts?: {
|
|
1980
|
+
name: string;
|
|
1981
|
+
outputId: string;
|
|
1982
|
+
size: number;
|
|
1983
|
+
type: string;
|
|
1984
|
+
previewUrl?: string;
|
|
1985
|
+
url?: string;
|
|
1986
|
+
}[];
|
|
1987
|
+
extra?: {
|
|
1988
|
+
[x: string]: unknown;
|
|
1989
|
+
cite?: string | {
|
|
1990
|
+
data: {
|
|
1991
|
+
key: string;
|
|
1992
|
+
value: string;
|
|
1993
|
+
}[];
|
|
1994
|
+
title: string;
|
|
1995
|
+
type: string;
|
|
1996
|
+
};
|
|
1997
|
+
command?: string;
|
|
1998
|
+
context?: Array<Record<string, unknown>>;
|
|
1999
|
+
resources?: Array<Record<string, unknown>>;
|
|
2000
|
+
};
|
|
2001
|
+
};
|
|
2002
|
+
role: MessageRole.Assistant;
|
|
2003
|
+
toolCalls?: {
|
|
2004
|
+
function: {
|
|
2005
|
+
arguments: string;
|
|
2006
|
+
description?: string;
|
|
2007
|
+
mcpName?: string;
|
|
2008
|
+
name: string;
|
|
2009
|
+
};
|
|
2010
|
+
id: string;
|
|
2011
|
+
type: import("./type").MessageType.Function;
|
|
2012
|
+
}[];
|
|
2013
|
+
createdAt?: string;
|
|
2014
|
+
id?: string;
|
|
2015
|
+
messageId?: string;
|
|
2016
|
+
name?: string;
|
|
2017
|
+
sessionCode?: string;
|
|
2018
|
+
status: MessageStatus;
|
|
2019
|
+
} | {
|
|
2020
|
+
content: string;
|
|
2021
|
+
role: MessageRole.Developer;
|
|
2022
|
+
createdAt?: string;
|
|
1577
2023
|
id?: string;
|
|
1578
2024
|
messageId?: string;
|
|
1579
2025
|
name?: string;
|
|
@@ -1582,6 +2028,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
1582
2028
|
} | {
|
|
1583
2029
|
content: string;
|
|
1584
2030
|
role: MessageRole.Guide;
|
|
2031
|
+
createdAt?: string;
|
|
1585
2032
|
id?: string;
|
|
1586
2033
|
messageId?: string;
|
|
1587
2034
|
name?: string;
|
|
@@ -1590,6 +2037,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
1590
2037
|
} | {
|
|
1591
2038
|
content: string;
|
|
1592
2039
|
role: MessageRole.HiddenAssistant;
|
|
2040
|
+
createdAt?: string;
|
|
1593
2041
|
id?: string;
|
|
1594
2042
|
messageId?: string;
|
|
1595
2043
|
name?: string;
|
|
@@ -1598,6 +2046,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
1598
2046
|
} | {
|
|
1599
2047
|
content: string;
|
|
1600
2048
|
role: MessageRole.HiddenGuide;
|
|
2049
|
+
createdAt?: string;
|
|
1601
2050
|
id?: string;
|
|
1602
2051
|
messageId?: string;
|
|
1603
2052
|
name?: string;
|
|
@@ -1606,6 +2055,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
1606
2055
|
} | {
|
|
1607
2056
|
content: string;
|
|
1608
2057
|
role: MessageRole.Hidden;
|
|
2058
|
+
createdAt?: string;
|
|
1609
2059
|
id?: string;
|
|
1610
2060
|
messageId?: string;
|
|
1611
2061
|
name?: string;
|
|
@@ -1614,6 +2064,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
1614
2064
|
} | {
|
|
1615
2065
|
content: string;
|
|
1616
2066
|
role: MessageRole.HiddenSystem;
|
|
2067
|
+
createdAt?: string;
|
|
1617
2068
|
id?: string;
|
|
1618
2069
|
messageId?: string;
|
|
1619
2070
|
name?: string;
|
|
@@ -1622,6 +2073,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
1622
2073
|
} | {
|
|
1623
2074
|
content: string;
|
|
1624
2075
|
role: MessageRole.HiddenUser;
|
|
2076
|
+
createdAt?: string;
|
|
1625
2077
|
id?: string;
|
|
1626
2078
|
messageId?: string;
|
|
1627
2079
|
name?: string;
|
|
@@ -1630,6 +2082,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
1630
2082
|
} | {
|
|
1631
2083
|
content: string;
|
|
1632
2084
|
role: MessageRole.Info;
|
|
2085
|
+
createdAt?: string;
|
|
1633
2086
|
id?: string;
|
|
1634
2087
|
messageId?: string;
|
|
1635
2088
|
name?: string;
|
|
@@ -1638,6 +2091,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
1638
2091
|
} | {
|
|
1639
2092
|
content: string;
|
|
1640
2093
|
role: MessageRole.Pause;
|
|
2094
|
+
createdAt?: string;
|
|
1641
2095
|
id?: string;
|
|
1642
2096
|
messageId?: string;
|
|
1643
2097
|
name?: string;
|
|
@@ -1646,6 +2100,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
1646
2100
|
} | {
|
|
1647
2101
|
content: string;
|
|
1648
2102
|
role: MessageRole.Placeholder;
|
|
2103
|
+
createdAt?: string;
|
|
1649
2104
|
id?: string;
|
|
1650
2105
|
messageId?: string;
|
|
1651
2106
|
name?: string;
|
|
@@ -1655,6 +2110,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
1655
2110
|
content: string[];
|
|
1656
2111
|
duration?: number;
|
|
1657
2112
|
role: MessageRole.Reasoning;
|
|
2113
|
+
createdAt?: string;
|
|
1658
2114
|
id?: string;
|
|
1659
2115
|
messageId?: string;
|
|
1660
2116
|
name?: string;
|
|
@@ -1663,6 +2119,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
1663
2119
|
} | {
|
|
1664
2120
|
content: string;
|
|
1665
2121
|
role: MessageRole.System;
|
|
2122
|
+
createdAt?: string;
|
|
1666
2123
|
id?: string;
|
|
1667
2124
|
messageId?: string;
|
|
1668
2125
|
name?: string;
|
|
@@ -1671,6 +2128,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
1671
2128
|
} | {
|
|
1672
2129
|
content: string;
|
|
1673
2130
|
role: MessageRole.TemplateAssistant;
|
|
2131
|
+
createdAt?: string;
|
|
1674
2132
|
id?: string;
|
|
1675
2133
|
messageId?: string;
|
|
1676
2134
|
name?: string;
|
|
@@ -1679,6 +2137,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
1679
2137
|
} | {
|
|
1680
2138
|
content: string;
|
|
1681
2139
|
role: MessageRole.TemplateGuide;
|
|
2140
|
+
createdAt?: string;
|
|
1682
2141
|
id?: string;
|
|
1683
2142
|
messageId?: string;
|
|
1684
2143
|
name?: string;
|
|
@@ -1687,6 +2146,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
1687
2146
|
} | {
|
|
1688
2147
|
content: string;
|
|
1689
2148
|
role: MessageRole.TemplateHidden;
|
|
2149
|
+
createdAt?: string;
|
|
1690
2150
|
id?: string;
|
|
1691
2151
|
messageId?: string;
|
|
1692
2152
|
name?: string;
|
|
@@ -1695,6 +2155,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
1695
2155
|
} | {
|
|
1696
2156
|
content: string;
|
|
1697
2157
|
role: MessageRole.TemplateSystem;
|
|
2158
|
+
createdAt?: string;
|
|
1698
2159
|
id?: string;
|
|
1699
2160
|
messageId?: string;
|
|
1700
2161
|
name?: string;
|
|
@@ -1703,6 +2164,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
1703
2164
|
} | {
|
|
1704
2165
|
content: string;
|
|
1705
2166
|
role: MessageRole.TemplateUser;
|
|
2167
|
+
createdAt?: string;
|
|
1706
2168
|
id?: string;
|
|
1707
2169
|
messageId?: string;
|
|
1708
2170
|
name?: string;
|
|
@@ -1714,6 +2176,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
1714
2176
|
error?: string;
|
|
1715
2177
|
role: MessageRole.Tool;
|
|
1716
2178
|
toolCallId: string;
|
|
2179
|
+
createdAt?: string;
|
|
1717
2180
|
id?: string;
|
|
1718
2181
|
messageId?: string;
|
|
1719
2182
|
name?: string;
|
|
@@ -1725,6 +2188,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
1725
2188
|
filename?: string;
|
|
1726
2189
|
id?: string;
|
|
1727
2190
|
mimeType: string;
|
|
2191
|
+
size?: number;
|
|
1728
2192
|
type: import("./type").MessageType.Binary;
|
|
1729
2193
|
url?: string;
|
|
1730
2194
|
} | {
|
|
@@ -1733,62 +2197,14 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
1733
2197
|
})[];
|
|
1734
2198
|
property?: {
|
|
1735
2199
|
[x: string]: unknown;
|
|
1736
|
-
|
|
1737
|
-
[x: string]: unknown;
|
|
1738
|
-
cite?: string | {
|
|
1739
|
-
data: {
|
|
1740
|
-
key: string;
|
|
1741
|
-
value: string;
|
|
1742
|
-
}[];
|
|
1743
|
-
title: string;
|
|
1744
|
-
type: string;
|
|
1745
|
-
};
|
|
1746
|
-
command?: string;
|
|
1747
|
-
context?: Array<Record<string, unknown>>;
|
|
1748
|
-
resources?: Array<Record<string, unknown>>;
|
|
1749
|
-
};
|
|
1750
|
-
};
|
|
1751
|
-
role: MessageRole.User;
|
|
1752
|
-
id?: string;
|
|
1753
|
-
messageId?: string;
|
|
1754
|
-
name?: string;
|
|
1755
|
-
sessionCode?: string;
|
|
1756
|
-
status: MessageStatus;
|
|
1757
|
-
})[]>;
|
|
1758
|
-
isListLoading: import("vue").Ref<boolean, boolean>;
|
|
1759
|
-
isDeleteLoading: import("vue").Ref<boolean, boolean>;
|
|
1760
|
-
getMessages: (sessionCode: string) => Promise<void>;
|
|
1761
|
-
clearMessages: () => Promise<void>;
|
|
1762
|
-
getCurrentLoadingMessage: () => {
|
|
1763
|
-
activityType: import("./type").ActivityType;
|
|
1764
|
-
content: {
|
|
1765
|
-
nodes: Record<string, import("..").IFlowAgentNode>;
|
|
1766
|
-
task_id: string;
|
|
1767
|
-
task_name: string;
|
|
1768
|
-
task_outputs: string[];
|
|
1769
|
-
task_state: import("..").FlowTaskState;
|
|
1770
|
-
}[] | {
|
|
1771
|
-
content: string;
|
|
1772
|
-
referenceDocument: {
|
|
2200
|
+
artifacts?: {
|
|
1773
2201
|
name: string;
|
|
1774
|
-
|
|
1775
|
-
|
|
2202
|
+
outputId: string;
|
|
2203
|
+
size: number;
|
|
2204
|
+
type: string;
|
|
2205
|
+
previewUrl?: string;
|
|
2206
|
+
url?: string;
|
|
1776
2207
|
}[];
|
|
1777
|
-
} | {
|
|
1778
|
-
name: string;
|
|
1779
|
-
originFileUrl?: string;
|
|
1780
|
-
url: string;
|
|
1781
|
-
}[];
|
|
1782
|
-
role: MessageRole.Activity;
|
|
1783
|
-
id?: string;
|
|
1784
|
-
messageId?: string;
|
|
1785
|
-
name?: string;
|
|
1786
|
-
sessionCode?: string;
|
|
1787
|
-
status: MessageStatus;
|
|
1788
|
-
} | {
|
|
1789
|
-
content?: string;
|
|
1790
|
-
property?: {
|
|
1791
|
-
[x: string]: unknown;
|
|
1792
2208
|
extra?: {
|
|
1793
2209
|
[x: string]: unknown;
|
|
1794
2210
|
cite?: string | {
|
|
@@ -1804,25 +2220,8 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
1804
2220
|
resources?: Array<Record<string, unknown>>;
|
|
1805
2221
|
};
|
|
1806
2222
|
};
|
|
1807
|
-
role: MessageRole.
|
|
1808
|
-
|
|
1809
|
-
function: {
|
|
1810
|
-
arguments: string;
|
|
1811
|
-
description?: string;
|
|
1812
|
-
mcpName?: string;
|
|
1813
|
-
name: string;
|
|
1814
|
-
};
|
|
1815
|
-
id: string;
|
|
1816
|
-
type: import("./type").MessageType.Function;
|
|
1817
|
-
}[];
|
|
1818
|
-
id?: string;
|
|
1819
|
-
messageId?: string;
|
|
1820
|
-
name?: string;
|
|
1821
|
-
sessionCode?: string;
|
|
1822
|
-
status: MessageStatus;
|
|
1823
|
-
} | {
|
|
1824
|
-
content: string;
|
|
1825
|
-
role: MessageRole.Developer;
|
|
2223
|
+
role: MessageRole.User;
|
|
2224
|
+
createdAt?: string;
|
|
1826
2225
|
id?: string;
|
|
1827
2226
|
messageId?: string;
|
|
1828
2227
|
name?: string;
|
|
@@ -2453,6 +2852,124 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
2453
2852
|
timestamp?: number;
|
|
2454
2853
|
};
|
|
2455
2854
|
role: MessageRole.Interrupt;
|
|
2855
|
+
createdAt?: string;
|
|
2856
|
+
id?: string;
|
|
2857
|
+
messageId?: string;
|
|
2858
|
+
name?: string;
|
|
2859
|
+
sessionCode?: string;
|
|
2860
|
+
status: MessageStatus;
|
|
2861
|
+
};
|
|
2862
|
+
getMessageByMessageId: (id: string) => {
|
|
2863
|
+
activityType: import("./type").ActivityType;
|
|
2864
|
+
content: {
|
|
2865
|
+
artifacts: {
|
|
2866
|
+
name: string;
|
|
2867
|
+
outputId: string;
|
|
2868
|
+
size: number;
|
|
2869
|
+
type: string;
|
|
2870
|
+
previewUrl?: string;
|
|
2871
|
+
url?: string;
|
|
2872
|
+
}[];
|
|
2873
|
+
runId: string;
|
|
2874
|
+
status: "complete" | "empty";
|
|
2875
|
+
} | {
|
|
2876
|
+
nodes: Record<string, import("..").IFlowAgentNode>;
|
|
2877
|
+
task_id: string;
|
|
2878
|
+
task_name: string;
|
|
2879
|
+
task_outputs: string[];
|
|
2880
|
+
task_state: import("..").FlowTaskState;
|
|
2881
|
+
}[] | {
|
|
2882
|
+
content: string;
|
|
2883
|
+
referenceDocument: {
|
|
2884
|
+
name: string;
|
|
2885
|
+
originFileUrl?: string;
|
|
2886
|
+
url: string;
|
|
2887
|
+
}[];
|
|
2888
|
+
} | {
|
|
2889
|
+
name: string;
|
|
2890
|
+
originFileUrl?: string;
|
|
2891
|
+
url: string;
|
|
2892
|
+
}[];
|
|
2893
|
+
property?: {
|
|
2894
|
+
[x: string]: unknown;
|
|
2895
|
+
artifacts?: {
|
|
2896
|
+
name: string;
|
|
2897
|
+
outputId: string;
|
|
2898
|
+
size: number;
|
|
2899
|
+
type: string;
|
|
2900
|
+
previewUrl?: string;
|
|
2901
|
+
url?: string;
|
|
2902
|
+
}[];
|
|
2903
|
+
extra?: {
|
|
2904
|
+
[x: string]: unknown;
|
|
2905
|
+
cite?: string | {
|
|
2906
|
+
data: {
|
|
2907
|
+
key: string;
|
|
2908
|
+
value: string;
|
|
2909
|
+
}[];
|
|
2910
|
+
title: string;
|
|
2911
|
+
type: string;
|
|
2912
|
+
};
|
|
2913
|
+
command?: string;
|
|
2914
|
+
context?: Array<Record<string, unknown>>;
|
|
2915
|
+
resources?: Array<Record<string, unknown>>;
|
|
2916
|
+
};
|
|
2917
|
+
};
|
|
2918
|
+
role: MessageRole.Activity;
|
|
2919
|
+
createdAt?: string;
|
|
2920
|
+
id?: string;
|
|
2921
|
+
messageId?: string;
|
|
2922
|
+
name?: string;
|
|
2923
|
+
sessionCode?: string;
|
|
2924
|
+
status: MessageStatus;
|
|
2925
|
+
} | {
|
|
2926
|
+
content?: string;
|
|
2927
|
+
property?: {
|
|
2928
|
+
[x: string]: unknown;
|
|
2929
|
+
artifacts?: {
|
|
2930
|
+
name: string;
|
|
2931
|
+
outputId: string;
|
|
2932
|
+
size: number;
|
|
2933
|
+
type: string;
|
|
2934
|
+
previewUrl?: string;
|
|
2935
|
+
url?: string;
|
|
2936
|
+
}[];
|
|
2937
|
+
extra?: {
|
|
2938
|
+
[x: string]: unknown;
|
|
2939
|
+
cite?: string | {
|
|
2940
|
+
data: {
|
|
2941
|
+
key: string;
|
|
2942
|
+
value: string;
|
|
2943
|
+
}[];
|
|
2944
|
+
title: string;
|
|
2945
|
+
type: string;
|
|
2946
|
+
};
|
|
2947
|
+
command?: string;
|
|
2948
|
+
context?: Array<Record<string, unknown>>;
|
|
2949
|
+
resources?: Array<Record<string, unknown>>;
|
|
2950
|
+
};
|
|
2951
|
+
};
|
|
2952
|
+
role: MessageRole.Assistant;
|
|
2953
|
+
toolCalls?: {
|
|
2954
|
+
function: {
|
|
2955
|
+
arguments: string;
|
|
2956
|
+
description?: string;
|
|
2957
|
+
mcpName?: string;
|
|
2958
|
+
name: string;
|
|
2959
|
+
};
|
|
2960
|
+
id: string;
|
|
2961
|
+
type: import("./type").MessageType.Function;
|
|
2962
|
+
}[];
|
|
2963
|
+
createdAt?: string;
|
|
2964
|
+
id?: string;
|
|
2965
|
+
messageId?: string;
|
|
2966
|
+
name?: string;
|
|
2967
|
+
sessionCode?: string;
|
|
2968
|
+
status: MessageStatus;
|
|
2969
|
+
} | {
|
|
2970
|
+
content: string;
|
|
2971
|
+
role: MessageRole.Developer;
|
|
2972
|
+
createdAt?: string;
|
|
2456
2973
|
id?: string;
|
|
2457
2974
|
messageId?: string;
|
|
2458
2975
|
name?: string;
|
|
@@ -2461,6 +2978,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
2461
2978
|
} | {
|
|
2462
2979
|
content: string;
|
|
2463
2980
|
role: MessageRole.Guide;
|
|
2981
|
+
createdAt?: string;
|
|
2464
2982
|
id?: string;
|
|
2465
2983
|
messageId?: string;
|
|
2466
2984
|
name?: string;
|
|
@@ -2469,6 +2987,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
2469
2987
|
} | {
|
|
2470
2988
|
content: string;
|
|
2471
2989
|
role: MessageRole.HiddenAssistant;
|
|
2990
|
+
createdAt?: string;
|
|
2472
2991
|
id?: string;
|
|
2473
2992
|
messageId?: string;
|
|
2474
2993
|
name?: string;
|
|
@@ -2477,6 +2996,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
2477
2996
|
} | {
|
|
2478
2997
|
content: string;
|
|
2479
2998
|
role: MessageRole.HiddenGuide;
|
|
2999
|
+
createdAt?: string;
|
|
2480
3000
|
id?: string;
|
|
2481
3001
|
messageId?: string;
|
|
2482
3002
|
name?: string;
|
|
@@ -2485,6 +3005,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
2485
3005
|
} | {
|
|
2486
3006
|
content: string;
|
|
2487
3007
|
role: MessageRole.Hidden;
|
|
3008
|
+
createdAt?: string;
|
|
2488
3009
|
id?: string;
|
|
2489
3010
|
messageId?: string;
|
|
2490
3011
|
name?: string;
|
|
@@ -2493,6 +3014,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
2493
3014
|
} | {
|
|
2494
3015
|
content: string;
|
|
2495
3016
|
role: MessageRole.HiddenSystem;
|
|
3017
|
+
createdAt?: string;
|
|
2496
3018
|
id?: string;
|
|
2497
3019
|
messageId?: string;
|
|
2498
3020
|
name?: string;
|
|
@@ -2501,6 +3023,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
2501
3023
|
} | {
|
|
2502
3024
|
content: string;
|
|
2503
3025
|
role: MessageRole.HiddenUser;
|
|
3026
|
+
createdAt?: string;
|
|
2504
3027
|
id?: string;
|
|
2505
3028
|
messageId?: string;
|
|
2506
3029
|
name?: string;
|
|
@@ -2509,6 +3032,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
2509
3032
|
} | {
|
|
2510
3033
|
content: string;
|
|
2511
3034
|
role: MessageRole.Info;
|
|
3035
|
+
createdAt?: string;
|
|
2512
3036
|
id?: string;
|
|
2513
3037
|
messageId?: string;
|
|
2514
3038
|
name?: string;
|
|
@@ -2517,6 +3041,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
2517
3041
|
} | {
|
|
2518
3042
|
content: string;
|
|
2519
3043
|
role: MessageRole.Pause;
|
|
3044
|
+
createdAt?: string;
|
|
2520
3045
|
id?: string;
|
|
2521
3046
|
messageId?: string;
|
|
2522
3047
|
name?: string;
|
|
@@ -2525,6 +3050,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
2525
3050
|
} | {
|
|
2526
3051
|
content: string;
|
|
2527
3052
|
role: MessageRole.Placeholder;
|
|
3053
|
+
createdAt?: string;
|
|
2528
3054
|
id?: string;
|
|
2529
3055
|
messageId?: string;
|
|
2530
3056
|
name?: string;
|
|
@@ -2534,6 +3060,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
2534
3060
|
content: string[];
|
|
2535
3061
|
duration?: number;
|
|
2536
3062
|
role: MessageRole.Reasoning;
|
|
3063
|
+
createdAt?: string;
|
|
2537
3064
|
id?: string;
|
|
2538
3065
|
messageId?: string;
|
|
2539
3066
|
name?: string;
|
|
@@ -2542,6 +3069,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
2542
3069
|
} | {
|
|
2543
3070
|
content: string;
|
|
2544
3071
|
role: MessageRole.System;
|
|
3072
|
+
createdAt?: string;
|
|
2545
3073
|
id?: string;
|
|
2546
3074
|
messageId?: string;
|
|
2547
3075
|
name?: string;
|
|
@@ -2550,6 +3078,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
2550
3078
|
} | {
|
|
2551
3079
|
content: string;
|
|
2552
3080
|
role: MessageRole.TemplateAssistant;
|
|
3081
|
+
createdAt?: string;
|
|
2553
3082
|
id?: string;
|
|
2554
3083
|
messageId?: string;
|
|
2555
3084
|
name?: string;
|
|
@@ -2558,6 +3087,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
2558
3087
|
} | {
|
|
2559
3088
|
content: string;
|
|
2560
3089
|
role: MessageRole.TemplateGuide;
|
|
3090
|
+
createdAt?: string;
|
|
2561
3091
|
id?: string;
|
|
2562
3092
|
messageId?: string;
|
|
2563
3093
|
name?: string;
|
|
@@ -2566,6 +3096,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
2566
3096
|
} | {
|
|
2567
3097
|
content: string;
|
|
2568
3098
|
role: MessageRole.TemplateHidden;
|
|
3099
|
+
createdAt?: string;
|
|
2569
3100
|
id?: string;
|
|
2570
3101
|
messageId?: string;
|
|
2571
3102
|
name?: string;
|
|
@@ -2574,6 +3105,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
2574
3105
|
} | {
|
|
2575
3106
|
content: string;
|
|
2576
3107
|
role: MessageRole.TemplateSystem;
|
|
3108
|
+
createdAt?: string;
|
|
2577
3109
|
id?: string;
|
|
2578
3110
|
messageId?: string;
|
|
2579
3111
|
name?: string;
|
|
@@ -2582,6 +3114,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
2582
3114
|
} | {
|
|
2583
3115
|
content: string;
|
|
2584
3116
|
role: MessageRole.TemplateUser;
|
|
3117
|
+
createdAt?: string;
|
|
2585
3118
|
id?: string;
|
|
2586
3119
|
messageId?: string;
|
|
2587
3120
|
name?: string;
|
|
@@ -2593,6 +3126,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
2593
3126
|
error?: string;
|
|
2594
3127
|
role: MessageRole.Tool;
|
|
2595
3128
|
toolCallId: string;
|
|
3129
|
+
createdAt?: string;
|
|
2596
3130
|
id?: string;
|
|
2597
3131
|
messageId?: string;
|
|
2598
3132
|
name?: string;
|
|
@@ -2604,6 +3138,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
2604
3138
|
filename?: string;
|
|
2605
3139
|
id?: string;
|
|
2606
3140
|
mimeType: string;
|
|
3141
|
+
size?: number;
|
|
2607
3142
|
type: import("./type").MessageType.Binary;
|
|
2608
3143
|
url?: string;
|
|
2609
3144
|
} | {
|
|
@@ -2612,58 +3147,14 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
2612
3147
|
})[];
|
|
2613
3148
|
property?: {
|
|
2614
3149
|
[x: string]: unknown;
|
|
2615
|
-
|
|
2616
|
-
[x: string]: unknown;
|
|
2617
|
-
cite?: string | {
|
|
2618
|
-
data: {
|
|
2619
|
-
key: string;
|
|
2620
|
-
value: string;
|
|
2621
|
-
}[];
|
|
2622
|
-
title: string;
|
|
2623
|
-
type: string;
|
|
2624
|
-
};
|
|
2625
|
-
command?: string;
|
|
2626
|
-
context?: Array<Record<string, unknown>>;
|
|
2627
|
-
resources?: Array<Record<string, unknown>>;
|
|
2628
|
-
};
|
|
2629
|
-
};
|
|
2630
|
-
role: MessageRole.User;
|
|
2631
|
-
id?: string;
|
|
2632
|
-
messageId?: string;
|
|
2633
|
-
name?: string;
|
|
2634
|
-
sessionCode?: string;
|
|
2635
|
-
status: MessageStatus;
|
|
2636
|
-
};
|
|
2637
|
-
getMessageByMessageId: (id: string) => {
|
|
2638
|
-
activityType: import("./type").ActivityType;
|
|
2639
|
-
content: {
|
|
2640
|
-
nodes: Record<string, import("..").IFlowAgentNode>;
|
|
2641
|
-
task_id: string;
|
|
2642
|
-
task_name: string;
|
|
2643
|
-
task_outputs: string[];
|
|
2644
|
-
task_state: import("..").FlowTaskState;
|
|
2645
|
-
}[] | {
|
|
2646
|
-
content: string;
|
|
2647
|
-
referenceDocument: {
|
|
3150
|
+
artifacts?: {
|
|
2648
3151
|
name: string;
|
|
2649
|
-
|
|
2650
|
-
|
|
3152
|
+
outputId: string;
|
|
3153
|
+
size: number;
|
|
3154
|
+
type: string;
|
|
3155
|
+
previewUrl?: string;
|
|
3156
|
+
url?: string;
|
|
2651
3157
|
}[];
|
|
2652
|
-
} | {
|
|
2653
|
-
name: string;
|
|
2654
|
-
originFileUrl?: string;
|
|
2655
|
-
url: string;
|
|
2656
|
-
}[];
|
|
2657
|
-
role: MessageRole.Activity;
|
|
2658
|
-
id?: string;
|
|
2659
|
-
messageId?: string;
|
|
2660
|
-
name?: string;
|
|
2661
|
-
sessionCode?: string;
|
|
2662
|
-
status: MessageStatus;
|
|
2663
|
-
} | {
|
|
2664
|
-
content?: string;
|
|
2665
|
-
property?: {
|
|
2666
|
-
[x: string]: unknown;
|
|
2667
3158
|
extra?: {
|
|
2668
3159
|
[x: string]: unknown;
|
|
2669
3160
|
cite?: string | {
|
|
@@ -2679,25 +3170,8 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
2679
3170
|
resources?: Array<Record<string, unknown>>;
|
|
2680
3171
|
};
|
|
2681
3172
|
};
|
|
2682
|
-
role: MessageRole.
|
|
2683
|
-
|
|
2684
|
-
function: {
|
|
2685
|
-
arguments: string;
|
|
2686
|
-
description?: string;
|
|
2687
|
-
mcpName?: string;
|
|
2688
|
-
name: string;
|
|
2689
|
-
};
|
|
2690
|
-
id: string;
|
|
2691
|
-
type: import("./type").MessageType.Function;
|
|
2692
|
-
}[];
|
|
2693
|
-
id?: string;
|
|
2694
|
-
messageId?: string;
|
|
2695
|
-
name?: string;
|
|
2696
|
-
sessionCode?: string;
|
|
2697
|
-
status: MessageStatus;
|
|
2698
|
-
} | {
|
|
2699
|
-
content: string;
|
|
2700
|
-
role: MessageRole.Developer;
|
|
3173
|
+
role: MessageRole.User;
|
|
3174
|
+
createdAt?: string;
|
|
2701
3175
|
id?: string;
|
|
2702
3176
|
messageId?: string;
|
|
2703
3177
|
name?: string;
|
|
@@ -3328,181 +3802,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
3328
3802
|
timestamp?: number;
|
|
3329
3803
|
};
|
|
3330
3804
|
role: MessageRole.Interrupt;
|
|
3331
|
-
|
|
3332
|
-
messageId?: string;
|
|
3333
|
-
name?: string;
|
|
3334
|
-
sessionCode?: string;
|
|
3335
|
-
status: MessageStatus;
|
|
3336
|
-
} | {
|
|
3337
|
-
content: string;
|
|
3338
|
-
role: MessageRole.Guide;
|
|
3339
|
-
id?: string;
|
|
3340
|
-
messageId?: string;
|
|
3341
|
-
name?: string;
|
|
3342
|
-
sessionCode?: string;
|
|
3343
|
-
status: MessageStatus;
|
|
3344
|
-
} | {
|
|
3345
|
-
content: string;
|
|
3346
|
-
role: MessageRole.HiddenAssistant;
|
|
3347
|
-
id?: string;
|
|
3348
|
-
messageId?: string;
|
|
3349
|
-
name?: string;
|
|
3350
|
-
sessionCode?: string;
|
|
3351
|
-
status: MessageStatus;
|
|
3352
|
-
} | {
|
|
3353
|
-
content: string;
|
|
3354
|
-
role: MessageRole.HiddenGuide;
|
|
3355
|
-
id?: string;
|
|
3356
|
-
messageId?: string;
|
|
3357
|
-
name?: string;
|
|
3358
|
-
sessionCode?: string;
|
|
3359
|
-
status: MessageStatus;
|
|
3360
|
-
} | {
|
|
3361
|
-
content: string;
|
|
3362
|
-
role: MessageRole.Hidden;
|
|
3363
|
-
id?: string;
|
|
3364
|
-
messageId?: string;
|
|
3365
|
-
name?: string;
|
|
3366
|
-
sessionCode?: string;
|
|
3367
|
-
status: MessageStatus;
|
|
3368
|
-
} | {
|
|
3369
|
-
content: string;
|
|
3370
|
-
role: MessageRole.HiddenSystem;
|
|
3371
|
-
id?: string;
|
|
3372
|
-
messageId?: string;
|
|
3373
|
-
name?: string;
|
|
3374
|
-
sessionCode?: string;
|
|
3375
|
-
status: MessageStatus;
|
|
3376
|
-
} | {
|
|
3377
|
-
content: string;
|
|
3378
|
-
role: MessageRole.HiddenUser;
|
|
3379
|
-
id?: string;
|
|
3380
|
-
messageId?: string;
|
|
3381
|
-
name?: string;
|
|
3382
|
-
sessionCode?: string;
|
|
3383
|
-
status: MessageStatus;
|
|
3384
|
-
} | {
|
|
3385
|
-
content: string;
|
|
3386
|
-
role: MessageRole.Info;
|
|
3387
|
-
id?: string;
|
|
3388
|
-
messageId?: string;
|
|
3389
|
-
name?: string;
|
|
3390
|
-
sessionCode?: string;
|
|
3391
|
-
status: MessageStatus;
|
|
3392
|
-
} | {
|
|
3393
|
-
content: string;
|
|
3394
|
-
role: MessageRole.Pause;
|
|
3395
|
-
id?: string;
|
|
3396
|
-
messageId?: string;
|
|
3397
|
-
name?: string;
|
|
3398
|
-
sessionCode?: string;
|
|
3399
|
-
status: MessageStatus;
|
|
3400
|
-
} | {
|
|
3401
|
-
content: string;
|
|
3402
|
-
role: MessageRole.Placeholder;
|
|
3403
|
-
id?: string;
|
|
3404
|
-
messageId?: string;
|
|
3405
|
-
name?: string;
|
|
3406
|
-
sessionCode?: string;
|
|
3407
|
-
status: MessageStatus;
|
|
3408
|
-
} | {
|
|
3409
|
-
content: string[];
|
|
3410
|
-
duration?: number;
|
|
3411
|
-
role: MessageRole.Reasoning;
|
|
3412
|
-
id?: string;
|
|
3413
|
-
messageId?: string;
|
|
3414
|
-
name?: string;
|
|
3415
|
-
sessionCode?: string;
|
|
3416
|
-
status: MessageStatus;
|
|
3417
|
-
} | {
|
|
3418
|
-
content: string;
|
|
3419
|
-
role: MessageRole.System;
|
|
3420
|
-
id?: string;
|
|
3421
|
-
messageId?: string;
|
|
3422
|
-
name?: string;
|
|
3423
|
-
sessionCode?: string;
|
|
3424
|
-
status: MessageStatus;
|
|
3425
|
-
} | {
|
|
3426
|
-
content: string;
|
|
3427
|
-
role: MessageRole.TemplateAssistant;
|
|
3428
|
-
id?: string;
|
|
3429
|
-
messageId?: string;
|
|
3430
|
-
name?: string;
|
|
3431
|
-
sessionCode?: string;
|
|
3432
|
-
status: MessageStatus;
|
|
3433
|
-
} | {
|
|
3434
|
-
content: string;
|
|
3435
|
-
role: MessageRole.TemplateGuide;
|
|
3436
|
-
id?: string;
|
|
3437
|
-
messageId?: string;
|
|
3438
|
-
name?: string;
|
|
3439
|
-
sessionCode?: string;
|
|
3440
|
-
status: MessageStatus;
|
|
3441
|
-
} | {
|
|
3442
|
-
content: string;
|
|
3443
|
-
role: MessageRole.TemplateHidden;
|
|
3444
|
-
id?: string;
|
|
3445
|
-
messageId?: string;
|
|
3446
|
-
name?: string;
|
|
3447
|
-
sessionCode?: string;
|
|
3448
|
-
status: MessageStatus;
|
|
3449
|
-
} | {
|
|
3450
|
-
content: string;
|
|
3451
|
-
role: MessageRole.TemplateSystem;
|
|
3452
|
-
id?: string;
|
|
3453
|
-
messageId?: string;
|
|
3454
|
-
name?: string;
|
|
3455
|
-
sessionCode?: string;
|
|
3456
|
-
status: MessageStatus;
|
|
3457
|
-
} | {
|
|
3458
|
-
content: string;
|
|
3459
|
-
role: MessageRole.TemplateUser;
|
|
3460
|
-
id?: string;
|
|
3461
|
-
messageId?: string;
|
|
3462
|
-
name?: string;
|
|
3463
|
-
sessionCode?: string;
|
|
3464
|
-
status: MessageStatus;
|
|
3465
|
-
} | {
|
|
3466
|
-
content: string;
|
|
3467
|
-
duration?: number;
|
|
3468
|
-
error?: string;
|
|
3469
|
-
role: MessageRole.Tool;
|
|
3470
|
-
toolCallId: string;
|
|
3471
|
-
id?: string;
|
|
3472
|
-
messageId?: string;
|
|
3473
|
-
name?: string;
|
|
3474
|
-
sessionCode?: string;
|
|
3475
|
-
status: MessageStatus;
|
|
3476
|
-
} | {
|
|
3477
|
-
content: string | ({
|
|
3478
|
-
data?: string;
|
|
3479
|
-
filename?: string;
|
|
3480
|
-
id?: string;
|
|
3481
|
-
mimeType: string;
|
|
3482
|
-
type: import("./type").MessageType.Binary;
|
|
3483
|
-
url?: string;
|
|
3484
|
-
} | {
|
|
3485
|
-
text: string;
|
|
3486
|
-
type: import("./type").MessageType.Text;
|
|
3487
|
-
})[];
|
|
3488
|
-
property?: {
|
|
3489
|
-
[x: string]: unknown;
|
|
3490
|
-
extra?: {
|
|
3491
|
-
[x: string]: unknown;
|
|
3492
|
-
cite?: string | {
|
|
3493
|
-
data: {
|
|
3494
|
-
key: string;
|
|
3495
|
-
value: string;
|
|
3496
|
-
}[];
|
|
3497
|
-
title: string;
|
|
3498
|
-
type: string;
|
|
3499
|
-
};
|
|
3500
|
-
command?: string;
|
|
3501
|
-
context?: Array<Record<string, unknown>>;
|
|
3502
|
-
resources?: Array<Record<string, unknown>>;
|
|
3503
|
-
};
|
|
3504
|
-
};
|
|
3505
|
-
role: MessageRole.User;
|
|
3805
|
+
createdAt?: string;
|
|
3506
3806
|
id?: string;
|
|
3507
3807
|
messageId?: string;
|
|
3508
3808
|
name?: string;
|