@tdesign-react/chat 1.0.0-beta.1 → 1.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -1
- package/es/_util/reactify.js +1 -1
- package/es/_util/useDynamicStyle.js +1 -1
- package/es/chat-actionbar/index.js +1 -1
- package/es/chat-attachments/index.js +1 -1
- package/es/chat-filecard/index.js +1 -1
- package/es/chat-loading/index.js +1 -1
- package/es/chat-markdown/index.js +1 -1
- package/es/chat-message/index.js +1 -1
- package/es/chat-sender/index.js +1 -1
- package/es/chat-thinking/index.js +1 -1
- package/es/chatbot/components/provider/agent-state.js +1 -1
- package/es/chatbot/components/toolcall/index.js +1 -1
- package/es/chatbot/components/toolcall/registry.js +1 -1
- package/es/chatbot/components/toolcall/render.js +1 -1
- package/es/chatbot/components/toolcall/types.js +1 -1
- package/es/chatbot/core/adapters/agui/event-mapper.js +1 -1
- package/es/chatbot/core/adapters/agui/events.d.ts +92 -92
- package/es/chatbot/core/adapters/agui/events.js +1 -1
- package/es/chatbot/core/adapters/agui/index.js +1 -1
- package/es/chatbot/core/adapters/agui/state-manager.js +1 -1
- package/es/chatbot/core/adapters/agui/types.d.ts +102 -102
- package/es/chatbot/core/adapters/agui/types.js +1 -1
- package/es/chatbot/core/adapters/agui/utils.js +1 -1
- package/es/chatbot/core/index.js +1 -1
- package/es/chatbot/core/processor/index.js +1 -1
- package/es/chatbot/core/server/batch-client.js +1 -1
- package/es/chatbot/core/server/connection-manager.js +1 -1
- package/es/chatbot/core/server/errors.js +1 -1
- package/es/chatbot/core/server/index.js +1 -1
- package/es/chatbot/core/server/llm-service.js +1 -1
- package/es/chatbot/core/server/sse-client.js +1 -1
- package/es/chatbot/core/server/sse-parser.js +1 -1
- package/es/chatbot/core/server/types.js +1 -1
- package/es/chatbot/core/store/message.js +1 -1
- package/es/chatbot/core/store/model.js +1 -1
- package/es/chatbot/core/store/reactiveState.js +1 -1
- package/es/chatbot/core/type.js +1 -1
- package/es/chatbot/core/utils/eventEmitter.js +1 -1
- package/es/chatbot/core/utils/index.js +1 -1
- package/es/chatbot/core/utils/logger.js +1 -1
- package/es/chatbot/hooks/useAgentState.js +1 -1
- package/es/chatbot/hooks/useAgentToolcall.js +1 -1
- package/es/chatbot/hooks/useChat.js +1 -1
- package/es/chatbot/index.d.ts +1 -2
- package/es/chatbot/index.js +2 -2
- package/es/chatbot/index.js.map +1 -1
- package/es/index.js +1 -2
- package/es/index.js.map +1 -1
- package/es/style/index.js +1 -1
- package/package.json +2 -2
- package/es/_util/_reactify.d.ts +0 -7
- package/es/_util/_reactify.js +0 -381
- package/es/_util/_reactify.js.map +0 -1
- package/es/_util/reactifyLazy.d.ts +0 -16
- package/es/_util/reactifyLazy.js +0 -74
- package/es/_util/reactifyLazy.js.map +0 -1
- package/es/_util/reactify_v2.d.ts +0 -7
- package/es/_util/reactify_v2.js +0 -391
- package/es/_util/reactify_v2.js.map +0 -1
- package/es/chatbot/components/toolcall/toolcallRenderer.d.ts +0 -12
- package/es/chatbot/components/toolcall/toolcallRenderer.js +0 -132
- package/es/chatbot/components/toolcall/toolcallRenderer.js.map +0 -1
- package/es/chatbot/core/adapters/agui/state/StateManager.d.ts +0 -60
- package/es/chatbot/core/adapters/agui/state/StateManager.js +0 -160
- package/es/chatbot/core/adapters/agui/state/StateManager.js.map +0 -1
- package/es/chatbot/core/adapters/agui/state/types.d.ts +0 -63
- package/es/chatbot/core/adapters/agui/state/types.js +0 -7
- package/es/chatbot/core/adapters/agui/state/types.js.map +0 -1
- package/es/chatbot/core/adapters/agui/state-manager-fixed.d.ts +0 -107
- package/es/chatbot/core/adapters/agui/state-manager-fixed.js +0 -189
- package/es/chatbot/core/adapters/agui/state-manager-fixed.js.map +0 -1
- package/es/chatbot/hooks/useAgentStateAction.d.ts +0 -9
- package/es/chatbot/hooks/useAgentStateAction.js +0 -101
- package/es/chatbot/hooks/useAgentStateAction.js.map +0 -1
- package/es/chatbot/hooks/useAgentToolcallAction.d.ts +0 -6
- package/es/chatbot/hooks/useAgentToolcallAction.js +0 -29
- package/es/chatbot/hooks/useAgentToolcallAction.js.map +0 -1
- package/es/chatbot/useChat.d.ts +0 -10
- package/es/chatbot/useChat.js +0 -55
- package/es/chatbot/useChat.js.map +0 -1
|
@@ -45,15 +45,15 @@ export declare const BaseMessageSchema: z.ZodObject<{
|
|
|
45
45
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
46
46
|
}, "strip", z.ZodTypeAny, {
|
|
47
47
|
name?: string;
|
|
48
|
-
id?: string;
|
|
49
|
-
role?: string;
|
|
50
48
|
content?: string;
|
|
49
|
+
role?: string;
|
|
50
|
+
id?: string;
|
|
51
51
|
timestamp?: number;
|
|
52
52
|
}, {
|
|
53
53
|
name?: string;
|
|
54
|
-
id?: string;
|
|
55
|
-
role?: string;
|
|
56
54
|
content?: string;
|
|
55
|
+
role?: string;
|
|
56
|
+
id?: string;
|
|
57
57
|
timestamp?: number;
|
|
58
58
|
}>;
|
|
59
59
|
export declare const DeveloperMessageSchema: z.ZodObject<{
|
|
@@ -65,15 +65,15 @@ export declare const DeveloperMessageSchema: z.ZodObject<{
|
|
|
65
65
|
content: z.ZodString;
|
|
66
66
|
}, "strip", z.ZodTypeAny, {
|
|
67
67
|
name?: string;
|
|
68
|
-
id?: string;
|
|
69
|
-
role?: "developer";
|
|
70
68
|
content?: string;
|
|
69
|
+
role?: "developer";
|
|
70
|
+
id?: string;
|
|
71
71
|
timestamp?: number;
|
|
72
72
|
}, {
|
|
73
73
|
name?: string;
|
|
74
|
-
id?: string;
|
|
75
|
-
role?: "developer";
|
|
76
74
|
content?: string;
|
|
75
|
+
role?: "developer";
|
|
76
|
+
id?: string;
|
|
77
77
|
timestamp?: number;
|
|
78
78
|
}>;
|
|
79
79
|
export declare const SystemMessageSchema: z.ZodObject<{
|
|
@@ -85,15 +85,15 @@ export declare const SystemMessageSchema: z.ZodObject<{
|
|
|
85
85
|
content: z.ZodString;
|
|
86
86
|
}, "strip", z.ZodTypeAny, {
|
|
87
87
|
name?: string;
|
|
88
|
-
id?: string;
|
|
89
|
-
role?: "system";
|
|
90
88
|
content?: string;
|
|
89
|
+
role?: "system";
|
|
90
|
+
id?: string;
|
|
91
91
|
timestamp?: number;
|
|
92
92
|
}, {
|
|
93
93
|
name?: string;
|
|
94
|
-
id?: string;
|
|
95
|
-
role?: "system";
|
|
96
94
|
content?: string;
|
|
95
|
+
role?: "system";
|
|
96
|
+
id?: string;
|
|
97
97
|
timestamp?: number;
|
|
98
98
|
}>;
|
|
99
99
|
export declare const AssistantMessageSchema: z.ZodObject<{
|
|
@@ -134,9 +134,9 @@ export declare const AssistantMessageSchema: z.ZodObject<{
|
|
|
134
134
|
}>, "many">>;
|
|
135
135
|
}, "strip", z.ZodTypeAny, {
|
|
136
136
|
name?: string;
|
|
137
|
-
id?: string;
|
|
138
|
-
role?: "assistant";
|
|
139
137
|
content?: string;
|
|
138
|
+
role?: "assistant";
|
|
139
|
+
id?: string;
|
|
140
140
|
timestamp?: number;
|
|
141
141
|
reasoningContent?: string;
|
|
142
142
|
toolCalls?: {
|
|
@@ -149,9 +149,9 @@ export declare const AssistantMessageSchema: z.ZodObject<{
|
|
|
149
149
|
}[];
|
|
150
150
|
}, {
|
|
151
151
|
name?: string;
|
|
152
|
-
id?: string;
|
|
153
|
-
role?: "assistant";
|
|
154
152
|
content?: string;
|
|
153
|
+
role?: "assistant";
|
|
154
|
+
id?: string;
|
|
155
155
|
timestamp?: number;
|
|
156
156
|
reasoningContent?: string;
|
|
157
157
|
toolCalls?: {
|
|
@@ -172,15 +172,15 @@ export declare const UserMessageSchema: z.ZodObject<{
|
|
|
172
172
|
content: z.ZodString;
|
|
173
173
|
}, "strip", z.ZodTypeAny, {
|
|
174
174
|
name?: string;
|
|
175
|
-
id?: string;
|
|
176
|
-
role?: "user";
|
|
177
175
|
content?: string;
|
|
176
|
+
role?: "user";
|
|
177
|
+
id?: string;
|
|
178
178
|
timestamp?: number;
|
|
179
179
|
}, {
|
|
180
180
|
name?: string;
|
|
181
|
-
id?: string;
|
|
182
|
-
role?: "user";
|
|
183
181
|
content?: string;
|
|
182
|
+
role?: "user";
|
|
183
|
+
id?: string;
|
|
184
184
|
timestamp?: number;
|
|
185
185
|
}>;
|
|
186
186
|
export declare const ToolMessageSchema: z.ZodObject<{
|
|
@@ -189,14 +189,14 @@ export declare const ToolMessageSchema: z.ZodObject<{
|
|
|
189
189
|
role: z.ZodLiteral<"tool">;
|
|
190
190
|
toolCallId: z.ZodString;
|
|
191
191
|
}, "strip", z.ZodTypeAny, {
|
|
192
|
-
id?: string;
|
|
193
|
-
role?: "tool";
|
|
194
192
|
content?: string;
|
|
193
|
+
role?: "tool";
|
|
194
|
+
id?: string;
|
|
195
195
|
toolCallId?: string;
|
|
196
196
|
}, {
|
|
197
|
-
id?: string;
|
|
198
|
-
role?: "tool";
|
|
199
197
|
content?: string;
|
|
198
|
+
role?: "tool";
|
|
199
|
+
id?: string;
|
|
200
200
|
toolCallId?: string;
|
|
201
201
|
}>;
|
|
202
202
|
export declare const MessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
@@ -208,15 +208,15 @@ export declare const MessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject
|
|
|
208
208
|
content: z.ZodString;
|
|
209
209
|
}, "strip", z.ZodTypeAny, {
|
|
210
210
|
name?: string;
|
|
211
|
-
id?: string;
|
|
212
|
-
role?: "developer";
|
|
213
211
|
content?: string;
|
|
212
|
+
role?: "developer";
|
|
213
|
+
id?: string;
|
|
214
214
|
timestamp?: number;
|
|
215
215
|
}, {
|
|
216
216
|
name?: string;
|
|
217
|
-
id?: string;
|
|
218
|
-
role?: "developer";
|
|
219
217
|
content?: string;
|
|
218
|
+
role?: "developer";
|
|
219
|
+
id?: string;
|
|
220
220
|
timestamp?: number;
|
|
221
221
|
}>, z.ZodObject<{
|
|
222
222
|
id: z.ZodString;
|
|
@@ -227,15 +227,15 @@ export declare const MessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject
|
|
|
227
227
|
content: z.ZodString;
|
|
228
228
|
}, "strip", z.ZodTypeAny, {
|
|
229
229
|
name?: string;
|
|
230
|
-
id?: string;
|
|
231
|
-
role?: "system";
|
|
232
230
|
content?: string;
|
|
231
|
+
role?: "system";
|
|
232
|
+
id?: string;
|
|
233
233
|
timestamp?: number;
|
|
234
234
|
}, {
|
|
235
235
|
name?: string;
|
|
236
|
-
id?: string;
|
|
237
|
-
role?: "system";
|
|
238
236
|
content?: string;
|
|
237
|
+
role?: "system";
|
|
238
|
+
id?: string;
|
|
239
239
|
timestamp?: number;
|
|
240
240
|
}>, z.ZodObject<{
|
|
241
241
|
id: z.ZodString;
|
|
@@ -275,9 +275,9 @@ export declare const MessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject
|
|
|
275
275
|
}>, "many">>;
|
|
276
276
|
}, "strip", z.ZodTypeAny, {
|
|
277
277
|
name?: string;
|
|
278
|
-
id?: string;
|
|
279
|
-
role?: "assistant";
|
|
280
278
|
content?: string;
|
|
279
|
+
role?: "assistant";
|
|
280
|
+
id?: string;
|
|
281
281
|
timestamp?: number;
|
|
282
282
|
reasoningContent?: string;
|
|
283
283
|
toolCalls?: {
|
|
@@ -290,9 +290,9 @@ export declare const MessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject
|
|
|
290
290
|
}[];
|
|
291
291
|
}, {
|
|
292
292
|
name?: string;
|
|
293
|
-
id?: string;
|
|
294
|
-
role?: "assistant";
|
|
295
293
|
content?: string;
|
|
294
|
+
role?: "assistant";
|
|
295
|
+
id?: string;
|
|
296
296
|
timestamp?: number;
|
|
297
297
|
reasoningContent?: string;
|
|
298
298
|
toolCalls?: {
|
|
@@ -312,15 +312,15 @@ export declare const MessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject
|
|
|
312
312
|
content: z.ZodString;
|
|
313
313
|
}, "strip", z.ZodTypeAny, {
|
|
314
314
|
name?: string;
|
|
315
|
-
id?: string;
|
|
316
|
-
role?: "user";
|
|
317
315
|
content?: string;
|
|
316
|
+
role?: "user";
|
|
317
|
+
id?: string;
|
|
318
318
|
timestamp?: number;
|
|
319
319
|
}, {
|
|
320
320
|
name?: string;
|
|
321
|
-
id?: string;
|
|
322
|
-
role?: "user";
|
|
323
321
|
content?: string;
|
|
322
|
+
role?: "user";
|
|
323
|
+
id?: string;
|
|
324
324
|
timestamp?: number;
|
|
325
325
|
}>, z.ZodObject<{
|
|
326
326
|
id: z.ZodString;
|
|
@@ -328,14 +328,14 @@ export declare const MessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject
|
|
|
328
328
|
role: z.ZodLiteral<"tool">;
|
|
329
329
|
toolCallId: z.ZodString;
|
|
330
330
|
}, "strip", z.ZodTypeAny, {
|
|
331
|
-
id?: string;
|
|
332
|
-
role?: "tool";
|
|
333
331
|
content?: string;
|
|
332
|
+
role?: "tool";
|
|
333
|
+
id?: string;
|
|
334
334
|
toolCallId?: string;
|
|
335
335
|
}, {
|
|
336
|
-
id?: string;
|
|
337
|
-
role?: "tool";
|
|
338
336
|
content?: string;
|
|
337
|
+
role?: "tool";
|
|
338
|
+
id?: string;
|
|
339
339
|
toolCallId?: string;
|
|
340
340
|
}>]>;
|
|
341
341
|
export declare const HistoryMessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
|
@@ -347,15 +347,15 @@ export declare const HistoryMessageSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
|
|
|
347
347
|
content: z.ZodString;
|
|
348
348
|
}, "strip", z.ZodTypeAny, {
|
|
349
349
|
name?: string;
|
|
350
|
-
id?: string;
|
|
351
|
-
role?: "user";
|
|
352
350
|
content?: string;
|
|
351
|
+
role?: "user";
|
|
352
|
+
id?: string;
|
|
353
353
|
timestamp?: number;
|
|
354
354
|
}, {
|
|
355
355
|
name?: string;
|
|
356
|
-
id?: string;
|
|
357
|
-
role?: "user";
|
|
358
356
|
content?: string;
|
|
357
|
+
role?: "user";
|
|
358
|
+
id?: string;
|
|
359
359
|
timestamp?: number;
|
|
360
360
|
}>, z.ZodObject<{
|
|
361
361
|
id: z.ZodString;
|
|
@@ -395,9 +395,9 @@ export declare const HistoryMessageSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
|
|
|
395
395
|
}>, "many">>;
|
|
396
396
|
}, "strip", z.ZodTypeAny, {
|
|
397
397
|
name?: string;
|
|
398
|
-
id?: string;
|
|
399
|
-
role?: "assistant";
|
|
400
398
|
content?: string;
|
|
399
|
+
role?: "assistant";
|
|
400
|
+
id?: string;
|
|
401
401
|
timestamp?: number;
|
|
402
402
|
reasoningContent?: string;
|
|
403
403
|
toolCalls?: {
|
|
@@ -410,9 +410,9 @@ export declare const HistoryMessageSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
|
|
|
410
410
|
}[];
|
|
411
411
|
}, {
|
|
412
412
|
name?: string;
|
|
413
|
-
id?: string;
|
|
414
|
-
role?: "assistant";
|
|
415
413
|
content?: string;
|
|
414
|
+
role?: "assistant";
|
|
415
|
+
id?: string;
|
|
416
416
|
timestamp?: number;
|
|
417
417
|
reasoningContent?: string;
|
|
418
418
|
toolCalls?: {
|
|
@@ -429,14 +429,14 @@ export declare const HistoryMessageSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
|
|
|
429
429
|
role: z.ZodLiteral<"tool">;
|
|
430
430
|
toolCallId: z.ZodString;
|
|
431
431
|
}, "strip", z.ZodTypeAny, {
|
|
432
|
-
id?: string;
|
|
433
|
-
role?: "tool";
|
|
434
432
|
content?: string;
|
|
433
|
+
role?: "tool";
|
|
434
|
+
id?: string;
|
|
435
435
|
toolCallId?: string;
|
|
436
436
|
}, {
|
|
437
|
-
id?: string;
|
|
438
|
-
role?: "tool";
|
|
439
437
|
content?: string;
|
|
438
|
+
role?: "tool";
|
|
439
|
+
id?: string;
|
|
440
440
|
toolCallId?: string;
|
|
441
441
|
}>]>;
|
|
442
442
|
export declare const RoleSchema: z.ZodUnion<[z.ZodLiteral<"developer">, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">, z.ZodLiteral<"tool">]>;
|
|
@@ -476,15 +476,15 @@ export declare const RunAgentInputSchema: z.ZodObject<{
|
|
|
476
476
|
content: z.ZodString;
|
|
477
477
|
}, "strip", z.ZodTypeAny, {
|
|
478
478
|
name?: string;
|
|
479
|
-
id?: string;
|
|
480
|
-
role?: "developer";
|
|
481
479
|
content?: string;
|
|
480
|
+
role?: "developer";
|
|
481
|
+
id?: string;
|
|
482
482
|
timestamp?: number;
|
|
483
483
|
}, {
|
|
484
484
|
name?: string;
|
|
485
|
-
id?: string;
|
|
486
|
-
role?: "developer";
|
|
487
485
|
content?: string;
|
|
486
|
+
role?: "developer";
|
|
487
|
+
id?: string;
|
|
488
488
|
timestamp?: number;
|
|
489
489
|
}>, z.ZodObject<{
|
|
490
490
|
id: z.ZodString;
|
|
@@ -495,15 +495,15 @@ export declare const RunAgentInputSchema: z.ZodObject<{
|
|
|
495
495
|
content: z.ZodString;
|
|
496
496
|
}, "strip", z.ZodTypeAny, {
|
|
497
497
|
name?: string;
|
|
498
|
-
id?: string;
|
|
499
|
-
role?: "system";
|
|
500
498
|
content?: string;
|
|
499
|
+
role?: "system";
|
|
500
|
+
id?: string;
|
|
501
501
|
timestamp?: number;
|
|
502
502
|
}, {
|
|
503
503
|
name?: string;
|
|
504
|
-
id?: string;
|
|
505
|
-
role?: "system";
|
|
506
504
|
content?: string;
|
|
505
|
+
role?: "system";
|
|
506
|
+
id?: string;
|
|
507
507
|
timestamp?: number;
|
|
508
508
|
}>, z.ZodObject<{
|
|
509
509
|
id: z.ZodString;
|
|
@@ -543,9 +543,9 @@ export declare const RunAgentInputSchema: z.ZodObject<{
|
|
|
543
543
|
}>, "many">>;
|
|
544
544
|
}, "strip", z.ZodTypeAny, {
|
|
545
545
|
name?: string;
|
|
546
|
-
id?: string;
|
|
547
|
-
role?: "assistant";
|
|
548
546
|
content?: string;
|
|
547
|
+
role?: "assistant";
|
|
548
|
+
id?: string;
|
|
549
549
|
timestamp?: number;
|
|
550
550
|
reasoningContent?: string;
|
|
551
551
|
toolCalls?: {
|
|
@@ -558,9 +558,9 @@ export declare const RunAgentInputSchema: z.ZodObject<{
|
|
|
558
558
|
}[];
|
|
559
559
|
}, {
|
|
560
560
|
name?: string;
|
|
561
|
-
id?: string;
|
|
562
|
-
role?: "assistant";
|
|
563
561
|
content?: string;
|
|
562
|
+
role?: "assistant";
|
|
563
|
+
id?: string;
|
|
564
564
|
timestamp?: number;
|
|
565
565
|
reasoningContent?: string;
|
|
566
566
|
toolCalls?: {
|
|
@@ -580,15 +580,15 @@ export declare const RunAgentInputSchema: z.ZodObject<{
|
|
|
580
580
|
content: z.ZodString;
|
|
581
581
|
}, "strip", z.ZodTypeAny, {
|
|
582
582
|
name?: string;
|
|
583
|
-
id?: string;
|
|
584
|
-
role?: "user";
|
|
585
583
|
content?: string;
|
|
584
|
+
role?: "user";
|
|
585
|
+
id?: string;
|
|
586
586
|
timestamp?: number;
|
|
587
587
|
}, {
|
|
588
588
|
name?: string;
|
|
589
|
-
id?: string;
|
|
590
|
-
role?: "user";
|
|
591
589
|
content?: string;
|
|
590
|
+
role?: "user";
|
|
591
|
+
id?: string;
|
|
592
592
|
timestamp?: number;
|
|
593
593
|
}>, z.ZodObject<{
|
|
594
594
|
id: z.ZodString;
|
|
@@ -596,14 +596,14 @@ export declare const RunAgentInputSchema: z.ZodObject<{
|
|
|
596
596
|
role: z.ZodLiteral<"tool">;
|
|
597
597
|
toolCallId: z.ZodString;
|
|
598
598
|
}, "strip", z.ZodTypeAny, {
|
|
599
|
-
id?: string;
|
|
600
|
-
role?: "tool";
|
|
601
599
|
content?: string;
|
|
600
|
+
role?: "tool";
|
|
601
|
+
id?: string;
|
|
602
602
|
toolCallId?: string;
|
|
603
603
|
}, {
|
|
604
|
-
id?: string;
|
|
605
|
-
role?: "tool";
|
|
606
604
|
content?: string;
|
|
605
|
+
role?: "tool";
|
|
606
|
+
id?: string;
|
|
607
607
|
toolCallId?: string;
|
|
608
608
|
}>]>, "many">;
|
|
609
609
|
tools: z.ZodArray<z.ZodObject<{
|
|
@@ -631,26 +631,23 @@ export declare const RunAgentInputSchema: z.ZodObject<{
|
|
|
631
631
|
}>, "many">;
|
|
632
632
|
forwardedProps: z.ZodAny;
|
|
633
633
|
}, "strip", z.ZodTypeAny, {
|
|
634
|
-
threadId?: string;
|
|
635
|
-
runId?: string;
|
|
636
|
-
state?: any;
|
|
637
634
|
messages?: ({
|
|
638
635
|
name?: string;
|
|
639
|
-
id?: string;
|
|
640
|
-
role?: "developer";
|
|
641
636
|
content?: string;
|
|
637
|
+
role?: "developer";
|
|
638
|
+
id?: string;
|
|
642
639
|
timestamp?: number;
|
|
643
640
|
} | {
|
|
644
641
|
name?: string;
|
|
645
|
-
id?: string;
|
|
646
|
-
role?: "system";
|
|
647
642
|
content?: string;
|
|
643
|
+
role?: "system";
|
|
644
|
+
id?: string;
|
|
648
645
|
timestamp?: number;
|
|
649
646
|
} | {
|
|
650
647
|
name?: string;
|
|
651
|
-
id?: string;
|
|
652
|
-
role?: "assistant";
|
|
653
648
|
content?: string;
|
|
649
|
+
role?: "assistant";
|
|
650
|
+
id?: string;
|
|
654
651
|
timestamp?: number;
|
|
655
652
|
reasoningContent?: string;
|
|
656
653
|
toolCalls?: {
|
|
@@ -663,16 +660,19 @@ export declare const RunAgentInputSchema: z.ZodObject<{
|
|
|
663
660
|
}[];
|
|
664
661
|
} | {
|
|
665
662
|
name?: string;
|
|
666
|
-
id?: string;
|
|
667
|
-
role?: "user";
|
|
668
663
|
content?: string;
|
|
664
|
+
role?: "user";
|
|
665
|
+
id?: string;
|
|
669
666
|
timestamp?: number;
|
|
670
667
|
} | {
|
|
671
|
-
id?: string;
|
|
672
|
-
role?: "tool";
|
|
673
668
|
content?: string;
|
|
669
|
+
role?: "tool";
|
|
670
|
+
id?: string;
|
|
674
671
|
toolCallId?: string;
|
|
675
672
|
})[];
|
|
673
|
+
threadId?: string;
|
|
674
|
+
runId?: string;
|
|
675
|
+
state?: any;
|
|
676
676
|
tools?: {
|
|
677
677
|
name?: string;
|
|
678
678
|
description?: string;
|
|
@@ -684,26 +684,23 @@ export declare const RunAgentInputSchema: z.ZodObject<{
|
|
|
684
684
|
}[];
|
|
685
685
|
forwardedProps?: any;
|
|
686
686
|
}, {
|
|
687
|
-
threadId?: string;
|
|
688
|
-
runId?: string;
|
|
689
|
-
state?: any;
|
|
690
687
|
messages?: ({
|
|
691
688
|
name?: string;
|
|
692
|
-
id?: string;
|
|
693
|
-
role?: "developer";
|
|
694
689
|
content?: string;
|
|
690
|
+
role?: "developer";
|
|
691
|
+
id?: string;
|
|
695
692
|
timestamp?: number;
|
|
696
693
|
} | {
|
|
697
694
|
name?: string;
|
|
698
|
-
id?: string;
|
|
699
|
-
role?: "system";
|
|
700
695
|
content?: string;
|
|
696
|
+
role?: "system";
|
|
697
|
+
id?: string;
|
|
701
698
|
timestamp?: number;
|
|
702
699
|
} | {
|
|
703
700
|
name?: string;
|
|
704
|
-
id?: string;
|
|
705
|
-
role?: "assistant";
|
|
706
701
|
content?: string;
|
|
702
|
+
role?: "assistant";
|
|
703
|
+
id?: string;
|
|
707
704
|
timestamp?: number;
|
|
708
705
|
reasoningContent?: string;
|
|
709
706
|
toolCalls?: {
|
|
@@ -716,16 +713,19 @@ export declare const RunAgentInputSchema: z.ZodObject<{
|
|
|
716
713
|
}[];
|
|
717
714
|
} | {
|
|
718
715
|
name?: string;
|
|
719
|
-
id?: string;
|
|
720
|
-
role?: "user";
|
|
721
716
|
content?: string;
|
|
717
|
+
role?: "user";
|
|
718
|
+
id?: string;
|
|
722
719
|
timestamp?: number;
|
|
723
720
|
} | {
|
|
724
|
-
id?: string;
|
|
725
|
-
role?: "tool";
|
|
726
721
|
content?: string;
|
|
722
|
+
role?: "tool";
|
|
723
|
+
id?: string;
|
|
727
724
|
toolCallId?: string;
|
|
728
725
|
})[];
|
|
726
|
+
threadId?: string;
|
|
727
|
+
runId?: string;
|
|
728
|
+
state?: any;
|
|
729
729
|
tools?: {
|
|
730
730
|
name?: string;
|
|
731
731
|
description?: string;
|
package/es/chatbot/core/index.js
CHANGED
package/es/chatbot/core/type.js
CHANGED
package/es/chatbot/index.d.ts
CHANGED
|
@@ -3,12 +3,11 @@ import 'tdesign-web-components/lib/chat-message/content/reasoning-content';
|
|
|
3
3
|
import 'tdesign-web-components/lib/chat-message/content/search-content';
|
|
4
4
|
import 'tdesign-web-components/lib/chat-message/content/suggestion-content';
|
|
5
5
|
import type { TdChatbotApi, TdChatListApi, TdChatListProps, TdChatProps, TdChatSearchContentProps, TdChatSuggestionContentProps } from 'tdesign-web-components';
|
|
6
|
-
import ChatEngine from 'tdesign-web-components/lib/chat-engine';
|
|
7
6
|
declare const ChatBot: React.ForwardRefExoticComponent<Omit<TdChatProps & Partial<TdChatbotApi>, 'ref'> & React.RefAttributes<HTMLElement | undefined>>;
|
|
8
7
|
declare const ChatSearchContent: React.ForwardRefExoticComponent<Omit<TdChatSearchContentProps, 'ref'> & React.RefAttributes<HTMLElement | undefined>>;
|
|
9
8
|
declare const ChatSuggestionContent: React.ForwardRefExoticComponent<Omit<TdChatSuggestionContentProps, 'ref'> & React.RefAttributes<HTMLElement | undefined>>;
|
|
10
9
|
declare const ChatList: React.ForwardRefExoticComponent<Omit<TdChatListProps & Partial<TdChatListApi>, 'ref'> & React.RefAttributes<HTMLElement | undefined>>;
|
|
11
|
-
export { ChatBot, ChatSearchContent, ChatSuggestionContent, ChatList
|
|
10
|
+
export { ChatBot, ChatSearchContent, ChatSuggestionContent, ChatList };
|
|
12
11
|
export type * from 'tdesign-web-components/lib/chatbot/type';
|
|
13
12
|
export * from './hooks/useChat';
|
|
14
13
|
export * from './hooks/useAgentToolcall';
|