@convex-dev/agent 0.2.2 → 0.2.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/dist/client/definePlaygroundAPI.d.ts +144 -13
- package/dist/client/definePlaygroundAPI.d.ts.map +1 -1
- package/dist/client/files.d.ts +1 -1
- package/dist/client/files.d.ts.map +1 -1
- package/dist/client/files.js.map +1 -1
- package/dist/client/index.d.ts +130 -10
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +17 -7
- package/dist/client/index.js.map +1 -1
- package/dist/client/messages.d.ts +32 -5
- package/dist/client/messages.d.ts.map +1 -1
- package/dist/client/messages.js +7 -4
- package/dist/client/messages.js.map +1 -1
- package/dist/client/search.d.ts +31 -4
- package/dist/client/search.d.ts.map +1 -1
- package/dist/client/search.js +2 -4
- package/dist/client/search.js.map +1 -1
- package/dist/client/streaming.d.ts +322 -39
- package/dist/client/streaming.d.ts.map +1 -1
- package/dist/component/_generated/api.d.ts +301 -15
- package/dist/component/messages.d.ts +336 -41
- package/dist/component/messages.d.ts.map +1 -1
- package/dist/component/messages.js +4 -4
- package/dist/component/messages.js.map +1 -1
- package/dist/component/schema.d.ts +874 -133
- package/dist/component/schema.d.ts.map +1 -1
- package/dist/mapping.d.ts +4 -4
- package/dist/mapping.d.ts.map +1 -1
- package/dist/mapping.js +68 -38
- package/dist/mapping.js.map +1 -1
- package/dist/react/deltas.d.ts +3 -3
- package/dist/react/deltas.d.ts.map +1 -1
- package/dist/react/deltas.js +321 -28
- package/dist/react/deltas.js.map +1 -1
- package/dist/react/toUIMessages.d.ts.map +1 -1
- package/dist/react/toUIMessages.js +289 -180
- package/dist/react/toUIMessages.js.map +1 -1
- package/dist/react/useSmoothText.d.ts.map +1 -1
- package/dist/react/useSmoothText.js +15 -6
- package/dist/react/useSmoothText.js.map +1 -1
- package/dist/shared.d.ts +4 -0
- package/dist/shared.d.ts.map +1 -1
- package/dist/shared.js +8 -0
- package/dist/shared.js.map +1 -1
- package/dist/validators.d.ts +1887 -249
- package/dist/validators.d.ts.map +1 -1
- package/dist/validators.js +10 -3
- package/dist/validators.js.map +1 -1
- package/package.json +1 -1
- package/src/client/files.ts +4 -4
- package/src/client/index.ts +41 -15
- package/src/client/messages.ts +12 -4
- package/src/client/search.ts +2 -6
- package/src/component/_generated/api.d.ts +301 -15
- package/src/component/messages.ts +4 -3
- package/src/mapping.ts +105 -56
- package/src/react/deltas.ts +391 -46
- package/src/react/toUIMessages.test.ts +234 -4
- package/src/react/toUIMessages.ts +366 -192
- package/src/react/useSmoothText.ts +25 -13
- package/src/shared.ts +14 -0
- package/src/validators.ts +23 -15
|
@@ -158,6 +158,10 @@ export type Mounts = {
|
|
|
158
158
|
| string
|
|
159
159
|
| Array<
|
|
160
160
|
| {
|
|
161
|
+
providerMetadata?: Record<
|
|
162
|
+
string,
|
|
163
|
+
Record<string, any>
|
|
164
|
+
>;
|
|
161
165
|
providerOptions?: Record<string, Record<string, any>>;
|
|
162
166
|
text: string;
|
|
163
167
|
type: "text";
|
|
@@ -172,6 +176,10 @@ export type Mounts = {
|
|
|
172
176
|
data: string | ArrayBuffer;
|
|
173
177
|
filename?: string;
|
|
174
178
|
mimeType: string;
|
|
179
|
+
providerMetadata?: Record<
|
|
180
|
+
string,
|
|
181
|
+
Record<string, any>
|
|
182
|
+
>;
|
|
175
183
|
providerOptions?: Record<string, Record<string, any>>;
|
|
176
184
|
type: "file";
|
|
177
185
|
}
|
|
@@ -184,6 +192,10 @@ export type Mounts = {
|
|
|
184
192
|
| string
|
|
185
193
|
| Array<
|
|
186
194
|
| {
|
|
195
|
+
providerMetadata?: Record<
|
|
196
|
+
string,
|
|
197
|
+
Record<string, any>
|
|
198
|
+
>;
|
|
187
199
|
providerOptions?: Record<string, Record<string, any>>;
|
|
188
200
|
text: string;
|
|
189
201
|
type: "text";
|
|
@@ -192,29 +204,62 @@ export type Mounts = {
|
|
|
192
204
|
data: string | ArrayBuffer;
|
|
193
205
|
filename?: string;
|
|
194
206
|
mimeType: string;
|
|
207
|
+
providerMetadata?: Record<
|
|
208
|
+
string,
|
|
209
|
+
Record<string, any>
|
|
210
|
+
>;
|
|
195
211
|
providerOptions?: Record<string, Record<string, any>>;
|
|
196
212
|
type: "file";
|
|
197
213
|
}
|
|
198
214
|
| {
|
|
215
|
+
providerMetadata?: Record<
|
|
216
|
+
string,
|
|
217
|
+
Record<string, any>
|
|
218
|
+
>;
|
|
199
219
|
providerOptions?: Record<string, Record<string, any>>;
|
|
200
220
|
signature?: string;
|
|
201
|
-
state?: "streaming" | "done";
|
|
202
221
|
text: string;
|
|
203
222
|
type: "reasoning";
|
|
204
223
|
}
|
|
205
224
|
| {
|
|
206
225
|
data: string;
|
|
226
|
+
providerMetadata?: Record<
|
|
227
|
+
string,
|
|
228
|
+
Record<string, any>
|
|
229
|
+
>;
|
|
207
230
|
providerOptions?: Record<string, Record<string, any>>;
|
|
208
231
|
type: "redacted-reasoning";
|
|
209
232
|
}
|
|
210
233
|
| {
|
|
211
234
|
args: any;
|
|
212
235
|
providerExecuted?: boolean;
|
|
236
|
+
providerMetadata?: Record<
|
|
237
|
+
string,
|
|
238
|
+
Record<string, any>
|
|
239
|
+
>;
|
|
213
240
|
providerOptions?: Record<string, Record<string, any>>;
|
|
214
241
|
toolCallId: string;
|
|
215
242
|
toolName: string;
|
|
216
243
|
type: "tool-call";
|
|
217
244
|
}
|
|
245
|
+
| {
|
|
246
|
+
args?: any;
|
|
247
|
+
experimental_content?: Array<
|
|
248
|
+
| { text: string; type: "text" }
|
|
249
|
+
| { data: string; mimeType?: string; type: "image" }
|
|
250
|
+
>;
|
|
251
|
+
isError?: boolean;
|
|
252
|
+
providerExecuted?: boolean;
|
|
253
|
+
providerMetadata?: Record<
|
|
254
|
+
string,
|
|
255
|
+
Record<string, any>
|
|
256
|
+
>;
|
|
257
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
258
|
+
result: any;
|
|
259
|
+
toolCallId: string;
|
|
260
|
+
toolName: string;
|
|
261
|
+
type: "tool-result";
|
|
262
|
+
}
|
|
218
263
|
>;
|
|
219
264
|
providerOptions?: Record<string, Record<string, any>>;
|
|
220
265
|
role: "assistant";
|
|
@@ -228,6 +273,7 @@ export type Mounts = {
|
|
|
228
273
|
>;
|
|
229
274
|
isError?: boolean;
|
|
230
275
|
providerExecuted?: boolean;
|
|
276
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
231
277
|
providerOptions?: Record<string, Record<string, any>>;
|
|
232
278
|
result: any;
|
|
233
279
|
toolCallId: string;
|
|
@@ -248,9 +294,9 @@ export type Mounts = {
|
|
|
248
294
|
reasoning?: string;
|
|
249
295
|
reasoningDetails?: Array<
|
|
250
296
|
| {
|
|
297
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
251
298
|
providerOptions?: Record<string, Record<string, any>>;
|
|
252
299
|
signature?: string;
|
|
253
|
-
state?: "streaming" | "done";
|
|
254
300
|
text: string;
|
|
255
301
|
type: "reasoning";
|
|
256
302
|
}
|
|
@@ -260,6 +306,7 @@ export type Mounts = {
|
|
|
260
306
|
sources?: Array<
|
|
261
307
|
| {
|
|
262
308
|
id: string;
|
|
309
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
263
310
|
providerOptions?: Record<string, Record<string, any>>;
|
|
264
311
|
sourceType: "url";
|
|
265
312
|
title?: string;
|
|
@@ -271,6 +318,7 @@ export type Mounts = {
|
|
|
271
318
|
id: string;
|
|
272
319
|
mediaType: string;
|
|
273
320
|
providerMetadata?: Record<string, Record<string, any>>;
|
|
321
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
274
322
|
sourceType: "document";
|
|
275
323
|
title: string;
|
|
276
324
|
type: "source";
|
|
@@ -319,6 +367,10 @@ export type Mounts = {
|
|
|
319
367
|
| string
|
|
320
368
|
| Array<
|
|
321
369
|
| {
|
|
370
|
+
providerMetadata?: Record<
|
|
371
|
+
string,
|
|
372
|
+
Record<string, any>
|
|
373
|
+
>;
|
|
322
374
|
providerOptions?: Record<string, Record<string, any>>;
|
|
323
375
|
text: string;
|
|
324
376
|
type: "text";
|
|
@@ -333,6 +385,10 @@ export type Mounts = {
|
|
|
333
385
|
data: string | ArrayBuffer;
|
|
334
386
|
filename?: string;
|
|
335
387
|
mimeType: string;
|
|
388
|
+
providerMetadata?: Record<
|
|
389
|
+
string,
|
|
390
|
+
Record<string, any>
|
|
391
|
+
>;
|
|
336
392
|
providerOptions?: Record<string, Record<string, any>>;
|
|
337
393
|
type: "file";
|
|
338
394
|
}
|
|
@@ -345,6 +401,10 @@ export type Mounts = {
|
|
|
345
401
|
| string
|
|
346
402
|
| Array<
|
|
347
403
|
| {
|
|
404
|
+
providerMetadata?: Record<
|
|
405
|
+
string,
|
|
406
|
+
Record<string, any>
|
|
407
|
+
>;
|
|
348
408
|
providerOptions?: Record<string, Record<string, any>>;
|
|
349
409
|
text: string;
|
|
350
410
|
type: "text";
|
|
@@ -353,29 +413,62 @@ export type Mounts = {
|
|
|
353
413
|
data: string | ArrayBuffer;
|
|
354
414
|
filename?: string;
|
|
355
415
|
mimeType: string;
|
|
416
|
+
providerMetadata?: Record<
|
|
417
|
+
string,
|
|
418
|
+
Record<string, any>
|
|
419
|
+
>;
|
|
356
420
|
providerOptions?: Record<string, Record<string, any>>;
|
|
357
421
|
type: "file";
|
|
358
422
|
}
|
|
359
423
|
| {
|
|
424
|
+
providerMetadata?: Record<
|
|
425
|
+
string,
|
|
426
|
+
Record<string, any>
|
|
427
|
+
>;
|
|
360
428
|
providerOptions?: Record<string, Record<string, any>>;
|
|
361
429
|
signature?: string;
|
|
362
|
-
state?: "streaming" | "done";
|
|
363
430
|
text: string;
|
|
364
431
|
type: "reasoning";
|
|
365
432
|
}
|
|
366
433
|
| {
|
|
367
434
|
data: string;
|
|
435
|
+
providerMetadata?: Record<
|
|
436
|
+
string,
|
|
437
|
+
Record<string, any>
|
|
438
|
+
>;
|
|
368
439
|
providerOptions?: Record<string, Record<string, any>>;
|
|
369
440
|
type: "redacted-reasoning";
|
|
370
441
|
}
|
|
371
442
|
| {
|
|
372
443
|
args: any;
|
|
373
444
|
providerExecuted?: boolean;
|
|
445
|
+
providerMetadata?: Record<
|
|
446
|
+
string,
|
|
447
|
+
Record<string, any>
|
|
448
|
+
>;
|
|
374
449
|
providerOptions?: Record<string, Record<string, any>>;
|
|
375
450
|
toolCallId: string;
|
|
376
451
|
toolName: string;
|
|
377
452
|
type: "tool-call";
|
|
378
453
|
}
|
|
454
|
+
| {
|
|
455
|
+
args?: any;
|
|
456
|
+
experimental_content?: Array<
|
|
457
|
+
| { text: string; type: "text" }
|
|
458
|
+
| { data: string; mimeType?: string; type: "image" }
|
|
459
|
+
>;
|
|
460
|
+
isError?: boolean;
|
|
461
|
+
providerExecuted?: boolean;
|
|
462
|
+
providerMetadata?: Record<
|
|
463
|
+
string,
|
|
464
|
+
Record<string, any>
|
|
465
|
+
>;
|
|
466
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
467
|
+
result: any;
|
|
468
|
+
toolCallId: string;
|
|
469
|
+
toolName: string;
|
|
470
|
+
type: "tool-result";
|
|
471
|
+
}
|
|
379
472
|
>;
|
|
380
473
|
providerOptions?: Record<string, Record<string, any>>;
|
|
381
474
|
role: "assistant";
|
|
@@ -389,6 +482,7 @@ export type Mounts = {
|
|
|
389
482
|
>;
|
|
390
483
|
isError?: boolean;
|
|
391
484
|
providerExecuted?: boolean;
|
|
485
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
392
486
|
providerOptions?: Record<string, Record<string, any>>;
|
|
393
487
|
result: any;
|
|
394
488
|
toolCallId: string;
|
|
@@ -411,9 +505,9 @@ export type Mounts = {
|
|
|
411
505
|
reasoning?: string;
|
|
412
506
|
reasoningDetails?: Array<
|
|
413
507
|
| {
|
|
508
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
414
509
|
providerOptions?: Record<string, Record<string, any>>;
|
|
415
510
|
signature?: string;
|
|
416
|
-
state?: "streaming" | "done";
|
|
417
511
|
text: string;
|
|
418
512
|
type: "reasoning";
|
|
419
513
|
}
|
|
@@ -423,6 +517,7 @@ export type Mounts = {
|
|
|
423
517
|
sources?: Array<
|
|
424
518
|
| {
|
|
425
519
|
id: string;
|
|
520
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
426
521
|
providerOptions?: Record<string, Record<string, any>>;
|
|
427
522
|
sourceType: "url";
|
|
428
523
|
title?: string;
|
|
@@ -434,6 +529,7 @@ export type Mounts = {
|
|
|
434
529
|
id: string;
|
|
435
530
|
mediaType: string;
|
|
436
531
|
providerMetadata?: Record<string, Record<string, any>>;
|
|
532
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
437
533
|
sourceType: "document";
|
|
438
534
|
title: string;
|
|
439
535
|
type: "source";
|
|
@@ -513,6 +609,7 @@ export type Mounts = {
|
|
|
513
609
|
| string
|
|
514
610
|
| Array<
|
|
515
611
|
| {
|
|
612
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
516
613
|
providerOptions?: Record<string, Record<string, any>>;
|
|
517
614
|
text: string;
|
|
518
615
|
type: "text";
|
|
@@ -527,6 +624,7 @@ export type Mounts = {
|
|
|
527
624
|
data: string | ArrayBuffer;
|
|
528
625
|
filename?: string;
|
|
529
626
|
mimeType: string;
|
|
627
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
530
628
|
providerOptions?: Record<string, Record<string, any>>;
|
|
531
629
|
type: "file";
|
|
532
630
|
}
|
|
@@ -539,6 +637,7 @@ export type Mounts = {
|
|
|
539
637
|
| string
|
|
540
638
|
| Array<
|
|
541
639
|
| {
|
|
640
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
542
641
|
providerOptions?: Record<string, Record<string, any>>;
|
|
543
642
|
text: string;
|
|
544
643
|
type: "text";
|
|
@@ -547,29 +646,47 @@ export type Mounts = {
|
|
|
547
646
|
data: string | ArrayBuffer;
|
|
548
647
|
filename?: string;
|
|
549
648
|
mimeType: string;
|
|
649
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
550
650
|
providerOptions?: Record<string, Record<string, any>>;
|
|
551
651
|
type: "file";
|
|
552
652
|
}
|
|
553
653
|
| {
|
|
654
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
554
655
|
providerOptions?: Record<string, Record<string, any>>;
|
|
555
656
|
signature?: string;
|
|
556
|
-
state?: "streaming" | "done";
|
|
557
657
|
text: string;
|
|
558
658
|
type: "reasoning";
|
|
559
659
|
}
|
|
560
660
|
| {
|
|
561
661
|
data: string;
|
|
662
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
562
663
|
providerOptions?: Record<string, Record<string, any>>;
|
|
563
664
|
type: "redacted-reasoning";
|
|
564
665
|
}
|
|
565
666
|
| {
|
|
566
667
|
args: any;
|
|
567
668
|
providerExecuted?: boolean;
|
|
669
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
568
670
|
providerOptions?: Record<string, Record<string, any>>;
|
|
569
671
|
toolCallId: string;
|
|
570
672
|
toolName: string;
|
|
571
673
|
type: "tool-call";
|
|
572
674
|
}
|
|
675
|
+
| {
|
|
676
|
+
args?: any;
|
|
677
|
+
experimental_content?: Array<
|
|
678
|
+
| { text: string; type: "text" }
|
|
679
|
+
| { data: string; mimeType?: string; type: "image" }
|
|
680
|
+
>;
|
|
681
|
+
isError?: boolean;
|
|
682
|
+
providerExecuted?: boolean;
|
|
683
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
684
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
685
|
+
result: any;
|
|
686
|
+
toolCallId: string;
|
|
687
|
+
toolName: string;
|
|
688
|
+
type: "tool-result";
|
|
689
|
+
}
|
|
573
690
|
>;
|
|
574
691
|
providerOptions?: Record<string, Record<string, any>>;
|
|
575
692
|
role: "assistant";
|
|
@@ -583,6 +700,7 @@ export type Mounts = {
|
|
|
583
700
|
>;
|
|
584
701
|
isError?: boolean;
|
|
585
702
|
providerExecuted?: boolean;
|
|
703
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
586
704
|
providerOptions?: Record<string, Record<string, any>>;
|
|
587
705
|
result: any;
|
|
588
706
|
toolCallId: string;
|
|
@@ -605,9 +723,9 @@ export type Mounts = {
|
|
|
605
723
|
reasoning?: string;
|
|
606
724
|
reasoningDetails?: Array<
|
|
607
725
|
| {
|
|
726
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
608
727
|
providerOptions?: Record<string, Record<string, any>>;
|
|
609
728
|
signature?: string;
|
|
610
|
-
state?: "streaming" | "done";
|
|
611
729
|
text: string;
|
|
612
730
|
type: "reasoning";
|
|
613
731
|
}
|
|
@@ -617,6 +735,7 @@ export type Mounts = {
|
|
|
617
735
|
sources?: Array<
|
|
618
736
|
| {
|
|
619
737
|
id: string;
|
|
738
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
620
739
|
providerOptions?: Record<string, Record<string, any>>;
|
|
621
740
|
sourceType: "url";
|
|
622
741
|
title?: string;
|
|
@@ -628,6 +747,7 @@ export type Mounts = {
|
|
|
628
747
|
id: string;
|
|
629
748
|
mediaType: string;
|
|
630
749
|
providerMetadata?: Record<string, Record<string, any>>;
|
|
750
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
631
751
|
sourceType: "document";
|
|
632
752
|
title: string;
|
|
633
753
|
type: "source";
|
|
@@ -696,6 +816,10 @@ export type Mounts = {
|
|
|
696
816
|
| string
|
|
697
817
|
| Array<
|
|
698
818
|
| {
|
|
819
|
+
providerMetadata?: Record<
|
|
820
|
+
string,
|
|
821
|
+
Record<string, any>
|
|
822
|
+
>;
|
|
699
823
|
providerOptions?: Record<string, Record<string, any>>;
|
|
700
824
|
text: string;
|
|
701
825
|
type: "text";
|
|
@@ -710,6 +834,10 @@ export type Mounts = {
|
|
|
710
834
|
data: string | ArrayBuffer;
|
|
711
835
|
filename?: string;
|
|
712
836
|
mimeType: string;
|
|
837
|
+
providerMetadata?: Record<
|
|
838
|
+
string,
|
|
839
|
+
Record<string, any>
|
|
840
|
+
>;
|
|
713
841
|
providerOptions?: Record<string, Record<string, any>>;
|
|
714
842
|
type: "file";
|
|
715
843
|
}
|
|
@@ -722,6 +850,10 @@ export type Mounts = {
|
|
|
722
850
|
| string
|
|
723
851
|
| Array<
|
|
724
852
|
| {
|
|
853
|
+
providerMetadata?: Record<
|
|
854
|
+
string,
|
|
855
|
+
Record<string, any>
|
|
856
|
+
>;
|
|
725
857
|
providerOptions?: Record<string, Record<string, any>>;
|
|
726
858
|
text: string;
|
|
727
859
|
type: "text";
|
|
@@ -730,29 +862,62 @@ export type Mounts = {
|
|
|
730
862
|
data: string | ArrayBuffer;
|
|
731
863
|
filename?: string;
|
|
732
864
|
mimeType: string;
|
|
865
|
+
providerMetadata?: Record<
|
|
866
|
+
string,
|
|
867
|
+
Record<string, any>
|
|
868
|
+
>;
|
|
733
869
|
providerOptions?: Record<string, Record<string, any>>;
|
|
734
870
|
type: "file";
|
|
735
871
|
}
|
|
736
872
|
| {
|
|
873
|
+
providerMetadata?: Record<
|
|
874
|
+
string,
|
|
875
|
+
Record<string, any>
|
|
876
|
+
>;
|
|
737
877
|
providerOptions?: Record<string, Record<string, any>>;
|
|
738
878
|
signature?: string;
|
|
739
|
-
state?: "streaming" | "done";
|
|
740
879
|
text: string;
|
|
741
880
|
type: "reasoning";
|
|
742
881
|
}
|
|
743
882
|
| {
|
|
744
883
|
data: string;
|
|
884
|
+
providerMetadata?: Record<
|
|
885
|
+
string,
|
|
886
|
+
Record<string, any>
|
|
887
|
+
>;
|
|
745
888
|
providerOptions?: Record<string, Record<string, any>>;
|
|
746
889
|
type: "redacted-reasoning";
|
|
747
890
|
}
|
|
748
891
|
| {
|
|
749
892
|
args: any;
|
|
750
893
|
providerExecuted?: boolean;
|
|
894
|
+
providerMetadata?: Record<
|
|
895
|
+
string,
|
|
896
|
+
Record<string, any>
|
|
897
|
+
>;
|
|
751
898
|
providerOptions?: Record<string, Record<string, any>>;
|
|
752
899
|
toolCallId: string;
|
|
753
900
|
toolName: string;
|
|
754
901
|
type: "tool-call";
|
|
755
902
|
}
|
|
903
|
+
| {
|
|
904
|
+
args?: any;
|
|
905
|
+
experimental_content?: Array<
|
|
906
|
+
| { text: string; type: "text" }
|
|
907
|
+
| { data: string; mimeType?: string; type: "image" }
|
|
908
|
+
>;
|
|
909
|
+
isError?: boolean;
|
|
910
|
+
providerExecuted?: boolean;
|
|
911
|
+
providerMetadata?: Record<
|
|
912
|
+
string,
|
|
913
|
+
Record<string, any>
|
|
914
|
+
>;
|
|
915
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
916
|
+
result: any;
|
|
917
|
+
toolCallId: string;
|
|
918
|
+
toolName: string;
|
|
919
|
+
type: "tool-result";
|
|
920
|
+
}
|
|
756
921
|
>;
|
|
757
922
|
providerOptions?: Record<string, Record<string, any>>;
|
|
758
923
|
role: "assistant";
|
|
@@ -766,6 +931,7 @@ export type Mounts = {
|
|
|
766
931
|
>;
|
|
767
932
|
isError?: boolean;
|
|
768
933
|
providerExecuted?: boolean;
|
|
934
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
769
935
|
providerOptions?: Record<string, Record<string, any>>;
|
|
770
936
|
result: any;
|
|
771
937
|
toolCallId: string;
|
|
@@ -788,9 +954,9 @@ export type Mounts = {
|
|
|
788
954
|
reasoning?: string;
|
|
789
955
|
reasoningDetails?: Array<
|
|
790
956
|
| {
|
|
957
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
791
958
|
providerOptions?: Record<string, Record<string, any>>;
|
|
792
959
|
signature?: string;
|
|
793
|
-
state?: "streaming" | "done";
|
|
794
960
|
text: string;
|
|
795
961
|
type: "reasoning";
|
|
796
962
|
}
|
|
@@ -800,6 +966,7 @@ export type Mounts = {
|
|
|
800
966
|
sources?: Array<
|
|
801
967
|
| {
|
|
802
968
|
id: string;
|
|
969
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
803
970
|
providerOptions?: Record<string, Record<string, any>>;
|
|
804
971
|
sourceType: "url";
|
|
805
972
|
title?: string;
|
|
@@ -811,6 +978,7 @@ export type Mounts = {
|
|
|
811
978
|
id: string;
|
|
812
979
|
mediaType: string;
|
|
813
980
|
providerMetadata?: Record<string, Record<string, any>>;
|
|
981
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
814
982
|
sourceType: "document";
|
|
815
983
|
title: string;
|
|
816
984
|
type: "source";
|
|
@@ -875,6 +1043,7 @@ export type Mounts = {
|
|
|
875
1043
|
| string
|
|
876
1044
|
| Array<
|
|
877
1045
|
| {
|
|
1046
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
878
1047
|
providerOptions?: Record<string, Record<string, any>>;
|
|
879
1048
|
text: string;
|
|
880
1049
|
type: "text";
|
|
@@ -889,6 +1058,7 @@ export type Mounts = {
|
|
|
889
1058
|
data: string | ArrayBuffer;
|
|
890
1059
|
filename?: string;
|
|
891
1060
|
mimeType: string;
|
|
1061
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
892
1062
|
providerOptions?: Record<string, Record<string, any>>;
|
|
893
1063
|
type: "file";
|
|
894
1064
|
}
|
|
@@ -901,6 +1071,7 @@ export type Mounts = {
|
|
|
901
1071
|
| string
|
|
902
1072
|
| Array<
|
|
903
1073
|
| {
|
|
1074
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
904
1075
|
providerOptions?: Record<string, Record<string, any>>;
|
|
905
1076
|
text: string;
|
|
906
1077
|
type: "text";
|
|
@@ -909,29 +1080,47 @@ export type Mounts = {
|
|
|
909
1080
|
data: string | ArrayBuffer;
|
|
910
1081
|
filename?: string;
|
|
911
1082
|
mimeType: string;
|
|
1083
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
912
1084
|
providerOptions?: Record<string, Record<string, any>>;
|
|
913
1085
|
type: "file";
|
|
914
1086
|
}
|
|
915
1087
|
| {
|
|
1088
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
916
1089
|
providerOptions?: Record<string, Record<string, any>>;
|
|
917
1090
|
signature?: string;
|
|
918
|
-
state?: "streaming" | "done";
|
|
919
1091
|
text: string;
|
|
920
1092
|
type: "reasoning";
|
|
921
1093
|
}
|
|
922
1094
|
| {
|
|
923
1095
|
data: string;
|
|
1096
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
924
1097
|
providerOptions?: Record<string, Record<string, any>>;
|
|
925
1098
|
type: "redacted-reasoning";
|
|
926
1099
|
}
|
|
927
1100
|
| {
|
|
928
1101
|
args: any;
|
|
929
1102
|
providerExecuted?: boolean;
|
|
1103
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
930
1104
|
providerOptions?: Record<string, Record<string, any>>;
|
|
931
1105
|
toolCallId: string;
|
|
932
1106
|
toolName: string;
|
|
933
1107
|
type: "tool-call";
|
|
934
1108
|
}
|
|
1109
|
+
| {
|
|
1110
|
+
args?: any;
|
|
1111
|
+
experimental_content?: Array<
|
|
1112
|
+
| { text: string; type: "text" }
|
|
1113
|
+
| { data: string; mimeType?: string; type: "image" }
|
|
1114
|
+
>;
|
|
1115
|
+
isError?: boolean;
|
|
1116
|
+
providerExecuted?: boolean;
|
|
1117
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
1118
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1119
|
+
result: any;
|
|
1120
|
+
toolCallId: string;
|
|
1121
|
+
toolName: string;
|
|
1122
|
+
type: "tool-result";
|
|
1123
|
+
}
|
|
935
1124
|
>;
|
|
936
1125
|
providerOptions?: Record<string, Record<string, any>>;
|
|
937
1126
|
role: "assistant";
|
|
@@ -945,6 +1134,7 @@ export type Mounts = {
|
|
|
945
1134
|
>;
|
|
946
1135
|
isError?: boolean;
|
|
947
1136
|
providerExecuted?: boolean;
|
|
1137
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
948
1138
|
providerOptions?: Record<string, Record<string, any>>;
|
|
949
1139
|
result: any;
|
|
950
1140
|
toolCallId: string;
|
|
@@ -967,9 +1157,9 @@ export type Mounts = {
|
|
|
967
1157
|
reasoning?: string;
|
|
968
1158
|
reasoningDetails?: Array<
|
|
969
1159
|
| {
|
|
1160
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
970
1161
|
providerOptions?: Record<string, Record<string, any>>;
|
|
971
1162
|
signature?: string;
|
|
972
|
-
state?: "streaming" | "done";
|
|
973
1163
|
text: string;
|
|
974
1164
|
type: "reasoning";
|
|
975
1165
|
}
|
|
@@ -979,6 +1169,7 @@ export type Mounts = {
|
|
|
979
1169
|
sources?: Array<
|
|
980
1170
|
| {
|
|
981
1171
|
id: string;
|
|
1172
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
982
1173
|
providerOptions?: Record<string, Record<string, any>>;
|
|
983
1174
|
sourceType: "url";
|
|
984
1175
|
title?: string;
|
|
@@ -990,6 +1181,7 @@ export type Mounts = {
|
|
|
990
1181
|
id: string;
|
|
991
1182
|
mediaType: string;
|
|
992
1183
|
providerMetadata?: Record<string, Record<string, any>>;
|
|
1184
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
993
1185
|
sourceType: "document";
|
|
994
1186
|
title: string;
|
|
995
1187
|
type: "source";
|
|
@@ -1047,6 +1239,7 @@ export type Mounts = {
|
|
|
1047
1239
|
| string
|
|
1048
1240
|
| Array<
|
|
1049
1241
|
| {
|
|
1242
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
1050
1243
|
providerOptions?: Record<string, Record<string, any>>;
|
|
1051
1244
|
text: string;
|
|
1052
1245
|
type: "text";
|
|
@@ -1061,6 +1254,7 @@ export type Mounts = {
|
|
|
1061
1254
|
data: string | ArrayBuffer;
|
|
1062
1255
|
filename?: string;
|
|
1063
1256
|
mimeType: string;
|
|
1257
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
1064
1258
|
providerOptions?: Record<string, Record<string, any>>;
|
|
1065
1259
|
type: "file";
|
|
1066
1260
|
}
|
|
@@ -1073,6 +1267,7 @@ export type Mounts = {
|
|
|
1073
1267
|
| string
|
|
1074
1268
|
| Array<
|
|
1075
1269
|
| {
|
|
1270
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
1076
1271
|
providerOptions?: Record<string, Record<string, any>>;
|
|
1077
1272
|
text: string;
|
|
1078
1273
|
type: "text";
|
|
@@ -1081,29 +1276,47 @@ export type Mounts = {
|
|
|
1081
1276
|
data: string | ArrayBuffer;
|
|
1082
1277
|
filename?: string;
|
|
1083
1278
|
mimeType: string;
|
|
1279
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
1084
1280
|
providerOptions?: Record<string, Record<string, any>>;
|
|
1085
1281
|
type: "file";
|
|
1086
1282
|
}
|
|
1087
1283
|
| {
|
|
1284
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
1088
1285
|
providerOptions?: Record<string, Record<string, any>>;
|
|
1089
1286
|
signature?: string;
|
|
1090
|
-
state?: "streaming" | "done";
|
|
1091
1287
|
text: string;
|
|
1092
1288
|
type: "reasoning";
|
|
1093
1289
|
}
|
|
1094
1290
|
| {
|
|
1095
1291
|
data: string;
|
|
1292
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
1096
1293
|
providerOptions?: Record<string, Record<string, any>>;
|
|
1097
1294
|
type: "redacted-reasoning";
|
|
1098
1295
|
}
|
|
1099
1296
|
| {
|
|
1100
1297
|
args: any;
|
|
1101
1298
|
providerExecuted?: boolean;
|
|
1299
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
1102
1300
|
providerOptions?: Record<string, Record<string, any>>;
|
|
1103
1301
|
toolCallId: string;
|
|
1104
1302
|
toolName: string;
|
|
1105
1303
|
type: "tool-call";
|
|
1106
1304
|
}
|
|
1305
|
+
| {
|
|
1306
|
+
args?: any;
|
|
1307
|
+
experimental_content?: Array<
|
|
1308
|
+
| { text: string; type: "text" }
|
|
1309
|
+
| { data: string; mimeType?: string; type: "image" }
|
|
1310
|
+
>;
|
|
1311
|
+
isError?: boolean;
|
|
1312
|
+
providerExecuted?: boolean;
|
|
1313
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
1314
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1315
|
+
result: any;
|
|
1316
|
+
toolCallId: string;
|
|
1317
|
+
toolName: string;
|
|
1318
|
+
type: "tool-result";
|
|
1319
|
+
}
|
|
1107
1320
|
>;
|
|
1108
1321
|
providerOptions?: Record<string, Record<string, any>>;
|
|
1109
1322
|
role: "assistant";
|
|
@@ -1117,6 +1330,7 @@ export type Mounts = {
|
|
|
1117
1330
|
>;
|
|
1118
1331
|
isError?: boolean;
|
|
1119
1332
|
providerExecuted?: boolean;
|
|
1333
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
1120
1334
|
providerOptions?: Record<string, Record<string, any>>;
|
|
1121
1335
|
result: any;
|
|
1122
1336
|
toolCallId: string;
|
|
@@ -1139,9 +1353,9 @@ export type Mounts = {
|
|
|
1139
1353
|
reasoning?: string;
|
|
1140
1354
|
reasoningDetails?: Array<
|
|
1141
1355
|
| {
|
|
1356
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
1142
1357
|
providerOptions?: Record<string, Record<string, any>>;
|
|
1143
1358
|
signature?: string;
|
|
1144
|
-
state?: "streaming" | "done";
|
|
1145
1359
|
text: string;
|
|
1146
1360
|
type: "reasoning";
|
|
1147
1361
|
}
|
|
@@ -1151,6 +1365,7 @@ export type Mounts = {
|
|
|
1151
1365
|
sources?: Array<
|
|
1152
1366
|
| {
|
|
1153
1367
|
id: string;
|
|
1368
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
1154
1369
|
providerOptions?: Record<string, Record<string, any>>;
|
|
1155
1370
|
sourceType: "url";
|
|
1156
1371
|
title?: string;
|
|
@@ -1162,6 +1377,7 @@ export type Mounts = {
|
|
|
1162
1377
|
id: string;
|
|
1163
1378
|
mediaType: string;
|
|
1164
1379
|
providerMetadata?: Record<string, Record<string, any>>;
|
|
1380
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1165
1381
|
sourceType: "document";
|
|
1166
1382
|
title: string;
|
|
1167
1383
|
type: "source";
|
|
@@ -1209,6 +1425,10 @@ export type Mounts = {
|
|
|
1209
1425
|
| string
|
|
1210
1426
|
| Array<
|
|
1211
1427
|
| {
|
|
1428
|
+
providerMetadata?: Record<
|
|
1429
|
+
string,
|
|
1430
|
+
Record<string, any>
|
|
1431
|
+
>;
|
|
1212
1432
|
providerOptions?: Record<string, Record<string, any>>;
|
|
1213
1433
|
text: string;
|
|
1214
1434
|
type: "text";
|
|
@@ -1223,6 +1443,10 @@ export type Mounts = {
|
|
|
1223
1443
|
data: string | ArrayBuffer;
|
|
1224
1444
|
filename?: string;
|
|
1225
1445
|
mimeType: string;
|
|
1446
|
+
providerMetadata?: Record<
|
|
1447
|
+
string,
|
|
1448
|
+
Record<string, any>
|
|
1449
|
+
>;
|
|
1226
1450
|
providerOptions?: Record<string, Record<string, any>>;
|
|
1227
1451
|
type: "file";
|
|
1228
1452
|
}
|
|
@@ -1235,6 +1459,10 @@ export type Mounts = {
|
|
|
1235
1459
|
| string
|
|
1236
1460
|
| Array<
|
|
1237
1461
|
| {
|
|
1462
|
+
providerMetadata?: Record<
|
|
1463
|
+
string,
|
|
1464
|
+
Record<string, any>
|
|
1465
|
+
>;
|
|
1238
1466
|
providerOptions?: Record<string, Record<string, any>>;
|
|
1239
1467
|
text: string;
|
|
1240
1468
|
type: "text";
|
|
@@ -1243,29 +1471,62 @@ export type Mounts = {
|
|
|
1243
1471
|
data: string | ArrayBuffer;
|
|
1244
1472
|
filename?: string;
|
|
1245
1473
|
mimeType: string;
|
|
1474
|
+
providerMetadata?: Record<
|
|
1475
|
+
string,
|
|
1476
|
+
Record<string, any>
|
|
1477
|
+
>;
|
|
1246
1478
|
providerOptions?: Record<string, Record<string, any>>;
|
|
1247
1479
|
type: "file";
|
|
1248
1480
|
}
|
|
1249
1481
|
| {
|
|
1482
|
+
providerMetadata?: Record<
|
|
1483
|
+
string,
|
|
1484
|
+
Record<string, any>
|
|
1485
|
+
>;
|
|
1250
1486
|
providerOptions?: Record<string, Record<string, any>>;
|
|
1251
1487
|
signature?: string;
|
|
1252
|
-
state?: "streaming" | "done";
|
|
1253
1488
|
text: string;
|
|
1254
1489
|
type: "reasoning";
|
|
1255
1490
|
}
|
|
1256
1491
|
| {
|
|
1257
1492
|
data: string;
|
|
1493
|
+
providerMetadata?: Record<
|
|
1494
|
+
string,
|
|
1495
|
+
Record<string, any>
|
|
1496
|
+
>;
|
|
1258
1497
|
providerOptions?: Record<string, Record<string, any>>;
|
|
1259
1498
|
type: "redacted-reasoning";
|
|
1260
1499
|
}
|
|
1261
1500
|
| {
|
|
1262
1501
|
args: any;
|
|
1263
1502
|
providerExecuted?: boolean;
|
|
1503
|
+
providerMetadata?: Record<
|
|
1504
|
+
string,
|
|
1505
|
+
Record<string, any>
|
|
1506
|
+
>;
|
|
1264
1507
|
providerOptions?: Record<string, Record<string, any>>;
|
|
1265
1508
|
toolCallId: string;
|
|
1266
1509
|
toolName: string;
|
|
1267
1510
|
type: "tool-call";
|
|
1268
1511
|
}
|
|
1512
|
+
| {
|
|
1513
|
+
args?: any;
|
|
1514
|
+
experimental_content?: Array<
|
|
1515
|
+
| { text: string; type: "text" }
|
|
1516
|
+
| { data: string; mimeType?: string; type: "image" }
|
|
1517
|
+
>;
|
|
1518
|
+
isError?: boolean;
|
|
1519
|
+
providerExecuted?: boolean;
|
|
1520
|
+
providerMetadata?: Record<
|
|
1521
|
+
string,
|
|
1522
|
+
Record<string, any>
|
|
1523
|
+
>;
|
|
1524
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1525
|
+
result: any;
|
|
1526
|
+
toolCallId: string;
|
|
1527
|
+
toolName: string;
|
|
1528
|
+
type: "tool-result";
|
|
1529
|
+
}
|
|
1269
1530
|
>;
|
|
1270
1531
|
providerOptions?: Record<string, Record<string, any>>;
|
|
1271
1532
|
role: "assistant";
|
|
@@ -1279,6 +1540,7 @@ export type Mounts = {
|
|
|
1279
1540
|
>;
|
|
1280
1541
|
isError?: boolean;
|
|
1281
1542
|
providerExecuted?: boolean;
|
|
1543
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
1282
1544
|
providerOptions?: Record<string, Record<string, any>>;
|
|
1283
1545
|
result: any;
|
|
1284
1546
|
toolCallId: string;
|
|
@@ -1321,6 +1583,7 @@ export type Mounts = {
|
|
|
1321
1583
|
| string
|
|
1322
1584
|
| Array<
|
|
1323
1585
|
| {
|
|
1586
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
1324
1587
|
providerOptions?: Record<string, Record<string, any>>;
|
|
1325
1588
|
text: string;
|
|
1326
1589
|
type: "text";
|
|
@@ -1335,6 +1598,7 @@ export type Mounts = {
|
|
|
1335
1598
|
data: string | ArrayBuffer;
|
|
1336
1599
|
filename?: string;
|
|
1337
1600
|
mimeType: string;
|
|
1601
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
1338
1602
|
providerOptions?: Record<string, Record<string, any>>;
|
|
1339
1603
|
type: "file";
|
|
1340
1604
|
}
|
|
@@ -1347,6 +1611,7 @@ export type Mounts = {
|
|
|
1347
1611
|
| string
|
|
1348
1612
|
| Array<
|
|
1349
1613
|
| {
|
|
1614
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
1350
1615
|
providerOptions?: Record<string, Record<string, any>>;
|
|
1351
1616
|
text: string;
|
|
1352
1617
|
type: "text";
|
|
@@ -1355,29 +1620,47 @@ export type Mounts = {
|
|
|
1355
1620
|
data: string | ArrayBuffer;
|
|
1356
1621
|
filename?: string;
|
|
1357
1622
|
mimeType: string;
|
|
1623
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
1358
1624
|
providerOptions?: Record<string, Record<string, any>>;
|
|
1359
1625
|
type: "file";
|
|
1360
1626
|
}
|
|
1361
1627
|
| {
|
|
1628
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
1362
1629
|
providerOptions?: Record<string, Record<string, any>>;
|
|
1363
1630
|
signature?: string;
|
|
1364
|
-
state?: "streaming" | "done";
|
|
1365
1631
|
text: string;
|
|
1366
1632
|
type: "reasoning";
|
|
1367
1633
|
}
|
|
1368
1634
|
| {
|
|
1369
1635
|
data: string;
|
|
1636
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
1370
1637
|
providerOptions?: Record<string, Record<string, any>>;
|
|
1371
1638
|
type: "redacted-reasoning";
|
|
1372
1639
|
}
|
|
1373
1640
|
| {
|
|
1374
1641
|
args: any;
|
|
1375
1642
|
providerExecuted?: boolean;
|
|
1643
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
1376
1644
|
providerOptions?: Record<string, Record<string, any>>;
|
|
1377
1645
|
toolCallId: string;
|
|
1378
1646
|
toolName: string;
|
|
1379
1647
|
type: "tool-call";
|
|
1380
1648
|
}
|
|
1649
|
+
| {
|
|
1650
|
+
args?: any;
|
|
1651
|
+
experimental_content?: Array<
|
|
1652
|
+
| { text: string; type: "text" }
|
|
1653
|
+
| { data: string; mimeType?: string; type: "image" }
|
|
1654
|
+
>;
|
|
1655
|
+
isError?: boolean;
|
|
1656
|
+
providerExecuted?: boolean;
|
|
1657
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
1658
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1659
|
+
result: any;
|
|
1660
|
+
toolCallId: string;
|
|
1661
|
+
toolName: string;
|
|
1662
|
+
type: "tool-result";
|
|
1663
|
+
}
|
|
1381
1664
|
>;
|
|
1382
1665
|
providerOptions?: Record<string, Record<string, any>>;
|
|
1383
1666
|
role: "assistant";
|
|
@@ -1391,6 +1674,7 @@ export type Mounts = {
|
|
|
1391
1674
|
>;
|
|
1392
1675
|
isError?: boolean;
|
|
1393
1676
|
providerExecuted?: boolean;
|
|
1677
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
1394
1678
|
providerOptions?: Record<string, Record<string, any>>;
|
|
1395
1679
|
result: any;
|
|
1396
1680
|
toolCallId: string;
|
|
@@ -1413,9 +1697,9 @@ export type Mounts = {
|
|
|
1413
1697
|
reasoning?: string;
|
|
1414
1698
|
reasoningDetails?: Array<
|
|
1415
1699
|
| {
|
|
1700
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
1416
1701
|
providerOptions?: Record<string, Record<string, any>>;
|
|
1417
1702
|
signature?: string;
|
|
1418
|
-
state?: "streaming" | "done";
|
|
1419
1703
|
text: string;
|
|
1420
1704
|
type: "reasoning";
|
|
1421
1705
|
}
|
|
@@ -1425,6 +1709,7 @@ export type Mounts = {
|
|
|
1425
1709
|
sources?: Array<
|
|
1426
1710
|
| {
|
|
1427
1711
|
id: string;
|
|
1712
|
+
providerMetadata?: Record<string, Record<string, any>>;
|
|
1428
1713
|
providerOptions?: Record<string, Record<string, any>>;
|
|
1429
1714
|
sourceType: "url";
|
|
1430
1715
|
title?: string;
|
|
@@ -1436,6 +1721,7 @@ export type Mounts = {
|
|
|
1436
1721
|
id: string;
|
|
1437
1722
|
mediaType: string;
|
|
1438
1723
|
providerMetadata?: Record<string, Record<string, any>>;
|
|
1724
|
+
providerOptions?: Record<string, Record<string, any>>;
|
|
1439
1725
|
sourceType: "document";
|
|
1440
1726
|
title: string;
|
|
1441
1727
|
type: "source";
|