@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
@@ -35,6 +35,7 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
35
35
  model?: string | undefined;
36
36
  provider?: string | undefined;
37
37
  text?: string | undefined;
38
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
38
39
  reasoning?: string | undefined;
39
40
  usage?: {
40
41
  reasoningTokens?: number | undefined;
@@ -43,17 +44,18 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
43
44
  completionTokens: number;
44
45
  totalTokens: number;
45
46
  } | undefined;
46
- providerMetadata?: Record<string, Record<string, any>> | undefined;
47
47
  sources?: ({
48
48
  title?: string | undefined;
49
49
  type?: "source" | undefined;
50
50
  providerOptions?: Record<string, Record<string, any>> | undefined;
51
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
51
52
  id: string;
52
53
  sourceType: "url";
53
54
  url: string;
54
55
  } | {
55
- filename?: string | undefined;
56
+ providerOptions?: Record<string, Record<string, any>> | undefined;
56
57
  providerMetadata?: Record<string, Record<string, any>> | undefined;
58
+ filename?: string | undefined;
57
59
  id: string;
58
60
  title: string;
59
61
  type: "source";
@@ -75,6 +77,7 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
75
77
  finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
76
78
  reasoningDetails?: ({
77
79
  providerOptions?: Record<string, Record<string, any>> | undefined;
80
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
78
81
  signature?: string | undefined;
79
82
  type: "reasoning";
80
83
  text: string;
@@ -91,6 +94,7 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
91
94
  role: "user";
92
95
  content: string | ({
93
96
  providerOptions?: Record<string, Record<string, any>> | undefined;
97
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
94
98
  type: "text";
95
99
  text: string;
96
100
  } | {
@@ -100,6 +104,7 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
100
104
  image: string | ArrayBuffer;
101
105
  } | {
102
106
  providerOptions?: Record<string, Record<string, any>> | undefined;
107
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
103
108
  filename?: string | undefined;
104
109
  type: "file";
105
110
  mimeType: string;
@@ -110,25 +115,30 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
110
115
  role: "assistant";
111
116
  content: string | ({
112
117
  providerOptions?: Record<string, Record<string, any>> | undefined;
118
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
113
119
  type: "text";
114
120
  text: string;
115
121
  } | {
116
122
  providerOptions?: Record<string, Record<string, any>> | undefined;
123
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
117
124
  filename?: string | undefined;
118
125
  type: "file";
119
126
  mimeType: string;
120
127
  data: string | ArrayBuffer;
121
128
  } | {
122
129
  providerOptions?: Record<string, Record<string, any>> | undefined;
130
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
123
131
  signature?: string | undefined;
124
132
  type: "reasoning";
125
133
  text: string;
126
134
  } | {
127
135
  providerOptions?: Record<string, Record<string, any>> | undefined;
136
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
128
137
  type: "redacted-reasoning";
129
138
  data: string;
130
139
  } | {
131
140
  providerOptions?: Record<string, Record<string, any>> | undefined;
141
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
132
142
  providerExecuted?: boolean | undefined;
133
143
  type: "tool-call";
134
144
  toolCallId: string;
@@ -136,6 +146,7 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
136
146
  args: any;
137
147
  } | {
138
148
  providerOptions?: Record<string, Record<string, any>> | undefined;
149
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
139
150
  args?: any;
140
151
  providerExecuted?: boolean | undefined;
141
152
  isError?: boolean | undefined;
@@ -157,6 +168,7 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
157
168
  role: "tool";
158
169
  content: {
159
170
  providerOptions?: Record<string, Record<string, any>> | undefined;
171
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
160
172
  args?: any;
161
173
  providerExecuted?: boolean | undefined;
162
174
  isError?: boolean | undefined;
@@ -195,6 +207,7 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
195
207
  role: "user";
196
208
  content: string | ({
197
209
  providerOptions?: Record<string, Record<string, any>> | undefined;
210
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
198
211
  type: "text";
199
212
  text: string;
200
213
  } | {
@@ -204,6 +217,7 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
204
217
  image: string | ArrayBuffer;
205
218
  } | {
206
219
  providerOptions?: Record<string, Record<string, any>> | undefined;
220
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
207
221
  filename?: string | undefined;
208
222
  type: "file";
209
223
  mimeType: string;
@@ -214,25 +228,30 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
214
228
  role: "assistant";
215
229
  content: string | ({
216
230
  providerOptions?: Record<string, Record<string, any>> | undefined;
231
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
217
232
  type: "text";
218
233
  text: string;
219
234
  } | {
220
235
  providerOptions?: Record<string, Record<string, any>> | undefined;
236
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
221
237
  filename?: string | undefined;
222
238
  type: "file";
223
239
  mimeType: string;
224
240
  data: string | ArrayBuffer;
225
241
  } | {
226
242
  providerOptions?: Record<string, Record<string, any>> | undefined;
243
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
227
244
  signature?: string | undefined;
228
245
  type: "reasoning";
229
246
  text: string;
230
247
  } | {
231
248
  providerOptions?: Record<string, Record<string, any>> | undefined;
249
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
232
250
  type: "redacted-reasoning";
233
251
  data: string;
234
252
  } | {
235
253
  providerOptions?: Record<string, Record<string, any>> | undefined;
254
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
236
255
  providerExecuted?: boolean | undefined;
237
256
  type: "tool-call";
238
257
  toolCallId: string;
@@ -240,6 +259,7 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
240
259
  args: any;
241
260
  } | {
242
261
  providerOptions?: Record<string, Record<string, any>> | undefined;
262
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
243
263
  args?: any;
244
264
  providerExecuted?: boolean | undefined;
245
265
  isError?: boolean | undefined;
@@ -261,6 +281,7 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
261
281
  role: "tool";
262
282
  content: {
263
283
  providerOptions?: Record<string, Record<string, any>> | undefined;
284
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
264
285
  args?: any;
265
286
  providerExecuted?: boolean | undefined;
266
287
  isError?: boolean | undefined;
@@ -283,6 +304,7 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
283
304
  content: string;
284
305
  } | undefined;
285
306
  text?: string | undefined;
307
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
286
308
  reasoning?: string | undefined;
287
309
  usage?: {
288
310
  reasoningTokens?: number | undefined;
@@ -291,17 +313,18 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
291
313
  completionTokens: number;
292
314
  totalTokens: number;
293
315
  } | undefined;
294
- providerMetadata?: Record<string, Record<string, any>> | undefined;
295
316
  sources?: ({
296
317
  title?: string | undefined;
297
318
  type?: "source" | undefined;
298
319
  providerOptions?: Record<string, Record<string, any>> | undefined;
320
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
299
321
  id: string;
300
322
  sourceType: "url";
301
323
  url: string;
302
324
  } | {
303
- filename?: string | undefined;
325
+ providerOptions?: Record<string, Record<string, any>> | undefined;
304
326
  providerMetadata?: Record<string, Record<string, any>> | undefined;
327
+ filename?: string | undefined;
305
328
  id: string;
306
329
  title: string;
307
330
  type: "source";
@@ -323,6 +346,7 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
323
346
  finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
324
347
  reasoningDetails?: ({
325
348
  providerOptions?: Record<string, Record<string, any>> | undefined;
349
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
326
350
  signature?: string | undefined;
327
351
  type: "reasoning";
328
352
  text: string;
@@ -361,6 +385,7 @@ export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, or
361
385
  role: "user";
362
386
  content: string | ({
363
387
  providerOptions?: Record<string, Record<string, any>> | undefined;
388
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
364
389
  type: "text";
365
390
  text: string;
366
391
  } | {
@@ -370,6 +395,7 @@ export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, or
370
395
  image: string | ArrayBuffer;
371
396
  } | {
372
397
  providerOptions?: Record<string, Record<string, any>> | undefined;
398
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
373
399
  filename?: string | undefined;
374
400
  type: "file";
375
401
  mimeType: string;
@@ -380,25 +406,30 @@ export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, or
380
406
  role: "assistant";
381
407
  content: string | ({
382
408
  providerOptions?: Record<string, Record<string, any>> | undefined;
409
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
383
410
  type: "text";
384
411
  text: string;
385
412
  } | {
386
413
  providerOptions?: Record<string, Record<string, any>> | undefined;
414
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
387
415
  filename?: string | undefined;
388
416
  type: "file";
389
417
  mimeType: string;
390
418
  data: string | ArrayBuffer;
391
419
  } | {
392
420
  providerOptions?: Record<string, Record<string, any>> | undefined;
421
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
393
422
  signature?: string | undefined;
394
423
  type: "reasoning";
395
424
  text: string;
396
425
  } | {
397
426
  providerOptions?: Record<string, Record<string, any>> | undefined;
427
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
398
428
  type: "redacted-reasoning";
399
429
  data: string;
400
430
  } | {
401
431
  providerOptions?: Record<string, Record<string, any>> | undefined;
432
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
402
433
  providerExecuted?: boolean | undefined;
403
434
  type: "tool-call";
404
435
  toolCallId: string;
@@ -406,6 +437,7 @@ export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, or
406
437
  args: any;
407
438
  } | {
408
439
  providerOptions?: Record<string, Record<string, any>> | undefined;
440
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
409
441
  args?: any;
410
442
  providerExecuted?: boolean | undefined;
411
443
  isError?: boolean | undefined;
@@ -427,6 +459,7 @@ export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, or
427
459
  role: "tool";
428
460
  content: {
429
461
  providerOptions?: Record<string, Record<string, any>> | undefined;
462
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
430
463
  args?: any;
431
464
  providerExecuted?: boolean | undefined;
432
465
  isError?: boolean | undefined;
@@ -449,6 +482,7 @@ export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, or
449
482
  content: string;
450
483
  } | undefined;
451
484
  text?: string | undefined;
485
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
452
486
  reasoning?: string | undefined;
453
487
  usage?: {
454
488
  reasoningTokens?: number | undefined;
@@ -457,17 +491,18 @@ export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, or
457
491
  completionTokens: number;
458
492
  totalTokens: number;
459
493
  } | undefined;
460
- providerMetadata?: Record<string, Record<string, any>> | undefined;
461
494
  sources?: ({
462
495
  title?: string | undefined;
463
496
  type?: "source" | undefined;
464
497
  providerOptions?: Record<string, Record<string, any>> | undefined;
498
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
465
499
  id: string;
466
500
  sourceType: "url";
467
501
  url: string;
468
502
  } | {
469
- filename?: string | undefined;
503
+ providerOptions?: Record<string, Record<string, any>> | undefined;
470
504
  providerMetadata?: Record<string, Record<string, any>> | undefined;
505
+ filename?: string | undefined;
471
506
  id: string;
472
507
  title: string;
473
508
  type: "source";
@@ -489,6 +524,7 @@ export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, or
489
524
  finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
490
525
  reasoningDetails?: ({
491
526
  providerOptions?: Record<string, Record<string, any>> | undefined;
527
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
492
528
  signature?: string | undefined;
493
529
  type: "reasoning";
494
530
  text: string;
@@ -531,6 +567,7 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
531
567
  role: "user";
532
568
  content: string | ({
533
569
  providerOptions?: Record<string, Record<string, any>> | undefined;
570
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
534
571
  type: "text";
535
572
  text: string;
536
573
  } | {
@@ -540,6 +577,7 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
540
577
  image: string | ArrayBuffer;
541
578
  } | {
542
579
  providerOptions?: Record<string, Record<string, any>> | undefined;
580
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
543
581
  filename?: string | undefined;
544
582
  type: "file";
545
583
  mimeType: string;
@@ -550,25 +588,30 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
550
588
  role: "assistant";
551
589
  content: string | ({
552
590
  providerOptions?: Record<string, Record<string, any>> | undefined;
591
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
553
592
  type: "text";
554
593
  text: string;
555
594
  } | {
556
595
  providerOptions?: Record<string, Record<string, any>> | undefined;
596
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
557
597
  filename?: string | undefined;
558
598
  type: "file";
559
599
  mimeType: string;
560
600
  data: string | ArrayBuffer;
561
601
  } | {
562
602
  providerOptions?: Record<string, Record<string, any>> | undefined;
603
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
563
604
  signature?: string | undefined;
564
605
  type: "reasoning";
565
606
  text: string;
566
607
  } | {
567
608
  providerOptions?: Record<string, Record<string, any>> | undefined;
609
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
568
610
  type: "redacted-reasoning";
569
611
  data: string;
570
612
  } | {
571
613
  providerOptions?: Record<string, Record<string, any>> | undefined;
614
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
572
615
  providerExecuted?: boolean | undefined;
573
616
  type: "tool-call";
574
617
  toolCallId: string;
@@ -576,6 +619,7 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
576
619
  args: any;
577
620
  } | {
578
621
  providerOptions?: Record<string, Record<string, any>> | undefined;
622
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
579
623
  args?: any;
580
624
  providerExecuted?: boolean | undefined;
581
625
  isError?: boolean | undefined;
@@ -597,6 +641,7 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
597
641
  role: "tool";
598
642
  content: {
599
643
  providerOptions?: Record<string, Record<string, any>> | undefined;
644
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
600
645
  args?: any;
601
646
  providerExecuted?: boolean | undefined;
602
647
  isError?: boolean | undefined;
@@ -635,6 +680,7 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
635
680
  role: "user";
636
681
  content: string | ({
637
682
  providerOptions?: Record<string, Record<string, any>> | undefined;
683
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
638
684
  type: "text";
639
685
  text: string;
640
686
  } | {
@@ -644,6 +690,7 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
644
690
  image: string | ArrayBuffer;
645
691
  } | {
646
692
  providerOptions?: Record<string, Record<string, any>> | undefined;
693
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
647
694
  filename?: string | undefined;
648
695
  type: "file";
649
696
  mimeType: string;
@@ -654,25 +701,30 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
654
701
  role: "assistant";
655
702
  content: string | ({
656
703
  providerOptions?: Record<string, Record<string, any>> | undefined;
704
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
657
705
  type: "text";
658
706
  text: string;
659
707
  } | {
660
708
  providerOptions?: Record<string, Record<string, any>> | undefined;
709
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
661
710
  filename?: string | undefined;
662
711
  type: "file";
663
712
  mimeType: string;
664
713
  data: string | ArrayBuffer;
665
714
  } | {
666
715
  providerOptions?: Record<string, Record<string, any>> | undefined;
716
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
667
717
  signature?: string | undefined;
668
718
  type: "reasoning";
669
719
  text: string;
670
720
  } | {
671
721
  providerOptions?: Record<string, Record<string, any>> | undefined;
722
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
672
723
  type: "redacted-reasoning";
673
724
  data: string;
674
725
  } | {
675
726
  providerOptions?: Record<string, Record<string, any>> | undefined;
727
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
676
728
  providerExecuted?: boolean | undefined;
677
729
  type: "tool-call";
678
730
  toolCallId: string;
@@ -680,6 +732,7 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
680
732
  args: any;
681
733
  } | {
682
734
  providerOptions?: Record<string, Record<string, any>> | undefined;
735
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
683
736
  args?: any;
684
737
  providerExecuted?: boolean | undefined;
685
738
  isError?: boolean | undefined;
@@ -701,6 +754,7 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
701
754
  role: "tool";
702
755
  content: {
703
756
  providerOptions?: Record<string, Record<string, any>> | undefined;
757
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
704
758
  args?: any;
705
759
  providerExecuted?: boolean | undefined;
706
760
  isError?: boolean | undefined;
@@ -723,6 +777,7 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
723
777
  content: string;
724
778
  } | undefined;
725
779
  text?: string | undefined;
780
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
726
781
  reasoning?: string | undefined;
727
782
  usage?: {
728
783
  reasoningTokens?: number | undefined;
@@ -731,17 +786,18 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
731
786
  completionTokens: number;
732
787
  totalTokens: number;
733
788
  } | undefined;
734
- providerMetadata?: Record<string, Record<string, any>> | undefined;
735
789
  sources?: ({
736
790
  title?: string | undefined;
737
791
  type?: "source" | undefined;
738
792
  providerOptions?: Record<string, Record<string, any>> | undefined;
793
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
739
794
  id: string;
740
795
  sourceType: "url";
741
796
  url: string;
742
797
  } | {
743
- filename?: string | undefined;
798
+ providerOptions?: Record<string, Record<string, any>> | undefined;
744
799
  providerMetadata?: Record<string, Record<string, any>> | undefined;
800
+ filename?: string | undefined;
745
801
  id: string;
746
802
  title: string;
747
803
  type: "source";
@@ -763,6 +819,7 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
763
819
  finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
764
820
  reasoningDetails?: ({
765
821
  providerOptions?: Record<string, Record<string, any>> | undefined;
822
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
766
823
  signature?: string | undefined;
767
824
  type: "reasoning";
768
825
  text: string;
@@ -812,6 +869,7 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
812
869
  role: "user";
813
870
  content: string | ({
814
871
  providerOptions?: Record<string, Record<string, any>> | undefined;
872
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
815
873
  type: "text";
816
874
  text: string;
817
875
  } | {
@@ -821,6 +879,7 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
821
879
  image: string | ArrayBuffer;
822
880
  } | {
823
881
  providerOptions?: Record<string, Record<string, any>> | undefined;
882
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
824
883
  filename?: string | undefined;
825
884
  type: "file";
826
885
  mimeType: string;
@@ -831,25 +890,30 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
831
890
  role: "assistant";
832
891
  content: string | ({
833
892
  providerOptions?: Record<string, Record<string, any>> | undefined;
893
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
834
894
  type: "text";
835
895
  text: string;
836
896
  } | {
837
897
  providerOptions?: Record<string, Record<string, any>> | undefined;
898
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
838
899
  filename?: string | undefined;
839
900
  type: "file";
840
901
  mimeType: string;
841
902
  data: string | ArrayBuffer;
842
903
  } | {
843
904
  providerOptions?: Record<string, Record<string, any>> | undefined;
905
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
844
906
  signature?: string | undefined;
845
907
  type: "reasoning";
846
908
  text: string;
847
909
  } | {
848
910
  providerOptions?: Record<string, Record<string, any>> | undefined;
911
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
849
912
  type: "redacted-reasoning";
850
913
  data: string;
851
914
  } | {
852
915
  providerOptions?: Record<string, Record<string, any>> | undefined;
916
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
853
917
  providerExecuted?: boolean | undefined;
854
918
  type: "tool-call";
855
919
  toolCallId: string;
@@ -857,6 +921,7 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
857
921
  args: any;
858
922
  } | {
859
923
  providerOptions?: Record<string, Record<string, any>> | undefined;
924
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
860
925
  args?: any;
861
926
  providerExecuted?: boolean | undefined;
862
927
  isError?: boolean | undefined;
@@ -878,6 +943,7 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
878
943
  role: "tool";
879
944
  content: {
880
945
  providerOptions?: Record<string, Record<string, any>> | undefined;
946
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
881
947
  args?: any;
882
948
  providerExecuted?: boolean | undefined;
883
949
  isError?: boolean | undefined;
@@ -900,6 +966,7 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
900
966
  content: string;
901
967
  } | undefined;
902
968
  text?: string | undefined;
969
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
903
970
  reasoning?: string | undefined;
904
971
  usage?: {
905
972
  reasoningTokens?: number | undefined;
@@ -908,17 +975,18 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
908
975
  completionTokens: number;
909
976
  totalTokens: number;
910
977
  } | undefined;
911
- providerMetadata?: Record<string, Record<string, any>> | undefined;
912
978
  sources?: ({
913
979
  title?: string | undefined;
914
980
  type?: "source" | undefined;
915
981
  providerOptions?: Record<string, Record<string, any>> | undefined;
982
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
916
983
  id: string;
917
984
  sourceType: "url";
918
985
  url: string;
919
986
  } | {
920
- filename?: string | undefined;
987
+ providerOptions?: Record<string, Record<string, any>> | undefined;
921
988
  providerMetadata?: Record<string, Record<string, any>> | undefined;
989
+ filename?: string | undefined;
922
990
  id: string;
923
991
  title: string;
924
992
  type: "source";
@@ -940,6 +1008,7 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
940
1008
  finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
941
1009
  reasoningDetails?: ({
942
1010
  providerOptions?: Record<string, Record<string, any>> | undefined;
1011
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
943
1012
  signature?: string | undefined;
944
1013
  type: "reasoning";
945
1014
  text: string;
@@ -981,6 +1050,7 @@ export declare const getMessagesByIds: import("convex/server").RegisteredQuery<"
981
1050
  role: "user";
982
1051
  content: string | ({
983
1052
  providerOptions?: Record<string, Record<string, any>> | undefined;
1053
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
984
1054
  type: "text";
985
1055
  text: string;
986
1056
  } | {
@@ -990,6 +1060,7 @@ export declare const getMessagesByIds: import("convex/server").RegisteredQuery<"
990
1060
  image: string | ArrayBuffer;
991
1061
  } | {
992
1062
  providerOptions?: Record<string, Record<string, any>> | undefined;
1063
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
993
1064
  filename?: string | undefined;
994
1065
  type: "file";
995
1066
  mimeType: string;
@@ -1000,25 +1071,30 @@ export declare const getMessagesByIds: import("convex/server").RegisteredQuery<"
1000
1071
  role: "assistant";
1001
1072
  content: string | ({
1002
1073
  providerOptions?: Record<string, Record<string, any>> | undefined;
1074
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1003
1075
  type: "text";
1004
1076
  text: string;
1005
1077
  } | {
1006
1078
  providerOptions?: Record<string, Record<string, any>> | undefined;
1079
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1007
1080
  filename?: string | undefined;
1008
1081
  type: "file";
1009
1082
  mimeType: string;
1010
1083
  data: string | ArrayBuffer;
1011
1084
  } | {
1012
1085
  providerOptions?: Record<string, Record<string, any>> | undefined;
1086
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1013
1087
  signature?: string | undefined;
1014
1088
  type: "reasoning";
1015
1089
  text: string;
1016
1090
  } | {
1017
1091
  providerOptions?: Record<string, Record<string, any>> | undefined;
1092
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1018
1093
  type: "redacted-reasoning";
1019
1094
  data: string;
1020
1095
  } | {
1021
1096
  providerOptions?: Record<string, Record<string, any>> | undefined;
1097
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1022
1098
  providerExecuted?: boolean | undefined;
1023
1099
  type: "tool-call";
1024
1100
  toolCallId: string;
@@ -1026,6 +1102,7 @@ export declare const getMessagesByIds: import("convex/server").RegisteredQuery<"
1026
1102
  args: any;
1027
1103
  } | {
1028
1104
  providerOptions?: Record<string, Record<string, any>> | undefined;
1105
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1029
1106
  args?: any;
1030
1107
  providerExecuted?: boolean | undefined;
1031
1108
  isError?: boolean | undefined;
@@ -1047,6 +1124,7 @@ export declare const getMessagesByIds: import("convex/server").RegisteredQuery<"
1047
1124
  role: "tool";
1048
1125
  content: {
1049
1126
  providerOptions?: Record<string, Record<string, any>> | undefined;
1127
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1050
1128
  args?: any;
1051
1129
  providerExecuted?: boolean | undefined;
1052
1130
  isError?: boolean | undefined;
@@ -1069,6 +1147,7 @@ export declare const getMessagesByIds: import("convex/server").RegisteredQuery<"
1069
1147
  content: string;
1070
1148
  } | undefined;
1071
1149
  text?: string | undefined;
1150
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1072
1151
  reasoning?: string | undefined;
1073
1152
  usage?: {
1074
1153
  reasoningTokens?: number | undefined;
@@ -1077,17 +1156,18 @@ export declare const getMessagesByIds: import("convex/server").RegisteredQuery<"
1077
1156
  completionTokens: number;
1078
1157
  totalTokens: number;
1079
1158
  } | undefined;
1080
- providerMetadata?: Record<string, Record<string, any>> | undefined;
1081
1159
  sources?: ({
1082
1160
  title?: string | undefined;
1083
1161
  type?: "source" | undefined;
1084
1162
  providerOptions?: Record<string, Record<string, any>> | undefined;
1163
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1085
1164
  id: string;
1086
1165
  sourceType: "url";
1087
1166
  url: string;
1088
1167
  } | {
1089
- filename?: string | undefined;
1168
+ providerOptions?: Record<string, Record<string, any>> | undefined;
1090
1169
  providerMetadata?: Record<string, Record<string, any>> | undefined;
1170
+ filename?: string | undefined;
1091
1171
  id: string;
1092
1172
  title: string;
1093
1173
  type: "source";
@@ -1109,6 +1189,7 @@ export declare const getMessagesByIds: import("convex/server").RegisteredQuery<"
1109
1189
  finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
1110
1190
  reasoningDetails?: ({
1111
1191
  providerOptions?: Record<string, Record<string, any>> | undefined;
1192
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1112
1193
  signature?: string | undefined;
1113
1194
  type: "reasoning";
1114
1195
  text: string;
@@ -1156,6 +1237,7 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
1156
1237
  role: "user";
1157
1238
  content: string | ({
1158
1239
  providerOptions?: Record<string, Record<string, any>> | undefined;
1240
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1159
1241
  type: "text";
1160
1242
  text: string;
1161
1243
  } | {
@@ -1165,6 +1247,7 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
1165
1247
  image: string | ArrayBuffer;
1166
1248
  } | {
1167
1249
  providerOptions?: Record<string, Record<string, any>> | undefined;
1250
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1168
1251
  filename?: string | undefined;
1169
1252
  type: "file";
1170
1253
  mimeType: string;
@@ -1175,25 +1258,30 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
1175
1258
  role: "assistant";
1176
1259
  content: string | ({
1177
1260
  providerOptions?: Record<string, Record<string, any>> | undefined;
1261
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1178
1262
  type: "text";
1179
1263
  text: string;
1180
1264
  } | {
1181
1265
  providerOptions?: Record<string, Record<string, any>> | undefined;
1266
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1182
1267
  filename?: string | undefined;
1183
1268
  type: "file";
1184
1269
  mimeType: string;
1185
1270
  data: string | ArrayBuffer;
1186
1271
  } | {
1187
1272
  providerOptions?: Record<string, Record<string, any>> | undefined;
1273
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1188
1274
  signature?: string | undefined;
1189
1275
  type: "reasoning";
1190
1276
  text: string;
1191
1277
  } | {
1192
1278
  providerOptions?: Record<string, Record<string, any>> | undefined;
1279
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1193
1280
  type: "redacted-reasoning";
1194
1281
  data: string;
1195
1282
  } | {
1196
1283
  providerOptions?: Record<string, Record<string, any>> | undefined;
1284
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1197
1285
  providerExecuted?: boolean | undefined;
1198
1286
  type: "tool-call";
1199
1287
  toolCallId: string;
@@ -1201,6 +1289,7 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
1201
1289
  args: any;
1202
1290
  } | {
1203
1291
  providerOptions?: Record<string, Record<string, any>> | undefined;
1292
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1204
1293
  args?: any;
1205
1294
  providerExecuted?: boolean | undefined;
1206
1295
  isError?: boolean | undefined;
@@ -1222,6 +1311,7 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
1222
1311
  role: "tool";
1223
1312
  content: {
1224
1313
  providerOptions?: Record<string, Record<string, any>> | undefined;
1314
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1225
1315
  args?: any;
1226
1316
  providerExecuted?: boolean | undefined;
1227
1317
  isError?: boolean | undefined;
@@ -1244,6 +1334,7 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
1244
1334
  content: string;
1245
1335
  } | undefined;
1246
1336
  text?: string | undefined;
1337
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1247
1338
  reasoning?: string | undefined;
1248
1339
  usage?: {
1249
1340
  reasoningTokens?: number | undefined;
@@ -1252,17 +1343,18 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
1252
1343
  completionTokens: number;
1253
1344
  totalTokens: number;
1254
1345
  } | undefined;
1255
- providerMetadata?: Record<string, Record<string, any>> | undefined;
1256
1346
  sources?: ({
1257
1347
  title?: string | undefined;
1258
1348
  type?: "source" | undefined;
1259
1349
  providerOptions?: Record<string, Record<string, any>> | undefined;
1350
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1260
1351
  id: string;
1261
1352
  sourceType: "url";
1262
1353
  url: string;
1263
1354
  } | {
1264
- filename?: string | undefined;
1355
+ providerOptions?: Record<string, Record<string, any>> | undefined;
1265
1356
  providerMetadata?: Record<string, Record<string, any>> | undefined;
1357
+ filename?: string | undefined;
1266
1358
  id: string;
1267
1359
  title: string;
1268
1360
  type: "source";
@@ -1284,6 +1376,7 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
1284
1376
  finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
1285
1377
  reasoningDetails?: ({
1286
1378
  providerOptions?: Record<string, Record<string, any>> | undefined;
1379
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1287
1380
  signature?: string | undefined;
1288
1381
  type: "reasoning";
1289
1382
  text: string;
@@ -1322,6 +1415,7 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
1322
1415
  role: "user";
1323
1416
  content: string | ({
1324
1417
  providerOptions?: Record<string, Record<string, any>> | undefined;
1418
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1325
1419
  type: "text";
1326
1420
  text: string;
1327
1421
  } | {
@@ -1331,6 +1425,7 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
1331
1425
  image: string | ArrayBuffer;
1332
1426
  } | {
1333
1427
  providerOptions?: Record<string, Record<string, any>> | undefined;
1428
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1334
1429
  filename?: string | undefined;
1335
1430
  type: "file";
1336
1431
  mimeType: string;
@@ -1341,25 +1436,30 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
1341
1436
  role: "assistant";
1342
1437
  content: string | ({
1343
1438
  providerOptions?: Record<string, Record<string, any>> | undefined;
1439
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1344
1440
  type: "text";
1345
1441
  text: string;
1346
1442
  } | {
1347
1443
  providerOptions?: Record<string, Record<string, any>> | undefined;
1444
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1348
1445
  filename?: string | undefined;
1349
1446
  type: "file";
1350
1447
  mimeType: string;
1351
1448
  data: string | ArrayBuffer;
1352
1449
  } | {
1353
1450
  providerOptions?: Record<string, Record<string, any>> | undefined;
1451
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1354
1452
  signature?: string | undefined;
1355
1453
  type: "reasoning";
1356
1454
  text: string;
1357
1455
  } | {
1358
1456
  providerOptions?: Record<string, Record<string, any>> | undefined;
1457
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1359
1458
  type: "redacted-reasoning";
1360
1459
  data: string;
1361
1460
  } | {
1362
1461
  providerOptions?: Record<string, Record<string, any>> | undefined;
1462
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1363
1463
  providerExecuted?: boolean | undefined;
1364
1464
  type: "tool-call";
1365
1465
  toolCallId: string;
@@ -1367,6 +1467,7 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
1367
1467
  args: any;
1368
1468
  } | {
1369
1469
  providerOptions?: Record<string, Record<string, any>> | undefined;
1470
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1370
1471
  args?: any;
1371
1472
  providerExecuted?: boolean | undefined;
1372
1473
  isError?: boolean | undefined;
@@ -1388,6 +1489,7 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
1388
1489
  role: "tool";
1389
1490
  content: {
1390
1491
  providerOptions?: Record<string, Record<string, any>> | undefined;
1492
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1391
1493
  args?: any;
1392
1494
  providerExecuted?: boolean | undefined;
1393
1495
  isError?: boolean | undefined;
@@ -1410,6 +1512,7 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
1410
1512
  content: string;
1411
1513
  } | undefined;
1412
1514
  text?: string | undefined;
1515
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1413
1516
  reasoning?: string | undefined;
1414
1517
  usage?: {
1415
1518
  reasoningTokens?: number | undefined;
@@ -1418,17 +1521,18 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
1418
1521
  completionTokens: number;
1419
1522
  totalTokens: number;
1420
1523
  } | undefined;
1421
- providerMetadata?: Record<string, Record<string, any>> | undefined;
1422
1524
  sources?: ({
1423
1525
  title?: string | undefined;
1424
1526
  type?: "source" | undefined;
1425
1527
  providerOptions?: Record<string, Record<string, any>> | undefined;
1528
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1426
1529
  id: string;
1427
1530
  sourceType: "url";
1428
1531
  url: string;
1429
1532
  } | {
1430
- filename?: string | undefined;
1533
+ providerOptions?: Record<string, Record<string, any>> | undefined;
1431
1534
  providerMetadata?: Record<string, Record<string, any>> | undefined;
1535
+ filename?: string | undefined;
1432
1536
  id: string;
1433
1537
  title: string;
1434
1538
  type: "source";
@@ -1450,6 +1554,7 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
1450
1554
  finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
1451
1555
  reasoningDetails?: ({
1452
1556
  providerOptions?: Record<string, Record<string, any>> | undefined;
1557
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1453
1558
  signature?: string | undefined;
1454
1559
  type: "reasoning";
1455
1560
  text: string;
@@ -1490,6 +1595,7 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
1490
1595
  role: "user";
1491
1596
  content: string | ({
1492
1597
  providerOptions?: Record<string, Record<string, any>> | undefined;
1598
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1493
1599
  type: "text";
1494
1600
  text: string;
1495
1601
  } | {
@@ -1499,6 +1605,7 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
1499
1605
  image: string | ArrayBuffer;
1500
1606
  } | {
1501
1607
  providerOptions?: Record<string, Record<string, any>> | undefined;
1608
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1502
1609
  filename?: string | undefined;
1503
1610
  type: "file";
1504
1611
  mimeType: string;
@@ -1509,25 +1616,30 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
1509
1616
  role: "assistant";
1510
1617
  content: string | ({
1511
1618
  providerOptions?: Record<string, Record<string, any>> | undefined;
1619
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1512
1620
  type: "text";
1513
1621
  text: string;
1514
1622
  } | {
1515
1623
  providerOptions?: Record<string, Record<string, any>> | undefined;
1624
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1516
1625
  filename?: string | undefined;
1517
1626
  type: "file";
1518
1627
  mimeType: string;
1519
1628
  data: string | ArrayBuffer;
1520
1629
  } | {
1521
1630
  providerOptions?: Record<string, Record<string, any>> | undefined;
1631
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1522
1632
  signature?: string | undefined;
1523
1633
  type: "reasoning";
1524
1634
  text: string;
1525
1635
  } | {
1526
1636
  providerOptions?: Record<string, Record<string, any>> | undefined;
1637
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1527
1638
  type: "redacted-reasoning";
1528
1639
  data: string;
1529
1640
  } | {
1530
1641
  providerOptions?: Record<string, Record<string, any>> | undefined;
1642
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1531
1643
  providerExecuted?: boolean | undefined;
1532
1644
  type: "tool-call";
1533
1645
  toolCallId: string;
@@ -1535,6 +1647,7 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
1535
1647
  args: any;
1536
1648
  } | {
1537
1649
  providerOptions?: Record<string, Record<string, any>> | undefined;
1650
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1538
1651
  args?: any;
1539
1652
  providerExecuted?: boolean | undefined;
1540
1653
  isError?: boolean | undefined;
@@ -1556,6 +1669,7 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
1556
1669
  role: "tool";
1557
1670
  content: {
1558
1671
  providerOptions?: Record<string, Record<string, any>> | undefined;
1672
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1559
1673
  args?: any;
1560
1674
  providerExecuted?: boolean | undefined;
1561
1675
  isError?: boolean | undefined;
@@ -1578,6 +1692,7 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
1578
1692
  content: string;
1579
1693
  } | undefined;
1580
1694
  text?: string | undefined;
1695
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1581
1696
  reasoning?: string | undefined;
1582
1697
  usage?: {
1583
1698
  reasoningTokens?: number | undefined;
@@ -1586,17 +1701,18 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
1586
1701
  completionTokens: number;
1587
1702
  totalTokens: number;
1588
1703
  } | undefined;
1589
- providerMetadata?: Record<string, Record<string, any>> | undefined;
1590
1704
  sources?: ({
1591
1705
  title?: string | undefined;
1592
1706
  type?: "source" | undefined;
1593
1707
  providerOptions?: Record<string, Record<string, any>> | undefined;
1708
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1594
1709
  id: string;
1595
1710
  sourceType: "url";
1596
1711
  url: string;
1597
1712
  } | {
1598
- filename?: string | undefined;
1713
+ providerOptions?: Record<string, Record<string, any>> | undefined;
1599
1714
  providerMetadata?: Record<string, Record<string, any>> | undefined;
1715
+ filename?: string | undefined;
1600
1716
  id: string;
1601
1717
  title: string;
1602
1718
  type: "source";
@@ -1618,6 +1734,7 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
1618
1734
  finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
1619
1735
  reasoningDetails?: ({
1620
1736
  providerOptions?: Record<string, Record<string, any>> | undefined;
1737
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1621
1738
  signature?: string | undefined;
1622
1739
  type: "reasoning";
1623
1740
  text: string;
@@ -1658,6 +1775,7 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
1658
1775
  role: "user";
1659
1776
  content: string | ({
1660
1777
  providerOptions?: Record<string, Record<string, any>> | undefined;
1778
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1661
1779
  type: "text";
1662
1780
  text: string;
1663
1781
  } | {
@@ -1667,6 +1785,7 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
1667
1785
  image: string | ArrayBuffer;
1668
1786
  } | {
1669
1787
  providerOptions?: Record<string, Record<string, any>> | undefined;
1788
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1670
1789
  filename?: string | undefined;
1671
1790
  type: "file";
1672
1791
  mimeType: string;
@@ -1677,25 +1796,30 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
1677
1796
  role: "assistant";
1678
1797
  content: string | ({
1679
1798
  providerOptions?: Record<string, Record<string, any>> | undefined;
1799
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1680
1800
  type: "text";
1681
1801
  text: string;
1682
1802
  } | {
1683
1803
  providerOptions?: Record<string, Record<string, any>> | undefined;
1804
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1684
1805
  filename?: string | undefined;
1685
1806
  type: "file";
1686
1807
  mimeType: string;
1687
1808
  data: string | ArrayBuffer;
1688
1809
  } | {
1689
1810
  providerOptions?: Record<string, Record<string, any>> | undefined;
1811
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1690
1812
  signature?: string | undefined;
1691
1813
  type: "reasoning";
1692
1814
  text: string;
1693
1815
  } | {
1694
1816
  providerOptions?: Record<string, Record<string, any>> | undefined;
1817
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1695
1818
  type: "redacted-reasoning";
1696
1819
  data: string;
1697
1820
  } | {
1698
1821
  providerOptions?: Record<string, Record<string, any>> | undefined;
1822
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1699
1823
  providerExecuted?: boolean | undefined;
1700
1824
  type: "tool-call";
1701
1825
  toolCallId: string;
@@ -1703,6 +1827,7 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
1703
1827
  args: any;
1704
1828
  } | {
1705
1829
  providerOptions?: Record<string, Record<string, any>> | undefined;
1830
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1706
1831
  args?: any;
1707
1832
  providerExecuted?: boolean | undefined;
1708
1833
  isError?: boolean | undefined;
@@ -1724,6 +1849,7 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
1724
1849
  role: "tool";
1725
1850
  content: {
1726
1851
  providerOptions?: Record<string, Record<string, any>> | undefined;
1852
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1727
1853
  args?: any;
1728
1854
  providerExecuted?: boolean | undefined;
1729
1855
  isError?: boolean | undefined;
@@ -1746,6 +1872,7 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
1746
1872
  content: string;
1747
1873
  } | undefined;
1748
1874
  text?: string | undefined;
1875
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1749
1876
  reasoning?: string | undefined;
1750
1877
  usage?: {
1751
1878
  reasoningTokens?: number | undefined;
@@ -1754,17 +1881,18 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
1754
1881
  completionTokens: number;
1755
1882
  totalTokens: number;
1756
1883
  } | undefined;
1757
- providerMetadata?: Record<string, Record<string, any>> | undefined;
1758
1884
  sources?: ({
1759
1885
  title?: string | undefined;
1760
1886
  type?: "source" | undefined;
1761
1887
  providerOptions?: Record<string, Record<string, any>> | undefined;
1888
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1762
1889
  id: string;
1763
1890
  sourceType: "url";
1764
1891
  url: string;
1765
1892
  } | {
1766
- filename?: string | undefined;
1893
+ providerOptions?: Record<string, Record<string, any>> | undefined;
1767
1894
  providerMetadata?: Record<string, Record<string, any>> | undefined;
1895
+ filename?: string | undefined;
1768
1896
  id: string;
1769
1897
  title: string;
1770
1898
  type: "source";
@@ -1786,6 +1914,7 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
1786
1914
  finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
1787
1915
  reasoningDetails?: ({
1788
1916
  providerOptions?: Record<string, Record<string, any>> | undefined;
1917
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
1789
1918
  signature?: string | undefined;
1790
1919
  type: "reasoning";
1791
1920
  text: string;