@@ -64,6 +64,212 @@ Array [
64
64
]
65
65
` ;
66
66
67
+ exports [` renders components/use-x-agent/demo/model.tsx correctly 1` ] = `
68
+ <div
69
+ class = " ant-splitter ant-splitter-horizontal"
70
+ >
71
+ <div
72
+ class = " ant-splitter-panel"
73
+ style = " height:300px;flex-basis:auto;flex-grow:1"
74
+ >
75
+ <div
76
+ class = " ant-splitter ant-splitter-vertical"
77
+ >
78
+ <div
79
+ class = " ant-splitter-panel"
80
+ style = " margin:0 16px;flex-basis:auto;flex-grow:1"
81
+ >
82
+ <div
83
+ class = " ant-flex ant-flex-align-stretch ant-flex-gap-large ant-flex-vertical"
84
+ >
85
+ <input
86
+ class = " ant-input ant-input-outlined"
87
+ type = " text"
88
+ value = " hello, who are u?"
89
+ />
90
+ <div
91
+ class = " ant-flex ant-flex-gap-small"
92
+ >
93
+ <button
94
+ class = " ant-btn ant-btn-primary ant-btn-color-primary ant-btn-variant-solid"
95
+ type = " button"
96
+ >
97
+ <span >
98
+ Agent Request
99
+ </span >
100
+ </button >
101
+ <button
102
+ class = " ant-btn ant-btn-primary ant-btn-color-primary ant-btn-variant-solid"
103
+ disabled = " "
104
+ type = " button"
105
+ >
106
+ <span >
107
+ Agent Abort
108
+ </span >
109
+ </button >
110
+ </div >
111
+ </div >
112
+ </div >
113
+ <div
114
+ aria-valuemax = " 0"
115
+ aria-valuemin = " 0"
116
+ aria-valuenow = " 50"
117
+ class = " ant-splitter-bar"
118
+ role = " separator"
119
+ >
120
+ <div
121
+ class = " ant-splitter-bar-dragger"
122
+ />
123
+ </div >
124
+ <div
125
+ class = " ant-splitter-panel"
126
+ style = " margin:16px;flex-basis:auto;flex-grow:1"
127
+ >
128
+ <div
129
+ class = " ant-typography"
130
+ />
131
+ </div >
132
+ </div >
133
+ </div >
134
+ <div
135
+ aria-valuemax = " 0"
136
+ aria-valuemin = " 0"
137
+ aria-valuenow = " 50"
138
+ class = " ant-splitter-bar"
139
+ role = " separator"
140
+ >
141
+ <div
142
+ class = " ant-splitter-bar-dragger"
143
+ />
144
+ </div >
145
+ <div
146
+ class = " ant-splitter-panel"
147
+ style = " flex-basis:auto;flex-grow:1"
148
+ >
149
+ <div
150
+ class = " ant-thought-chain ant-thought-chain-middle"
151
+ style = " margin-left:16px"
152
+ >
153
+ <div
154
+ class = " ant-thought-chain-item"
155
+ >
156
+ <div
157
+ class = " ant-thought-chain-item-header"
158
+ >
159
+ <span
160
+ class = " ant-avatar ant-avatar-circle ant-avatar-icon ant-thought-chain-item-icon"
161
+ >
162
+ <span
163
+ aria-label = " tags"
164
+ class = " anticon anticon-tags"
165
+ role = " img"
166
+ >
167
+ <svg
168
+ aria-hidden = " true"
169
+ data-icon = " tags"
170
+ fill = " currentColor"
171
+ focusable = " false"
172
+ height = " 1em"
173
+ viewBox = " 64 64 896 896"
174
+ width = " 1em"
175
+ >
176
+ <path
177
+ d = " M483.2 790.3L861.4 412c1.7-1.7 2.5-4 2.3-6.3l-25.5-301.4c-.7-7.8-6.8-13.9-14.6-14.6L522.2 64.3c-2.3-.2-4.7.6-6.3 2.3L137.7 444.8a8.03 8.03 0 000 11.3l334.2 334.2c3.1 3.2 8.2 3.2 11.3 0zm62.6-651.7l224.6 19 19 224.6L477.5 694 233.9 450.5l311.9-311.9zm60.16 186.23a48 48 0 1067.88-67.89 48 48 0 10-67.88 67.89zM889.7 539.8l-39.6-39.5a8.03 8.03 0 00-11.3 0l-362 361.3-237.6-237a8.03 8.03 0 00-11.3 0l-39.6 39.5a8.03 8.03 0 000 11.3l243.2 242.8 39.6 39.5c3.1 3.1 8.2 3.1 11.3 0l407.3-406.6c3.1-3.1 3.1-8.2 0-11.3z"
178
+ />
179
+ </svg >
180
+ </span >
181
+ </span >
182
+ <div
183
+ class = " ant-thought-chain-item-header-box"
184
+ >
185
+ <span
186
+ aria-describedby = " test-id"
187
+ class = " ant-typography ant-typography-ellipsis ant-typography-ellipsis-single-line ant-thought-chain-item-title"
188
+ >
189
+ <strong >
190
+ Agent Request Log
191
+ </strong >
192
+ </span >
193
+ <span
194
+ aria-describedby = " test-id"
195
+ class = " ant-typography ant-typography-secondary ant-typography-ellipsis ant-typography-ellipsis-single-line ant-thought-chain-item-desc"
196
+ >
197
+ request
198
+ </span >
199
+ </div >
200
+ </div >
201
+ <div
202
+ class = " ant-thought-chain-item-content"
203
+ >
204
+ <div
205
+ class = " ant-thought-chain-item-content-box"
206
+ >
207
+ <div
208
+ class = " ant-descriptions"
209
+ >
210
+ <div
211
+ class = " ant-descriptions-view"
212
+ >
213
+ <table >
214
+ <tbody >
215
+ <tr
216
+ class = " ant-descriptions-row"
217
+ >
218
+ <td
219
+ class = " ant-descriptions-item"
220
+ colspan = " 1"
221
+ >
222
+ <div
223
+ class = " ant-descriptions-item-container"
224
+ >
225
+ <span
226
+ class = " ant-descriptions-item-label"
227
+ >
228
+ Status
229
+ </span >
230
+ <span
231
+ class = " ant-descriptions-item-content"
232
+ >
233
+ -
234
+ </span >
235
+ </div >
236
+ </td >
237
+ </tr >
238
+ <tr
239
+ class = " ant-descriptions-row"
240
+ >
241
+ <td
242
+ class = " ant-descriptions-item"
243
+ colspan = " 1"
244
+ >
245
+ <div
246
+ class = " ant-descriptions-item-container"
247
+ >
248
+ <span
249
+ class = " ant-descriptions-item-label"
250
+ >
251
+ Update Times
252
+ </span >
253
+ <span
254
+ class = " ant-descriptions-item-content"
255
+ >
256
+ 0
257
+ </span >
258
+ </div >
259
+ </td >
260
+ </tr >
261
+ </tbody >
262
+ </table >
263
+ </div >
264
+ </div >
265
+ </div >
266
+ </div >
267
+ </div >
268
+ </div >
269
+ </div >
270
+ </div >
271
+ ` ;
272
+
67
273
exports [` renders components/use-x-agent/demo/preset.tsx correctly 1` ] = `
68
274
<div
69
275
class = " ant-splitter ant-splitter-horizontal"
@@ -213,3 +419,153 @@ exports[`renders components/use-x-agent/demo/preset.tsx correctly 1`] = `
213
419
</div >
214
420
</div >
215
421
` ;
422
+
423
+ exports [` renders components/use-x-agent/demo/requestParams.tsx correctly 1` ] = `
424
+ <div
425
+ class = " ant-splitter ant-splitter-horizontal"
426
+ >
427
+ <div
428
+ class = " ant-splitter-panel"
429
+ style = " flex-basis:auto;flex-grow:1"
430
+ >
431
+ <button
432
+ class = " ant-btn ant-btn-primary ant-btn-color-primary ant-btn-variant-solid"
433
+ type = " button"
434
+ >
435
+ <span >
436
+ Agent Request
437
+ </span >
438
+ </button >
439
+ </div >
440
+ <div
441
+ aria-valuemax = " 0"
442
+ aria-valuemin = " 0"
443
+ aria-valuenow = " 50"
444
+ class = " ant-splitter-bar"
445
+ role = " separator"
446
+ >
447
+ <div
448
+ class = " ant-splitter-bar-dragger"
449
+ />
450
+ </div >
451
+ <div
452
+ class = " ant-splitter-panel"
453
+ style = " flex-basis:auto;flex-grow:1"
454
+ >
455
+ <div
456
+ class = " ant-thought-chain ant-thought-chain-middle"
457
+ style = " margin-left:16px"
458
+ >
459
+ <div
460
+ class = " ant-thought-chain-item"
461
+ >
462
+ <div
463
+ class = " ant-thought-chain-item-header"
464
+ >
465
+ <span
466
+ class = " ant-avatar ant-avatar-circle ant-avatar-icon ant-thought-chain-item-icon"
467
+ >
468
+ <span
469
+ aria-label = " tags"
470
+ class = " anticon anticon-tags"
471
+ role = " img"
472
+ >
473
+ <svg
474
+ aria-hidden = " true"
475
+ data-icon = " tags"
476
+ fill = " currentColor"
477
+ focusable = " false"
478
+ height = " 1em"
479
+ viewBox = " 64 64 896 896"
480
+ width = " 1em"
481
+ >
482
+ <path
483
+ d = " M483.2 790.3L861.4 412c1.7-1.7 2.5-4 2.3-6.3l-25.5-301.4c-.7-7.8-6.8-13.9-14.6-14.6L522.2 64.3c-2.3-.2-4.7.6-6.3 2.3L137.7 444.8a8.03 8.03 0 000 11.3l334.2 334.2c3.1 3.2 8.2 3.2 11.3 0zm62.6-651.7l224.6 19 19 224.6L477.5 694 233.9 450.5l311.9-311.9zm60.16 186.23a48 48 0 1067.88-67.89 48 48 0 10-67.88 67.89zM889.7 539.8l-39.6-39.5a8.03 8.03 0 00-11.3 0l-362 361.3-237.6-237a8.03 8.03 0 00-11.3 0l-39.6 39.5a8.03 8.03 0 000 11.3l243.2 242.8 39.6 39.5c3.1 3.1 8.2 3.1 11.3 0l407.3-406.6c3.1-3.1 3.1-8.2 0-11.3z"
484
+ />
485
+ </svg >
486
+ </span >
487
+ </span >
488
+ <div
489
+ class = " ant-thought-chain-item-header-box"
490
+ >
491
+ <span
492
+ aria-describedby = " test-id"
493
+ class = " ant-typography ant-typography-ellipsis ant-typography-ellipsis-single-line ant-thought-chain-item-title"
494
+ >
495
+ <strong >
496
+ Agent Request Log
497
+ </strong >
498
+ </span >
499
+ </div >
500
+ </div >
501
+ <div
502
+ class = " ant-thought-chain-item-content"
503
+ >
504
+ <div
505
+ class = " ant-thought-chain-item-content-box"
506
+ >
507
+ <div
508
+ class = " ant-descriptions"
509
+ >
510
+ <div
511
+ class = " ant-descriptions-view"
512
+ >
513
+ <table >
514
+ <tbody >
515
+ <tr
516
+ class = " ant-descriptions-row"
517
+ >
518
+ <td
519
+ class = " ant-descriptions-item"
520
+ colspan = " 1"
521
+ >
522
+ <div
523
+ class = " ant-descriptions-item-container"
524
+ >
525
+ <span
526
+ class = " ant-descriptions-item-label"
527
+ >
528
+ Status
529
+ </span >
530
+ <span
531
+ class = " ant-descriptions-item-content"
532
+ >
533
+ -
534
+ </span >
535
+ </div >
536
+ </td >
537
+ </tr >
538
+ <tr
539
+ class = " ant-descriptions-row"
540
+ >
541
+ <td
542
+ class = " ant-descriptions-item"
543
+ colspan = " 1"
544
+ >
545
+ <div
546
+ class = " ant-descriptions-item-container"
547
+ >
548
+ <span
549
+ class = " ant-descriptions-item-label"
550
+ >
551
+ Update Times
552
+ </span >
553
+ <span
554
+ class = " ant-descriptions-item-content"
555
+ >
556
+ 0
557
+ </span >
558
+ </div >
559
+ </td >
560
+ </tr >
561
+ </tbody >
562
+ </table >
563
+ </div >
564
+ </div >
565
+ </div >
566
+ </div >
567
+ </div >
568
+ </div >
569
+ </div >
570
+ </div >
571
+ ` ;
0 commit comments