@convex-dev/agent 0.2.3-alpha.0 → 0.2.4-alpha.0

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.
Files changed (59) hide show
  1. package/dist/client/definePlaygroundAPI.d.ts +59 -5
  2. package/dist/client/definePlaygroundAPI.d.ts.map +1 -1
  3. package/dist/client/files.d.ts +1 -1
  4. package/dist/client/files.d.ts.map +1 -1
  5. package/dist/client/files.js.map +1 -1
  6. package/dist/client/index.d.ts +46 -4
  7. package/dist/client/index.d.ts.map +1 -1
  8. package/dist/client/index.js +14 -13
  9. package/dist/client/index.js.map +1 -1
  10. package/dist/client/messages.d.ts +14 -2
  11. package/dist/client/messages.d.ts.map +1 -1
  12. package/dist/client/search.d.ts +14 -2
  13. package/dist/client/search.d.ts.map +1 -1
  14. package/dist/client/search.js +2 -4
  15. package/dist/client/search.js.map +1 -1
  16. package/dist/client/streaming.d.ts +132 -23
  17. package/dist/client/streaming.d.ts.map +1 -1
  18. package/dist/component/_generated/api.d.ts +189 -0
  19. package/dist/component/messages.d.ts +149 -20
  20. package/dist/component/messages.d.ts.map +1 -1
  21. package/dist/component/messages.js +4 -4
  22. package/dist/component/messages.js.map +1 -1
  23. package/dist/component/schema.d.ts +342 -63
  24. package/dist/component/schema.d.ts.map +1 -1
  25. package/dist/mapping.d.ts +4 -4
  26. package/dist/mapping.d.ts.map +1 -1
  27. package/dist/mapping.js +67 -36
  28. package/dist/mapping.js.map +1 -1
  29. package/dist/react/deltas.d.ts +3 -3
  30. package/dist/react/deltas.d.ts.map +1 -1
  31. package/dist/react/deltas.js +302 -30
  32. package/dist/react/deltas.js.map +1 -1
  33. package/dist/react/toUIMessages.d.ts.map +1 -1
  34. package/dist/react/toUIMessages.js +289 -180
  35. package/dist/react/toUIMessages.js.map +1 -1
  36. package/dist/react/useSmoothText.d.ts.map +1 -1
  37. package/dist/react/useSmoothText.js +15 -6
  38. package/dist/react/useSmoothText.js.map +1 -1
  39. package/dist/shared.d.ts +4 -0
  40. package/dist/shared.d.ts.map +1 -1
  41. package/dist/shared.js +8 -0
  42. package/dist/shared.js.map +1 -1
  43. package/dist/validators.d.ts +662 -104
  44. package/dist/validators.d.ts.map +1 -1
  45. package/dist/validators.js +8 -0
  46. package/dist/validators.js.map +1 -1
  47. package/package.json +1 -1
  48. package/src/client/files.ts +4 -4
  49. package/src/client/index.ts +21 -20
  50. package/src/client/search.ts +2 -6
  51. package/src/component/_generated/api.d.ts +189 -0
  52. package/src/component/messages.ts +4 -3
  53. package/src/mapping.ts +99 -51
  54. package/src/react/deltas.ts +368 -48
  55. package/src/react/toUIMessages.test.ts +186 -0
  56. package/src/react/toUIMessages.ts +366 -192
  57. package/src/react/useSmoothText.ts +25 -13
  58. package/src/shared.ts +14 -0
  59. package/src/validators.ts +8 -0
@@ -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,10 +204,18 @@ 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
221
  text: string;
@@ -203,12 +223,20 @@ export type Mounts = {
203
223
  }
204
224
  | {
205
225
  data: string;
226
+ providerMetadata?: Record<
227
+ string,
228
+ Record<string, any>
229
+ >;
206
230
  providerOptions?: Record<string, Record<string, any>>;
207
231
  type: "redacted-reasoning";
208
232
  }
