@blueking/chat-helper 0.0.1-beta.25 → 0.0.1-beta.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,7 @@
1
1
  import type { IMessage } from '../message/type';
2
+ export interface ISupportUpload {
3
+ vision: boolean;
4
+ }
2
5
  export interface IAgentCommand {
3
6
  agentId: number;
4
7
  alias?: string;
@@ -8,6 +11,7 @@ export interface IAgentCommand {
8
11
  id: string;
9
12
  name: string;
10
13
  status: string;
14
+ supportUpload?: ISupportUpload;
11
15
  }
12
16
  export interface IAgentCommandApi {
13
17
  agent_id: number;
@@ -19,6 +23,7 @@ export interface IAgentCommandApi {
19
23
  name: string;
20
24
  selectedText?: null | string;
21
25
  status: string;
26
+ support_upload?: ISupportUpload;
22
27
  }
23
28
  export interface IAgentCommandComponent {
24
29
  default?: null | string;
@@ -68,6 +73,7 @@ export interface IAgentInfo {
68
73
  };
69
74
  promptSetting?: {
70
75
  content?: IMessage[];
76
+ supportUpload?: ISupportUpload;
71
77
  };
72
78
  }
73
79
  export interface IAgentInfoApi {
@@ -87,6 +93,7 @@ export interface IAgentInfoApi {
87
93
  };
88
94
  prompt_setting?: {
89
95
  content?: IMessage[];
96
+ support_upload?: ISupportUpload;
90
97
  };
91
98
  }
92
99
  export interface IAgentResourceItem {
@@ -50,6 +50,9 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
50
50
  id: string;
51
51
  name: string;
52
52
  status: string;
53
+ supportUpload?: {
54
+ vision: boolean;
55
+ };
53
56
  }[];
54
57
  enableChatSession?: boolean;
55
58
  openingRemark?: string;
@@ -78,6 +81,23 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
78
81
  status: MessageStatus;
79
82
  } | {
80
83
  content?: string;
84
+ property?: {
85
+ [x: string]: unknown;
86
+ extra?: {
87
+ [x: string]: unknown;
88
+ cite?: string | {
89
+ data: {
90
+ key: string;
91
+ value: string;
92
+ }[];
93
+ title: string;
94
+ type: string;
95
+ };
96
+ command?: string;
97
+ context?: Array<Record<string, unknown>>;
98
+ resources?: Array<Record<string, unknown>>;
99
+ };
100
+ };
81
101
  role: MessageRole.Assistant;
82
102
  toolCalls?: {
83
103
  function: {
@@ -278,6 +298,9 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
278
298
  sessionCode?: string;
279
299
  status: MessageStatus;
280
300
  })[];
301
+ supportUpload?: {
302
+ vision: boolean;
303
+ };
281
304
  };
282
305
  }, IAgentInfo | {
283
306
  agentName?: string;
@@ -320,6 +343,9 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
320
343
  id: string;
321
344
  name: string;
322
345
  status: string;
346
+ supportUpload?: {
347
+ vision: boolean;
348
+ };
323
349
  }[];
324
350
  enableChatSession?: boolean;
325
351
  openingRemark?: string;
@@ -348,6 +374,23 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
348
374
  status: MessageStatus;
349
375
  } | {
350
376
  content?: string;
377
+ property?: {
378
+ [x: string]: unknown;
379
+ extra?: {
380
+ [x: string]: unknown;
381
+ cite?: string | {
382
+ data: {
383
+ key: string;
384
+ value: string;
385
+ }[];
386
+ title: string;
387
+ type: string;
388
+ };
389
+ command?: string;
390
+ context?: Array<Record<string, unknown>>;
391
+ resources?: Array<Record<string, unknown>>;
392
+ };
393
+ };
351
394
  role: MessageRole.Assistant;
352
395
  toolCalls?: {
353
396
  function: {
@@ -548,6 +591,9 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
548
591
  sessionCode?: string;
549
592
  status: MessageStatus;
550
593
  })[];
594
+ supportUpload?: {
595
+ vision: boolean;
596
+ };
551
597
  };
552
598
  }>;
553
599
  isInfoLoading: import("vue").Ref<boolean, boolean>;
