@tdesign-react/chat 1.0.2-alpha.1 → 1.0.2-alpha.10
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/es/_util/reactify.d.ts +1 -2
- package/es/_util/reactify.js +83 -234
- package/es/_util/reactify.js.map +1 -1
- package/es/_util/useDynamicStyle.js +2 -2
- package/es/_util/useDynamicStyle.js.map +1 -1
- package/es/attachments/index.d.ts +5 -0
- package/es/attachments/index.js +24 -0
- package/es/attachments/index.js.map +1 -0
- package/es/chat-actionbar/index.js +5 -7
- package/es/chat-actionbar/index.js.map +1 -1
- package/es/chat-engine/components/activity/index.d.ts +4 -0
- package/es/chat-engine/components/activity/index.js +18 -0
- package/es/chat-engine/components/activity/index.js.map +1 -0
- package/es/chat-engine/components/activity/registry.d.ts +44 -0
- package/es/chat-engine/components/activity/registry.js +85 -0
- package/es/chat-engine/components/activity/registry.js.map +1 -0
- package/es/chat-engine/components/activity/render.d.ts +11 -0
- package/es/chat-engine/components/activity/render.js +107 -0
- package/es/chat-engine/components/activity/render.js.map +1 -0
- package/es/chat-engine/components/activity/types.d.ts +32 -0
- package/es/chat-engine/components/activity/types.js +7 -0
- package/es/chat-engine/components/activity/types.js.map +1 -0
- package/es/chat-engine/components/index.d.ts +3 -0
- package/es/chat-engine/components/index.js +55 -0
- package/es/chat-engine/components/index.js.map +1 -0
- package/es/chat-engine/components/provider/agent-state.js +2 -2
- package/es/chat-engine/components/toolcall/index.js +32 -2
- package/es/chat-engine/components/toolcall/index.js.map +1 -1
- package/es/chat-engine/components/toolcall/registry.js +2 -2
- package/es/chat-engine/components/toolcall/render.d.ts +1 -1
- package/es/chat-engine/components/toolcall/render.js +88 -15
- package/es/chat-engine/components/toolcall/render.js.map +1 -1
- package/es/chat-engine/components/toolcall/types.js +2 -2
- package/es/chat-engine/core/adapters/agui/event-mapper.d.ts +5 -0
- package/es/chat-engine/core/adapters/agui/event-mapper.js +60 -33
- package/es/chat-engine/core/adapters/agui/event-mapper.js.map +1 -1
- package/es/chat-engine/core/adapters/agui/events.d.ts +377 -221
- package/es/chat-engine/core/adapters/agui/events.js +52 -34
- package/es/chat-engine/core/adapters/agui/events.js.map +1 -1
- package/es/chat-engine/core/adapters/agui/index.d.ts +16 -0
- package/es/chat-engine/core/adapters/agui/index.js +52 -28
- package/es/chat-engine/core/adapters/agui/index.js.map +1 -1
- package/es/chat-engine/core/adapters/agui/state-manager.js +2 -2
- package/es/chat-engine/core/adapters/agui/types.d.ts +155 -97
- package/es/chat-engine/core/adapters/agui/types.js +13 -7
- package/es/chat-engine/core/adapters/agui/types.js.map +1 -1
- package/es/chat-engine/core/adapters/agui/utils.d.ts +20 -2
- package/es/chat-engine/core/adapters/agui/utils.js +23 -7
- package/es/chat-engine/core/adapters/agui/utils.js.map +1 -1
- package/es/chat-engine/core/index.js +7 -7
- package/es/chat-engine/core/processor/index.js +2 -2
- package/es/chat-engine/core/server/batch-client.js +2 -2
- package/es/chat-engine/core/server/connection-manager.js +2 -2
- package/es/chat-engine/core/server/errors.js +2 -2
- package/es/chat-engine/core/server/index.js +2 -2
- package/es/chat-engine/core/server/llm-service.js +2 -2
- package/es/chat-engine/core/server/sse-client.js +2 -2
- package/es/chat-engine/core/server/sse-parser.js +2 -2
- package/es/chat-engine/core/server/types.js +2 -2
- package/es/chat-engine/core/store/message.js +2 -2
- package/es/chat-engine/core/store/model.js +2 -2
- package/es/chat-engine/core/store/reactiveState.js +2 -2
- package/es/chat-engine/core/type.d.ts +8 -1
- package/es/chat-engine/core/type.js +2 -2
- package/es/chat-engine/core/utils/eventEmitter.js +2 -2
- package/es/chat-engine/core/utils/index.d.ts +2 -1
- package/es/chat-engine/core/utils/index.js +6 -3
- package/es/chat-engine/core/utils/index.js.map +1 -1
- package/es/chat-engine/core/utils/logger.js +2 -2
- package/es/chat-engine/hooks/index.d.ts +4 -0
- package/es/chat-engine/hooks/index.js +20 -0
- package/es/chat-engine/hooks/index.js.map +1 -0
- package/es/chat-engine/hooks/useAgentActivity.d.ts +16 -0
- package/es/chat-engine/hooks/useAgentActivity.js +73 -0
- package/es/chat-engine/hooks/useAgentActivity.js.map +1 -0
- package/es/chat-engine/hooks/useAgentState.js +2 -2
- package/es/chat-engine/hooks/useAgentState.js.map +1 -1
- package/es/chat-engine/hooks/useAgentToolcall.js +2 -2
- package/es/chat-engine/hooks/useAgentToolcall.js.map +1 -1
- package/es/chat-engine/hooks/useChat.js +4 -4
- package/es/chat-engine/hooks/useChat.js.map +1 -1
- package/es/chat-engine/index.d.ts +3 -3
- package/es/chat-engine/index.js +41 -6
- package/es/chat-engine/index.js.map +1 -1
- package/es/chat-filecard/index.js +5 -7
- package/es/chat-filecard/index.js.map +1 -1
- package/es/chat-loading/index.js +5 -7
- package/es/chat-loading/index.js.map +1 -1
- package/es/chat-markdown/index.js +5 -7
- package/es/chat-markdown/index.js.map +1 -1
- package/es/chat-message/index.js +5 -7
- package/es/chat-message/index.js.map +1 -1
- package/es/chat-sender/index.js +5 -7
- package/es/chat-sender/index.js.map +1 -1
- package/es/chat-thinking/index.js +5 -7
- package/es/chat-thinking/index.js.map +1 -1
- package/es/chatbot/index.js +5 -7
- package/es/chatbot/index.js.map +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +40 -11
- package/es/index.js.map +1 -1
- package/es/style/index.js +2 -2
- package/package.json +5 -4
|
@@ -37,26 +37,7 @@ export declare const ToolCallSchema: z.ZodObject<{
|
|
|
37
37
|
type?: "function";
|
|
38
38
|
id?: string;
|
|
39
39
|
}>;
|
|
40
|
-
|
|
41
|
-
id: z.ZodString;
|
|
42
|
-
role: z.ZodString;
|
|
43
|
-
content: z.ZodOptional<z.ZodString>;
|
|
44
|
-
name: z.ZodOptional<z.ZodString>;
|
|
45
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
46
|
-
}, "strip", z.ZodTypeAny, {
|
|
47
|
-
content?: string;
|
|
48
|
-
name?: string;
|
|
49
|
-
role?: string;
|
|
50
|
-
id?: string;
|
|
51
|
-
timestamp?: number;
|
|
52
|
-
}, {
|
|
53
|
-
content?: string;
|
|
54
|
-
name?: string;
|
|
55
|
-
role?: string;
|
|
56
|
-
id?: string;
|
|
57
|
-
timestamp?: number;
|
|
58
|
-
}>;
|
|
59
|
-
export declare const DeveloperMessageSchema: z.ZodObject<{
|
|
40
|
+
declare const DeveloperMessageSchema: z.ZodObject<{
|
|
60
41
|
id: z.ZodString;
|
|
61
42
|
name: z.ZodOptional<z.ZodString>;
|
|
62
43
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
@@ -66,17 +47,17 @@ export declare const DeveloperMessageSchema: z.ZodObject<{
|
|
|
66
47
|
}, "strip", z.ZodTypeAny, {
|
|
67
48
|
content?: string;
|
|
68
49
|
name?: string;
|
|
69
|
-
role?: "developer";
|
|
70
50
|
id?: string;
|
|
51
|
+
role?: "developer";
|
|
71
52
|
timestamp?: number;
|
|
72
53
|
}, {
|
|
73
54
|
content?: string;
|
|
74
55
|
name?: string;
|
|
75
|
-
role?: "developer";
|
|
76
56
|
id?: string;
|
|
57
|
+
role?: "developer";
|
|
77
58
|
timestamp?: number;
|
|
78
59
|
}>;
|
|
79
|
-
|
|
60
|
+
declare const SystemMessageSchema: z.ZodObject<{
|
|
80
61
|
id: z.ZodString;
|
|
81
62
|
name: z.ZodOptional<z.ZodString>;
|
|
82
63
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
@@ -86,17 +67,17 @@ export declare const SystemMessageSchema: z.ZodObject<{
|
|
|
86
67
|
}, "strip", z.ZodTypeAny, {
|
|
87
68
|
content?: string;
|
|
88
69
|
name?: string;
|
|
89
|
-
role?: "system";
|
|
90
70
|
id?: string;
|
|
71
|
+
role?: "system";
|
|
91
72
|
timestamp?: number;
|
|
92
73
|
}, {
|
|
93
74
|
content?: string;
|
|
94
75
|
name?: string;
|
|
95
|
-
role?: "system";
|
|
96
76
|
id?: string;
|
|
77
|
+
role?: "system";
|
|
97
78
|
timestamp?: number;
|
|
98
79
|
}>;
|
|
99
|
-
|
|
80
|
+
declare const AssistantMessageSchema: z.ZodObject<{
|
|
100
81
|
id: z.ZodString;
|
|
101
82
|
name: z.ZodOptional<z.ZodString>;
|
|
102
83
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
@@ -135,8 +116,8 @@ export declare const AssistantMessageSchema: z.ZodObject<{
|
|
|
135
116
|
}, "strip", z.ZodTypeAny, {
|
|
136
117
|
content?: string;
|
|
137
118
|
name?: string;
|
|
138
|
-
role?: "assistant";
|
|
139
119
|
id?: string;
|
|
120
|
+
role?: "assistant";
|
|
140
121
|
timestamp?: number;
|
|
141
122
|
reasoningContent?: string;
|
|
142
123
|
toolCalls?: {
|
|
@@ -150,8 +131,8 @@ export declare const AssistantMessageSchema: z.ZodObject<{
|
|
|
150
131
|
}, {
|
|
151
132
|
content?: string;
|
|
152
133
|
name?: string;
|
|
153
|
-
role?: "assistant";
|
|
154
134
|
id?: string;
|
|
135
|
+
role?: "assistant";
|
|
155
136
|
timestamp?: number;
|
|
156
137
|
reasoningContent?: string;
|
|
157
138
|
toolCalls?: {
|
|
@@ -163,7 +144,7 @@ export declare const AssistantMessageSchema: z.ZodObject<{
|
|
|
163
144
|
id?: string;
|
|
164
145
|
}[];
|
|
165
146
|
}>;
|
|
166
|
-
|
|
147
|
+
declare const UserMessageSchema: z.ZodObject<{
|
|
167
148
|
id: z.ZodString;
|
|
168
149
|
name: z.ZodOptional<z.ZodString>;
|
|
169
150
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
@@ -173,33 +154,49 @@ export declare const UserMessageSchema: z.ZodObject<{
|
|
|
173
154
|
}, "strip", z.ZodTypeAny, {
|
|
174
155
|
content?: string;
|
|
175
156
|
name?: string;
|
|
176
|
-
role?: "user";
|
|
177
157
|
id?: string;
|
|
158
|
+
role?: "user";
|
|
178
159
|
timestamp?: number;
|
|
179
160
|
}, {
|
|
180
161
|
content?: string;
|
|
181
162
|
name?: string;
|
|
182
|
-
role?: "user";
|
|
183
163
|
id?: string;
|
|
164
|
+
role?: "user";
|
|
184
165
|
timestamp?: number;
|
|
185
166
|
}>;
|
|
186
|
-
|
|
167
|
+
declare const ToolMessageSchema: z.ZodObject<{
|
|
187
168
|
id: z.ZodString;
|
|
188
169
|
content: z.ZodString;
|
|
189
170
|
role: z.ZodLiteral<"tool">;
|
|
190
171
|
toolCallId: z.ZodString;
|
|
191
172
|
}, "strip", z.ZodTypeAny, {
|
|
192
173
|
content?: string;
|
|
193
|
-
role?: "tool";
|
|
194
174
|
id?: string;
|
|
175
|
+
role?: "tool";
|
|
195
176
|
toolCallId?: string;
|
|
196
177
|
}, {
|
|
197
178
|
content?: string;
|
|
198
|
-
role?: "tool";
|
|
199
179
|
id?: string;
|
|
180
|
+
role?: "tool";
|
|
200
181
|
toolCallId?: string;
|
|
201
182
|
}>;
|
|
202
|
-
|
|
183
|
+
declare const ActivityMessageSchema: z.ZodObject<{
|
|
184
|
+
id: z.ZodString;
|
|
185
|
+
role: z.ZodLiteral<"activity">;
|
|
186
|
+
activityType: z.ZodString;
|
|
187
|
+
content: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
188
|
+
}, "strip", z.ZodTypeAny, {
|
|
189
|
+
content?: Record<string, any>;
|
|
190
|
+
activityType?: string;
|
|
191
|
+
id?: string;
|
|
192
|
+
role?: "activity";
|
|
193
|
+
}, {
|
|
194
|
+
content?: Record<string, any>;
|
|
195
|
+
activityType?: string;
|
|
196
|
+
id?: string;
|
|
197
|
+
role?: "activity";
|
|
198
|
+
}>;
|
|
199
|
+
export declare const AGUIMessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
203
200
|
id: z.ZodString;
|
|
204
201
|
name: z.ZodOptional<z.ZodString>;
|
|
205
202
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
@@ -209,14 +206,14 @@ export declare const MessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject
|
|
|
209
206
|
}, "strip", z.ZodTypeAny, {
|
|
210
207
|
content?: string;
|
|
211
208
|
name?: string;
|
|
212
|
-
role?: "developer";
|
|
213
209
|
id?: string;
|
|
210
|
+
role?: "developer";
|
|
214
211
|
timestamp?: number;
|
|
215
212
|
}, {
|
|
216
213
|
content?: string;
|
|
217
214
|
name?: string;
|
|
218
|
-
role?: "developer";
|
|
219
215
|
id?: string;
|
|
216
|
+
role?: "developer";
|
|
220
217
|
timestamp?: number;
|
|
221
218
|
}>, z.ZodObject<{
|
|
222
219
|
id: z.ZodString;
|
|
@@ -228,14 +225,14 @@ export declare const MessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject
|
|
|
228
225
|
}, "strip", z.ZodTypeAny, {
|
|
229
226
|
content?: string;
|
|
230
227
|
name?: string;
|
|
231
|
-
role?: "system";
|
|
232
228
|
id?: string;
|
|
229
|
+
role?: "system";
|
|
233
230
|
timestamp?: number;
|
|
234
231
|
}, {
|
|
235
232
|
content?: string;
|
|
236
233
|
name?: string;
|
|
237
|
-
role?: "system";
|
|
238
234
|
id?: string;
|
|
235
|
+
role?: "system";
|
|
239
236
|
timestamp?: number;
|
|
240
237
|
}>, z.ZodObject<{
|
|
241
238
|
id: z.ZodString;
|
|
@@ -276,8 +273,8 @@ export declare const MessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject
|
|
|
276
273
|
}, "strip", z.ZodTypeAny, {
|
|
277
274
|
content?: string;
|
|
278
275
|
name?: string;
|
|
279
|
-
role?: "assistant";
|
|
280
276
|
id?: string;
|
|
277
|
+
role?: "assistant";
|
|
281
278
|
timestamp?: number;
|
|
282
279
|
reasoningContent?: string;
|
|
283
280
|
toolCalls?: {
|
|
@@ -291,8 +288,8 @@ export declare const MessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject
|
|
|
291
288
|
}, {
|
|
292
289
|
content?: string;
|
|
293
290
|
name?: string;
|
|
294
|
-
role?: "assistant";
|
|
295
291
|
id?: string;
|
|
292
|
+
role?: "assistant";
|
|
296
293
|
timestamp?: number;
|
|
297
294
|
reasoningContent?: string;
|
|
298
295
|
toolCalls?: {
|
|
@@ -313,14 +310,14 @@ export declare const MessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject
|
|
|
313
310
|
}, "strip", z.ZodTypeAny, {
|
|
314
311
|
content?: string;
|
|
315
312
|
name?: string;
|
|
316
|
-
role?: "user";
|
|
317
313
|
id?: string;
|
|
314
|
+
role?: "user";
|
|
318
315
|
timestamp?: number;
|
|
319
316
|
}, {
|
|
320
317
|
content?: string;
|
|
321
318
|
name?: string;
|
|
322
|
-
role?: "user";
|
|
323
319
|
id?: string;
|
|
320
|
+
role?: "user";
|
|
324
321
|
timestamp?: number;
|
|
325
322
|
}>, z.ZodObject<{
|
|
326
323
|
id: z.ZodString;
|
|
@@ -329,15 +326,34 @@ export declare const MessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject
|
|
|
329
326
|
toolCallId: z.ZodString;
|
|
330
327
|
}, "strip", z.ZodTypeAny, {
|
|
331
328
|
content?: string;
|
|
332
|
-
role?: "tool";
|
|
333
329
|
id?: string;
|
|
330
|
+
role?: "tool";
|
|
334
331
|
toolCallId?: string;
|
|
335
332
|
}, {
|
|
336
333
|
content?: string;
|
|
337
|
-
role?: "tool";
|
|
338
334
|
id?: string;
|
|
335
|
+
role?: "tool";
|
|
339
336
|
toolCallId?: string;
|
|
337
|
+
}>, z.ZodObject<{
|
|
338
|
+
id: z.ZodString;
|
|
339
|
+
role: z.ZodLiteral<"activity">;
|
|
340
|
+
activityType: z.ZodString;
|
|
341
|
+
content: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
342
|
+
}, "strip", z.ZodTypeAny, {
|
|
343
|
+
content?: Record<string, any>;
|
|
344
|
+
activityType?: string;
|
|
345
|
+
id?: string;
|
|
346
|
+
role?: "activity";
|
|
347
|
+
}, {
|
|
348
|
+
content?: Record<string, any>;
|
|
349
|
+
activityType?: string;
|
|
350
|
+
id?: string;
|
|
351
|
+
role?: "activity";
|
|
340
352
|
}>]>;
|
|
353
|
+
/**
|
|
354
|
+
* 历史消息相关的类型定义
|
|
355
|
+
*
|
|
356
|
+
*/
|
|
341
357
|
export declare const HistoryMessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
342
358
|
id: z.ZodString;
|
|
343
359
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -348,14 +364,14 @@ export declare const HistoryMessageSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
|
|
|
348
364
|
}, "strip", z.ZodTypeAny, {
|
|
349
365
|
content?: string;
|
|
350
366
|
name?: string;
|
|
351
|
-
role?: "user";
|
|
352
367
|
id?: string;
|
|
368
|
+
role?: "user";
|
|
353
369
|
timestamp?: number;
|
|
354
370
|
}, {
|
|
355
371
|
content?: string;
|
|
356
372
|
name?: string;
|
|
357
|
-
role?: "user";
|
|
358
373
|
id?: string;
|
|
374
|
+
role?: "user";
|
|
359
375
|
timestamp?: number;
|
|
360
376
|
}>, z.ZodObject<{
|
|
361
377
|
id: z.ZodString;
|
|
@@ -396,8 +412,8 @@ export declare const HistoryMessageSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
|
|
|
396
412
|
}, "strip", z.ZodTypeAny, {
|
|
397
413
|
content?: string;
|
|
398
414
|
name?: string;
|
|
399
|
-
role?: "assistant";
|
|
400
415
|
id?: string;
|
|
416
|
+
role?: "assistant";
|
|
401
417
|
timestamp?: number;
|
|
402
418
|
reasoningContent?: string;
|
|
403
419
|
toolCalls?: {
|
|
@@ -411,8 +427,8 @@ export declare const HistoryMessageSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
|
|
|
411
427
|
}, {
|
|
412
428
|
content?: string;
|
|
413
429
|
name?: string;
|
|
414
|
-
role?: "assistant";
|
|
415
430
|
id?: string;
|
|
431
|
+
role?: "assistant";
|
|
416
432
|
timestamp?: number;
|
|
417
433
|
reasoningContent?: string;
|
|
418
434
|
toolCalls?: {
|
|
@@ -430,16 +446,31 @@ export declare const HistoryMessageSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
|
|
|
430
446
|
toolCallId: z.ZodString;
|
|
431
447
|
}, "strip", z.ZodTypeAny, {
|
|
432
448
|
content?: string;
|
|
433
|
-
role?: "tool";
|
|
434
449
|
id?: string;
|
|
450
|
+
role?: "tool";
|
|
435
451
|
toolCallId?: string;
|
|
436
452
|
}, {
|
|
437
453
|
content?: string;
|
|
438
|
-
role?: "tool";
|
|
439
454
|
id?: string;
|
|
455
|
+
role?: "tool";
|
|
440
456
|
toolCallId?: string;
|
|
457
|
+
}>, z.ZodObject<{
|
|
458
|
+
id: z.ZodString;
|
|
459
|
+
role: z.ZodLiteral<"activity">;
|
|
460
|
+
activityType: z.ZodString;
|
|
461
|
+
content: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
462
|
+
}, "strip", z.ZodTypeAny, {
|
|
463
|
+
content?: Record<string, any>;
|
|
464
|
+
activityType?: string;
|
|
465
|
+
id?: string;
|
|
466
|
+
role?: "activity";
|
|
467
|
+
}, {
|
|
468
|
+
content?: Record<string, any>;
|
|
469
|
+
activityType?: string;
|
|
470
|
+
id?: string;
|
|
471
|
+
role?: "activity";
|
|
441
472
|
}>]>;
|
|
442
|
-
export declare const RoleSchema: z.ZodUnion<[z.ZodLiteral<"developer">, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">, z.ZodLiteral<"tool">]>;
|
|
473
|
+
export declare const RoleSchema: z.ZodUnion<[z.ZodLiteral<"developer">, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">, z.ZodLiteral<"tool">, z.ZodLiteral<"activity">]>;
|
|
443
474
|
export declare const ContextSchema: z.ZodObject<{
|
|
444
475
|
description: z.ZodString;
|
|
445
476
|
value: z.ZodString;
|
|
@@ -477,14 +508,14 @@ export declare const RunAgentInputSchema: z.ZodObject<{
|
|
|
477
508
|
}, "strip", z.ZodTypeAny, {
|
|
478
509
|
content?: string;
|
|
479
510
|
name?: string;
|
|
480
|
-
role?: "developer";
|
|
481
511
|
id?: string;
|
|
512
|
+
role?: "developer";
|
|
482
513
|
timestamp?: number;
|
|
483
514
|
}, {
|
|
484
515
|
content?: string;
|
|
485
516
|
name?: string;
|
|
486
|
-
role?: "developer";
|
|
487
517
|
id?: string;
|
|
518
|
+
role?: "developer";
|
|
488
519
|
timestamp?: number;
|
|
489
520
|
}>, z.ZodObject<{
|
|
490
521
|
id: z.ZodString;
|
|
@@ -496,14 +527,14 @@ export declare const RunAgentInputSchema: z.ZodObject<{
|
|
|
496
527
|
}, "strip", z.ZodTypeAny, {
|
|
497
528
|
content?: string;
|
|
498
529
|
name?: string;
|
|
499
|
-
role?: "system";
|
|
500
530
|
id?: string;
|
|
531
|
+
role?: "system";
|
|
501
532
|
timestamp?: number;
|
|
502
533
|
}, {
|
|
503
534
|
content?: string;
|
|
504
535
|
name?: string;
|
|
505
|
-
role?: "system";
|
|
506
536
|
id?: string;
|
|
537
|
+
role?: "system";
|
|
507
538
|
timestamp?: number;
|
|
508
539
|
}>, z.ZodObject<{
|
|
509
540
|
id: z.ZodString;
|
|
@@ -544,8 +575,8 @@ export declare const RunAgentInputSchema: z.ZodObject<{
|
|
|
544
575
|
}, "strip", z.ZodTypeAny, {
|
|
545
576
|
content?: string;
|
|
546
577
|
name?: string;
|
|
547
|
-
role?: "assistant";
|
|
548
578
|
id?: string;
|
|
579
|
+
role?: "assistant";
|
|
549
580
|
timestamp?: number;
|
|
550
581
|
reasoningContent?: string;
|
|
551
582
|
toolCalls?: {
|
|
@@ -559,8 +590,8 @@ export declare const RunAgentInputSchema: z.ZodObject<{
|
|
|
559
590
|
}, {
|
|
560
591
|
content?: string;
|
|
561
592
|
name?: string;
|
|
562
|
-
role?: "assistant";
|
|
563
593
|
id?: string;
|
|
594
|
+
role?: "assistant";
|
|
564
595
|
timestamp?: number;
|
|
565
596
|
reasoningContent?: string;
|
|
566
597
|
toolCalls?: {
|
|
@@ -581,14 +612,14 @@ export declare const RunAgentInputSchema: z.ZodObject<{
|
|
|
581
612
|
}, "strip", z.ZodTypeAny, {
|
|
582
613
|
content?: string;
|
|
583
614
|
name?: string;
|
|
584
|
-
role?: "user";
|
|
585
615
|
id?: string;
|
|
616
|
+
role?: "user";
|
|
586
617
|
timestamp?: number;
|
|
587
618
|
}, {
|
|
588
619
|
content?: string;
|
|
589
620
|
name?: string;
|
|
590
|
-
role?: "user";
|
|
591
621
|
id?: string;
|
|
622
|
+
role?: "user";
|
|
592
623
|
timestamp?: number;
|
|
593
624
|
}>, z.ZodObject<{
|
|
594
625
|
id: z.ZodString;
|
|
@@ -597,14 +628,29 @@ export declare const RunAgentInputSchema: z.ZodObject<{
|
|
|
597
628
|
toolCallId: z.ZodString;
|
|
598
629
|
}, "strip", z.ZodTypeAny, {
|
|
599
630
|
content?: string;
|
|
600
|
-
role?: "tool";
|
|
601
631
|
id?: string;
|
|
632
|
+
role?: "tool";
|
|
602
633
|
toolCallId?: string;
|
|
603
634
|
}, {
|
|
604
635
|
content?: string;
|
|
605
|
-
role?: "tool";
|
|
606
636
|
id?: string;
|
|
637
|
+
role?: "tool";
|
|
607
638
|
toolCallId?: string;
|
|
639
|
+
}>, z.ZodObject<{
|
|
640
|
+
id: z.ZodString;
|
|
641
|
+
role: z.ZodLiteral<"activity">;
|
|
642
|
+
activityType: z.ZodString;
|
|
643
|
+
content: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
644
|
+
}, "strip", z.ZodTypeAny, {
|
|
645
|
+
content?: Record<string, any>;
|
|
646
|
+
activityType?: string;
|
|
647
|
+
id?: string;
|
|
648
|
+
role?: "activity";
|
|
649
|
+
}, {
|
|
650
|
+
content?: Record<string, any>;
|
|
651
|
+
activityType?: string;
|
|
652
|
+
id?: string;
|
|
653
|
+
role?: "activity";
|
|
608
654
|
}>]>, "many">;
|
|
609
655
|
tools: z.ZodArray<z.ZodObject<{
|
|
610
656
|
name: z.ZodString;
|
|
@@ -634,20 +680,20 @@ export declare const RunAgentInputSchema: z.ZodObject<{
|
|
|
634
680
|
messages?: ({
|
|
635
681
|
content?: string;
|
|
636
682
|
name?: string;
|
|
637
|
-
role?: "developer";
|
|
638
683
|
id?: string;
|
|
684
|
+
role?: "developer";
|
|
639
685
|
timestamp?: number;
|
|
640
686
|
} | {
|
|
641
687
|
content?: string;
|
|
642
688
|
name?: string;
|
|
643
|
-
role?: "system";
|
|
644
689
|
id?: string;
|
|
690
|
+
role?: "system";
|
|
645
691
|
timestamp?: number;
|
|
646
692
|
} | {
|
|
647
693
|
content?: string;
|
|
648
694
|
name?: string;
|
|
649
|
-
role?: "assistant";
|
|
650
695
|
id?: string;
|
|
696
|
+
role?: "assistant";
|
|
651
697
|
timestamp?: number;
|
|
652
698
|
reasoningContent?: string;
|
|
653
699
|
toolCalls?: {
|
|
@@ -661,46 +707,51 @@ export declare const RunAgentInputSchema: z.ZodObject<{
|
|
|
661
707
|
} | {
|
|
662
708
|
content?: string;
|
|
663
709
|
name?: string;
|
|
664
|
-
role?: "user";
|
|
665
710
|
id?: string;
|
|
711
|
+
role?: "user";
|
|
666
712
|
timestamp?: number;
|
|
667
713
|
} | {
|
|
668
714
|
content?: string;
|
|
669
|
-
role?: "tool";
|
|
670
715
|
id?: string;
|
|
716
|
+
role?: "tool";
|
|
671
717
|
toolCallId?: string;
|
|
718
|
+
} | {
|
|
719
|
+
content?: Record<string, any>;
|
|
720
|
+
activityType?: string;
|
|
721
|
+
id?: string;
|
|
722
|
+
role?: "activity";
|
|
672
723
|
})[];
|
|
673
|
-
state?: any;
|
|
674
|
-
context?: {
|
|
675
|
-
value?: string;
|
|
676
|
-
description?: string;
|
|
677
|
-
}[];
|
|
678
724
|
threadId?: string;
|
|
679
725
|
runId?: string;
|
|
726
|
+
state?: any;
|
|
680
727
|
tools?: {
|
|
681
728
|
name?: string;
|
|
682
729
|
description?: string;
|
|
683
730
|
parameters?: any;
|
|
684
731
|
}[];
|
|
732
|
+
context?: {
|
|
733
|
+
value?: string;
|
|
734
|
+
description?: string;
|
|
735
|
+
}[];
|
|
685
736
|
forwardedProps?: any;
|
|
686
737
|
}, {
|
|
687
738
|
messages?: ({
|
|
688
739
|
content?: string;
|
|
689
740
|
name?: string;
|
|
690
|
-
role?: "developer";
|
|
691
741
|
id?: string;
|
|
742
|
+
role?: "developer";
|
|
692
743
|
timestamp?: number;
|
|
693
744
|
} | {
|
|
694
745
|
content?: string;
|
|
695
746
|
name?: string;
|
|
696
|
-
role?: "system";
|
|
697
747
|
id?: string;
|
|
748
|
+
role?: "system";
|
|
698
749
|
timestamp?: number;
|
|
699
750
|
} | {
|
|
700
751
|
content?: string;
|
|
701
752
|
name?: string;
|
|
702
|
-
role?: "assistant";
|
|
703
753
|
id?: string;
|
|
754
|
+
role?: "assistant";
|
|
704
755
|
timestamp?: number;
|
|
705
756
|
reasoningContent?: string;
|
|
706
757
|
toolCalls?: {
|
|
@@ -714,47 +765,54 @@ export declare const RunAgentInputSchema: z.ZodObject<{
|
|
|
714
765
|
} | {
|
|
715
766
|
content?: string;
|
|
716
767
|
name?: string;
|
|
717
|
-
role?: "user";
|
|
718
768
|
id?: string;
|
|
769
|
+
role?: "user";
|
|
719
770
|
timestamp?: number;
|
|
720
771
|
} | {
|
|
721
772
|
content?: string;
|
|
722
|
-
role?: "tool";
|
|
723
773
|
id?: string;
|
|
774
|
+
role?: "tool";
|
|
724
775
|
toolCallId?: string;
|
|
776
|
+
} | {
|
|
777
|
+
content?: Record<string, any>;
|
|
778
|
+
activityType?: string;
|
|
779
|
+
id?: string;
|
|
780
|
+
role?: "activity";
|
|
725
781
|
})[];
|
|
726
|
-
state?: any;
|
|
727
|
-
context?: {
|
|
728
|
-
value?: string;
|
|
729
|
-
description?: string;
|
|
730
|
-
}[];
|
|
731
782
|
threadId?: string;
|
|
732
783
|
runId?: string;
|
|
784
|
+
state?: any;
|
|
733
785
|
tools?: {
|
|
734
786
|
name?: string;
|
|
735
787
|
description?: string;
|
|
736
788
|
parameters?: any;
|
|
737
789
|
}[];
|
|
790
|
+
context?: {
|
|
791
|
+
value?: string;
|
|
792
|
+
description?: string;
|
|
793
|
+
}[];
|
|
738
794
|
forwardedProps?: any;
|
|
739
795
|
}>;
|
|
740
796
|
export declare const StateSchema: z.ZodAny;
|
|
741
797
|
export type AGUIToolCall = z.infer<typeof ToolCallSchema>;
|
|
742
|
-
export type
|
|
743
|
-
export type
|
|
744
|
-
export type
|
|
745
|
-
export type
|
|
746
|
-
export type
|
|
747
|
-
export type
|
|
748
|
-
export type
|
|
749
|
-
export type
|
|
750
|
-
export type
|
|
798
|
+
export type AGUIFunctionCall = z.infer<typeof FunctionCallSchema>;
|
|
799
|
+
export type AGUIDeveloperMessage = z.infer<typeof DeveloperMessageSchema>;
|
|
800
|
+
export type AGUISystemMessage = z.infer<typeof SystemMessageSchema>;
|
|
801
|
+
export type AGUIAssistantMessage = z.infer<typeof AssistantMessageSchema>;
|
|
802
|
+
export type AGUIUserMessage = z.infer<typeof UserMessageSchema>;
|
|
803
|
+
export type AGUIToolMessage = z.infer<typeof ToolMessageSchema>;
|
|
804
|
+
export type AGUIActivityMessage = z.infer<typeof ActivityMessageSchema>;
|
|
805
|
+
export type AGUIMessage = z.infer<typeof AGUIMessageSchema>;
|
|
806
|
+
export type AGUIContext = z.infer<typeof ContextSchema>;
|
|
807
|
+
export type AGUITool = z.infer<typeof ToolSchema>;
|
|
751
808
|
export type RunAgentInput = z.infer<typeof RunAgentInputSchema>;
|
|
752
|
-
export type
|
|
753
|
-
export type
|
|
754
|
-
export type AGUIHistoryMessage =
|
|
755
|
-
export type AGUIUserHistoryMessage =
|
|
756
|
-
export type AGUIAssistantHistoryMessage =
|
|
757
|
-
export type AGUIToolHistoryMessage =
|
|
809
|
+
export type AGUIState = z.infer<typeof StateSchema>;
|
|
810
|
+
export type AGUIRole = z.infer<typeof RoleSchema>;
|
|
811
|
+
export type AGUIHistoryMessage = AGUIMessage;
|
|
812
|
+
export type AGUIUserHistoryMessage = AGUIUserMessage;
|
|
813
|
+
export type AGUIAssistantHistoryMessage = AGUIAssistantMessage;
|
|
814
|
+
export type AGUIToolHistoryMessage = AGUIToolMessage;
|
|
758
815
|
export declare class AGUIError extends Error {
|
|
759
816
|
constructor(message: string);
|
|
760
817
|
}
|
|
818
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* tdesign v1.0.
|
|
3
|
-
* (c)
|
|
2
|
+
* tdesign v1.0.2-alpha.9
|
|
3
|
+
* (c) 2026 tdesign
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -54,9 +54,15 @@ var ToolMessageSchema = z.object({
|
|
|
54
54
|
role: z.literal("tool"),
|
|
55
55
|
toolCallId: z.string()
|
|
56
56
|
});
|
|
57
|
-
var
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
var ActivityMessageSchema = z.object({
|
|
58
|
+
id: z.string(),
|
|
59
|
+
role: z.literal("activity"),
|
|
60
|
+
activityType: z.string(),
|
|
61
|
+
content: z.record(z.any())
|
|
62
|
+
});
|
|
63
|
+
var AGUIMessageSchema = z.discriminatedUnion("role", [DeveloperMessageSchema, SystemMessageSchema, AssistantMessageSchema, UserMessageSchema, ToolMessageSchema, ActivityMessageSchema]);
|
|
64
|
+
var HistoryMessageSchema = z.discriminatedUnion("role", [UserMessageSchema, AssistantMessageSchema, ToolMessageSchema, ActivityMessageSchema]);
|
|
65
|
+
var RoleSchema = z.union([z.literal("developer"), z.literal("system"), z.literal("assistant"), z.literal("user"), z.literal("tool"), z.literal("activity")]);
|
|
60
66
|
var ContextSchema = z.object({
|
|
61
67
|
description: z.string(),
|
|
62
68
|
value: z.string()
|
|
@@ -70,7 +76,7 @@ var RunAgentInputSchema = z.object({
|
|
|
70
76
|
threadId: z.string(),
|
|
71
77
|
runId: z.string(),
|
|
72
78
|
state: z.any(),
|
|
73
|
-
messages: z.array(
|
|
79
|
+
messages: z.array(AGUIMessageSchema),
|
|
74
80
|
tools: z.array(ToolSchema),
|
|
75
81
|
context: z.array(ContextSchema),
|
|
76
82
|
forwardedProps: z.any()
|
|
@@ -85,5 +91,5 @@ var AGUIError = /*#__PURE__*/function (_Error) {
|
|
|
85
91
|
return _createClass(AGUIError);
|
|
86
92
|
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
87
93
|
|
|
88
|
-
export { AGUIError,
|
|
94
|
+
export { AGUIError, AGUIMessageSchema, ContextSchema, FunctionCallSchema, HistoryMessageSchema, RoleSchema, RunAgentInputSchema, StateSchema, ToolCallSchema, ToolSchema };
|
|
89
95
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sources":["../../../../../../pro-components/chat/chat-engine/core/adapters/agui/types.ts"],"sourcesContent":["// 这里的类型定义在官方Message Schema基础上扩展而来\n// https://github.com/ag-ui-protocol/ag-ui/blob/main/sdks/typescript/packages/core/src/types.ts\n\nimport { z } from 'zod';\n\nexport const FunctionCallSchema = z.object({\n name: z.string(),\n arguments: z.string(),\n});\n\nexport const ToolCallSchema = z.object({\n id: z.string(),\n type: z.literal('function'),\n function: FunctionCallSchema,\n});\n\
|
|
1
|
+
{"version":3,"file":"types.js","sources":["../../../../../../pro-components/chat/chat-engine/core/adapters/agui/types.ts"],"sourcesContent":["// 这里的类型定义在官方Message Schema基础上扩展而来\n// https://github.com/ag-ui-protocol/ag-ui/blob/main/sdks/typescript/packages/core/src/types.ts\n\nimport { z } from 'zod';\n\nexport const FunctionCallSchema = z.object({\n name: z.string(),\n arguments: z.string(),\n});\n\nexport const ToolCallSchema = z.object({\n id: z.string(),\n type: z.literal('function'),\n function: FunctionCallSchema,\n});\n\nconst BaseMessageSchema = z.object({\n id: z.string(),\n role: z.string(),\n content: z.string().optional(),\n name: z.string().optional(),\n timestamp: z.number().optional(), // 添加时间戳字段,用于历史消息\n});\n\nconst DeveloperMessageSchema = BaseMessageSchema.extend({\n role: z.literal('developer'),\n content: z.string(),\n});\n\nconst SystemMessageSchema = BaseMessageSchema.extend({\n role: z.literal('system'),\n content: z.string(),\n});\n\nconst AssistantMessageSchema = BaseMessageSchema.extend({\n role: z.literal('assistant'),\n content: z.string().optional(),\n reasoningContent: z.string().optional(),\n toolCalls: z.array(ToolCallSchema).optional(),\n});\n\nconst UserMessageSchema = BaseMessageSchema.extend({\n role: z.literal('user'),\n content: z.string(),\n});\n\nconst ToolMessageSchema = z.object({\n id: z.string(),\n content: z.string(),\n role: z.literal('tool'),\n toolCallId: z.string(),\n});\n\nconst ActivityMessageSchema = z.object({\n id: z.string(),\n role: z.literal(\"activity\"),\n activityType: z.string(),\n content: z.record(z.any()),\n});\n\nexport const AGUIMessageSchema = z.discriminatedUnion('role', [\n DeveloperMessageSchema,\n SystemMessageSchema,\n AssistantMessageSchema,\n UserMessageSchema,\n ToolMessageSchema,\n ActivityMessageSchema,\n]);\n\n/**\n * 历史消息相关的类型定义\n *\n */\nexport const HistoryMessageSchema = z.discriminatedUnion('role', [\n UserMessageSchema,\n AssistantMessageSchema,\n ToolMessageSchema,\n ActivityMessageSchema,\n]);\n\nexport const RoleSchema = z.union([\n z.literal('developer'),\n z.literal('system'),\n z.literal('assistant'),\n z.literal('user'),\n z.literal('tool'),\n z.literal(\"activity\"),\n]);\n\nexport const ContextSchema = z.object({\n description: z.string(),\n value: z.string(),\n});\n\nexport const ToolSchema = z.object({\n name: z.string(),\n description: z.string(),\n parameters: z.any(), // JSON Schema for the tool parameters\n});\n\nexport const RunAgentInputSchema = z.object({\n threadId: z.string(),\n runId: z.string(),\n state: z.any(),\n messages: z.array(AGUIMessageSchema),\n tools: z.array(ToolSchema),\n context: z.array(ContextSchema),\n forwardedProps: z.any(),\n});\n\nexport const StateSchema = z.any();\n\nexport type AGUIToolCall = z.infer<typeof ToolCallSchema>;\nexport type AGUIFunctionCall = z.infer<typeof FunctionCallSchema>;\nexport type AGUIDeveloperMessage = z.infer<typeof DeveloperMessageSchema>;\nexport type AGUISystemMessage = z.infer<typeof SystemMessageSchema>;\nexport type AGUIAssistantMessage = z.infer<typeof AssistantMessageSchema>;\nexport type AGUIUserMessage = z.infer<typeof UserMessageSchema>;\nexport type AGUIToolMessage = z.infer<typeof ToolMessageSchema>;\nexport type AGUIActivityMessage = z.infer<typeof ActivityMessageSchema>;\nexport type AGUIMessage = z.infer<typeof AGUIMessageSchema>;\nexport type AGUIContext = z.infer<typeof ContextSchema>;\nexport type AGUITool = z.infer<typeof ToolSchema>;\nexport type RunAgentInput = z.infer<typeof RunAgentInputSchema>;\nexport type AGUIState = z.infer<typeof StateSchema>;\nexport type AGUIRole = z.infer<typeof RoleSchema>;\n\n// 历史消息类型别名,复用已有的类型\nexport type AGUIHistoryMessage = AGUIMessage;\nexport type AGUIUserHistoryMessage = AGUIUserMessage;\nexport type AGUIAssistantHistoryMessage = AGUIAssistantMessage;\nexport type AGUIToolHistoryMessage = AGUIToolMessage;\n\nexport class AGUIError extends Error {\n constructor(message: string) {\n super(message);\n }\n}\n"],"names":["FunctionCallSchema","z","object","name","string","arguments","ToolCallSchema","id","type","literal","BaseMessageSchema","role","content","optional","timestamp","number","DeveloperMessageSchema","extend","SystemMessageSchema","AssistantMessageSchema","reasoningContent","toolCalls","array","UserMessageSchema","ToolMessageSchema","toolCallId","ActivityMessageSchema","activityType","record","any","AGUIMessageSchema","discriminatedUnion","HistoryMessageSchema","RoleSchema","union","ContextSchema","description","value","ToolSchema","parameters","RunAgentInputSchema","threadId","runId","state","messages","tools","context","forwardedProps","StateSchema","AGUIError","message","_classCallCheck","_callSuper","_inherits","_Error","_createClass","_wrapNativeSuper","Error"],"mappings":";;;;;;;;;;;;;;;;IAKaA,kBAAA,GAAqBC,EAAEC,MAAO,CAAA;AACzCC,EAAAA,IAAA,EAAMF,EAAEG,MAAO,EAAA;AACfC,EAAAA,SAAA,EAAWJ,EAAEG,MAAO,EAAA;AACtB,CAAC,EAAA;IAEYE,cAAA,GAAiBL,EAAEC,MAAO,CAAA;AACrCK,EAAAA,EAAA,EAAIN,EAAEG,MAAO,EAAA;AACbI,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