209
233
  | {
210
234
  args: any;
211
235
  providerExecuted?: boolean;
236
+ providerMetadata?: Record<
237
+ string,
238
+ Record<string, any>
239
+ >;
212
240
  providerOptions?: Record<string, Record<string, any>>;
213
241
  toolCallId: string;
214
242
  toolName: string;
@@ -222,6 +250,10 @@ export type Mounts = {
222
250
  >;
223
251
  isError?: boolean;
224
252
  providerExecuted?: boolean;
253
+ providerMetadata?: Record<
254
+ string,
255
+ Record<string, any>
256
+ >;
225
257
  providerOptions?: Record<string, Record<string, any>>;
226
258
  result: any;
227
259
  toolCallId: string;
@@ -241,6 +273,7 @@ export type Mounts = {
241
273
  >;
242
274
  isError?: boolean;
243
275
  providerExecuted?: boolean;
276
+ providerMetadata?: Record<string, Record<string, any>>;
244
277
  providerOptions?: Record<string, Record<string, any>>;
245
278
  result: any;
246
279
  toolCallId: string;
@@ -261,6 +294,7 @@ export type Mounts = {
261
294
  reasoning?: string;
262
295
  reasoningDetails?: Array<
263
296
  | {
297
+ providerMetadata?: Record<string, Record<string, any>>;
264
298
  providerOptions?: Record<string, Record<string, any>>;
265
299
  signature?: string;
266
300
  text: string;
@@ -272,6 +306,7 @@ export type Mounts = {
272
306
  sources?: Array<
273
307
  | {
274
308
  id: string;
309
+ providerMetadata?: Record<string, Record<string, any>>;
275
310
  providerOptions?: Record<string, Record<string, any>>;
276
311
  sourceType: "url";
277
312
  title?: string;
@@ -283,6 +318,7 @@ export type Mounts = {
283
318
  id: string;
284
319
  mediaType: string;
285
320
  providerMetadata?: Record<string, Record<string, any>>;
321
+ providerOptions?: Record<string, Record<string, any>>;
286
322
  sourceType: "document";
287
323
  title: string;
288
324
  type: "source";
@@ -331,6 +367,10 @@ export type Mounts = {
331
367
  | string
332
368
  | Array<
333
369
  | {
370
+ providerMetadata?: Record<
371
+ string,
372
+ Record<string, any>
373
+ >;
334
374
  providerOptions?: Record<string, Record<string, any>>;
335
375
  text: string;
336
376
  type: "text";
@@ -345,6 +385,10 @@ export type Mounts = {
345
385
  data: string | ArrayBuffer;
346
386
  filename?: string;
347
387
  mimeType: string;
388
+ providerMetadata?: Record<
389
+ string,
390
+ Record<string, any>
391
+ >;
348
392
  providerOptions?: Record<string, Record<string, any>>;
349
393
  type: "file";
350
394
  }
@@ -357,6 +401,10 @@ export type Mounts = {
357
401
  | string
358
402
  | Array<
359
403
  | {
404
+ providerMetadata?: Record<
405
+ string,
406
+ Record<string, any>
407
+ >;
360
408
  providerOptions?: Record<string, Record<string, any>>;
361
409
  text: string;
362
410
  type: "text";
@@ -365,10 +413,18 @@ export type Mounts = {
365
413
  data: string | ArrayBuffer;
366
414
  filename?: string;
367
415
  mimeType: string;
416
+ providerMetadata?: Record<
417
+ string,
418
+ Record<string, any>
419
+ >;
368
420
  providerOptions?: Record<string, Record<string, any>>;
369
421
  type: "file";
370
422
  }
371
423
  | {
424
+ providerMetadata?: Record<
425
+ string,
426
+ Record<string, any>
427
+ >;
372
428
  providerOptions?: Record<string, Record<string, any>>;
373
429
  signature?: string;
374
430
  text: string;
@@ -376,12 +432,20 @@ export type Mounts = {
376
432
  }
377
433
  | {
378
434
  data: string;
435
+ providerMetadata?: Record<
436
+ string,
437
+ Record<string, any>
438
+ >;
379
439
  providerOptions?: Record<string, Record<string, any>>;
380
440
  type: "redacted-reasoning";
381
441
  }
382
442
  | {
383
443
  args: any;
384
444
  providerExecuted?: boolean;
445
+ providerMetadata?: Record<
446
+ string,
447
+ Record<string, any>
448
+ >;
385
449
  providerOptions?: Record<string, Record<string, any>>;
386
450
  toolCallId: string;
387
451
  toolName: string;
@@ -395,6 +459,10 @@ export type Mounts = {
395
459
  >;
396
460
  isError?: boolean;
397
461
  providerExecuted?: boolean;
462
+ providerMetadata?: Record<
463
+ string,
464
+ Record<string, any>
465
+ >;
398
466
  providerOptions?: Record<string, Record<string, any>>;
399
467
  result: any;
400
468
  toolCallId: string;
@@ -414,6 +482,7 @@ export type Mounts = {
414
482
  >;
415
483
  isError?: boolean;
416
484
  providerExecuted?: boolean;
485
+ providerMetadata?: Record<string, Record<string, any>>;
417
486
  providerOptions?: Record<string, Record<string, any>>;
418
487
  result: any;
419
488
  toolCallId: string;
@@ -436,6 +505,7 @@ export type Mounts = {
436
505
  reasoning?: string;
437
506
  reasoningDetails?: Array<
438
507
  | {
508
+ providerMetadata?: Record<string, Record<string, any>>;
439
509
  providerOptions?: Record<string, Record<string, any>>;
440
510
  signature?: string;
441
511
  text: string;
@@ -447,6 +517,7 @@ export type Mounts = {
447
517
  sources?: Array<
448
518
  | {
449
519
  id: string;
520
+ providerMetadata?: Record<string, Record<string, any>>;
450
521
  providerOptions?: Record<string, Record<string, any>>;
451
522
  sourceType: "url";
452
523
  title?: string;
@@ -458,6 +529,7 @@ export type Mounts = {
458
529
  id: string;
459
530
  mediaType: string;
460
531
  providerMetadata?: Record<string, Record<string, any>>;
532
+ providerOptions?: Record<string, Record<string, any>>;
461
533
  sourceType: "document";
462
534
  title: string;
463
535
  type: "source";
@@ -537,6 +609,7 @@ export type Mounts = {
537
609
  | string
538
610
  | Array<
539
611
  | {
612
+ providerMetadata?: Record<string, Record<string, any>>;
540
613
  providerOptions?: Record<string, Record<string, any>>;
541
614
  text: string;
542
615
  type: "text";
@@ -551,6 +624,7 @@ export type Mounts = {
551
624
  data: string | ArrayBuffer;
552
625
  filename?: string;
553
626
  mimeType: string;
627
+ providerMetadata?: Record<string, Record<string, any>>;
554
628
  providerOptions?: Record<string, Record<string, any>>;
555
629
  type: "file";
556
630
  }
@@ -563,6 +637,7 @@ export type Mounts = {
563
637
  | string
564
638
  | Array<
565
639
  | {
640
+ providerMetadata?: Record<string, Record<string, any>>;
566
641
  providerOptions?: Record<string, Record<string, any>>;
567
642
  text: string;
568
643
  type: "text";
@@ -571,10 +646,12 @@ export type Mounts = {
571
646
  data: string | ArrayBuffer;
572
647
  filename?: string;
573
648
  mimeType: string;
649
+ providerMetadata?: Record<string, Record<string, any>>;
574
650
  providerOptions?: Record<string, Record<string, any>>;
575
651
  type: "file";
576
652
  }
577
653
  | {
654
+ providerMetadata?: Record<string, Record<string, any>>;
578
655
  providerOptions?: Record<string, Record<string, any>>;
579
656
  signature?: string;
580
657
  text: string;
@@ -582,12 +659,14 @@ export type Mounts = {
582
659
  }
583
660
  | {
584
661
  data: string;
662
+ providerMetadata?: Record<string, Record<string, any>>;
585
663
  providerOptions?: Record<string, Record<string, any>>;
586
664
  type: "redacted-reasoning";
587
665
  }
588
666
  | {
589
667
  args: any;
590
668
  providerExecuted?: boolean;
669
+ providerMetadata?: Record<string, Record<string, any>>;
591
670
  providerOptions?: Record<string, Record<string, any>>;
592
671
  toolCallId: string;
593
672
  toolName: string;
@@ -601,6 +680,7 @@ export type Mounts = {
601
680
  >;
602
681
  isError?: boolean;
603
682
  providerExecuted?: boolean;
683
+ providerMetadata?: Record<string, Record<string, any>>;
604
684
  providerOptions?: Record<string, Record<string, any>>;
605
685
  result: any;
606
686
  toolCallId: string;
@@ -620,6 +700,7 @@ export type Mounts = {
620
700
  >;
621
701
  isError?: boolean;
622
702
  providerExecuted?: boolean;
703
+ providerMetadata?: Record<string, Record<string, any>>;
623
704
  providerOptions?: Record<string, Record<string, any>>;
624
705
  result: any;
625
706
  toolCallId: string;
@@ -642,6 +723,7 @@ export type Mounts = {
642
723
  reasoning?: string;
643
724
  reasoningDetails?: Array<
644
725
  | {
726
+ providerMetadata?: Record<string, Record<string, any>>;
645
727
  providerOptions?: Record<string, Record<string, any>>;
646
728
  signature?: string;
647
729
  text: string;
@@ -653,6 +735,7 @@ export type Mounts = {
653
735
  sources?: Array<
654
736
  | {
655
737
  id: string;
738
+ providerMetadata?: Record<string, Record<string, any>>;
656
739
  providerOptions?: Record<string, Record<string, any>>;
657
740
  sourceType: "url";
658
741
  title?: string;
@@ -664,6 +747,7 @@ export type Mounts = {
664
747
  id: string;
665
748
  mediaType: string;
666
749
  providerMetadata?: Record<string, Record<string, any>>;
750
+ providerOptions?: Record<string, Record<string, any>>;
667
751
  sourceType: "document";
668
752
  title: string;
669
753
  type: "source";
@@ -732,6 +816,10 @@ export type Mounts = {
732
816
  | string
733
817
  | Array<
734
818
  | {
819
+ providerMetadata?: Record<
820
+ string,
821
+ Record<string, any>
822
+ >;
735
823
  providerOptions?: Record<string, Record<string, any>>;
736
824
  text: string;
737
825
  type: "text";
@@ -746,6 +834,10 @@ export type Mounts = {
746
834
  data: string | ArrayBuffer;
747
835
  filename?: string;
748
836
  mimeType: string;
837
+ providerMetadata?: Record<
838
+ string,
839
+ Record<string, any>
840
+ >;
749
841
  providerOptions?: Record<string, Record<string, any>>;
750
842
  type: "file";
751
843
  }
@@ -758,6 +850,10 @@ export type Mounts = {
758
850
  | string
759
851
  | Array<
760
852
  | {
853
+ providerMetadata?: Record<
854
+ string,
855
+ Record<string, any>
856
+ >;
761
857
  providerOptions?: Record<string, Record<string, any>>;
762
858
  text: string;
763
859
  type: "text";
@@ -766,10 +862,18 @@ export type Mounts = {
766
862
  data: string | ArrayBuffer;
767
863
  filename?: string;
768
864
  mimeType: string;
865
+ providerMetadata?: Record<
866
+ string,
867
+ Record<string, any>
868
+ >;
769
869
  providerOptions?: Record<string, Record<string, any>>;
770
870
  type: "file";
771
871
  }
772
872
  | {
873
+ providerMetadata?: Record<
874
+ string,
875
+ Record<string, any>
876
+ >;
773
877
  providerOptions?: Record<string, Record<string, any>>;
774
878
  signature?: string;
775
879
  text: string;
@@ -777,12 +881,20 @@ export type Mounts = {
777
881
  }
778
882
  | {
779
883
  data: string;
884
+ providerMetadata?: Record<
885
+ string,
886
+ Record<string, any>
887
+ >;
780
888
  providerOptions?: Record<string, Record<string, any>>;
781
889
  type: "redacted-reasoning";
782
890
  }
783
891
  | {
784
892
  args: any;
785
893
  providerExecuted?: boolean;
894
+ providerMetadata?: Record<
895
+ string,
896
+ Record<string, any>
897
+ >;
786
898
  providerOptions?: Record<string, Record<string, any>>;
787
899
  toolCallId: string;
788
900
  toolName: string;
@@ -796,6 +908,10 @@ export type Mounts = {
796
908
  >;
797
909
  isError?: boolean;
798
910
  providerExecuted?: boolean;
911
+ providerMetadata?: Record<
912
+ string,
913
+ Record<string, any>
914
+ >;
799
915
  providerOptions?: Record<string, Record<string, any>>;
800
916
  result: any;
801
917
  toolCallId: string;
@@ -815,6 +931,7 @@ export type Mounts = {
815
931
  >;
816
932
  isError?: boolean;
817
933
  providerExecuted?: boolean;
934
+ providerMetadata?: Record<string, Record<string, any>>;
818
935
  providerOptions?: Record<string, Record<string, any>>;
819
936
  result: any;
820
937
  toolCallId: string;
@@ -837,6 +954,7 @@ export type Mounts = {
837
954
  reasoning?: string;
838
955
  reasoningDetails?: Array<
839
956
  | {
957
+ providerMetadata?: Record<string, Record<string, any>>;
840
958
  providerOptions?: Record<string, Record<string, any>>;
841
959
  signature?: string;
842
960
  text: string;
@@ -848,6 +966,7 @@ export type Mounts = {
848
966
  sources?: Array<
849
967
  | {
850
968
  id: string;
969
+ providerMetadata?: Record<string, Record<string, any>>;
851
970
  providerOptions?: Record<string, Record<string, any>>;
852
971
  sourceType: "url";
853
972
  title?: string;
@@ -859,6 +978,7 @@ export type Mounts = {
859
978
  id: string;
860
979
  mediaType: string;
861
980
  providerMetadata?: Record<string, Record<string, any>>;
981
+ providerOptions?: Record<string, Record<string, any>>;
862
982
  sourceType: "document";
863
983
  title: string;
864
984
  type: "source";
@@ -923,6 +1043,7 @@ export type Mounts = {
923
1043
  | string
924
1044
  | Array<
925
1045
  | {
1046
+ providerMetadata?: Record<string, Record<string, any>>;
926
1047
  providerOptions?: Record<string, Record<string, any>>;
927
1048
  text: string;
928
1049
  type: "text";
@@ -937,6 +1058,7 @@ export type Mounts = {
937
1058
  data: string | ArrayBuffer;
938
1059
  filename?: string;
939
1060
  mimeType: string;
1061
+ providerMetadata?: Record<string, Record<string, any>>;
940
1062
  providerOptions?: Record<string, Record<string, any>>;
941
1063
  type: "file";
942
1064
  }
@@ -949,6 +1071,7 @@ export type Mounts = {
949
1071
  | string
950
1072
  | Array<
951
1073
  | {
1074
+ providerMetadata?: Record<string, Record<string, any>>;
952
1075
  providerOptions?: Record<string, Record<string, any>>;
953
1076
  text: string;
954
1077
  type: "text";
@@ -957,10 +1080,12 @@ export type Mounts = {
957
1080
  data: string | ArrayBuffer;
958
1081
  filename?: string;
959
1082
  mimeType: string;
1083
+ providerMetadata?: Record<string, Record<string, any>>;
960
1084
  providerOptions?: Record<string, Record<string, any>>;
961
1085
  type: "file";
962
1086
  }
963
1087
  | {
1088
+ providerMetadata?: Record<string, Record<string, any>>;
964
1089
  providerOptions?: Record<string, Record<string, any>>;
965
1090
  signature?: string;
966
1091
  text: string;
@@ -968,12 +1093,14 @@ export type Mounts = {
968
1093
  }
969
1094
  | {
970
1095
  data: string;
1096
+ providerMetadata?: Record<string, Record<string, any>>;
971
1097
  providerOptions?: Record<string, Record<string, any>>;
972
1098
  type: "redacted-reasoning";
973
1099
  }
974
1100
  | {
975
1101
  args: any;
976
1102
  providerExecuted?: boolean;
1103
+ providerMetadata?: Record<string, Record<string, any>>;
977
1104
  providerOptions?: Record<string, Record<string, any>>;
978
1105
  toolCallId: string;
979
1106
  toolName: string;
@@ -987,6 +1114,7 @@ export type Mounts = {
987
1114
  >;
988
1115
  isError?: boolean;
989
1116
  providerExecuted?: boolean;
1117
+ providerMetadata?: Record<string, Record<string, any>>;
990
1118
  providerOptions?: Record<string, Record<string, any>>;
991
1119
  result: any;
992
1120
  toolCallId: string;
@@ -1006,6 +1134,7 @@ export type Mounts = {
1006
1134
  >;
1007
1135
  isError?: boolean;
1008
1136
  providerExecuted?: boolean;
1137
+ providerMetadata?: Record<string, Record<string, any>>;
1009
1138
  providerOptions?: Record<string, Record<string, any>>;
1010
1139
  result: any;
1011
1140
  toolCallId: string;
@@ -1028,6 +1157,7 @@ export type Mounts = {
1028
1157
  reasoning?: string;
1029
1158
  reasoningDetails?: Array<
1030
1159
  | {
1160
+ providerMetadata?: Record<string, Record<string, any>>;
1031
1161
  providerOptions?: Record<string, Record<string, any>>;
1032
1162
  signature?: string;
1033
1163
  text: string;
@@ -1039,6 +1169,7 @@ export type Mounts = {
1039
1169
  sources?: Array<
1040
1170
  | {
1041
1171
  id: string;
1172
+ providerMetadata?: Record<string, Record<string, any>>;
1042
1173
  providerOptions?: Record<string, Record<string, any>>;
1043
1174
  sourceType: "url";
1044
1175
  title?: string;
@@ -1050,6 +1181,7 @@ export type Mounts = {
1050
1181
  id: string;
1051
1182
  mediaType: string;
1052
1183
  providerMetadata?: Record<string, Record<string, any>>;
1184
+ providerOptions?: Record<string, Record<string, any>>;
1053
1185
  sourceType: "document";
1054
1186
  title: string;
1055
1187
  type: "source";
@@ -1107,6 +1239,7 @@ export type Mounts = {
1107
1239
  | string
1108
1240
  | Array<
1109
1241
  | {
1242
+ providerMetadata?: Record<string, Record<string, any>>;
1110
1243
  providerOptions?: Record<string, Record<string, any>>;
1111
1244
  text: string;
1112
1245
  type: "text";
@@ -1121,6 +1254,7 @@ export type Mounts = {
1121
1254
  data: string | ArrayBuffer;
1122
1255
  filename?: string;
1123
1256
  mimeType: string;
1257
+ providerMetadata?: Record<string, Record<string, any>>;
1124
1258
  providerOptions?: Record<string, Record<string, any>>;
1125
1259
  type: "file";
1126
1260
  }
@@ -1133,6 +1267,7 @@ export type Mounts = {
1133
1267
  | string
1134
1268
  | Array<
1135
1269
  | {
1270
+ providerMetadata?: Record<string, Record<string, any>>;
1136
1271
  providerOptions?: Record<string, Record<string, any>>;
1137
1272
  text: string;
1138
1273
  type: "text";
@@ -1141,10 +1276,12 @@ export type Mounts = {
1141
1276
  data: string | ArrayBuffer;
1142
1277
  filename?: string;
1143
1278
  mimeType: string;
1279
+ providerMetadata?: Record<string, Record<string, any>>;
1144
1280
  providerOptions?: Record<string, Record<string, any>>;
1145
1281
  type: "file";
1146
1282
  }
1147
1283
  | {
1284
+ providerMetadata?: Record<string, Record<string, any>>;
1148
1285
  providerOptions?: Record<string, Record<string, any>>;
1149
1286
  signature?: string;
1150
1287
  text: string;
@@ -1152,12 +1289,14 @@ export type Mounts = {
1152
1289
  }
1153
1290
  | {
1154
1291
  data: string;
1292
+ providerMetadata?: Record<string, Record<string, any>>;
1155
1293
  providerOptions?: Record<string, Record<string, any>>;
1156
1294
  type: "redacted-reasoning";
1157
1295
  }
1158
1296
  | {
1159
1297
  args: any;
1160
1298
  providerExecuted?: boolean;
1299
+ providerMetadata?: Record<string, Record<string, any>>;
1161
1300
  providerOptions?: Record<string, Record<string, any>>;
1162
1301
  toolCallId: string;
1163
1302
  toolName: string;
@@ -1171,6 +1310,7 @@ export type Mounts = {
1171
1310
  >;
1172
1311
  isError?: boolean;
1173
1312
  providerExecuted?: boolean;
1313
+ providerMetadata?: Record<string, Record<string, any>>;
1174
1314
  providerOptions?: Record<string, Record<string, any>>;
1175
1315
  result: any;
1176
1316
  toolCallId: string;
@@ -1190,6 +1330,7 @@ export type Mounts = {
1190
1330
  >;
1191
1331
  isError?: boolean;
1192
1332
  providerExecuted?: boolean;
1333
+ providerMetadata?: Record<string, Record<string, any>>;
1193
1334
  providerOptions?: Record<string, Record<string, any>>;
1194
1335
  result: any;
1195
1336
  toolCallId: string;
@@ -1212,6 +1353,7 @@ export type Mounts = {
1212
1353
  reasoning?: string;
1213
1354
  reasoningDetails?: Array<
1214
1355
  | {
1356
+ providerMetadata?: Record<string, Record<string, any>>;
1215
1357
  providerOptions?: Record<string, Record<string, any>>;
1216
1358
  signature?: string;
1217
1359
  text: string;
@@ -1223,6 +1365,7 @@ export type Mounts = {
1223
1365
  sources?: Array<
1224
1366
  | {
1225
1367
  id: string;
1368
+ providerMetadata?: Record<string, Record<string, any>>;
1226
1369
  providerOptions?: Record<string, Record<string, any>>;
1227
1370
  sourceType: "url";
1228
1371
  title?: string;
@@ -1234,6 +1377,7 @@ export type Mounts = {
1234
1377
  id: string;
1235
1378
  mediaType: string;
1236
1379
  providerMetadata?: Record<string, Record<string, any>>;
1380
+ providerOptions?: Record<string, Record<string, any>>;
1237
1381
  sourceType: "document";
1238
1382
  title: string;
1239
1383
  type: "source";
@@ -1281,6 +1425,10 @@ export type Mounts = {
1281
1425
  | string
1282
1426
  | Array<
1283
1427
  | {
1428
+ providerMetadata?: Record<
1429
+ string,
1430
+ Record<string, any>
1431
+ >;
1284
1432
  providerOptions?: Record<string, Record<string, any>>;
1285
1433
  text: string;
1286
1434
  type: "text";
@@ -1295,6 +1443,10 @@ export type Mounts = {
1295
1443
  data: string | ArrayBuffer;
1296
1444
  filename?: string;
1297
1445
  mimeType: string;
1446
+ providerMetadata?: Record<
1447
+ string,
1448
+ Record<string, any>
1449
+ >;
1298
1450
  providerOptions?: Record<string, Record<string, any>>;
1299
1451
  type: "file";
1300
1452
  }
@@ -1307,6 +1459,10 @@ export type Mounts = {
1307
1459
  | string
1308
1460
  | Array<
1309
1461
  | {
1462
+ providerMetadata?: Record<
1463
+ string,
1464
+ Record<string, any>
1465
+ >;
1310
1466
  providerOptions?: Record<string, Record<string, any>>;
1311
1467
  text: string;
1312
1468
  type: "text";
@@ -1315,10 +1471,18 @@ export type Mounts = {
1315
1471
  data: string | ArrayBuffer;
1316
1472
  filename?: string;
1317
1473
  mimeType: string;
1474
+ providerMetadata?: Record<
1475
+ string,
1476
+ Record<string, any>
1477
+ >;
1318
1478
  providerOptions?: Record<string, Record<string, any>>;
1319
1479
  type: "file";
1320
1480
  }
1321
1481
  | {
1482
+ providerMetadata?: Record<
1483
+ string,
1484
+ Record<string, any>
1485
+ >;
1322
1486
  providerOptions?: Record<string, Record<string, any>>;
1323
1487
  signature?: string;
1324
1488
  text: string;
@@ -1326,12 +1490,20 @@ export type Mounts = {
1326
1490
  }
1327
1491
  | {
1328
1492
  data: string;
1493
+ providerMetadata?: Record<
1494
+ string,
1495
+ Record<string, any>
1496
+ >;
1329
1497
  providerOptions?: Record<string, Record<string, any>>;
1330
1498
  type: "redacted-reasoning";
1331
1499
  }
1332
1500
  | {
1333
1501
  args: any;
1334
1502
  providerExecuted?: boolean;
1503
+ providerMetadata?: Record<
1504
+ string,
1505
+ Record<string, any>
1506
+ >;
1335
1507
  providerOptions?: Record<string, Record<string, any>>;
1336
1508
  toolCallId: string;
1337
1509
  toolName: string;
@@ -1345,6 +1517,10 @@ export type Mounts = {
1345
1517
  >;
1346
1518
  isError?: boolean;
1347
1519
  providerExecuted?: boolean;
1520
+ providerMetadata?: Record<
1521
+ string,
1522
+ Record<string, any>
1523
+ >;
1348
1524
  providerOptions?: Record<string, Record<string, any>>;
1349
1525
  result: any;
1350
1526
  toolCallId: string;
@@ -1364,6 +1540,7 @@ export type Mounts = {
1364
1540
  >;
1365
1541
  isError?: boolean;
1366
1542
  providerExecuted?: boolean;
1543
+ providerMetadata?: Record<string, Record<string, any>>;
1367
1544
  providerOptions?: Record<string, Record<string, any>>;
1368
1545
  result: any;
1369
1546
  toolCallId: string;
@@ -1406,6 +1583,7 @@ export type Mounts = {
1406
1583
  | string
1407
1584
  | Array<
1408
1585
  | {
1586
+ providerMetadata?: Record<string, Record<string, any>>;
1409
1587
  providerOptions?: Record<string, Record<string, any>>;
1410
1588
  text: string;
1411
1589
  type: "text";
@@ -1420,6 +1598,7 @@ export type Mounts = {
1420
1598
  data: string | ArrayBuffer;
1421
1599
  filename?: string;
1422
1600
  mimeType: string;
1601
+ providerMetadata?: Record<string, Record<string, any>>;
1423
1602
  providerOptions?: Record<string, Record<string, any>>;
1424
1603
  type: "file";
1425
1604
  }
@@ -1432,6 +1611,7 @@ export type Mounts = {
1432
1611
  | string
1433
1612
  | Array<
1434
1613
  | {
1614
+ providerMetadata?: Record<string, Record<string, any>>;
1435
1615
  providerOptions?: Record<string, Record<string, any>>;
1436
1616
  text: string;
1437
1617
  type: "text";
@@ -1440,10 +1620,12 @@ export type Mounts = {
1440
1620
  data: string | ArrayBuffer;
1441
1621
  filename?: string;
1442
1622
  mimeType: string;
1623
+ providerMetadata?: Record<string, Record<string, any>>;
1443
1624
  providerOptions?: Record<string, Record<string, any>>;
1444
1625
  type: "file";
1445
1626
  }
1446
1627
  | {
1628
+ providerMetadata?: Record<string, Record<string, any>>;
1447
1629
  providerOptions?: Record<string, Record<string, any>>;
1448
1630
  signature?: string;
1449
1631
  text: string;
@@ -1451,12 +1633,14 @@ export type Mounts = {
1451
1633
  }
1452
1634
  | {
1453
1635
  data: string;
1636
+ providerMetadata?: Record<string, Record<string, any>>;
1454
1637
  providerOptions?: Record<string, Record<string, any>>;
1455
1638
  type: "redacted-reasoning";
1456
1639
  }
1457
1640
  | {
1458
1641
  args: any;
1459
1642
  providerExecuted?: boolean;
1643
+ providerMetadata?: Record<string, Record<string, any>>;
1460
1644
  providerOptions?: Record<string, Record<string, any>>;
1461
1645
  toolCallId: string;
1462
1646
  toolName: string;
@@ -1470,6 +1654,7 @@ export type Mounts = {
1470
1654
  >;
1471
1655
  isError?: boolean;
1472
1656
  providerExecuted?: boolean;
1657
+ providerMetadata?: Record<string, Record<string, any>>;
1473
1658
  providerOptions?: Record<string, Record<string, any>>;
1474
1659
  result: any;
1475
1660
  toolCallId: string;
@@ -1489,6 +1674,7 @@ export type Mounts = {
1489
1674
  >;
1490
1675
  isError?: boolean;
1491
1676
  providerExecuted?: boolean;
1677
+ providerMetadata?: Record<string, Record<string, any>>;
1492
1678
  providerOptions?: Record<string, Record<string, any>>;
1493
1679
  result: any;
1494
1680
  toolCallId: string;
@@ -1511,6 +1697,7 @@ export type Mounts = {
1511
1697
  reasoning?: string;
1512
1698
  reasoningDetails?: Array<
1513
1699
  | {
1700
+ providerMetadata?: Record<string, Record<string, any>>;
1514
1701
  providerOptions?: Record<string, Record<string, any>>;
1515
1702
  signature?: string;
1516
1703
  text: string;
@@ -1522,6 +1709,7 @@ export type Mounts = {
1522
1709
  sources?: Array<
1523
1710
  | {
1524
1711
  id: string;
1712
+ providerMetadata?: Record<string, Record<string, any>>;
1525
1713
  providerOptions?: Record<string, Record<string, any>>;
1526
1714
  sourceType: "url";
1527
1715
  title?: string;
@@ -1533,6 +1721,7 @@ export type Mounts = {
1533
1721
  id: string;
1534
1722
  mediaType: string;
1535
1723
  providerMetadata?: Record<string, Record<string, any>>;
1724
+ providerOptions?: Record<string, Record<string, any>>;
1536
1725
  sourceType: "document";
1537
1726
  title: string;
1538
1727
  type: "source";