@@ -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
  };
@@ -53,11 +53,15 @@
53
53
  })),
54
54
  content: command.content,
55
55
  agentId: command.agent_id,
56
- status: command.status
56
+ status: command.status,
57
+ supportUpload: command.support_upload
57
58
  })),
58
59
  enableChatSession: data === null || data === void 0 ? void 0 : (_data_conversation_settings3 = data.conversation_settings) === null || _data_conversation_settings3 === void 0 ? void 0 : _data_conversation_settings3.enable_chat_session
59
60
  },
60
- promptSetting: data === null || data === void 0 ? void 0 : data.prompt_setting,
61
+ promptSetting: (data === null || data === void 0 ? void 0 : data.prompt_setting) ? {
62
+ content: data.prompt_setting.content,
63
+ supportUpload: data.prompt_setting.support_upload
64
+ } : undefined,
61
65
  agentName: data === null || data === void 0 ? void 0 : data.agent_name,
62
66
  chatGroup: (data === null || data === void 0 ? void 0 : data.chat_group) ? {
63
67
  enabled: data.chat_group.enabled,
@@ -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
@@ -52,6 +52,9 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
52
52
  id: string;
53
53
  name: string;
54
54
  status: string;
55
+ supportUpload?: {
56
+ vision: boolean;
57
+ };
55
58
  }[];
56
59
  enableChatSession?: boolean;
57
60
  openingRemark?: string;
@@ -80,6 +83,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
80
83
  status: import("./message").MessageStatus;
81
84
  } | {
82
85
  content?: string;
86
+ property?: {
87
+ [x: string]: unknown;
88
+ extra?: {
89
+ [x: string]: unknown;
90
+ cite?: string | {
91
+ data: {
92
+ key: string;
93
+ value: string;
94
+ }[];
95
+ title: string;
96
+ type: string;
97
+ };
98
+ command?: string;
99
+ context?: Array<Record<string, unknown>>;
100
+ resources?: Array<Record<string, unknown>>;
101
+ };
102
+ };
83
103
  role: import("./message").MessageRole.Assistant;
84
104
  toolCalls?: {
85
105
  function: {
@@ -280,6 +300,9 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
280
300
  sessionCode?: string;
281
301
  status: import("./message").MessageStatus;
282
302
  })[];
303
+ supportUpload?: {
304
+ vision: boolean;
305
+ };
283
306
  };
284
307
  }, import("./agent").IAgentInfo | {
285
308
  agentName?: string;
@@ -322,6 +345,9 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
322
345
  id: string;
323
346
  name: string;
324
347
  status: string;
348
+ supportUpload?: {
349
+ vision: boolean;
350
+ };
325
351
  }[];
326
352
  enableChatSession?: boolean;
327
353
  openingRemark?: string;
@@ -350,6 +376,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
350
376
  status: import("./message").MessageStatus;
351
377
  } | {
352
378
  content?: string;
379
+ property?: {
380
+ [x: string]: unknown;
381
+ extra?: {
382
+ [x: string]: unknown;
383
+ cite?: string | {
384
+ data: {
385
+ key: string;
386
+ value: string;
387
+ }[];
388
+ title: string;
389
+ type: string;
390
+ };
391
+ command?: string;
392
+ context?: Array<Record<string, unknown>>;
393
+ resources?: Array<Record<string, unknown>>;
394
+ };
395
+ };
353
396
  role: import("./message").MessageRole.Assistant;
354
397
  toolCalls?: {
355
398
  function: {
@@ -550,6 +593,9 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
550
593
  sessionCode?: string;
551
594
  status: import("./message").MessageStatus;
552
595
  })[];
596
+ supportUpload?: {
597
+ vision: boolean;
598
+ };
553
599
  };
554
600
  }>;
555
601
  isInfoLoading: import("vue").Ref<boolean, boolean>;
@@ -602,6 +648,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
602
648
  status: import("./message").MessageStatus;
