@convex-dev/agent 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/definePlaygroundAPI.d.ts +144 -13
- package/dist/client/definePlaygroundAPI.d.ts.map +1 -1
- package/dist/client/files.d.ts +1 -1
- package/dist/client/files.d.ts.map +1 -1
- package/dist/client/files.js.map +1 -1
- package/dist/client/index.d.ts +130 -10
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +17 -7
- package/dist/client/index.js.map +1 -1
- package/dist/client/messages.d.ts +32 -5
- package/dist/client/messages.d.ts.map +1 -1
- package/dist/client/messages.js +7 -4
- package/dist/client/messages.js.map +1 -1
- package/dist/client/search.d.ts +31 -4
- package/dist/client/search.d.ts.map +1 -1
- package/dist/client/search.js +2 -4
- package/dist/client/search.js.map +1 -1
- package/dist/client/streaming.d.ts +322 -39
- package/dist/client/streaming.d.ts.map +1 -1
- package/dist/component/_generated/api.d.ts +301 -15
- package/dist/component/messages.d.ts +336 -41
- package/dist/component/messages.d.ts.map +1 -1
- package/dist/component/messages.js +4 -4
- package/dist/component/messages.js.map +1 -1
- package/dist/component/schema.d.ts +874 -133
- package/dist/component/schema.d.ts.map +1 -1
- package/dist/mapping.d.ts +4 -4
- package/dist/mapping.d.ts.map +1 -1
- package/dist/mapping.js +68 -38
- package/dist/mapping.js.map +1 -1
- package/dist/react/deltas.d.ts +3 -3
- package/dist/react/deltas.d.ts.map +1 -1
- package/dist/react/deltas.js +321 -28
- package/dist/react/deltas.js.map +1 -1
- package/dist/react/toUIMessages.d.ts.map +1 -1
- package/dist/react/toUIMessages.js +289 -180
- package/dist/react/toUIMessages.js.map +1 -1
- package/dist/react/useSmoothText.d.ts.map +1 -1
- package/dist/react/useSmoothText.js +15 -6
- package/dist/react/useSmoothText.js.map +1 -1
- package/dist/shared.d.ts +4 -0
- package/dist/shared.d.ts.map +1 -1
- package/dist/shared.js +8 -0
- package/dist/shared.js.map +1 -1
- package/dist/validators.d.ts +1887 -249
- package/dist/validators.d.ts.map +1 -1
- package/dist/validators.js +10 -3
- package/dist/validators.js.map +1 -1
- package/package.json +1 -1
- package/src/client/files.ts +4 -4
- package/src/client/index.ts +41 -15
- package/src/client/messages.ts +12 -4
- package/src/client/search.ts +2 -6
- package/src/component/_generated/api.d.ts +301 -15
- package/src/component/messages.ts +4 -3
- package/src/mapping.ts +105 -56
- package/src/react/deltas.ts +391 -46
- package/src/react/toUIMessages.test.ts +234 -4
- package/src/react/toUIMessages.ts +366 -192
- package/src/react/useSmoothText.ts +25 -13
- package/src/shared.ts +14 -0
- package/src/validators.ts +23 -15
|
@@ -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,37 +62,60 @@ 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
|
-
state?: "streaming" | "done" | undefined;
|
|
75
79
|
type: "reasoning";
|
|
76
80
|
text: string;
|
|
77
81
|
} | {
|
|
78
82
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
83
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
79
84
|
type: "redacted-reasoning";
|
|
80
85
|
data: string;
|
|
81
86
|
} | {
|
|
82
87
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
88
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
83
89
|
providerExecuted?: boolean | undefined;
|
|
84
90
|
type: "tool-call";
|
|
85
91
|
toolCallId: string;
|
|
86
92
|
toolName: string;
|
|
87
93
|
args: any;
|
|
94
|
+
} | {
|
|
95
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
96
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
97
|
+
args?: any;
|
|
98
|
+
providerExecuted?: boolean | undefined;
|
|
99
|
+
isError?: boolean | undefined;
|
|
100
|
+
experimental_content?: ({
|
|
101
|
+
type: "text";
|
|
102
|
+
text: string;
|
|
103
|
+
} | {
|
|
104
|
+
mimeType?: string | undefined;
|
|
105
|
+
type: "image";
|
|
106
|
+
data: string;
|
|
107
|
+
})[] | undefined;
|
|
108
|
+
type: "tool-result";
|
|
109
|
+
toolCallId: string;
|
|
110
|
+
toolName: string;
|
|
111
|
+
result: any;
|
|
88
112
|
})[];
|
|
89
113
|
} | {
|
|
90
114
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
91
115
|
role: "tool";
|
|
92
116
|
content: {
|
|
93
117
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
118
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
94
119
|
args?: any;
|
|
95
120
|
providerExecuted?: boolean | undefined;
|
|
96
121
|
isError?: boolean | undefined;
|
|
@@ -113,6 +138,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
113
138
|
content: string;
|
|
114
139
|
} | undefined;
|
|
115
140
|
text?: string | undefined;
|
|
141
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
116
142
|
reasoning?: string | undefined;
|
|
117
143
|
usage?: {
|
|
118
144
|
reasoningTokens?: number | undefined;
|
|
@@ -121,17 +147,18 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
121
147
|
completionTokens: number;
|
|
122
148
|
totalTokens: number;
|
|
123
149
|
} | undefined;
|
|
124
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
125
150
|
sources?: ({
|
|
126
151
|
title?: string | undefined;
|
|
127
152
|
type?: "source" | undefined;
|
|
128
153
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
154
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
129
155
|
id: string;
|
|
130
156
|
sourceType: "url";
|
|
131
157
|
url: string;
|
|
132
158
|
} | {
|
|
133
|
-
|
|
159
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
134
160
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
161
|
+
filename?: string | undefined;
|
|
135
162
|
id: string;
|
|
136
163
|
title: string;
|
|
137
164
|
type: "source";
|
|
@@ -153,8 +180,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
153
180
|
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
154
181
|
reasoningDetails?: ({
|
|
155
182
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
183
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
156
184
|
signature?: string | undefined;
|
|
157
|
-
state?: "streaming" | "done" | undefined;
|
|
158
185
|
type: "reasoning";
|
|
159
186
|
text: string;
|
|
160
187
|
} | {
|
|
@@ -285,6 +312,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
285
312
|
role: "user";
|
|
286
313
|
content: string | ({
|
|
287
314
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
315
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
288
316
|
type: "text";
|
|
289
317
|
text: string;
|
|
290
318
|
} | {
|
|
@@ -294,6 +322,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
294
322
|
image: string | ArrayBuffer;
|
|
295
323
|
} | {
|
|
296
324
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
325
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
297
326
|
filename?: string | undefined;
|
|
298
327
|
type: "file";
|
|
299
328
|
mimeType: string;
|
|
@@ -304,37 +333,60 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
304
333
|
role: "assistant";
|
|
305
334
|
content: string | ({
|
|
306
335
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
336
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
307
337
|
type: "text";
|
|
308
338
|
text: string;
|
|
309
339
|
} | {
|
|
310
340
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
341
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
311
342
|
filename?: string | undefined;
|
|
312
343
|
type: "file";
|
|
313
344
|
mimeType: string;
|
|
314
345
|
data: string | ArrayBuffer;
|
|
315
346
|
} | {
|
|
316
347
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
348
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
317
349
|
signature?: string | undefined;
|
|
318
|
-
state?: "streaming" | "done" | undefined;
|
|
319
350
|
type: "reasoning";
|
|
320
351
|
text: string;
|
|
321
352
|
} | {
|
|
322
353
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
354
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
323
355
|
type: "redacted-reasoning";
|
|
324
356
|
data: string;
|
|
325
357
|
} | {
|
|
326
358
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
359
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
327
360
|
providerExecuted?: boolean | undefined;
|
|
328
361
|
type: "tool-call";
|
|
329
362
|
toolCallId: string;
|
|
330
363
|
toolName: string;
|
|
331
364
|
args: any;
|
|
365
|
+
} | {
|
|
366
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
367
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
368
|
+
args?: any;
|
|
369
|
+
providerExecuted?: boolean | undefined;
|
|
370
|
+
isError?: boolean | undefined;
|
|
371
|
+
experimental_content?: ({
|
|
372
|
+
type: "text";
|
|
373
|
+
text: string;
|
|
374
|
+
} | {
|
|
375
|
+
mimeType?: string | undefined;
|
|
376
|
+
type: "image";
|
|
377
|
+
data: string;
|
|
378
|
+
})[] | undefined;
|
|
379
|
+
type: "tool-result";
|
|
380
|
+
toolCallId: string;
|
|
381
|
+
toolName: string;
|
|
382
|
+
result: any;
|
|
332
383
|
})[];
|
|
333
384
|
} | {
|
|
334
385
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
335
386
|
role: "tool";
|
|
336
387
|
content: {
|
|
337
388
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
389
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
338
390
|
args?: any;
|
|
339
391
|
providerExecuted?: boolean | undefined;
|
|
340
392
|
isError?: boolean | undefined;
|
|
@@ -357,6 +409,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
357
409
|
content: string;
|
|
358
410
|
} | undefined;
|
|
359
411
|
text?: string | undefined;
|
|
412
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
360
413
|
reasoning?: string | undefined;
|
|
361
414
|
usage?: {
|
|
362
415
|
reasoningTokens?: number | undefined;
|
|
@@ -365,17 +418,18 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
365
418
|
completionTokens: number;
|
|
366
419
|
totalTokens: number;
|
|
367
420
|
} | undefined;
|
|
368
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
369
421
|
sources?: ({
|
|
370
422
|
title?: string | undefined;
|
|
371
423
|
type?: "source" | undefined;
|
|
372
424
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
425
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
373
426
|
id: string;
|
|
374
427
|
sourceType: "url";
|
|
375
428
|
url: string;
|
|
376
429
|
} | {
|
|
377
|
-
|
|
430
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
378
431
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
432
|
+
filename?: string | undefined;
|
|
379
433
|
id: string;
|
|
380
434
|
title: string;
|
|
381
435
|
type: "source";
|
|
@@ -397,8 +451,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
397
451
|
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
398
452
|
reasoningDetails?: ({
|
|
399
453
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
454
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
400
455
|
signature?: string | undefined;
|
|
401
|
-
state?: "streaming" | "done" | undefined;
|
|
402
456
|
type: "reasoning";
|
|
403
457
|
text: string;
|
|
404
458
|
} | {
|
|
@@ -431,6 +485,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
431
485
|
role: "user";
|
|
432
486
|
content: string | ({
|
|
433
487
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
488
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
434
489
|
type: "text";
|
|
435
490
|
text: string;
|
|
436
491
|
} | {
|
|
@@ -440,6 +495,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
440
495
|
image: string | ArrayBuffer;
|
|
441
496
|
} | {
|
|
442
497
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
498
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
443
499
|
filename?: string | undefined;
|
|
444
500
|
type: "file";
|
|
445
501
|
mimeType: string;
|
|
@@ -450,37 +506,60 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
450
506
|
role: "assistant";
|
|
451
507
|
content: string | ({
|
|
452
508
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
509
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
453
510
|
type: "text";
|
|
454
511
|
text: string;
|
|
455
512
|
} | {
|
|
456
513
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
514
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
457
515
|
filename?: string | undefined;
|
|
458
516
|
type: "file";
|
|
459
517
|
mimeType: string;
|
|
460
518
|
data: string | ArrayBuffer;
|
|
461
519
|
} | {
|
|
462
520
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
521
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
463
522
|
signature?: string | undefined;
|
|
464
|
-
state?: "streaming" | "done" | undefined;
|
|
465
523
|
type: "reasoning";
|
|
466
524
|
text: string;
|
|
467
525
|
} | {
|
|
468
526
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
527
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
469
528
|
type: "redacted-reasoning";
|
|
470
529
|
data: string;
|
|
471
530
|
} | {
|
|
472
531
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
532
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
473
533
|
providerExecuted?: boolean | undefined;
|
|
474
534
|
type: "tool-call";
|
|
475
535
|
toolCallId: string;
|
|
476
536
|
toolName: string;
|
|
477
537
|
args: any;
|
|
538
|
+
} | {
|
|
539
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
540
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
541
|
+
args?: any;
|
|
542
|
+
providerExecuted?: boolean | undefined;
|
|
543
|
+
isError?: boolean | undefined;
|
|
544
|
+
experimental_content?: ({
|
|
545
|
+
type: "text";
|
|
546
|
+
text: string;
|
|
547
|
+
} | {
|
|
548
|
+
mimeType?: string | undefined;
|
|
549
|
+
type: "image";
|
|
550
|
+
data: string;
|
|
551
|
+
})[] | undefined;
|
|
552
|
+
type: "tool-result";
|
|
553
|
+
toolCallId: string;
|
|
554
|
+
toolName: string;
|
|
555
|
+
result: any;
|
|
478
556
|
})[];
|
|
479
557
|
} | {
|
|
480
558
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
481
559
|
role: "tool";
|
|
482
560
|
content: {
|
|
483
561
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
562
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
484
563
|
args?: any;
|
|
485
564
|
providerExecuted?: boolean | undefined;
|
|
486
565
|
isError?: boolean | undefined;
|
|
@@ -503,6 +582,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
503
582
|
content: string;
|
|
504
583
|
} | undefined;
|
|
505
584
|
text?: string | undefined;
|
|
585
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
506
586
|
reasoning?: string | undefined;
|
|
507
587
|
usage?: {
|
|
508
588
|
reasoningTokens?: number | undefined;
|
|
@@ -511,17 +591,18 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
511
591
|
completionTokens: number;
|
|
512
592
|
totalTokens: number;
|
|
513
593
|
} | undefined;
|
|
514
|
-
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
515
594
|
sources?: ({
|
|
516
595
|
title?: string | undefined;
|
|
517
596
|
type?: "source" | undefined;
|
|
518
597
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
598
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
519
599
|
id: string;
|
|
520
600
|
sourceType: "url";
|
|
521
601
|
url: string;
|
|
522
602
|
} | {
|
|
523
|
-
|
|
603
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
524
604
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
605
|
+
filename?: string | undefined;
|
|
525
606
|
id: string;
|
|
526
607
|
title: string;
|
|
527
608
|
type: "source";
|
|
@@ -543,8 +624,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
543
624
|
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
544
625
|
reasoningDetails?: ({
|
|
545
626
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
627
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
546
628
|
signature?: string | undefined;
|
|
547
|
-
state?: "streaming" | "done" | undefined;
|
|
548
629
|
type: "reasoning";
|
|
549
630
|
text: string;
|
|
550
631
|
} | {
|
|
@@ -580,6 +661,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
580
661
|
role: "user";
|
|
581
662
|
content: string | ({
|
|
582
663
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
664
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
583
665
|
type: "text";
|
|
584
666
|
text: string;
|
|
585
667
|
} | {
|
|
@@ -589,6 +671,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
589
671
|
image: string | ArrayBuffer;
|
|
590
672
|
} | {
|
|
591
673
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
674
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
592
675
|
filename?: string | undefined;
|
|
593
676
|
type: "file";
|
|
594
677
|
mimeType: string;
|
|
@@ -599,37 +682,60 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
599
682
|
role: "assistant";
|
|
600
683
|
content: string | ({
|
|
601
684
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
685
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
602
686
|
type: "text";
|
|
603
687
|
text: string;
|
|
604
688
|
} | {
|
|
605
689
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
690
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
606
691
|
filename?: string | undefined;
|
|
607
692
|
type: "file";
|
|
608
693
|
mimeType: string;
|
|
609
694
|
data: string | ArrayBuffer;
|
|
610
695
|
} | {
|
|
611
696
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
697
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
612
698
|
signature?: string | undefined;
|
|
613
|
-
state?: "streaming" | "done" | undefined;
|
|
614
699
|
type: "reasoning";
|
|
615
700
|
text: string;
|
|
616
701
|
} | {
|
|
617
702
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
703
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
618
704
|
type: "redacted-reasoning";
|
|
619
705
|
data: string;
|
|
620
706
|
} | {
|
|
621
707
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
708
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
622
709
|
providerExecuted?: boolean | undefined;
|
|
623
710
|
type: "tool-call";
|
|
624
711
|
toolCallId: string;
|
|
625
712
|
toolName: string;
|
|
626
713
|
args: any;
|
|
714
|
+
} | {
|
|
715
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
716
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
717
|
+
args?: any;
|
|
718
|
+
providerExecuted?: boolean | undefined;
|
|
719
|
+
isError?: boolean | undefined;
|
|
720
|
+
experimental_content?: ({
|
|
721
|
+
type: "text";
|
|
722
|
+
text: string;
|
|
723
|
+
} | {
|
|
724
|
+
mimeType?: string | undefined;
|
|
725
|
+
type: "image";
|
|
726
|
+
data: string;
|
|
727
|
+
})[] | undefined;
|
|
728
|
+
type: "tool-result";
|
|
729
|
+
toolCallId: string;
|
|
730
|
+
toolName: string;
|
|
731
|
+
result: any;
|
|
627
732
|
})[];
|
|
628
733
|
} | {
|
|
629
734
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
630
735
|
role: "tool";
|
|
631
736
|
content: {
|
|
632
737
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
738
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
633
739
|
args?: any;
|
|
634
740
|
providerExecuted?: boolean | undefined;
|
|
635
741
|
isError?: boolean | undefined;
|
|
@@ -655,6 +761,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
655
761
|
role: "user";
|
|
656
762
|
content: string | ({
|
|
657
763
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
764
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
658
765
|
type: "text";
|
|
659
766
|
text: string;
|
|
660
767
|
} | {
|
|
@@ -664,6 +771,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
664
771
|
image: string | ArrayBuffer;
|
|
665
772
|
} | {
|
|
666
773
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
774
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
667
775
|
filename?: string | undefined;
|
|
668
776
|
type: "file";
|
|
669
777
|
mimeType: string;
|
|
@@ -673,6 +781,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
673
781
|
role: import("convex/values").VLiteral<"user", "required">;
|
|
674
782
|
content: import("convex/values").VUnion<string | ({
|
|
675
783
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
784
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
676
785
|
type: "text";
|
|
677
786
|
text: string;
|
|
678
787
|
} | {
|
|
@@ -682,12 +791,14 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
682
791
|
image: string | ArrayBuffer;
|
|
683
792
|
} | {
|
|
684
793
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
794
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
685
795
|
filename?: string | undefined;
|
|
686
796
|
type: "file";
|
|
687
797
|
mimeType: string;
|
|
688
798
|
data: string | ArrayBuffer;
|
|
689
799
|
})[], [import("convex/values").VString<string, "required">, import("convex/values").VArray<({
|
|
690
800
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
801
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
691
802
|
type: "text";
|
|
692
803
|
text: string;
|
|
693
804
|
} | {
|
|
@@ -697,12 +808,14 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
697
808
|
image: string | ArrayBuffer;
|
|
698
809
|
} | {
|
|
699
810
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
811
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
700
812
|
filename?: string | undefined;
|
|
701
813
|
type: "file";
|
|
702
814
|
mimeType: string;
|
|
703
815
|
data: string | ArrayBuffer;
|
|
704
816
|
})[], import("convex/values").VUnion<{
|
|
705
817
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
818
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
706
819
|
type: "text";
|
|
707
820
|
text: string;
|
|
708
821
|
} | {
|
|
@@ -712,19 +825,22 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
712
825
|
image: string | ArrayBuffer;
|
|
713
826
|
} | {
|
|
714
827
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
828
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
715
829
|
filename?: string | undefined;
|
|
716
830
|
type: "file";
|
|
717
831
|
mimeType: string;
|
|
718
832
|
data: string | ArrayBuffer;
|
|
719
833
|
}, [import("convex/values").VObject<{
|
|
720
834
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
835
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
721
836
|
type: "text";
|
|
722
837
|
text: string;
|
|
723
838
|
}, {
|
|
724
839
|
type: import("convex/values").VLiteral<"text", "required">;
|
|
725
840
|
text: import("convex/values").VString<string, "required">;
|
|
726
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>;
|
|
727
|
-
|
|
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<{
|
|
728
844
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
729
845
|
mimeType?: string | undefined;
|
|
730
846
|
type: "image";
|
|
@@ -736,6 +852,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
736
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>;
|
|
737
853
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType">, import("convex/values").VObject<{
|
|
738
854
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
855
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
739
856
|
filename?: string | undefined;
|
|
740
857
|
type: "file";
|
|
741
858
|
mimeType: string;
|
|
@@ -746,132 +863,224 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
746
863
|
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
747
864
|
mimeType: import("convex/values").VString<string, "required">;
|
|
748
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>;
|
|
749
|
-
|
|
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>;
|
|
750
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>;
|
|
751
869
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
752
870
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
753
871
|
role: "assistant";
|
|
754
872
|
content: string | ({
|
|
755
873
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
874
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
756
875
|
type: "text";
|
|
757
876
|
text: string;
|
|
758
877
|
} | {
|
|
759
878
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
879
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
760
880
|
filename?: string | undefined;
|
|
761
881
|
type: "file";
|
|
762
882
|
mimeType: string;
|
|
763
883
|
data: string | ArrayBuffer;
|
|
764
884
|
} | {
|
|
765
885
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
886
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
766
887
|
signature?: string | undefined;
|
|
767
|
-
state?: "streaming" | "done" | undefined;
|
|
768
888
|
type: "reasoning";
|
|
769
889
|
text: string;
|
|
770
890
|
} | {
|
|
771
891
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
892
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
772
893
|
type: "redacted-reasoning";
|
|
773
894
|
data: string;
|
|
774
895
|
} | {
|
|
775
896
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
897
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
776
898
|
providerExecuted?: boolean | undefined;
|
|
777
899
|
type: "tool-call";
|
|
778
900
|
toolCallId: string;
|
|
779
901
|
toolName: string;
|
|
780
902
|
args: any;
|
|
903
|
+
} | {
|
|
904
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
905
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
906
|
+
args?: any;
|
|
907
|
+
providerExecuted?: boolean | undefined;
|
|
908
|
+
isError?: boolean | undefined;
|
|
909
|
+
experimental_content?: ({
|
|
910
|
+
type: "text";
|
|
911
|
+
text: string;
|
|
912
|
+
} | {
|
|
913
|
+
mimeType?: string | undefined;
|
|
914
|
+
type: "image";
|
|
915
|
+
data: string;
|
|
916
|
+
})[] | undefined;
|
|
917
|
+
type: "tool-result";
|
|
918
|
+
toolCallId: string;
|
|
919
|
+
toolName: string;
|
|
920
|
+
result: any;
|
|
781
921
|
})[];
|
|
782
922
|
}, {
|
|
783
923
|
role: import("convex/values").VLiteral<"assistant", "required">;
|
|
784
924
|
content: import("convex/values").VUnion<string | ({
|
|
785
925
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
926
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
786
927
|
type: "text";
|
|
787
928
|
text: string;
|
|
788
929
|
} | {
|
|
789
930
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
931
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
790
932
|
filename?: string | undefined;
|
|
791
933
|
type: "file";
|
|
792
934
|
mimeType: string;
|
|
793
935
|
data: string | ArrayBuffer;
|
|
794
936
|
} | {
|
|
795
937
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
938
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
796
939
|
signature?: string | undefined;
|
|
797
|
-
state?: "streaming" | "done" | undefined;
|
|
798
940
|
type: "reasoning";
|
|
799
941
|
text: string;
|
|
800
942
|
} | {
|
|
801
943
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
944
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
802
945
|
type: "redacted-reasoning";
|
|
803
946
|
data: string;
|
|
804
947
|
} | {
|
|
805
948
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
949
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
806
950
|
providerExecuted?: boolean | undefined;
|
|
807
951
|
type: "tool-call";
|
|
808
952
|
toolCallId: string;
|
|
809
953
|
toolName: string;
|
|
810
954
|
args: any;
|
|
955
|
+
} | {
|
|
956
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
957
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
958
|
+
args?: any;
|
|
959
|
+
providerExecuted?: boolean | undefined;
|
|
960
|
+
isError?: boolean | undefined;
|
|
961
|
+
experimental_content?: ({
|
|
962
|
+
type: "text";
|
|
963
|
+
text: string;
|
|
964
|
+
} | {
|
|
965
|
+
mimeType?: string | undefined;
|
|
966
|
+
type: "image";
|
|
967
|
+
data: string;
|
|
968
|
+
})[] | undefined;
|
|
969
|
+
type: "tool-result";
|
|
970
|
+
toolCallId: string;
|
|
971
|
+
toolName: string;
|
|
972
|
+
result: any;
|
|
811
973
|
})[], [import("convex/values").VString<string, "required">, import("convex/values").VArray<({
|
|
812
974
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
975
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
813
976
|
type: "text";
|
|
814
977
|
text: string;
|
|
815
978
|
} | {
|
|
816
979
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
980
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
817
981
|
filename?: string | undefined;
|
|
818
982
|
type: "file";
|
|
819
983
|
mimeType: string;
|
|
820
984
|
data: string | ArrayBuffer;
|
|
821
985
|
} | {
|
|
822
986
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
987
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
823
988
|
signature?: string | undefined;
|
|
824
|
-
state?: "streaming" | "done" | undefined;
|
|
825
989
|
type: "reasoning";
|
|
826
990
|
text: string;
|
|
827
991
|
} | {
|
|
828
992
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
993
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
829
994
|
type: "redacted-reasoning";
|
|
830
995
|
data: string;
|
|
831
996
|
} | {
|
|
832
997
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
998
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
833
999
|
providerExecuted?: boolean | undefined;
|
|
834
1000
|
type: "tool-call";
|
|
835
1001
|
toolCallId: string;
|
|
836
1002
|
toolName: string;
|
|
837
1003
|
args: any;
|
|
1004
|
+
} | {
|
|
1005
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1006
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1007
|
+
args?: any;
|
|
1008
|
+
providerExecuted?: boolean | undefined;
|
|
1009
|
+
isError?: boolean | undefined;
|
|
1010
|
+
experimental_content?: ({
|
|
1011
|
+
type: "text";
|
|
1012
|
+
text: string;
|
|
1013
|
+
} | {
|
|
1014
|
+
mimeType?: string | undefined;
|
|
1015
|
+
type: "image";
|
|
1016
|
+
data: string;
|
|
1017
|
+
})[] | undefined;
|
|
1018
|
+
type: "tool-result";
|
|
1019
|
+
toolCallId: string;
|
|
1020
|
+
toolName: string;
|
|
1021
|
+
result: any;
|
|
838
1022
|
})[], import("convex/values").VUnion<{
|
|
839
1023
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1024
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
840
1025
|
type: "text";
|
|
841
1026
|
text: string;
|
|
842
1027
|
} | {
|
|
843
1028
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1029
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
844
1030
|
filename?: string | undefined;
|
|
845
1031
|
type: "file";
|
|
846
1032
|
mimeType: string;
|
|
847
1033
|
data: string | ArrayBuffer;
|
|
848
1034
|
} | {
|
|
849
1035
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1036
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
850
1037
|
signature?: string | undefined;
|
|
851
|
-
state?: "streaming" | "done" | undefined;
|
|
852
1038
|
type: "reasoning";
|
|
853
1039
|
text: string;
|
|
854
1040
|
} | {
|
|
855
1041
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1042
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
856
1043
|
type: "redacted-reasoning";
|
|
857
1044
|
data: string;
|
|
858
1045
|
} | {
|
|
859
1046
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1047
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
860
1048
|
providerExecuted?: boolean | undefined;
|
|
861
1049
|
type: "tool-call";
|
|
862
1050
|
toolCallId: string;
|
|
863
1051
|
toolName: string;
|
|
864
1052
|
args: any;
|
|
1053
|
+
} | {
|
|
1054
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1055
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1056
|
+
args?: any;
|
|
1057
|
+
providerExecuted?: boolean | undefined;
|
|
1058
|
+
isError?: boolean | undefined;
|
|
1059
|
+
experimental_content?: ({
|
|
1060
|
+
type: "text";
|
|
1061
|
+
text: string;
|
|
1062
|
+
} | {
|
|
1063
|
+
mimeType?: string | undefined;
|
|
1064
|
+
type: "image";
|
|
1065
|
+
data: string;
|
|
1066
|
+
})[] | undefined;
|
|
1067
|
+
type: "tool-result";
|
|
1068
|
+
toolCallId: string;
|
|
1069
|
+
toolName: string;
|
|
1070
|
+
result: any;
|
|
865
1071
|
}, [import("convex/values").VObject<{
|
|
866
1072
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1073
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
867
1074
|
type: "text";
|
|
868
1075
|
text: string;
|
|
869
1076
|
}, {
|
|
870
1077
|
type: import("convex/values").VLiteral<"text", "required">;
|
|
871
1078
|
text: import("convex/values").VString<string, "required">;
|
|
872
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>;
|
|
873
|
-
|
|
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<{
|
|
874
1082
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1083
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
875
1084
|
filename?: string | undefined;
|
|
876
1085
|
type: "file";
|
|
877
1086
|
mimeType: string;
|
|
@@ -882,10 +1091,11 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
882
1091
|
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
883
1092
|
mimeType: import("convex/values").VString<string, "required">;
|
|
884
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>;
|
|
885
|
-
|
|
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<{
|
|
886
1096
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1097
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
887
1098
|
signature?: string | undefined;
|
|
888
|
-
state?: "streaming" | "done" | undefined;
|
|
889
1099
|
type: "reasoning";
|
|
890
1100
|
text: string;
|
|
891
1101
|
}, {
|
|
@@ -893,17 +1103,20 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
893
1103
|
text: import("convex/values").VString<string, "required">;
|
|
894
1104
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
895
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>;
|
|
896
|
-
|
|
897
|
-
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` |
|
|
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<{
|
|
898
1108
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1109
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
899
1110
|
type: "redacted-reasoning";
|
|
900
1111
|
data: string;
|
|
901
1112
|
}, {
|
|
902
1113
|
type: import("convex/values").VLiteral<"redacted-reasoning", "required">;
|
|
903
1114
|
data: import("convex/values").VString<string, "required">;
|
|
904
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>;
|
|
905
|
-
|
|
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<{
|
|
906
1118
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1119
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
907
1120
|
providerExecuted?: boolean | undefined;
|
|
908
1121
|
type: "tool-call";
|
|
909
1122
|
toolCallId: string;
|
|
@@ -914,15 +1127,74 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
914
1127
|
toolCallId: import("convex/values").VString<string, "required">;
|
|
915
1128
|
toolName: import("convex/values").VString<string, "required">;
|
|
916
1129
|
args: import("convex/values").VAny<any, "required", string>;
|
|
1130
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
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>;
|
|
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<{
|
|
1134
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1135
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1136
|
+
args?: any;
|
|
1137
|
+
providerExecuted?: boolean | undefined;
|
|
1138
|
+
isError?: boolean | undefined;
|
|
1139
|
+
experimental_content?: ({
|
|
1140
|
+
type: "text";
|
|
1141
|
+
text: string;
|
|
1142
|
+
} | {
|
|
1143
|
+
mimeType?: string | undefined;
|
|
1144
|
+
type: "image";
|
|
1145
|
+
data: string;
|
|
1146
|
+
})[] | undefined;
|
|
1147
|
+
type: "tool-result";
|
|
1148
|
+
toolCallId: string;
|
|
1149
|
+
toolName: string;
|
|
1150
|
+
result: any;
|
|
1151
|
+
}, {
|
|
1152
|
+
type: import("convex/values").VLiteral<"tool-result", "required">;
|
|
1153
|
+
toolCallId: import("convex/values").VString<string, "required">;
|
|
1154
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
1155
|
+
result: import("convex/values").VAny<any, "required", string>;
|
|
917
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>;
|
|
918
1158
|
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
919
|
-
|
|
1159
|
+
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1160
|
+
args: import("convex/values").VAny<any, "optional", string>;
|
|
1161
|
+
experimental_content: import("convex/values").VArray<({
|
|
1162
|
+
type: "text";
|
|
1163
|
+
text: string;
|
|
1164
|
+
} | {
|
|
1165
|
+
mimeType?: string | undefined;
|
|
1166
|
+
type: "image";
|
|
1167
|
+
data: string;
|
|
1168
|
+
})[] | undefined, import("convex/values").VUnion<{
|
|
1169
|
+
type: "text";
|
|
1170
|
+
text: string;
|
|
1171
|
+
} | {
|
|
1172
|
+
mimeType?: string | undefined;
|
|
1173
|
+
type: "image";
|
|
1174
|
+
data: string;
|
|
1175
|
+
}, [import("convex/values").VObject<{
|
|
1176
|
+
type: "text";
|
|
1177
|
+
text: string;
|
|
1178
|
+
}, {
|
|
1179
|
+
type: import("convex/values").VLiteral<"text", "required">;
|
|
1180
|
+
text: import("convex/values").VString<string, "required">;
|
|
1181
|
+
}, "required", "type" | "text">, import("convex/values").VObject<{
|
|
1182
|
+
mimeType?: string | undefined;
|
|
1183
|
+
type: "image";
|
|
1184
|
+
data: string;
|
|
1185
|
+
}, {
|
|
1186
|
+
type: import("convex/values").VLiteral<"image", "required">;
|
|
1187
|
+
data: import("convex/values").VString<string, "required">;
|
|
1188
|
+
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
1189
|
+
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
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>;
|
|
920
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>;
|
|
921
1192
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
922
1193
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
923
1194
|
role: "tool";
|
|
924
1195
|
content: {
|
|
925
1196
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1197
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
926
1198
|
args?: any;
|
|
927
1199
|
providerExecuted?: boolean | undefined;
|
|
928
1200
|
isError?: boolean | undefined;
|
|
@@ -943,6 +1215,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
943
1215
|
role: import("convex/values").VLiteral<"tool", "required">;
|
|
944
1216
|
content: import("convex/values").VArray<{
|
|
945
1217
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1218
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
946
1219
|
args?: any;
|
|
947
1220
|
providerExecuted?: boolean | undefined;
|
|
948
1221
|
isError?: boolean | undefined;
|
|
@@ -960,6 +1233,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
960
1233
|
result: any;
|
|
961
1234
|
}[], import("convex/values").VObject<{
|
|
962
1235
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1236
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
963
1237
|
args?: any;
|
|
964
1238
|
providerExecuted?: boolean | undefined;
|
|
965
1239
|
isError?: boolean | undefined;
|
|
@@ -981,6 +1255,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
981
1255
|
toolName: import("convex/values").VString<string, "required">;
|
|
982
1256
|
result: import("convex/values").VAny<any, "required", string>;
|
|
983
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>;
|
|
984
1259
|
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
985
1260
|
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
986
1261
|
args: import("convex/values").VAny<any, "optional", string>;
|
|
@@ -1013,7 +1288,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1013
1288
|
data: import("convex/values").VString<string, "required">;
|
|
1014
1289
|
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
1015
1290
|
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
1016
|
-
}, "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">;
|
|
1017
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>;
|
|
1018
1293
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
1019
1294
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1044,12 +1319,14 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1044
1319
|
title?: string | undefined;
|
|
1045
1320
|
type?: "source" | undefined;
|
|
1046
1321
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1322
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1047
1323
|
id: string;
|
|
1048
1324
|
sourceType: "url";
|
|
1049
1325
|
url: string;
|
|
1050
1326
|
} | {
|
|
1051
|
-
|
|
1327
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1052
1328
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1329
|
+
filename?: string | undefined;
|
|
1053
1330
|
id: string;
|
|
1054
1331
|
title: string;
|
|
1055
1332
|
type: "source";
|
|
@@ -1059,12 +1336,14 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1059
1336
|
title?: string | undefined;
|
|
1060
1337
|
type?: "source" | undefined;
|
|
1061
1338
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1339
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1062
1340
|
id: string;
|
|
1063
1341
|
sourceType: "url";
|
|
1064
1342
|
url: string;
|
|
1065
1343
|
} | {
|
|
1066
|
-
|
|
1344
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1067
1345
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1346
|
+
filename?: string | undefined;
|
|
1068
1347
|
id: string;
|
|
1069
1348
|
title: string;
|
|
1070
1349
|
type: "source";
|
|
@@ -1074,6 +1353,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1074
1353
|
title?: string | undefined;
|
|
1075
1354
|
type?: "source" | undefined;
|
|
1076
1355
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1356
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1077
1357
|
id: string;
|
|
1078
1358
|
sourceType: "url";
|
|
1079
1359
|
url: string;
|
|
@@ -1084,9 +1364,11 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1084
1364
|
url: import("convex/values").VString<string, "required">;
|
|
1085
1365
|
title: import("convex/values").VString<string | undefined, "optional">;
|
|
1086
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>;
|
|
1087
|
-
|
|
1088
|
-
|
|
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;
|
|
1089
1370
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1371
|
+
filename?: string | undefined;
|
|
1090
1372
|
id: string;
|
|
1091
1373
|
title: string;
|
|
1092
1374
|
type: "source";
|
|
@@ -1099,8 +1381,9 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1099
1381
|
mediaType: import("convex/values").VString<string, "required">;
|
|
1100
1382
|
title: import("convex/values").VString<string, "required">;
|
|
1101
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>;
|
|
1102
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>;
|
|
1103
|
-
}, "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">;
|
|
1104
1387
|
warnings: import("convex/values").VArray<({
|
|
1105
1388
|
details?: string | undefined;
|
|
1106
1389
|
type: "unsupported-setting";
|
|
@@ -1150,8 +1433,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1150
1433
|
reasoning: import("convex/values").VString<string | undefined, "optional">;
|
|
1151
1434
|
reasoningDetails: import("convex/values").VArray<({
|
|
1152
1435
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1436
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1153
1437
|
signature?: string | undefined;
|
|
1154
|
-
state?: "streaming" | "done" | undefined;
|
|
1155
1438
|
type: "reasoning";
|
|
1156
1439
|
text: string;
|
|
1157
1440
|
} | {
|
|
@@ -1163,8 +1446,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1163
1446
|
data: string;
|
|
1164
1447
|
})[] | undefined, import("convex/values").VUnion<{
|
|
1165
1448
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1449
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1166
1450
|
signature?: string | undefined;
|
|
1167
|
-
state?: "streaming" | "done" | undefined;
|
|
1168
1451
|
type: "reasoning";
|
|
1169
1452
|
text: string;
|
|
1170
1453
|
} | {
|
|
@@ -1176,8 +1459,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1176
1459
|
data: string;
|
|
1177
1460
|
}, [import("convex/values").VObject<{
|
|
1178
1461
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1462
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1179
1463
|
signature?: string | undefined;
|
|
1180
|
-
state?: "streaming" | "done" | undefined;
|
|
1181
1464
|
type: "reasoning";
|
|
1182
1465
|
text: string;
|
|
1183
1466
|
}, {
|
|
@@ -1185,8 +1468,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1185
1468
|
text: import("convex/values").VString<string, "required">;
|
|
1186
1469
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
1187
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>;
|
|
1188
|
-
|
|
1189
|
-
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` |
|
|
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<{
|
|
1190
1473
|
signature?: string | undefined;
|
|
1191
1474
|
type: "text";
|
|
1192
1475
|
text: string;
|
|
@@ -1200,11 +1483,11 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1200
1483
|
}, {
|
|
1201
1484
|
type: import("convex/values").VLiteral<"redacted", "required">;
|
|
1202
1485
|
data: import("convex/values").VString<string, "required">;
|
|
1203
|
-
}, "required", "type" | "data">], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` |
|
|
1486
|
+
}, "required", "type" | "data">], "required", "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "data" | "signature">, "optional">;
|
|
1204
1487
|
id: import("convex/values").VString<string | undefined, "optional">;
|
|
1205
1488
|
_id: import("convex/values").VString<string, "required">;
|
|
1206
1489
|
_creationTime: import("convex/values").VFloat64<number, "required">;
|
|
1207
|
-
}, "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">;
|
|
1208
1491
|
continueCursor: import("convex/values").VString<string, "required">;
|
|
1209
1492
|
isDone: import("convex/values").VBoolean<boolean, "required">;
|
|
1210
1493
|
splitCursor: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|