@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.
- package/dist/client/definePlaygroundAPI.d.ts +59 -5
- 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 +46 -4
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +14 -13
- package/dist/client/index.js.map +1 -1
- package/dist/client/messages.d.ts +14 -2
- package/dist/client/messages.d.ts.map +1 -1
- package/dist/client/search.d.ts +14 -2
- 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 +132 -23
- package/dist/client/streaming.d.ts.map +1 -1
- package/dist/component/_generated/api.d.ts +189 -0
- package/dist/component/messages.d.ts +149 -20
- 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 +342 -63
- 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 +67 -36
- 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 +302 -30
- 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 +662 -104
- package/dist/validators.d.ts.map +1 -1
- package/dist/validators.js +8 -0
- package/dist/validators.js.map +1 -1
- package/package.json +1 -1
- package/src/client/files.ts +4 -4
- package/src/client/index.ts +21 -20
- package/src/client/search.ts +2 -6
- package/src/component/_generated/api.d.ts +189 -0
- package/src/component/messages.ts +4 -3
- package/src/mapping.ts +99 -51
- package/src/react/deltas.ts +368 -48
- package/src/react/toUIMessages.test.ts +186 -0
- package/src/react/toUIMessages.ts +366 -192
- package/src/react/useSmoothText.ts +25 -13
- package/src/shared.ts +14 -0
- package/src/validators.ts +8 -0
|
@@ -41,6 +41,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
41
41
|
role: "user";
|
|
42
42
|
content: string | ({
|
|
43
43
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
44
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
44
45
|
type: "text";
|
|
45
46
|
text: string;
|
|
46
47
|
} | {
|
|
@@ -50,6 +51,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
50
51
|
image: string | ArrayBuffer;
|
|
51
52
|
} | {
|
|
52
53
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
54
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
53
55
|
filename?: string | undefined;
|
|
54
56
|
type: "file";
|
|
55
57
|
mimeType: string;
|
|
@@ -60,25 +62,30 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
60
62
|
role: "assistant";
|
|
61
63
|
content: string | ({
|
|
62
64
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
65
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
63
66
|
type: "text";
|
|
64
67
|
text: string;
|
|
65
68
|
} | {
|
|
66
69
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
70
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
67
71
|
filename?: string | undefined;
|
|
68
72
|
type: "file";
|
|
69
73
|
mimeType: string;
|
|
70
74
|
data: string | ArrayBuffer;
|
|
71
75
|
} | {
|
|
72
76
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
77
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
73
78
|
signature?: string | undefined;
|
|
74
79
|
type: "reasoning";
|
|
75
80
|
text: string;
|
|
76
81
|
} | {
|
|
77
82
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
83
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
78
84
|
type: "redacted-reasoning";
|
|
79
85
|
data: string;
|
|
80
86
|
} | {
|
|
81
87
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
88
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
82
89
|
providerExecuted?: boolean | undefined;
|
|
83
90
|
type: "tool-call";
|
|
84
91
|
toolCallId: string;
|
|
@@ -86,6 +93,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
86
93
|
args: any;
|
|
87
94
|
} | {
|
|
88
95
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
96
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
89
97
|
args?: any;
|
|
90
98
|
providerExecuted?: boolean | undefined;
|
|
91
99
|
isError?: boolean | undefined;
|
|
@@ -107,6 +115,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
107
115
|
role: "tool";
|
|
108
116
|
content: {
|
|
109
117
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
118
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
110
119
|
args?: any;
|
|
111
120
|
providerExecuted?: boolean | undefined;
|
|
112
121
|
isError?: boolean | undefined;
|
|
@@ -129,6 +138,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
129
138
|
content: string;
|
|
130
139
|
} | undefined;
|
|
131
140
|
text?: string | undefined;
|
|
141
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
132
142
|
reasoning?: string | undefined;
|
|
133
143
|
usage?: {
|
|
134
144
|
reasoningTokens?: number | undefined;
|
|
@@ -137,17 +147,18 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
137
147
|
completionTokens: number;
|
|
138
148
|
totalTokens: number;
|
|
139
149
|
} | undefined;
|
|
140
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
141
150
|
sources?: ({
|
|
142
151
|
title?: string | undefined;
|
|
143
152
|
type?: "source" | undefined;
|
|
144
153
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
154
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
145
155
|
id: string;
|
|
146
156
|
sourceType: "url";
|
|
147
157
|
url: string;
|
|
148
158
|
} | {
|
|
149
|
-
|
|
159
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
150
160
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
161
|
+
filename?: string | undefined;
|
|
151
162
|
id: string;
|
|
152
163
|
title: string;
|
|
153
164
|
type: "source";
|
|
@@ -169,6 +180,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
169
180
|
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
170
181
|
reasoningDetails?: ({
|
|
171
182
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
183
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
172
184
|
signature?: string | undefined;
|
|
173
185
|
type: "reasoning";
|
|
174
186
|
text: string;
|
|
@@ -300,6 +312,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
300
312
|
role: "user";
|
|
301
313
|
content: string | ({
|
|
302
314
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
315
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
303
316
|
type: "text";
|
|
304
317
|
text: string;
|
|
305
318
|
} | {
|
|
@@ -309,6 +322,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
309
322
|
image: string | ArrayBuffer;
|
|
310
323
|
} | {
|
|
311
324
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
325
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
312
326
|
filename?: string | undefined;
|
|
313
327
|
type: "file";
|
|
314
328
|
mimeType: string;
|
|
@@ -319,25 +333,30 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
319
333
|
role: "assistant";
|
|
320
334
|
content: string | ({
|
|
321
335
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
336
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
322
337
|
type: "text";
|
|
323
338
|
text: string;
|
|
324
339
|
} | {
|
|
325
340
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
341
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
326
342
|
filename?: string | undefined;
|
|
327
343
|
type: "file";
|
|
328
344
|
mimeType: string;
|
|
329
345
|
data: string | ArrayBuffer;
|
|
330
346
|
} | {
|
|
331
347
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
348
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
332
349
|
signature?: string | undefined;
|
|
333
350
|
type: "reasoning";
|
|
334
351
|
text: string;
|
|
335
352
|
} | {
|
|
336
353
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
354
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
337
355
|
type: "redacted-reasoning";
|
|
338
356
|
data: string;
|
|
339
357
|
} | {
|
|
340
358
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
359
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
341
360
|
providerExecuted?: boolean | undefined;
|
|
342
361
|
type: "tool-call";
|
|
343
362
|
toolCallId: string;
|
|
@@ -345,6 +364,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
345
364
|
args: any;
|
|
346
365
|
} | {
|
|
347
366
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
367
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
348
368
|
args?: any;
|
|
349
369
|
providerExecuted?: boolean | undefined;
|
|
350
370
|
isError?: boolean | undefined;
|
|
@@ -366,6 +386,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
366
386
|
role: "tool";
|
|
367
387
|
content: {
|
|
368
388
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
389
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
369
390
|
args?: any;
|
|
370
391
|
providerExecuted?: boolean | undefined;
|
|
371
392
|
isError?: boolean | undefined;
|
|
@@ -388,6 +409,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
388
409
|
content: string;
|
|
389
410
|
} | undefined;
|
|
390
411
|
text?: string | undefined;
|
|
412
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
391
413
|
reasoning?: string | undefined;
|
|
392
414
|
usage?: {
|
|
393
415
|
reasoningTokens?: number | undefined;
|
|
@@ -396,17 +418,18 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
396
418
|
completionTokens: number;
|
|
397
419
|
totalTokens: number;
|
|
398
420
|
} | undefined;
|
|
399
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
400
421
|
sources?: ({
|
|
401
422
|
title?: string | undefined;
|
|
402
423
|
type?: "source" | undefined;
|
|
403
424
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
425
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
404
426
|
id: string;
|
|
405
427
|
sourceType: "url";
|
|
406
428
|
url: string;
|
|
407
429
|
} | {
|
|
408
|
-
|
|
430
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
409
431
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
432
|
+
filename?: string | undefined;
|
|
410
433
|
id: string;
|
|
411
434
|
title: string;
|
|
412
435
|
type: "source";
|
|
@@ -428,6 +451,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
428
451
|
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
429
452
|
reasoningDetails?: ({
|
|
430
453
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
454
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
431
455
|
signature?: string | undefined;
|
|
432
456
|
type: "reasoning";
|
|
433
457
|
text: string;
|
|
@@ -461,6 +485,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
461
485
|
role: "user";
|
|
462
486
|
content: string | ({
|
|
463
487
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
488
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
464
489
|
type: "text";
|
|
465
490
|
text: string;
|
|
466
491
|
} | {
|
|
@@ -470,6 +495,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
470
495
|
image: string | ArrayBuffer;
|
|
471
496
|
} | {
|
|
472
497
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
498
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
473
499
|
filename?: string | undefined;
|
|
474
500
|
type: "file";
|
|
475
501
|
mimeType: string;
|
|
@@ -480,25 +506,30 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
480
506
|
role: "assistant";
|
|
481
507
|
content: string | ({
|
|
482
508
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
509
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
483
510
|
type: "text";
|
|
484
511
|
text: string;
|
|
485
512
|
} | {
|
|
486
513
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
514
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
487
515
|
filename?: string | undefined;
|
|
488
516
|
type: "file";
|
|
489
517
|
mimeType: string;
|
|
490
518
|
data: string | ArrayBuffer;
|
|
491
519
|
} | {
|
|
492
520
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
521
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
493
522
|
signature?: string | undefined;
|
|
494
523
|
type: "reasoning";
|
|
495
524
|
text: string;
|
|
496
525
|
} | {
|
|
497
526
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
527
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
498
528
|
type: "redacted-reasoning";
|
|
499
529
|
data: string;
|
|
500
530
|
} | {
|
|
501
531
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
532
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
502
533
|
providerExecuted?: boolean | undefined;
|
|
503
534
|
type: "tool-call";
|
|
504
535
|
toolCallId: string;
|
|
@@ -506,6 +537,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
506
537
|
args: any;
|
|
507
538
|
} | {
|
|
508
539
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
540
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
509
541
|
args?: any;
|
|
510
542
|
providerExecuted?: boolean | undefined;
|
|
511
543
|
isError?: boolean | undefined;
|
|
@@ -527,6 +559,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
527
559
|
role: "tool";
|
|
528
560
|
content: {
|
|
529
561
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
562
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
530
563
|
args?: any;
|
|
531
564
|
providerExecuted?: boolean | undefined;
|
|
532
565
|
isError?: boolean | undefined;
|
|
@@ -549,6 +582,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
549
582
|
content: string;
|
|
550
583
|
} | undefined;
|
|
551
584
|
text?: string | undefined;
|
|
585
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
552
586
|
reasoning?: string | undefined;
|
|
553
587
|
usage?: {
|
|
554
588
|
reasoningTokens?: number | undefined;
|
|
@@ -557,17 +591,18 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
557
591
|
completionTokens: number;
|
|
558
592
|
totalTokens: number;
|
|
559
593
|
} | undefined;
|
|
560
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
561
594
|
sources?: ({
|
|
562
595
|
title?: string | undefined;
|
|
563
596
|
type?: "source" | undefined;
|
|
564
597
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
598
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
565
599
|
id: string;
|
|
566
600
|
sourceType: "url";
|
|
567
601
|
url: string;
|
|
568
602
|
} | {
|
|
569
|
-
|
|
603
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
570
604
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
605
|
+
filename?: string | undefined;
|
|
571
606
|
id: string;
|
|
572
607
|
title: string;
|
|
573
608
|
type: "source";
|
|
@@ -589,6 +624,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
589
624
|
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
590
625
|
reasoningDetails?: ({
|
|
591
626
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
627
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
592
628
|
signature?: string | undefined;
|
|
593
629
|
type: "reasoning";
|
|
594
630
|
text: string;
|
|
@@ -625,6 +661,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
625
661
|
role: "user";
|
|
626
662
|
content: string | ({
|
|
627
663
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
664
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
628
665
|
type: "text";
|
|
629
666
|
text: string;
|
|
630
667
|
} | {
|
|
@@ -634,6 +671,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
634
671
|
image: string | ArrayBuffer;
|
|
635
672
|
} | {
|
|
636
673
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
674
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
637
675
|
filename?: string | undefined;
|
|
638
676
|
type: "file";
|
|
639
677
|
mimeType: string;
|
|
@@ -644,25 +682,30 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
644
682
|
role: "assistant";
|
|
645
683
|
content: string | ({
|
|
646
684
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
685
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
647
686
|
type: "text";
|
|
648
687
|
text: string;
|
|
649
688
|
} | {
|
|
650
689
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
690
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
651
691
|
filename?: string | undefined;
|
|
652
692
|
type: "file";
|
|
653
693
|
mimeType: string;
|
|
654
694
|
data: string | ArrayBuffer;
|
|
655
695
|
} | {
|
|
656
696
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
697
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
657
698
|
signature?: string | undefined;
|
|
658
699
|
type: "reasoning";
|
|
659
700
|
text: string;
|
|
660
701
|
} | {
|
|
661
702
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
703
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
662
704
|
type: "redacted-reasoning";
|
|
663
705
|
data: string;
|
|
664
706
|
} | {
|
|
665
707
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
708
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
666
709
|
providerExecuted?: boolean | undefined;
|
|
667
710
|
type: "tool-call";
|
|
668
711
|
toolCallId: string;
|
|
@@ -670,6 +713,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
670
713
|
args: any;
|
|
671
714
|
} | {
|
|
672
715
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
716
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
673
717
|
args?: any;
|
|
674
718
|
providerExecuted?: boolean | undefined;
|
|
675
719
|
isError?: boolean | undefined;
|
|
@@ -691,6 +735,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
691
735
|
role: "tool";
|
|
692
736
|
content: {
|
|
693
737
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
738
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
694
739
|
args?: any;
|
|
695
740
|
providerExecuted?: boolean | undefined;
|
|
696
741
|
isError?: boolean | undefined;
|
|
@@ -716,6 +761,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
716
761
|
role: "user";
|
|
717
762
|
content: string | ({
|
|
718
763
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
764
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
719
765
|
type: "text";
|
|
720
766
|
text: string;
|
|
721
767
|
} | {
|
|
@@ -725,6 +771,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
725
771
|
image: string | ArrayBuffer;
|
|
726
772
|
} | {
|
|
727
773
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
774
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
728
775
|
filename?: string | undefined;
|
|
729
776
|
type: "file";
|
|
730
777
|
mimeType: string;
|
|
@@ -734,6 +781,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
734
781
|
role: import("convex/values").VLiteral<"user", "required">;
|
|
735
782
|
content: import("convex/values").VUnion<string | ({
|
|
736
783
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
784
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
737
785
|
type: "text";
|
|
738
786
|
text: string;
|
|
739
787
|
} | {
|
|
@@ -743,12 +791,14 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
743
791
|
image: string | ArrayBuffer;
|
|
744
792
|
} | {
|
|
745
793
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
794
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
746
795
|
filename?: string | undefined;
|
|
747
796
|
type: "file";
|
|
748
797
|
mimeType: string;
|
|
749
798
|
data: string | ArrayBuffer;
|
|
750
799
|
})[], [import("convex/values").VString<string, "required">, import("convex/values").VArray<({
|
|
751
800
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
801
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
752
802
|
type: "text";
|
|
753
803
|
text: string;
|
|
754
804
|
} | {
|
|
@@ -758,12 +808,14 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
758
808
|
image: string | ArrayBuffer;
|
|
759
809
|
} | {
|
|
760
810
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
811
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
761
812
|
filename?: string | undefined;
|
|
762
813
|
type: "file";
|
|
763
814
|
mimeType: string;
|
|
764
815
|
data: string | ArrayBuffer;
|
|
765
816
|
})[], import("convex/values").VUnion<{
|
|
766
817
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
818
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
767
819
|
type: "text";
|
|
768
820
|
text: string;
|
|
769
821
|
} | {
|
|
@@ -773,19 +825,22 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
773
825
|
image: string | ArrayBuffer;
|
|
774
826
|
} | {
|
|
775
827
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
828
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
776
829
|
filename?: string | undefined;
|
|
777
830
|
type: "file";
|
|
778
831
|
mimeType: string;
|
|
779
832
|
data: string | ArrayBuffer;
|
|
780
833
|
}, [import("convex/values").VObject<{
|
|
781
834
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
835
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
782
836
|
type: "text";
|
|
783
837
|
text: string;
|
|
784
838
|
}, {
|
|
785
839
|
type: import("convex/values").VLiteral<"text", "required">;
|
|
786
840
|
text: import("convex/values").VString<string, "required">;
|
|
787
841
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
788
|
-
|
|
842
|
+
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
843
|
+
}, "required", "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}`>, import("convex/values").VObject<{
|
|
789
844
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
790
845
|
mimeType?: string | undefined;
|
|
791
846
|
type: "image";
|
|
@@ -797,6 +852,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
797
852
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
798
853
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType">, import("convex/values").VObject<{
|
|
799
854
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
855
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
800
856
|
filename?: string | undefined;
|
|
801
857
|
type: "file";
|
|
802
858
|
mimeType: string;
|
|
@@ -807,32 +863,38 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
807
863
|
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
808
864
|
mimeType: import("convex/values").VString<string, "required">;
|
|
809
865
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
810
|
-
|
|
866
|
+
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
867
|
+
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "image" | "mimeType" | "data" | "filename">, "required">], "required", never>;
|
|
811
868
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
812
869
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
813
870
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
814
871
|
role: "assistant";
|
|
815
872
|
content: string | ({
|
|
816
873
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
874
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
817
875
|
type: "text";
|
|
818
876
|
text: string;
|
|
819
877
|
} | {
|
|
820
878
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
879
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
821
880
|
filename?: string | undefined;
|
|
822
881
|
type: "file";
|
|
823
882
|
mimeType: string;
|
|
824
883
|
data: string | ArrayBuffer;
|
|
825
884
|
} | {
|
|
826
885
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
886
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
827
887
|
signature?: string | undefined;
|
|
828
888
|
type: "reasoning";
|
|
829
889
|
text: string;
|
|
830
890
|
} | {
|
|
831
891
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
892
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
832
893
|
type: "redacted-reasoning";
|
|
833
894
|
data: string;
|
|
834
895
|
} | {
|
|
835
896
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
897
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
836
898
|
providerExecuted?: boolean | undefined;
|
|
837
899
|
type: "tool-call";
|
|
838
900
|
toolCallId: string;
|
|
@@ -840,6 +902,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
840
902
|
args: any;
|
|
841
903
|
} | {
|
|
842
904
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
905
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
843
906
|
args?: any;
|
|
844
907
|
providerExecuted?: boolean | undefined;
|
|
845
908
|
isError?: boolean | undefined;
|
|
@@ -860,25 +923,30 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
860
923
|
role: import("convex/values").VLiteral<"assistant", "required">;
|
|
861
924
|
content: import("convex/values").VUnion<string | ({
|
|
862
925
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
926
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
863
927
|
type: "text";
|
|
864
928
|
text: string;
|
|
865
929
|
} | {
|
|
866
930
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
931
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
867
932
|
filename?: string | undefined;
|
|
868
933
|
type: "file";
|
|
869
934
|
mimeType: string;
|
|
870
935
|
data: string | ArrayBuffer;
|
|
871
936
|
} | {
|
|
872
937
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
938
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
873
939
|
signature?: string | undefined;
|
|
874
940
|
type: "reasoning";
|
|
875
941
|
text: string;
|
|
876
942
|
} | {
|
|
877
943
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
944
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
878
945
|
type: "redacted-reasoning";
|
|
879
946
|
data: string;
|
|
880
947
|
} | {
|
|
881
948
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
949
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
882
950
|
providerExecuted?: boolean | undefined;
|
|
883
951
|
type: "tool-call";
|
|
884
952
|
toolCallId: string;
|
|
@@ -886,6 +954,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
886
954
|
args: any;
|
|
887
955
|
} | {
|
|
888
956
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
957
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
889
958
|
args?: any;
|
|
890
959
|
providerExecuted?: boolean | undefined;
|
|
891
960
|
isError?: boolean | undefined;
|
|
@@ -903,25 +972,30 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
903
972
|
result: any;
|
|
904
973
|
})[], [import("convex/values").VString<string, "required">, import("convex/values").VArray<({
|
|
905
974
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
975
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
906
976
|
type: "text";
|
|
907
977
|
text: string;
|
|
908
978
|
} | {
|
|
909
979
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
980
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
910
981
|
filename?: string | undefined;
|
|
911
982
|
type: "file";
|
|
912
983
|
mimeType: string;
|
|
913
984
|
data: string | ArrayBuffer;
|
|
914
985
|
} | {
|
|
915
986
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
987
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
916
988
|
signature?: string | undefined;
|
|
917
989
|
type: "reasoning";
|
|
918
990
|
text: string;
|
|
919
991
|
} | {
|
|
920
992
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
993
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
921
994
|
type: "redacted-reasoning";
|
|
922
995
|
data: string;
|
|
923
996
|
} | {
|
|
924
997
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
998
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
925
999
|
providerExecuted?: boolean | undefined;
|
|
926
1000
|
type: "tool-call";
|
|
927
1001
|
toolCallId: string;
|
|
@@ -929,6 +1003,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
929
1003
|
args: any;
|
|
930
1004
|
} | {
|
|
931
1005
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1006
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
932
1007
|
args?: any;
|
|
933
1008
|
providerExecuted?: boolean | undefined;
|
|
934
1009
|
isError?: boolean | undefined;
|
|
@@ -946,25 +1021,30 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
946
1021
|
result: any;
|
|
947
1022
|
})[], import("convex/values").VUnion<{
|
|
948
1023
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1024
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
949
1025
|
type: "text";
|
|
950
1026
|
text: string;
|
|
951
1027
|
} | {
|
|
952
1028
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1029
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
953
1030
|
filename?: string | undefined;
|
|
954
1031
|
type: "file";
|
|
955
1032
|
mimeType: string;
|
|
956
1033
|
data: string | ArrayBuffer;
|
|
957
1034
|
} | {
|
|
958
1035
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1036
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
959
1037
|
signature?: string | undefined;
|
|
960
1038
|
type: "reasoning";
|
|
961
1039
|
text: string;
|
|
962
1040
|
} | {
|
|
963
1041
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1042
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
964
1043
|
type: "redacted-reasoning";
|
|
965
1044
|
data: string;
|
|
966
1045
|
} | {
|
|
967
1046
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1047
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
968
1048
|
providerExecuted?: boolean | undefined;
|
|
969
1049
|
type: "tool-call";
|
|
970
1050
|
toolCallId: string;
|
|
@@ -972,6 +1052,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
972
1052
|
args: any;
|
|
973
1053
|
} | {
|
|
974
1054
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1055
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
975
1056
|
args?: any;
|
|
976
1057
|
providerExecuted?: boolean | undefined;
|
|
977
1058
|
isError?: boolean | undefined;
|
|
@@ -989,14 +1070,17 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
989
1070
|
result: any;
|
|
990
1071
|
}, [import("convex/values").VObject<{
|
|
991
1072
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1073
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
992
1074
|
type: "text";
|
|
993
1075
|
text: string;
|
|
994
1076
|
}, {
|
|
995
1077
|
type: import("convex/values").VLiteral<"text", "required">;
|
|
996
1078
|
text: import("convex/values").VString<string, "required">;
|
|
997
1079
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
998
|
-
|
|
1080
|
+
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
1081
|
+
}, "required", "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}`>, import("convex/values").VObject<{
|
|
999
1082
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1083
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1000
1084
|
filename?: string | undefined;
|
|
1001
1085
|
type: "file";
|
|
1002
1086
|
mimeType: string;
|
|
@@ -1007,8 +1091,10 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1007
1091
|
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
1008
1092
|
mimeType: import("convex/values").VString<string, "required">;
|
|
1009
1093
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
1010
|
-
|
|
1094
|
+
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
1095
|
+
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mimeType" | "data" | "filename">, import("convex/values").VObject<{
|
|
1011
1096
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1097
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1012
1098
|
signature?: string | undefined;
|
|
1013
1099
|
type: "reasoning";
|
|
1014
1100
|
text: string;
|
|
@@ -1017,16 +1103,20 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1017
1103
|
text: import("convex/values").VString<string, "required">;
|
|
1018
1104
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
1019
1105
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
1020
|
-
|
|
1106
|
+
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
1107
|
+
}, "required", "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "signature">, import("convex/values").VObject<{
|
|
1021
1108
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1109
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1022
1110
|
type: "redacted-reasoning";
|
|
1023
1111
|
data: string;
|
|
1024
1112
|
}, {
|
|
1025
1113
|
type: import("convex/values").VLiteral<"redacted-reasoning", "required">;
|
|
1026
1114
|
data: import("convex/values").VString<string, "required">;
|
|
1027
1115
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
1028
|
-
|
|
1116
|
+
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
1117
|
+
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "data">, import("convex/values").VObject<{
|
|
1029
1118
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1119
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1030
1120
|
providerExecuted?: boolean | undefined;
|
|
1031
1121
|
type: "tool-call";
|
|
1032
1122
|
toolCallId: string;
|
|
@@ -1039,8 +1129,10 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1039
1129
|
args: import("convex/values").VAny<any, "required", string>;
|
|
1040
1130
|
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1041
1131
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
1042
|
-
|
|
1132
|
+
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
1133
|
+
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>, import("convex/values").VObject<{
|
|
1043
1134
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1135
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1044
1136
|
args?: any;
|
|
1045
1137
|
providerExecuted?: boolean | undefined;
|
|
1046
1138
|
isError?: boolean | undefined;
|
|
@@ -1062,6 +1154,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1062
1154
|
toolName: import("convex/values").VString<string, "required">;
|
|
1063
1155
|
result: import("convex/values").VAny<any, "required", string>;
|
|
1064
1156
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
1157
|
+
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
1065
1158
|
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1066
1159
|
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1067
1160
|
args: import("convex/values").VAny<any, "optional", string>;
|
|
@@ -1094,13 +1187,14 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1094
1187
|
data: import("convex/values").VString<string, "required">;
|
|
1095
1188
|
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
1096
1189
|
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
1097
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>, "required">], "required", never>;
|
|
1190
|
+
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>], "required", "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>, "required">], "required", never>;
|
|
1098
1191
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
1099
1192
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
1100
1193
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1101
1194
|
role: "tool";
|
|
1102
1195
|
content: {
|
|
1103
1196
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1197
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1104
1198
|
args?: any;
|
|
1105
1199
|
providerExecuted?: boolean | undefined;
|
|
1106
1200
|
isError?: boolean | undefined;
|
|
@@ -1121,6 +1215,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1121
1215
|
role: import("convex/values").VLiteral<"tool", "required">;
|
|
1122
1216
|
content: import("convex/values").VArray<{
|
|
1123
1217
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1218
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1124
1219
|
args?: any;
|
|
1125
1220
|
providerExecuted?: boolean | undefined;
|
|
1126
1221
|
isError?: boolean | undefined;
|
|
@@ -1138,6 +1233,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1138
1233
|
result: any;
|
|
1139
1234
|
}[], import("convex/values").VObject<{
|
|
1140
1235
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1236
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1141
1237
|
args?: any;
|
|
1142
1238
|
providerExecuted?: boolean | undefined;
|
|
1143
1239
|
isError?: boolean | undefined;
|
|
@@ -1159,6 +1255,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1159
1255
|
toolName: import("convex/values").VString<string, "required">;
|
|
1160
1256
|
result: import("convex/values").VAny<any, "required", string>;
|
|
1161
1257
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
1258
|
+
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
1162
1259
|
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1163
1260
|
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1164
1261
|
args: import("convex/values").VAny<any, "optional", string>;
|
|
@@ -1191,7 +1288,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1191
1288
|
data: import("convex/values").VString<string, "required">;
|
|
1192
1289
|
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
1193
1290
|
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
1194
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>, "required">;
|
|
1291
|
+
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>, "required">;
|
|
1195
1292
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
1196
1293
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
1197
1294
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1222,12 +1319,14 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1222
1319
|
title?: string | undefined;
|
|
1223
1320
|
type?: "source" | undefined;
|
|
1224
1321
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1322
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1225
1323
|
id: string;
|
|
1226
1324
|
sourceType: "url";
|
|
1227
1325
|
url: string;
|
|
1228
1326
|
} | {
|
|
1229
|
-
|
|
1327
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1230
1328
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1329
|
+
filename?: string | undefined;
|
|
1231
1330
|
id: string;
|
|
1232
1331
|
title: string;
|
|
1233
1332
|
type: "source";
|
|
@@ -1237,12 +1336,14 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1237
1336
|
title?: string | undefined;
|
|
1238
1337
|
type?: "source" | undefined;
|
|
1239
1338
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1339
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1240
1340
|
id: string;
|
|
1241
1341
|
sourceType: "url";
|
|
1242
1342
|
url: string;
|
|
1243
1343
|
} | {
|
|
1244
|
-
|
|
1344
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1245
1345
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1346
|
+
filename?: string | undefined;
|
|
1246
1347
|
id: string;
|
|
1247
1348
|
title: string;
|
|
1248
1349
|
type: "source";
|
|
@@ -1252,6 +1353,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1252
1353
|
title?: string | undefined;
|
|
1253
1354
|
type?: "source" | undefined;
|
|
1254
1355
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1356
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1255
1357
|
id: string;
|
|
1256
1358
|
sourceType: "url";
|
|
1257
1359
|
url: string;
|
|
@@ -1262,9 +1364,11 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1262
1364
|
url: import("convex/values").VString<string, "required">;
|
|
1263
1365
|
title: import("convex/values").VString<string | undefined, "optional">;
|
|
1264
1366
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
1265
|
-
|
|
1266
|
-
|
|
1367
|
+
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
1368
|
+
}, "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "sourceType" | "url">, import("convex/values").VObject<{
|
|
1369
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1267
1370
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1371
|
+
filename?: string | undefined;
|
|
1268
1372
|
id: string;
|
|
1269
1373
|
title: string;
|
|
1270
1374
|
type: "source";
|
|
@@ -1277,8 +1381,9 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1277
1381
|
mediaType: import("convex/values").VString<string, "required">;
|
|
1278
1382
|
title: import("convex/values").VString<string, "required">;
|
|
1279
1383
|
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
1384
|
+
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
1280
1385
|
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
1281
|
-
}, "required", "id" | "title" | "type" | "
|
|
1386
|
+
}, "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "filename" | "sourceType" | "mediaType">], "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "filename" | "sourceType" | "url" | "mediaType">, "optional">;
|
|
1282
1387
|
warnings: import("convex/values").VArray<({
|
|
1283
1388
|
details?: string | undefined;
|
|
1284
1389
|
type: "unsupported-setting";
|
|
@@ -1328,6 +1433,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1328
1433
|
reasoning: import("convex/values").VString<string | undefined, "optional">;
|
|
1329
1434
|
reasoningDetails: import("convex/values").VArray<({
|
|
1330
1435
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1436
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1331
1437
|
signature?: string | undefined;
|
|
1332
1438
|
type: "reasoning";
|
|
1333
1439
|
text: string;
|
|
@@ -1340,6 +1446,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1340
1446
|
data: string;
|
|
1341
1447
|
})[] | undefined, import("convex/values").VUnion<{
|
|
1342
1448
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1449
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1343
1450
|
signature?: string | undefined;
|
|
1344
1451
|
type: "reasoning";
|
|
1345
1452
|
text: string;
|
|
@@ -1352,6 +1459,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1352
1459
|
data: string;
|
|
1353
1460
|
}, [import("convex/values").VObject<{
|
|
1354
1461
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1462
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1355
1463
|
signature?: string | undefined;
|
|
1356
1464
|
type: "reasoning";
|
|
1357
1465
|
text: string;
|
|
@@ -1360,7 +1468,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1360
1468
|
text: import("convex/values").VString<string, "required">;
|
|
1361
1469
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
1362
1470
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
1363
|
-
|
|
1471
|
+
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
1472
|
+
}, "required", "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "signature">, import("convex/values").VObject<{
|
|
1364
1473
|
signature?: string | undefined;
|
|
1365
1474
|
type: "text";
|
|
1366
1475
|
text: string;
|
|
@@ -1374,11 +1483,11 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1374
1483
|
}, {
|
|
1375
1484
|
type: import("convex/values").VLiteral<"redacted", "required">;
|
|
1376
1485
|
data: import("convex/values").VString<string, "required">;
|
|
1377
|
-
}, "required", "type" | "data">], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "data" | "signature">, "optional">;
|
|
1486
|
+
}, "required", "type" | "data">], "required", "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "data" | "signature">, "optional">;
|
|
1378
1487
|
id: import("convex/values").VString<string | undefined, "optional">;
|
|
1379
1488
|
_id: import("convex/values").VString<string, "required">;
|
|
1380
1489
|
_creationTime: import("convex/values").VFloat64<number, "required">;
|
|
1381
|
-
}, "required", "_id" | "_creationTime" | "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | `providerOptions.${string}` | "reasoning" | "tool" | "usage" | "
|
|
1490
|
+
}, "required", "_id" | "_creationTime" | "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "reasoning" | "tool" | "usage" | "sources" | "warnings" | "finishReason" | "reasoningDetails" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | "usage.reasoningTokens" | "usage.cachedInputTokens">, "required">;
|
|
1382
1491
|
continueCursor: import("convex/values").VString<string, "required">;
|
|
1383
1492
|
isDone: import("convex/values").VBoolean<boolean, "required">;
|
|
1384
1493
|
splitCursor: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|