603
649
  } | {
604
650
  content?: string;
651
+ property?: {
652
+ [x: string]: unknown;
653
+ extra?: {
654
+ [x: string]: unknown;
655
+ cite?: string | {
656
+ data: {
657
+ key: string;
658
+ value: string;
659
+ }[];
660
+ title: string;
661
+ type: string;
662
+ };
663
+ command?: string;
664
+ context?: Array<Record<string, unknown>>;
665
+ resources?: Array<Record<string, unknown>>;
666
+ };
667
+ };
605
668
  role: import("./message").MessageRole.Assistant;
606
669
  toolCalls?: {
607
670
  function: {
@@ -826,6 +889,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
826
889
  status: import("./message").MessageStatus;
827
890
  } | {
828
891
  content?: string;
892
+ property?: {
893
+ [x: string]: unknown;
894
+ extra?: {
895
+ [x: string]: unknown;
896
+ cite?: string | {
897
+ data: {
898
+ key: string;
899
+ value: string;
900
+ }[];
901
+ title: string;
902
+ type: string;
903
+ };
904
+ command?: string;
905
+ context?: Array<Record<string, unknown>>;
906
+ resources?: Array<Record<string, unknown>>;
907
+ };
908
+ };
829
909
  role: import("./message").MessageRole.Assistant;
830
910
  toolCalls?: {
831
911
  function: {
@@ -1070,6 +1150,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
1070
1150
  status: import("./message").MessageStatus;
1071
1151
  } | {
1072
1152
  content?: string;
1153
+ property?: {
1154
+ [x: string]: unknown;
1155
+ extra?: {
1156
+ [x: string]: unknown;
1157
+ cite?: string | {
1158
+ data: {
1159
+ key: string;
1160
+ value: string;
1161
+ }[];
1162
+ title: string;
1163
+ type: string;
1164
+ };
1165
+ command?: string;
1166
+ context?: Array<Record<string, unknown>>;
1167
+ resources?: Array<Record<string, unknown>>;
1168
+ };
1169
+ };
1073
1170
  role: import("./message").MessageRole.Assistant;
1074
1171
  toolCalls?: {
1075
1172
  function: {
@@ -1294,6 +1391,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
1294
1391
  status: import("./message").MessageStatus;
1295
1392
  } | {
1296
1393
  content?: string;
1394
+ property?: {
1395
+ [x: string]: unknown;
1396
+ extra?: {
1397
+ [x: string]: unknown;
1398
+ cite?: string | {
1399
+ data: {
1400
+ key: string;
1401
+ value: string;
1402
+ }[];
1403
+ title: string;
1404
+ type: string;
1405
+ };
1406
+ command?: string;
1407
+ context?: Array<Record<string, unknown>>;
1408
+ resources?: Array<Record<string, unknown>>;
1409
+ };
1410
+ };
1297
1411
  role: import("./message").MessageRole.Assistant;
1298
1412
  toolCalls?: {
1299
1413
  function: {
@@ -1539,6 +1653,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
1539
1653
  status: import("./message").MessageStatus;
1540
1654
  } | {
1541
1655
  content?: string;
1656
+ property?: {
1657
+ [x: string]: unknown;
1658
+ extra?: {
1659
+ [x: string]: unknown;
1660
+ cite?: string | {
1661
+ data: {
1662
+ key: string;
1663
+ value: string;
1664
+ }[];
1665
+ title: string;
1666
+ type: string;
1667
+ };
1668
+ command?: string;
1669
+ context?: Array<Record<string, unknown>>;
1670
+ resources?: Array<Record<string, unknown>>;
1671
+ };
1672
+ };
1542
1673
  role: import("./message").MessageRole.Assistant;
1543
1674
  toolCalls?: {
1544
1675
  function: {
@@ -1763,6 +1894,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
1763
1894
  status: import("./message").MessageStatus;
1764
1895
  } | {
1765
1896
  content?: string;
1897
+ property?: {
1898
+ [x: string]: unknown;
1899
+ extra?: {
1900
+ [x: string]: unknown;
1901
+ cite?: string | {
1902
+ data: {
1903
+ key: string;
1904
+ value: string;
1905
+ }[];
1906
+ title: string;
1907
+ type: string;
1908
+ };
1909
+ command?: string;
1910
+ context?: Array<Record<string, unknown>>;
1911
+ resources?: Array<Record<string, unknown>>;
1912
+ };
1913
+ };
1766
1914
  role: import("./message").MessageRole.Assistant;
1767
1915
  toolCalls?: {
1768
1916
  function: {
@@ -2007,6 +2155,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
2007
2155
  status: import("./message").MessageStatus;
2008
2156
  } | {
2009
2157
  content?: string;
2158
+ property?: {
2159
+ [x: string]: unknown;
2160
+ extra?: {
2161
+ [x: string]: unknown;
2162
+ cite?: string | {
2163
+ data: {
2164
+ key: string;
2165
+ value: string;
2166
+ }[];
2167
+ title: string;
2168
+ type: string;
2169
+ };
2170
+ command?: string;
2171
+ context?: Array<Record<string, unknown>>;
2172
+ resources?: Array<Record<string, unknown>>;
2173
+ };
2174
+ };
2010
2175
  role: import("./message").MessageRole.Assistant;
2011
2176
  toolCalls?: {
2012
2177
  function: {
@@ -2231,6 +2396,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
2231
2396
  status: import("./message").MessageStatus;
2232
2397
  } | {
2233
2398
  content?: string;
2399
+ property?: {
2400
+ [x: string]: unknown;
2401
+ extra?: {
2402
+ [x: string]: unknown;
2403
+ cite?: string | {
2404
+ data: {
2405
+ key: string;
2406
+ value: string;
2407
+ }[];
2408
+ title: string;
2409
+ type: string;
2410
+ };
2411
+ command?: string;
2412
+ context?: Array<Record<string, unknown>>;
2413
+ resources?: Array<Record<string, unknown>>;
2414
+ };
2415
+ };
2234
2416
  role: import("./message").MessageRole.Assistant;
2235
2417
  toolCalls?: {
2236
2418
  function: {
@@ -2492,6 +2674,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
2492
2674
  status: import("./message").MessageStatus;
2493
2675
  } | {
2494
2676
  content?: string;
2677
+ property?: {
2678
+ [x: string]: unknown;
2679
+ extra?: {
2680
+ [x: string]: unknown;
2681
+ cite?: string | {
2682
+ data: {
2683
+ key: string;
2684
+ value: string;
2685
+ }[];
2686
+ title: string;
2687
+ type: string;
2688
+ };
2689
+ command?: string;
2690
+ context?: Array<Record<string, unknown>>;
2691
+ resources?: Array<Record<string, unknown>>;
2692
+ };
2693
+ };
2495
2694
  role: import("./message").MessageRole.Assistant;
2496
2695
  toolCalls?: {
2497
2696
  function: {
@@ -2713,6 +2912,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
2713
2912
  status: import("./message").MessageStatus;
2714
2913
  } | {
2715
2914
  content?: string;
2915
+ property?: {
2916
+ [x: string]: unknown;
2917
+ extra?: {
2918
+ [x: string]: unknown;
2919
+ cite?: string | {
2920
+ data: {
2921
+ key: string;
2922
+ value: string;
2923
+ }[];
2924
+ title: string;
2925
+ type: string;
2926
+ };
2927
+ command?: string;
2928
+ context?: Array<Record<string, unknown>>;
2929
+ resources?: Array<Record<string, unknown>>;
2930
+ };
2931
+ };
2716
2932
  role: import("./message").MessageRole.Assistant;
2717
2933
  toolCalls?: {
2718
2934
  function: {
@@ -2938,6 +3154,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
2938
3154
  status: import("./message").MessageStatus;
2939
3155
  } | {
2940
3156
  content?: string;
3157
+ property?: {
3158
+ [x: string]: unknown;
3159
+ extra?: {
3160
+ [x: string]: unknown;
3161
+ cite?: string | {
3162
+ data: {
3163
+ key: string;
3164
+ value: string;
3165
+ }[];
3166
+ title: string;
3167
+ type: string;
3168
+ };
3169
+ command?: string;
3170
+ context?: Array<Record<string, unknown>>;
3171
+ resources?: Array<Record<string, unknown>>;
3172
+ };
3173
+ };
2941
3174
  role: import("./message").MessageRole.Assistant;
2942
3175
  toolCalls?: {
2943
3176
  function: {
@@ -3160,6 +3393,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
3160
3393
  status: import("./message").MessageStatus;
3161
3394
  } | {
3162
3395
  content?: string;
3396
+ property?: {
3397
+ [x: string]: unknown;
3398
+ extra?: {
3399
+ [x: string]: unknown;
3400
+ cite?: string | {
3401
+ data: {
3402
+ key: string;
3403
+ value: string;
3404
+ }[];
3405
+ title: string;
3406
+ type: string;
3407
+ };
3408
+ command?: string;
3409
+ context?: Array<Record<string, unknown>>;
3410
+ resources?: Array<Record<string, unknown>>;
3411
+ };
3412
+ };
3163
3413
  role: import("./message").MessageRole.Assistant;
3164
3414
  toolCalls?: {
3165
3415
  function: {
@@ -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
  }
@@ -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: {
@@ -249,6 +266,23 @@ export declare const useMessage: (mediator: IMediatorModule) => {
249
266
  status: MessageStatus;
250
267
  } | {
251
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
+ };
252
286
  role: MessageRole.Assistant;
253
287
  toolCalls?: {
254
288
  function: {
@@ -474,6 +508,23 @@ export declare const useMessage: (mediator: IMediatorModule) => {
474
508
  status: MessageStatus;
475
509
  } | {
476
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
+ };
477
528
  role: MessageRole.Assistant;
478
529
  toolCalls?: {
479
530
  function: {
@@ -696,6 +747,23 @@ export declare const useMessage: (mediator: IMediatorModule) => {
696
747
  status: MessageStatus;
697
748
  } | {
698
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
+ };
699
767
  role: MessageRole.Assistant;
700
768
  toolCalls?: {
701
769
  function: {
@@ -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: {
@@ -268,6 +285,23 @@ export declare const useSession: (mediator: IMediatorModule) => {
268
285
  status: import("..").MessageStatus;
269
286
  } | {
270
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
+ };
271
305
  role: import("..").MessageRole.Assistant;
272
306
  toolCalls?: {
273
307
  function: {
@@ -512,6 +546,23 @@ export declare const useSession: (mediator: IMediatorModule) => {
512
546
  status: import("..").MessageStatus;
513
547
  } | {
514
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
+ };
515
566
  role: import("..").MessageRole.Assistant;
516
567
  toolCalls?: {
517
568
  function: {
@@ -736,6 +787,23 @@ export declare const useSession: (mediator: IMediatorModule) => {
736
787
  status: import("..").MessageStatus;
737
788
  } | {
738
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
+ };
739
807
  role: import("..").MessageRole.Assistant;
740
808
  toolCalls?: {
741
809
  function: {
@@ -981,6 +1049,23 @@ export declare const useSession: (mediator: IMediatorModule) => {
981
1049
  status: import("..").MessageStatus;
982
1050
  } | {
983
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
+ };
984
1069
  role: import("..").MessageRole.Assistant;
985
1070
  toolCalls?: {
986
1071
  function: {
@@ -1205,6 +1290,23 @@ export declare const useSession: (mediator: IMediatorModule) => {
1205
1290
  status: import("..").MessageStatus;
1206
1291
  } | {
1207
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
+ };
1208
1310
  role: import("..").MessageRole.Assistant;
1209
1311
  toolCalls?: {
1210
1312
  function: {
@@ -1449,6 +1551,23 @@ export declare const useSession: (mediator: IMediatorModule) => {
1449
1551
  status: import("..").MessageStatus;
1450
1552
  } | {
1451
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
+ };
1452
1571
  role: import("..").MessageRole.Assistant;
1453
1572
  toolCalls?: {
1454
1573
  function: {
@@ -1673,6 +1792,23 @@ export declare const useSession: (mediator: IMediatorModule) => {
1673
1792
  status: import("..").MessageStatus;
1674
1793
  } | {
1675
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
+ };
1676
1812
  role: import("..").MessageRole.Assistant;
1677
1813
  toolCalls?: {
1678
1814
  function: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueking/chat-helper",
3
- "version": "0.0.1-beta.25",
3
+ "version": "0.0.1-beta.27",
4
4
  "description": "",
5
5
  "main": "./dist/index.ts.js",
6
6
  "types": "./dist/index.d.ts",