@blueking/chat-helper 0.0.1-beta.25 → 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/use-agent.d.ts +34 -0
- package/dist/agent/use-agent.ts.js +6 -1
- package/dist/http/transform/message.ts.js +2 -0
- package/dist/index.d.ts +238 -0
- package/dist/message/type.d.ts +2 -0
- package/dist/message/use-message.d.ts +68 -0
- package/dist/session/use-session.d.ts +136 -0
- package/package.json +2 -2
|
@@ -78,6 +78,23 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
|
|
|
78
78
|
status: MessageStatus;
|
|
79
79
|
} | {
|
|
80
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
|
+
};
|
|
81
98
|
role: MessageRole.Assistant;
|
|
82
99
|
toolCalls?: {
|
|
83
100
|
function: {
|
|
@@ -348,6 +365,23 @@ export declare const useAgent: (mediator: IMediatorModule, protocol: ISSEProtoco
|
|
|
348
365
|
status: MessageStatus;
|
|
349
366
|
} | {
|
|
350
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
|
+
};
|
|
351
385
|
role: MessageRole.Assistant;
|
|
352
386
|
toolCalls?: {
|
|
353
387
|
function: {
|
|
@@ -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
|
@@ -80,6 +80,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
80
80
|
status: import("./message").MessageStatus;
|
|
81
81
|
} | {
|
|
82
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
|
+
};
|
|
83
100
|
role: import("./message").MessageRole.Assistant;
|
|
84
101
|
toolCalls?: {
|
|
85
102
|
function: {
|
|
@@ -350,6 +367,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
350
367
|
status: import("./message").MessageStatus;
|
|
351
368
|
} | {
|
|
352
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
|
+
};
|
|
353
387
|
role: import("./message").MessageRole.Assistant;
|
|
354
388
|
toolCalls?: {
|
|
355
389
|
function: {
|
|
@@ -602,6 +636,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
602
636
|
status: import("./message").MessageStatus;
|
|
603
637
|
} | {
|
|
604
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
|
+
};
|
|
605
656
|
role: import("./message").MessageRole.Assistant;
|
|
606
657
|
toolCalls?: {
|
|
607
658
|
function: {
|
|
@@ -826,6 +877,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
826
877
|
status: import("./message").MessageStatus;
|
|
827
878
|
} | {
|
|
828
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
|
+
};
|
|
829
897
|
role: import("./message").MessageRole.Assistant;
|
|
830
898
|
toolCalls?: {
|
|
831
899
|
function: {
|
|
@@ -1070,6 +1138,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
1070
1138
|
status: import("./message").MessageStatus;
|
|
1071
1139
|
} | {
|
|
1072
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
|
+
};
|
|
1073
1158
|
role: import("./message").MessageRole.Assistant;
|
|
1074
1159
|
toolCalls?: {
|
|
1075
1160
|
function: {
|
|
@@ -1294,6 +1379,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
1294
1379
|
status: import("./message").MessageStatus;
|
|
1295
1380
|
} | {
|
|
1296
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
|
+
};
|
|
1297
1399
|
role: import("./message").MessageRole.Assistant;
|
|
1298
1400
|
toolCalls?: {
|
|
1299
1401
|
function: {
|
|
@@ -1539,6 +1641,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
1539
1641
|
status: import("./message").MessageStatus;
|
|
1540
1642
|
} | {
|
|
1541
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
|
+
};
|
|
1542
1661
|
role: import("./message").MessageRole.Assistant;
|
|
1543
1662
|
toolCalls?: {
|
|
1544
1663
|
function: {
|
|
@@ -1763,6 +1882,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
1763
1882
|
status: import("./message").MessageStatus;
|
|
1764
1883
|
} | {
|
|
1765
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
|
+
};
|
|
1766
1902
|
role: import("./message").MessageRole.Assistant;
|
|
1767
1903
|
toolCalls?: {
|
|
1768
1904
|
function: {
|
|
@@ -2007,6 +2143,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
2007
2143
|
status: import("./message").MessageStatus;
|
|
2008
2144
|
} | {
|
|
2009
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
|
+
};
|
|
2010
2163
|
role: import("./message").MessageRole.Assistant;
|
|
2011
2164
|
toolCalls?: {
|
|
2012
2165
|
function: {
|
|
@@ -2231,6 +2384,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
2231
2384
|
status: import("./message").MessageStatus;
|
|
2232
2385
|
} | {
|
|
2233
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
|
+
};
|
|
2234
2404
|
role: import("./message").MessageRole.Assistant;
|
|
2235
2405
|
toolCalls?: {
|
|
2236
2406
|
function: {
|
|
@@ -2492,6 +2662,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
2492
2662
|
status: import("./message").MessageStatus;
|
|
2493
2663
|
} | {
|
|
2494
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
|
+
};
|
|
2495
2682
|
role: import("./message").MessageRole.Assistant;
|
|
2496
2683
|
toolCalls?: {
|
|
2497
2684
|
function: {
|
|
@@ -2713,6 +2900,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
2713
2900
|
status: import("./message").MessageStatus;
|
|
2714
2901
|
} | {
|
|
2715
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
|
+
};
|
|
2716
2920
|
role: import("./message").MessageRole.Assistant;
|
|
2717
2921
|
toolCalls?: {
|
|
2718
2922
|
function: {
|
|
@@ -2938,6 +3142,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
2938
3142
|
status: import("./message").MessageStatus;
|
|
2939
3143
|
} | {
|
|
2940
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
|
+
};
|
|
2941
3162
|
role: import("./message").MessageRole.Assistant;
|
|
2942
3163
|
toolCalls?: {
|
|
2943
3164
|
function: {
|
|
@@ -3160,6 +3381,23 @@ export declare const useChatHelper: (options: IUseChatHelperOptions) => {
|
|
|
3160
3381
|
status: import("./message").MessageStatus;
|
|
3161
3382
|
} | {
|
|
3162
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
|
+
};
|
|
3163
3401
|
role: import("./message").MessageRole.Assistant;
|
|
3164
3402
|
toolCalls?: {
|
|
3165
3403
|
function: {
|
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
|
}
|
|
@@ -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.
|
|
3
|
+
"version": "0.0.1-beta.26",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.ts.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -25,4 +25,4 @@
|
|
|
25
25
|
"typescript": "^5.5.4",
|
|
26
26
|
"vue-tsc": "^3.1.4"
|
|
27
27
|
}
|
|
28
|
-
}
|
|
28
|
+
}
|