@blueking/chat-helper 0.0.1-beta.24 → 0.0.1-beta.26
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/agent/type.d.ts +4 -2
- package/dist/agent/type.ts.js +1 -1
- package/dist/agent/use-agent.d.ts +48 -50
- package/dist/agent/use-agent.ts.js +6 -1
- package/dist/http/transform/message.ts.js +2 -0
- package/dist/index.d.ts +264 -50
- package/dist/message/type.d.ts +4 -0
- package/dist/message/use-message.d.ts +72 -0
- package/dist/session/use-session.d.ts +144 -0
- package/package.json +1 -1
package/dist/agent/type.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ export interface IAgentCommandComponentApi {
|
|
|
53
53
|
}
|
|
54
54
|
export interface IAgentInfo {
|
|
55
55
|
agentName?: string;
|
|
56
|
-
resources?:
|
|
56
|
+
resources?: IAgentResourceItem[];
|
|
57
57
|
saasUrl?: string;
|
|
58
58
|
chatGroup?: {
|
|
59
59
|
enabled: boolean;
|
|
@@ -72,7 +72,7 @@ export interface IAgentInfo {
|
|
|
72
72
|
}
|
|
73
73
|
export interface IAgentInfoApi {
|
|
74
74
|
agent_name: string;
|
|
75
|
-
resources?:
|
|
75
|
+
resources?: IAgentResourceItem[];
|
|
76
76
|
saas_url?: string;
|
|
77
77
|
chat_group?: {
|
|
78
78
|
enabled: boolean;
|
|
@@ -94,7 +94,9 @@ export interface IAgentResourceItem {
|
|
|
94
94
|
icon: null | string;
|
|
95
95
|
id: null | number;
|
|
96
96
|
name: string;
|
|
97
|
+
type: string;
|
|
97
98
|
}
|
|
99
|
+
/** @deprecated 后端已改为扁平列表 IAgentResourceItem[],不再使用分组结构 */
|
|
98
100
|
export interface IAgentResources {
|
|
99
101
|
command?: IAgentResourceItem[];
|
|
100
102
|
knowledgebase?: IAgentResourceItem[];
|
package/dist/agent/type.ts.js
CHANGED
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
|
23
23
|
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
24
24
|
* IN THE SOFTWARE.
|
|
25
|
-
*/ export { };
|
|
25
|
+
*/ /** @deprecated 后端已改为扁平列表 IAgentResourceItem[],不再使用分组结构 */ export { };
|
|
@@ -12,31 +12,12 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
|
|
|
12
12
|
info: import("vue").Ref<{
|
|
13
13
|
agentName?: string;
|
|
14
14
|
resources?: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
knowledgebase?: {
|
|
22
|
-
code: string;
|
|
23
|
-
icon: null | string;
|
|
24
|
-
id: null | number;
|
|
25
|
-
name: string;
|
|
26
|
-
}[];
|
|
27
|
-
mcp?: {
|
|
28
|
-
code: string;
|
|
29
|
-
icon: null | string;
|
|
30
|
-
id: null | number;
|
|
31
|
-
name: string;
|
|
32
|
-
}[];
|
|
33
|
-
tool?: {
|
|
34
|
-
code: string;
|
|
35
|
-
icon: null | string;
|
|
36
|
-
id: null | number;
|
|
37
|
-
name: string;
|
|
38
|
-
}[];
|
|
39
|
-
};
|
|
15
|
+
code: string;
|
|
16
|
+
icon: null | string;
|
|
17
|
+
id: null | number;
|
|
18
|
+
name: string;
|
|
19
|
+
type: string;
|
|
20
|
+
}[];
|
|
40
21
|
saasUrl?: string;
|
|
41
22
|
chatGroup?: {
|
|
42
23
|
enabled: boolean;
|
|
@@ -97,6 +78,23 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
|
|
|
97
78
|
status: MessageStatus;
|
|
98
79
|
} | {
|
|
99
80
|
content?: string;
|
|
81
|
+
property?: {
|
|
82
|
+
[x: string]: unknown;
|
|
83
|
+
extra?: {
|
|
84
|
+
[x: string]: unknown;
|
|
85
|
+
cite?: string | {
|
|
86
|
+
data: {
|
|
87
|
+
key: string;
|
|
88
|
+
value: string;
|
|
89
|
+
}[];
|
|
90
|
+
title: string;
|
|
91
|
+
type: string;
|
|
92
|
+
};
|
|
93
|
+
command?: string;
|
|
94
|
+
context?: Array<Record<string, unknown>>;
|
|
95
|
+
resources?: Array<Record<string, unknown>>;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
100
98
|
role: MessageRole.Assistant;
|
|
101
99
|
toolCalls?: {
|
|
102
100
|
function: {
|
|
@@ -287,6 +285,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
|
|
|
287
285
|
};
|
|
288
286
|
command?: string;
|
|
289
287
|
context?: Array<Record<string, unknown>>;
|
|
288
|
+
resources?: Array<Record<string, unknown>>;
|
|
290
289
|
};
|
|
291
290
|
};
|
|
292
291
|
role: MessageRole.User;
|
|
@@ -300,31 +299,12 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
|
|
|
300
299
|
}, IAgentInfo | {
|
|
301
300
|
agentName?: string;
|
|
302
301
|
resources?: {
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
knowledgebase?: {
|
|
310
|
-
code: string;
|
|
311
|
-
icon: null | string;
|
|
312
|
-
id: null | number;
|
|
313
|
-
name: string;
|
|
314
|
-
}[];
|
|
315
|
-
mcp?: {
|
|
316
|
-
code: string;
|
|
317
|
-
icon: null | string;
|
|
318
|
-
id: null | number;
|
|
319
|
-
name: string;
|
|
320
|
-
}[];
|
|
321
|
-
tool?: {
|
|
322
|
-
code: string;
|
|
323
|
-
icon: null | string;
|
|
324
|
-
id: null | number;
|
|
325
|
-
name: string;
|
|
326
|
-
}[];
|
|
327
|
-
};
|
|
302
|
+
code: string;
|
|
303
|
+
icon: null | string;
|
|
304
|
+
id: null | number;
|
|
305
|
+
name: string;
|
|
306
|
+
type: string;
|
|
307
|
+
}[];
|
|
328
308
|
saasUrl?: string;
|
|
329
309
|
chatGroup?: {
|
|
330
310
|
enabled: boolean;
|
|
@@ -385,6 +365,23 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
|
|
|
385
365
|
status: MessageStatus;
|
|
386
366
|
} | {
|
|
387
367
|
content?: string;
|
|
368
|
+
property?: {
|
|
369
|
+
[x: string]: unknown;
|
|
370
|
+
extra?: {
|
|
371
|
+
[x: string]: unknown;
|
|
372
|
+
cite?: string | {
|
|
373
|
+
data: {
|
|
374
|
+
key: string;
|
|
375
|
+
value: string;
|
|
376
|
+
}[];
|
|
377
|
+
title: string;
|
|
378
|
+
type: string;
|
|
379
|
+
};
|
|
380
|
+
command?: string;
|
|
381
|
+
context?: Array<Record<string, unknown>>;
|
|
382
|
+
resources?: Array<Record<string, unknown>>;
|
|
383
|
+
};
|
|
384
|
+
};
|
|
388
385
|
role: MessageRole.Assistant;
|
|
389
386
|
toolCalls?: {
|
|
390
387
|
function: {
|
|
@@ -575,6 +572,7 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
|
|
|
575
572
|
};
|
|
576
573
|
command?: string;
|
|
577
574
|
context?: Array<Record<string, unknown>>;
|
|
575
|
+
resources?: Array<Record<string, unknown>>;
|
|
578
576
|
};
|
|
579
577
|
};
|
|
580
578
|
role: MessageRole.User;
|
|
@@ -111,7 +111,12 @@ import { MessageRole, MessageStatus } from '../message/index.ts.js';
|
|
|
111
111
|
role: MessageRole.Assistant,
|
|
112
112
|
content: lastRoleMessage.content,
|
|
113
113
|
status: MessageStatus.Complete,
|
|
114
|
-
sessionCode
|
|
114
|
+
sessionCode,
|
|
115
|
+
property: {
|
|
116
|
+
extra: {
|
|
117
|
+
pause: true
|
|
118
|
+
}
|
|
119
|
+
}
|
|
115
120
|
});
|
|
116
121
|
}
|
|
117
122
|
};
|
|
@@ -117,6 +117,7 @@ import { MessageRole, MessageType } from '../../message/type.ts.js';
|
|
|
117
117
|
const assistantData = data;
|
|
118
118
|
const result = _object_spread_props(_object_spread({}, baseMessage), {
|
|
119
119
|
content: assistantData.content,
|
|
120
|
+
property: assistantData.property,
|
|
120
121
|
role: assistantData.role,
|
|
121
122
|
toolCalls: (_assistantData_tool_calls = assistantData.tool_calls) === null || _assistantData_tool_calls === void 0 ? void 0 : _assistantData_tool_calls.map((toolCall)=>{
|
|
122
123
|
return {
|
|
@@ -366,6 +367,7 @@ import { MessageRole, MessageType } from '../../message/type.ts.js';
|
|
|
366
367
|
var _assistantData_toolCalls;
|
|
367
368
|
const assistantData = data;
|
|
368
369
|
const result = _object_spread_props(_object_spread({}, baseMessage), {
|
|
370
|
+
property: assistantData.property,
|
|
369
371
|
content: assistantData.content,
|
|
370
372
|
role: assistantData.role,
|
|
371
373
|
tool_calls: (_assistantData_toolCalls = assistantData.toolCalls) === null || _assistantData_toolCalls === void 0 ? void 0 : _assistantData_toolCalls.map((toolCall)=>{
|
package/dist/index.d.ts
CHANGED
|
@@ -14,31 +14,12 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
14
14
|
info: import("vue").Ref<{
|
|
15
15
|
agentName?: string;
|
|
16
16
|
resources?: {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
knowledgebase?: {
|
|
24
|
-
code: string;
|
|
25
|
-
icon: null | string;
|
|
26
|
-
id: null | number;
|
|
27
|
-
name: string;
|
|
28
|
-
}[];
|
|
29
|
-
mcp?: {
|
|
30
|
-
code: string;
|
|
31
|
-
icon: null | string;
|
|
32
|
-
id: null | number;
|
|
33
|
-
name: string;
|
|
34
|
-
}[];
|
|
35
|
-
tool?: {
|
|
36
|
-
code: string;
|
|
37
|
-
icon: null | string;
|
|
38
|
-
id: null | number;
|
|
39
|
-
name: string;
|
|
40
|
-
}[];
|
|
41
|
-
};
|
|
17
|
+
code: string;
|
|
18
|
+
icon: null | string;
|
|
19
|
+
id: null | number;
|
|
20
|
+
name: string;
|
|
21
|
+
type: string;
|
|
22
|
+
}[];
|
|
42
23
|
saasUrl?: string;
|
|
43
24
|
chatGroup?: {
|
|
44
25
|
enabled: boolean;
|
|
@@ -99,6 +80,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
99
80
|
status: import("./message").MessageStatus;
|
|
100
81
|
} | {
|
|
101
82
|
content?: string;
|
|
83
|
+
property?: {
|
|
84
|
+
[x: string]: unknown;
|
|
85
|
+
extra?: {
|
|
86
|
+
[x: string]: unknown;
|
|
87
|
+
cite?: string | {
|
|
88
|
+
data: {
|
|
89
|
+
key: string;
|
|
90
|
+
value: string;
|
|
91
|
+
}[];
|
|
92
|
+
title: string;
|
|
93
|
+
type: string;
|
|
94
|
+
};
|
|
95
|
+
command?: string;
|
|
96
|
+
context?: Array<Record<string, unknown>>;
|
|
97
|
+
resources?: Array<Record<string, unknown>>;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
102
100
|
role: import("./message").MessageRole.Assistant;
|
|
103
101
|
toolCalls?: {
|
|
104
102
|
function: {
|
|
@@ -289,6 +287,7 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
289
287
|
};
|
|
290
288
|
command?: string;
|
|
291
289
|
context?: Array<Record<string, unknown>>;
|
|
290
|
+
resources?: Array<Record<string, unknown>>;
|
|
292
291
|
};
|
|
293
292
|
};
|
|
294
293
|
role: import("./message").MessageRole.User;
|
|
@@ -302,31 +301,12 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
302
301
|
}, import("./agent").IAgentInfo | {
|
|
303
302
|
agentName?: string;
|
|
304
303
|
resources?: {
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
knowledgebase?: {
|
|
312
|
-
code: string;
|
|
313
|
-
icon: null | string;
|
|
314
|
-
id: null | number;
|
|
315
|
-
name: string;
|
|
316
|
-
}[];
|
|
317
|
-
mcp?: {
|
|
318
|
-
code: string;
|
|
319
|
-
icon: null | string;
|
|
320
|
-
id: null | number;
|
|
321
|
-
name: string;
|
|
322
|
-
}[];
|
|
323
|
-
tool?: {
|
|
324
|
-
code: string;
|
|
325
|
-
icon: null | string;
|
|
326
|
-
id: null | number;
|
|
327
|
-
name: string;
|
|
328
|
-
}[];
|
|
329
|
-
};
|
|
304
|
+
code: string;
|
|
305
|
+
icon: null | string;
|
|
306
|
+
id: null | number;
|
|
307
|
+
name: string;
|
|
308
|
+
type: string;
|
|
309
|
+
}[];
|
|
330
310
|
saasUrl?: string;
|
|
331
311
|
chatGroup?: {
|
|
332
312
|
enabled: boolean;
|
|
@@ -387,6 +367,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
387
367
|
status: import("./message").MessageStatus;
|
|
388
368
|
} | {
|
|
389
369
|
content?: string;
|
|
370
|
+
property?: {
|
|
371
|
+
[x: string]: unknown;
|
|
372
|
+
extra?: {
|
|
373
|
+
[x: string]: unknown;
|
|
374
|
+
cite?: string | {
|
|
375
|
+
data: {
|
|
376
|
+
key: string;
|
|
377
|
+
value: string;
|
|
378
|
+
}[];
|
|
379
|
+
title: string;
|
|
380
|
+
type: string;
|
|
381
|
+
};
|
|
382
|
+
command?: string;
|
|
383
|
+
context?: Array<Record<string, unknown>>;
|
|
384
|
+
resources?: Array<Record<string, unknown>>;
|
|
385
|
+
};
|
|
386
|
+
};
|
|
390
387
|
role: import("./message").MessageRole.Assistant;
|
|
391
388
|
toolCalls?: {
|
|
392
389
|
function: {
|
|
@@ -577,6 +574,7 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
577
574
|
};
|
|
578
575
|
command?: string;
|
|
579
576
|
context?: Array<Record<string, unknown>>;
|
|
577
|
+
resources?: Array<Record<string, unknown>>;
|
|
580
578
|
};
|
|
581
579
|
};
|
|
582
580
|
role: import("./message").MessageRole.User;
|
|
@@ -638,6 +636,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
638
636
|
status: import("./message").MessageStatus;
|
|
639
637
|
} | {
|
|
640
638
|
content?: string;
|
|
639
|
+
property?: {
|
|
640
|
+
[x: string]: unknown;
|
|
641
|
+
extra?: {
|
|
642
|
+
[x: string]: unknown;
|
|
643
|
+
cite?: string | {
|
|
644
|
+
data: {
|
|
645
|
+
key: string;
|
|
646
|
+
value: string;
|
|
647
|
+
}[];
|
|
648
|
+
title: string;
|
|
649
|
+
type: string;
|
|
650
|
+
};
|
|
651
|
+
command?: string;
|
|
652
|
+
context?: Array<Record<string, unknown>>;
|
|
653
|
+
resources?: Array<Record<string, unknown>>;
|
|
654
|
+
};
|
|
655
|
+
};
|
|
641
656
|
role: import("./message").MessageRole.Assistant;
|
|
642
657
|
toolCalls?: {
|
|
643
658
|
function: {
|
|
@@ -828,6 +843,7 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
828
843
|
};
|
|
829
844
|
command?: string;
|
|
830
845
|
context?: Array<Record<string, unknown>>;
|
|
846
|
+
resources?: Array<Record<string, unknown>>;
|
|
831
847
|
};
|
|
832
848
|
};
|
|
833
849
|
role: import("./message").MessageRole.User;
|
|
@@ -861,6 +877,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
861
877
|
status: import("./message").MessageStatus;
|
|
862
878
|
} | {
|
|
863
879
|
content?: string;
|
|
880
|
+
property?: {
|
|
881
|
+
[x: string]: unknown;
|
|
882
|
+
extra?: {
|
|
883
|
+
[x: string]: unknown;
|
|
884
|
+
cite?: string | {
|
|
885
|
+
data: {
|
|
886
|
+
key: string;
|
|
887
|
+
value: string;
|
|
888
|
+
}[];
|
|
889
|
+
title: string;
|
|
890
|
+
type: string;
|
|
891
|
+
};
|
|
892
|
+
command?: string;
|
|
893
|
+
context?: Array<Record<string, unknown>>;
|
|
894
|
+
resources?: Array<Record<string, unknown>>;
|
|
895
|
+
};
|
|
896
|
+
};
|
|
864
897
|
role: import("./message").MessageRole.Assistant;
|
|
865
898
|
toolCalls?: {
|
|
866
899
|
function: {
|
|
@@ -1051,6 +1084,7 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
1051
1084
|
};
|
|
1052
1085
|
command?: string;
|
|
1053
1086
|
context?: Array<Record<string, unknown>>;
|
|
1087
|
+
resources?: Array<Record<string, unknown>>;
|
|
1054
1088
|
};
|
|
1055
1089
|
};
|
|
1056
1090
|
role: import("./message").MessageRole.User;
|
|
@@ -1104,6 +1138,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
1104
1138
|
status: import("./message").MessageStatus;
|
|
1105
1139
|
} | {
|
|
1106
1140
|
content?: string;
|
|
1141
|
+
property?: {
|
|
1142
|
+
[x: string]: unknown;
|
|
1143
|
+
extra?: {
|
|
1144
|
+
[x: string]: unknown;
|
|
1145
|
+
cite?: string | {
|
|
1146
|
+
data: {
|
|
1147
|
+
key: string;
|
|
1148
|
+
value: string;
|
|
1149
|
+
}[];
|
|
1150
|
+
title: string;
|
|
1151
|
+
type: string;
|
|
1152
|
+
};
|
|
1153
|
+
command?: string;
|
|
1154
|
+
context?: Array<Record<string, unknown>>;
|
|
1155
|
+
resources?: Array<Record<string, unknown>>;
|
|
1156
|
+
};
|
|
1157
|
+
};
|
|
1107
1158
|
role: import("./message").MessageRole.Assistant;
|
|
1108
1159
|
toolCalls?: {
|
|
1109
1160
|
function: {
|
|
@@ -1294,6 +1345,7 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
1294
1345
|
};
|
|
1295
1346
|
command?: string;
|
|
1296
1347
|
context?: Array<Record<string, unknown>>;
|
|
1348
|
+
resources?: Array<Record<string, unknown>>;
|
|
1297
1349
|
};
|
|
1298
1350
|
};
|
|
1299
1351
|
role: import("./message").MessageRole.User;
|
|
@@ -1327,6 +1379,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
1327
1379
|
status: import("./message").MessageStatus;
|
|
1328
1380
|
} | {
|
|
1329
1381
|
content?: string;
|
|
1382
|
+
property?: {
|
|
1383
|
+
[x: string]: unknown;
|
|
1384
|
+
extra?: {
|
|
1385
|
+
[x: string]: unknown;
|
|
1386
|
+
cite?: string | {
|
|
1387
|
+
data: {
|
|
1388
|
+
key: string;
|
|
1389
|
+
value: string;
|
|
1390
|
+
}[];
|
|
1391
|
+
title: string;
|
|
1392
|
+
type: string;
|
|
1393
|
+
};
|
|
1394
|
+
command?: string;
|
|
1395
|
+
context?: Array<Record<string, unknown>>;
|
|
1396
|
+
resources?: Array<Record<string, unknown>>;
|
|
1397
|
+
};
|
|
1398
|
+
};
|
|
1330
1399
|
role: import("./message").MessageRole.Assistant;
|
|
1331
1400
|
toolCalls?: {
|
|
1332
1401
|
function: {
|
|
@@ -1517,6 +1586,7 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
1517
1586
|
};
|
|
1518
1587
|
command?: string;
|
|
1519
1588
|
context?: Array<Record<string, unknown>>;
|
|
1589
|
+
resources?: Array<Record<string, unknown>>;
|
|
1520
1590
|
};
|
|
1521
1591
|
};
|
|
1522
1592
|
role: import("./message").MessageRole.User;
|
|
@@ -1571,6 +1641,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
1571
1641
|
status: import("./message").MessageStatus;
|
|
1572
1642
|
} | {
|
|
1573
1643
|
content?: string;
|
|
1644
|
+
property?: {
|
|
1645
|
+
[x: string]: unknown;
|
|
1646
|
+
extra?: {
|
|
1647
|
+
[x: string]: unknown;
|
|
1648
|
+
cite?: string | {
|
|
1649
|
+
data: {
|
|
1650
|
+
key: string;
|
|
1651
|
+
value: string;
|
|
1652
|
+
}[];
|
|
1653
|
+
title: string;
|
|
1654
|
+
type: string;
|
|
1655
|
+
};
|
|
1656
|
+
command?: string;
|
|
1657
|
+
context?: Array<Record<string, unknown>>;
|
|
1658
|
+
resources?: Array<Record<string, unknown>>;
|
|
1659
|
+
};
|
|
1660
|
+
};
|
|
1574
1661
|
role: import("./message").MessageRole.Assistant;
|
|
1575
1662
|
toolCalls?: {
|
|
1576
1663
|
function: {
|
|
@@ -1761,6 +1848,7 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
1761
1848
|
};
|
|
1762
1849
|
command?: string;
|
|
1763
1850
|
context?: Array<Record<string, unknown>>;
|
|
1851
|
+
resources?: Array<Record<string, unknown>>;
|
|
1764
1852
|
};
|
|
1765
1853
|
};
|
|
1766
1854
|
role: import("./message").MessageRole.User;
|
|
@@ -1794,6 +1882,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
1794
1882
|
status: import("./message").MessageStatus;
|
|
1795
1883
|
} | {
|
|
1796
1884
|
content?: string;
|
|
1885
|
+
property?: {
|
|
1886
|
+
[x: string]: unknown;
|
|
1887
|
+
extra?: {
|
|
1888
|
+
[x: string]: unknown;
|
|
1889
|
+
cite?: string | {
|
|
1890
|
+
data: {
|
|
1891
|
+
key: string;
|
|
1892
|
+
value: string;
|
|
1893
|
+
}[];
|
|
1894
|
+
title: string;
|
|
1895
|
+
type: string;
|
|
1896
|
+
};
|
|
1897
|
+
command?: string;
|
|
1898
|
+
context?: Array<Record<string, unknown>>;
|
|
1899
|
+
resources?: Array<Record<string, unknown>>;
|
|
1900
|
+
};
|
|
1901
|
+
};
|
|
1797
1902
|
role: import("./message").MessageRole.Assistant;
|
|
1798
1903
|
toolCalls?: {
|
|
1799
1904
|
function: {
|
|
@@ -1984,6 +2089,7 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
1984
2089
|
};
|
|
1985
2090
|
command?: string;
|
|
1986
2091
|
context?: Array<Record<string, unknown>>;
|
|
2092
|
+
resources?: Array<Record<string, unknown>>;
|
|
1987
2093
|
};
|
|
1988
2094
|
};
|
|
1989
2095
|
role: import("./message").MessageRole.User;
|
|
@@ -2037,6 +2143,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
2037
2143
|
status: import("./message").MessageStatus;
|
|
2038
2144
|
} | {
|
|
2039
2145
|
content?: string;
|
|
2146
|
+
property?: {
|
|
2147
|
+
[x: string]: unknown;
|
|
2148
|
+
extra?: {
|
|
2149
|
+
[x: string]: unknown;
|
|
2150
|
+
cite?: string | {
|
|
2151
|
+
data: {
|
|
2152
|
+
key: string;
|
|
2153
|
+
value: string;
|
|
2154
|
+
}[];
|
|
2155
|
+
title: string;
|
|
2156
|
+
type: string;
|
|
2157
|
+
};
|
|
2158
|
+
command?: string;
|
|
2159
|
+
context?: Array<Record<string, unknown>>;
|
|
2160
|
+
resources?: Array<Record<string, unknown>>;
|
|
2161
|
+
};
|
|
2162
|
+
};
|
|
2040
2163
|
role: import("./message").MessageRole.Assistant;
|
|
2041
2164
|
toolCalls?: {
|
|
2042
2165
|
function: {
|
|
@@ -2227,6 +2350,7 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
2227
2350
|
};
|
|
2228
2351
|
command?: string;
|
|
2229
2352
|
context?: Array<Record<string, unknown>>;
|
|
2353
|
+
resources?: Array<Record<string, unknown>>;
|
|
2230
2354
|
};
|
|
2231
2355
|
};
|
|
2232
2356
|
role: import("./message").MessageRole.User;
|
|
@@ -2260,6 +2384,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
2260
2384
|
status: import("./message").MessageStatus;
|
|
2261
2385
|
} | {
|
|
2262
2386
|
content?: string;
|
|
2387
|
+
property?: {
|
|
2388
|
+
[x: string]: unknown;
|
|
2389
|
+
extra?: {
|
|
2390
|
+
[x: string]: unknown;
|
|
2391
|
+
cite?: string | {
|
|
2392
|
+
data: {
|
|
2393
|
+
key: string;
|
|
2394
|
+
value: string;
|
|
2395
|
+
}[];
|
|
2396
|
+
title: string;
|
|
2397
|
+
type: string;
|
|
2398
|
+
};
|
|
2399
|
+
command?: string;
|
|
2400
|
+
context?: Array<Record<string, unknown>>;
|
|
2401
|
+
resources?: Array<Record<string, unknown>>;
|
|
2402
|
+
};
|
|
2403
|
+
};
|
|
2263
2404
|
role: import("./message").MessageRole.Assistant;
|
|
2264
2405
|
toolCalls?: {
|
|
2265
2406
|
function: {
|
|
@@ -2450,6 +2591,7 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
2450
2591
|
};
|
|
2451
2592
|
command?: string;
|
|
2452
2593
|
context?: Array<Record<string, unknown>>;
|
|
2594
|
+
resources?: Array<Record<string, unknown>>;
|
|
2453
2595
|
};
|
|
2454
2596
|
};
|
|
2455
2597
|
role: import("./message").MessageRole.User;
|
|
@@ -2520,6 +2662,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
2520
2662
|
status: import("./message").MessageStatus;
|
|
2521
2663
|
} | {
|
|
2522
2664
|
content?: string;
|
|
2665
|
+
property?: {
|
|
2666
|
+
[x: string]: unknown;
|
|
2667
|
+
extra?: {
|
|
2668
|
+
[x: string]: unknown;
|
|
2669
|
+
cite?: string | {
|
|
2670
|
+
data: {
|
|
2671
|
+
key: string;
|
|
2672
|
+
value: string;
|
|
2673
|
+
}[];
|
|
2674
|
+
title: string;
|
|
2675
|
+
type: string;
|
|
2676
|
+
};
|
|
2677
|
+
command?: string;
|
|
2678
|
+
context?: Array<Record<string, unknown>>;
|
|
2679
|
+
resources?: Array<Record<string, unknown>>;
|
|
2680
|
+
};
|
|
2681
|
+
};
|
|
2523
2682
|
role: import("./message").MessageRole.Assistant;
|
|
2524
2683
|
toolCalls?: {
|
|
2525
2684
|
function: {
|
|
@@ -2710,6 +2869,7 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
2710
2869
|
};
|
|
2711
2870
|
command?: string;
|
|
2712
2871
|
context?: Array<Record<string, unknown>>;
|
|
2872
|
+
resources?: Array<Record<string, unknown>>;
|
|
2713
2873
|
};
|
|
2714
2874
|
};
|
|
2715
2875
|
role: import("./message").MessageRole.User;
|
|
@@ -2740,6 +2900,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
2740
2900
|
status: import("./message").MessageStatus;
|
|
2741
2901
|
} | {
|
|
2742
2902
|
content?: string;
|
|
2903
|
+
property?: {
|
|
2904
|
+
[x: string]: unknown;
|
|
2905
|
+
extra?: {
|
|
2906
|
+
[x: string]: unknown;
|
|
2907
|
+
cite?: string | {
|
|
2908
|
+
data: {
|
|
2909
|
+
key: string;
|
|
2910
|
+
value: string;
|
|
2911
|
+
}[];
|
|
2912
|
+
title: string;
|
|
2913
|
+
type: string;
|
|
2914
|
+
};
|
|
2915
|
+
command?: string;
|
|
2916
|
+
context?: Array<Record<string, unknown>>;
|
|
2917
|
+
resources?: Array<Record<string, unknown>>;
|
|
2918
|
+
};
|
|
2919
|
+
};
|
|
2743
2920
|
role: import("./message").MessageRole.Assistant;
|
|
2744
2921
|
toolCalls?: {
|
|
2745
2922
|
function: {
|
|
@@ -2930,6 +3107,7 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
2930
3107
|
};
|
|
2931
3108
|
command?: string;
|
|
2932
3109
|
context?: Array<Record<string, unknown>>;
|
|
3110
|
+
resources?: Array<Record<string, unknown>>;
|
|
2933
3111
|
};
|
|
2934
3112
|
};
|
|
2935
3113
|
role: import("./message").MessageRole.User;
|
|
@@ -2964,6 +3142,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
2964
3142
|
status: import("./message").MessageStatus;
|
|
2965
3143
|
} | {
|
|
2966
3144
|
content?: string;
|
|
3145
|
+
property?: {
|
|
3146
|
+
[x: string]: unknown;
|
|
3147
|
+
extra?: {
|
|
3148
|
+
[x: string]: unknown;
|
|
3149
|
+
cite?: string | {
|
|
3150
|
+
data: {
|
|
3151
|
+
key: string;
|
|
3152
|
+
value: string;
|
|
3153
|
+
}[];
|
|
3154
|
+
title: string;
|
|
3155
|
+
type: string;
|
|
3156
|
+
};
|
|
3157
|
+
command?: string;
|
|
3158
|
+
context?: Array<Record<string, unknown>>;
|
|
3159
|
+
resources?: Array<Record<string, unknown>>;
|
|
3160
|
+
};
|
|
3161
|
+
};
|
|
2967
3162
|
role: import("./message").MessageRole.Assistant;
|
|
2968
3163
|
toolCalls?: {
|
|
2969
3164
|
function: {
|
|
@@ -3154,6 +3349,7 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
3154
3349
|
};
|
|
3155
3350
|
command?: string;
|
|
3156
3351
|
context?: Array<Record<string, unknown>>;
|
|
3352
|
+
resources?: Array<Record<string, unknown>>;
|
|
3157
3353
|
};
|
|
3158
3354
|
};
|
|
3159
3355
|
role: import("./message").MessageRole.User;
|
|
@@ -3185,6 +3381,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
3185
3381
|
status: import("./message").MessageStatus;
|
|
3186
3382
|
} | {
|
|
3187
3383
|
content?: string;
|
|
3384
|
+
property?: {
|
|
3385
|
+
[x: string]: unknown;
|
|
3386
|
+
extra?: {
|
|
3387
|
+
[x: string]: unknown;
|
|
3388
|
+
cite?: string | {
|
|
3389
|
+
data: {
|
|
3390
|
+
key: string;
|
|
3391
|
+
value: string;
|
|
3392
|
+
}[];
|
|
3393
|
+
title: string;
|
|
3394
|
+
type: string;
|
|
3395
|
+
};
|
|
3396
|
+
command?: string;
|
|
3397
|
+
context?: Array<Record<string, unknown>>;
|
|
3398
|
+
resources?: Array<Record<string, unknown>>;
|
|
3399
|
+
};
|
|
3400
|
+
};
|
|
3188
3401
|
role: import("./message").MessageRole.Assistant;
|
|
3189
3402
|
toolCalls?: {
|
|
3190
3403
|
function: {
|
|
@@ -3375,6 +3588,7 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
3375
3588
|
};
|
|
3376
3589
|
command?: string;
|
|
3377
3590
|
context?: Array<Record<string, unknown>>;
|
|
3591
|
+
resources?: Array<Record<string, unknown>>;
|
|
3378
3592
|
};
|
|
3379
3593
|
};
|
|
3380
3594
|
role: import("./message").MessageRole.User;
|
package/dist/message/type.d.ts
CHANGED
|
@@ -49,11 +49,13 @@ export interface IActivityMessageApi extends IBaseMessageApi {
|
|
|
49
49
|
}
|
|
50
50
|
export interface IAssistantMessage extends IBaseMessage {
|
|
51
51
|
content?: string;
|
|
52
|
+
property?: IMessageProperty;
|
|
52
53
|
role: MessageRole.Assistant;
|
|
53
54
|
toolCalls?: IToolCall[];
|
|
54
55
|
}
|
|
55
56
|
export interface IAssistantMessageApi extends IBaseMessageApi {
|
|
56
57
|
content?: string;
|
|
58
|
+
property?: IMessageProperty;
|
|
57
59
|
role: MessageRole.Assistant;
|
|
58
60
|
tool_calls?: IToolCallApi[];
|
|
59
61
|
}
|
|
@@ -208,6 +210,8 @@ export interface IMessageProperty {
|
|
|
208
210
|
command?: string;
|
|
209
211
|
/** 上下文信息 */
|
|
210
212
|
context?: Array<Record<string, unknown>>;
|
|
213
|
+
/** 用户通过 @ 选择的资源列表 */
|
|
214
|
+
resources?: Array<Record<string, unknown>>;
|
|
211
215
|
};
|
|
212
216
|
}
|
|
213
217
|
export interface IPauseMessage extends IBaseMessage {
|
|
@@ -28,6 +28,23 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
28
28
|
status: MessageStatus;
|
|
29
29
|
} | {
|
|
30
30
|
content?: string;
|
|
31
|
+
property?: {
|
|
32
|
+
[x: string]: unknown;
|
|
33
|
+
extra?: {
|
|
34
|
+
[x: string]: unknown;
|
|
35
|
+
cite?: string | {
|
|
36
|
+
data: {
|
|
37
|
+
key: string;
|
|
38
|
+
value: string;
|
|
39
|
+
}[];
|
|
40
|
+
title: string;
|
|
41
|
+
type: string;
|
|
42
|
+
};
|
|
43
|
+
command?: string;
|
|
44
|
+
context?: Array<Record<string, unknown>>;
|
|
45
|
+
resources?: Array<Record<string, unknown>>;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
31
48
|
role: MessageRole.Assistant;
|
|
32
49
|
toolCalls?: {
|
|
33
50
|
function: {
|
|
@@ -218,6 +235,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
218
235
|
};
|
|
219
236
|
command?: string;
|
|
220
237
|
context?: Array<Record<string, unknown>>;
|
|
238
|
+
resources?: Array<Record<string, unknown>>;
|
|
221
239
|
};
|
|
222
240
|
};
|
|
223
241
|
role: MessageRole.User;
|
|
@@ -248,6 +266,23 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
248
266
|
status: MessageStatus;
|
|
249
267
|
} | {
|
|
250
268
|
content?: string;
|
|
269
|
+
property?: {
|
|
270
|
+
[x: string]: unknown;
|
|
271
|
+
extra?: {
|
|
272
|
+
[x: string]: unknown;
|
|
273
|
+
cite?: string | {
|
|
274
|
+
data: {
|
|
275
|
+
key: string;
|
|
276
|
+
value: string;
|
|
277
|
+
}[];
|
|
278
|
+
title: string;
|
|
279
|
+
type: string;
|
|
280
|
+
};
|
|
281
|
+
command?: string;
|
|
282
|
+
context?: Array<Record<string, unknown>>;
|
|
283
|
+
resources?: Array<Record<string, unknown>>;
|
|
284
|
+
};
|
|
285
|
+
};
|
|
251
286
|
role: MessageRole.Assistant;
|
|
252
287
|
toolCalls?: {
|
|
253
288
|
function: {
|
|
@@ -438,6 +473,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
438
473
|
};
|
|
439
474
|
command?: string;
|
|
440
475
|
context?: Array<Record<string, unknown>>;
|
|
476
|
+
resources?: Array<Record<string, unknown>>;
|
|
441
477
|
};
|
|
442
478
|
};
|
|
443
479
|
role: MessageRole.User;
|
|
@@ -472,6 +508,23 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
472
508
|
status: MessageStatus;
|
|
473
509
|
} | {
|
|
474
510
|
content?: string;
|
|
511
|
+
property?: {
|
|
512
|
+
[x: string]: unknown;
|
|
513
|
+
extra?: {
|
|
514
|
+
[x: string]: unknown;
|
|
515
|
+
cite?: string | {
|
|
516
|
+
data: {
|
|
517
|
+
key: string;
|
|
518
|
+
value: string;
|
|
519
|
+
}[];
|
|
520
|
+
title: string;
|
|
521
|
+
type: string;
|
|
522
|
+
};
|
|
523
|
+
command?: string;
|
|
524
|
+
context?: Array<Record<string, unknown>>;
|
|
525
|
+
resources?: Array<Record<string, unknown>>;
|
|
526
|
+
};
|
|
527
|
+
};
|
|
475
528
|
role: MessageRole.Assistant;
|
|
476
529
|
toolCalls?: {
|
|
477
530
|
function: {
|
|
@@ -662,6 +715,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
662
715
|
};
|
|
663
716
|
command?: string;
|
|
664
717
|
context?: Array<Record<string, unknown>>;
|
|
718
|
+
resources?: Array<Record<string, unknown>>;
|
|
665
719
|
};
|
|
666
720
|
};
|
|
667
721
|
role: MessageRole.User;
|
|
@@ -693,6 +747,23 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
693
747
|
status: MessageStatus;
|
|
694
748
|
} | {
|
|
695
749
|
content?: string;
|
|
750
|
+
property?: {
|
|
751
|
+
[x: string]: unknown;
|
|
752
|
+
extra?: {
|
|
753
|
+
[x: string]: unknown;
|
|
754
|
+
cite?: string | {
|
|
755
|
+
data: {
|
|
756
|
+
key: string;
|
|
757
|
+
value: string;
|
|
758
|
+
}[];
|
|
759
|
+
title: string;
|
|
760
|
+
type: string;
|
|
761
|
+
};
|
|
762
|
+
command?: string;
|
|
763
|
+
context?: Array<Record<string, unknown>>;
|
|
764
|
+
resources?: Array<Record<string, unknown>>;
|
|
765
|
+
};
|
|
766
|
+
};
|
|
696
767
|
role: MessageRole.Assistant;
|
|
697
768
|
toolCalls?: {
|
|
698
769
|
function: {
|
|
@@ -883,6 +954,7 @@ export declare const useMessage: (mediator: IMediatorModule) => {
|
|
|
883
954
|
};
|
|
884
955
|
command?: string;
|
|
885
956
|
context?: Array<Record<string, unknown>>;
|
|
957
|
+
resources?: Array<Record<string, unknown>>;
|
|
886
958
|
};
|
|
887
959
|
};
|
|
888
960
|
role: MessageRole.User;
|
|
@@ -44,6 +44,23 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
44
44
|
status: import("..").MessageStatus;
|
|
45
45
|
} | {
|
|
46
46
|
content?: string;
|
|
47
|
+
property?: {
|
|
48
|
+
[x: string]: unknown;
|
|
49
|
+
extra?: {
|
|
50
|
+
[x: string]: unknown;
|
|
51
|
+
cite?: string | {
|
|
52
|
+
data: {
|
|
53
|
+
key: string;
|
|
54
|
+
value: string;
|
|
55
|
+
}[];
|
|
56
|
+
title: string;
|
|
57
|
+
type: string;
|
|
58
|
+
};
|
|
59
|
+
command?: string;
|
|
60
|
+
context?: Array<Record<string, unknown>>;
|
|
61
|
+
resources?: Array<Record<string, unknown>>;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
47
64
|
role: import("..").MessageRole.Assistant;
|
|
48
65
|
toolCalls?: {
|
|
49
66
|
function: {
|
|
@@ -234,6 +251,7 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
234
251
|
};
|
|
235
252
|
command?: string;
|
|
236
253
|
context?: Array<Record<string, unknown>>;
|
|
254
|
+
resources?: Array<Record<string, unknown>>;
|
|
237
255
|
};
|
|
238
256
|
};
|
|
239
257
|
role: import("..").MessageRole.User;
|
|
@@ -267,6 +285,23 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
267
285
|
status: import("..").MessageStatus;
|
|
268
286
|
} | {
|
|
269
287
|
content?: string;
|
|
288
|
+
property?: {
|
|
289
|
+
[x: string]: unknown;
|
|
290
|
+
extra?: {
|
|
291
|
+
[x: string]: unknown;
|
|
292
|
+
cite?: string | {
|
|
293
|
+
data: {
|
|
294
|
+
key: string;
|
|
295
|
+
value: string;
|
|
296
|
+
}[];
|
|
297
|
+
title: string;
|
|
298
|
+
type: string;
|
|
299
|
+
};
|
|
300
|
+
command?: string;
|
|
301
|
+
context?: Array<Record<string, unknown>>;
|
|
302
|
+
resources?: Array<Record<string, unknown>>;
|
|
303
|
+
};
|
|
304
|
+
};
|
|
270
305
|
role: import("..").MessageRole.Assistant;
|
|
271
306
|
toolCalls?: {
|
|
272
307
|
function: {
|
|
@@ -457,6 +492,7 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
457
492
|
};
|
|
458
493
|
command?: string;
|
|
459
494
|
context?: Array<Record<string, unknown>>;
|
|
495
|
+
resources?: Array<Record<string, unknown>>;
|
|
460
496
|
};
|
|
461
497
|
};
|
|
462
498
|
role: import("..").MessageRole.User;
|
|
@@ -510,6 +546,23 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
510
546
|
status: import("..").MessageStatus;
|
|
511
547
|
} | {
|
|
512
548
|
content?: string;
|
|
549
|
+
property?: {
|
|
550
|
+
[x: string]: unknown;
|
|
551
|
+
extra?: {
|
|
552
|
+
[x: string]: unknown;
|
|
553
|
+
cite?: string | {
|
|
554
|
+
data: {
|
|
555
|
+
key: string;
|
|
556
|
+
value: string;
|
|
557
|
+
}[];
|
|
558
|
+
title: string;
|
|
559
|
+
type: string;
|
|
560
|
+
};
|
|
561
|
+
command?: string;
|
|
562
|
+
context?: Array<Record<string, unknown>>;
|
|
563
|
+
resources?: Array<Record<string, unknown>>;
|
|
564
|
+
};
|
|
565
|
+
};
|
|
513
566
|
role: import("..").MessageRole.Assistant;
|
|
514
567
|
toolCalls?: {
|
|
515
568
|
function: {
|
|
@@ -700,6 +753,7 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
700
753
|
};
|
|
701
754
|
command?: string;
|
|
702
755
|
context?: Array<Record<string, unknown>>;
|
|
756
|
+
resources?: Array<Record<string, unknown>>;
|
|
703
757
|
};
|
|
704
758
|
};
|
|
705
759
|
role: import("..").MessageRole.User;
|
|
@@ -733,6 +787,23 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
733
787
|
status: import("..").MessageStatus;
|
|
734
788
|
} | {
|
|
735
789
|
content?: string;
|
|
790
|
+
property?: {
|
|
791
|
+
[x: string]: unknown;
|
|
792
|
+
extra?: {
|
|
793
|
+
[x: string]: unknown;
|
|
794
|
+
cite?: string | {
|
|
795
|
+
data: {
|
|
796
|
+
key: string;
|
|
797
|
+
value: string;
|
|
798
|
+
}[];
|
|
799
|
+
title: string;
|
|
800
|
+
type: string;
|
|
801
|
+
};
|
|
802
|
+
command?: string;
|
|
803
|
+
context?: Array<Record<string, unknown>>;
|
|
804
|
+
resources?: Array<Record<string, unknown>>;
|
|
805
|
+
};
|
|
806
|
+
};
|
|
736
807
|
role: import("..").MessageRole.Assistant;
|
|
737
808
|
toolCalls?: {
|
|
738
809
|
function: {
|
|
@@ -923,6 +994,7 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
923
994
|
};
|
|
924
995
|
command?: string;
|
|
925
996
|
context?: Array<Record<string, unknown>>;
|
|
997
|
+
resources?: Array<Record<string, unknown>>;
|
|
926
998
|
};
|
|
927
999
|
};
|
|
928
1000
|
role: import("..").MessageRole.User;
|
|
@@ -977,6 +1049,23 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
977
1049
|
status: import("..").MessageStatus;
|
|
978
1050
|
} | {
|
|
979
1051
|
content?: string;
|
|
1052
|
+
property?: {
|
|
1053
|
+
[x: string]: unknown;
|
|
1054
|
+
extra?: {
|
|
1055
|
+
[x: string]: unknown;
|
|
1056
|
+
cite?: string | {
|
|
1057
|
+
data: {
|
|
1058
|
+
key: string;
|
|
1059
|
+
value: string;
|
|
1060
|
+
}[];
|
|
1061
|
+
title: string;
|
|
1062
|
+
type: string;
|
|
1063
|
+
};
|
|
1064
|
+
command?: string;
|
|
1065
|
+
context?: Array<Record<string, unknown>>;
|
|
1066
|
+
resources?: Array<Record<string, unknown>>;
|
|
1067
|
+
};
|
|
1068
|
+
};
|
|
980
1069
|
role: import("..").MessageRole.Assistant;
|
|
981
1070
|
toolCalls?: {
|
|
982
1071
|
function: {
|
|
@@ -1167,6 +1256,7 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
1167
1256
|
};
|
|
1168
1257
|
command?: string;
|
|
1169
1258
|
context?: Array<Record<string, unknown>>;
|
|
1259
|
+
resources?: Array<Record<string, unknown>>;
|
|
1170
1260
|
};
|
|
1171
1261
|
};
|
|
1172
1262
|
role: import("..").MessageRole.User;
|
|
@@ -1200,6 +1290,23 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
1200
1290
|
status: import("..").MessageStatus;
|
|
1201
1291
|
} | {
|
|
1202
1292
|
content?: string;
|
|
1293
|
+
property?: {
|
|
1294
|
+
[x: string]: unknown;
|
|
1295
|
+
extra?: {
|
|
1296
|
+
[x: string]: unknown;
|
|
1297
|
+
cite?: string | {
|
|
1298
|
+
data: {
|
|
1299
|
+
key: string;
|
|
1300
|
+
value: string;
|
|
1301
|
+
}[];
|
|
1302
|
+
title: string;
|
|
1303
|
+
type: string;
|
|
1304
|
+
};
|
|
1305
|
+
command?: string;
|
|
1306
|
+
context?: Array<Record<string, unknown>>;
|
|
1307
|
+
resources?: Array<Record<string, unknown>>;
|
|
1308
|
+
};
|
|
1309
|
+
};
|
|
1203
1310
|
role: import("..").MessageRole.Assistant;
|
|
1204
1311
|
toolCalls?: {
|
|
1205
1312
|
function: {
|
|
@@ -1390,6 +1497,7 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
1390
1497
|
};
|
|
1391
1498
|
command?: string;
|
|
1392
1499
|
context?: Array<Record<string, unknown>>;
|
|
1500
|
+
resources?: Array<Record<string, unknown>>;
|
|
1393
1501
|
};
|
|
1394
1502
|
};
|
|
1395
1503
|
role: import("..").MessageRole.User;
|
|
@@ -1443,6 +1551,23 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
1443
1551
|
status: import("..").MessageStatus;
|
|
1444
1552
|
} | {
|
|
1445
1553
|
content?: string;
|
|
1554
|
+
property?: {
|
|
1555
|
+
[x: string]: unknown;
|
|
1556
|
+
extra?: {
|
|
1557
|
+
[x: string]: unknown;
|
|
1558
|
+
cite?: string | {
|
|
1559
|
+
data: {
|
|
1560
|
+
key: string;
|
|
1561
|
+
value: string;
|
|
1562
|
+
}[];
|
|
1563
|
+
title: string;
|
|
1564
|
+
type: string;
|
|
1565
|
+
};
|
|
1566
|
+
command?: string;
|
|
1567
|
+
context?: Array<Record<string, unknown>>;
|
|
1568
|
+
resources?: Array<Record<string, unknown>>;
|
|
1569
|
+
};
|
|
1570
|
+
};
|
|
1446
1571
|
role: import("..").MessageRole.Assistant;
|
|
1447
1572
|
toolCalls?: {
|
|
1448
1573
|
function: {
|
|
@@ -1633,6 +1758,7 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
1633
1758
|
};
|
|
1634
1759
|
command?: string;
|
|
1635
1760
|
context?: Array<Record<string, unknown>>;
|
|
1761
|
+
resources?: Array<Record<string, unknown>>;
|
|
1636
1762
|
};
|
|
1637
1763
|
};
|
|
1638
1764
|
role: import("..").MessageRole.User;
|
|
@@ -1666,6 +1792,23 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
1666
1792
|
status: import("..").MessageStatus;
|
|
1667
1793
|
} | {
|
|
1668
1794
|
content?: string;
|
|
1795
|
+
property?: {
|
|
1796
|
+
[x: string]: unknown;
|
|
1797
|
+
extra?: {
|
|
1798
|
+
[x: string]: unknown;
|
|
1799
|
+
cite?: string | {
|
|
1800
|
+
data: {
|
|
1801
|
+
key: string;
|
|
1802
|
+
value: string;
|
|
1803
|
+
}[];
|
|
1804
|
+
title: string;
|
|
1805
|
+
type: string;
|
|
1806
|
+
};
|
|
1807
|
+
command?: string;
|
|
1808
|
+
context?: Array<Record<string, unknown>>;
|
|
1809
|
+
resources?: Array<Record<string, unknown>>;
|
|
1810
|
+
};
|
|
1811
|
+
};
|
|
1669
1812
|
role: import("..").MessageRole.Assistant;
|
|
1670
1813
|
toolCalls?: {
|
|
1671
1814
|
function: {
|
|
@@ -1856,6 +1999,7 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
1856
1999
|
};
|
|
1857
2000
|
command?: string;
|
|
1858
2001
|
context?: Array<Record<string, unknown>>;
|
|
2002
|
+
resources?: Array<Record<string, unknown>>;
|
|
1859
2003
|
};
|
|
1860
2004
|
};
|
|
1861
2005
|
role: import("..").MessageRole.User;
|