@convex-dev/agent 0.1.18 → 0.2.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/createTool.d.ts +30 -11
- package/dist/client/createTool.d.ts.map +1 -1
- package/dist/client/createTool.js +24 -10
- package/dist/client/createTool.js.map +1 -1
- package/dist/client/defaultComponent.d.ts +11 -0
- package/dist/client/defaultComponent.d.ts.map +1 -0
- package/dist/client/defaultComponent.js +7 -0
- package/dist/client/defaultComponent.js.map +1 -0
- package/dist/client/definePlaygroundAPI.d.ts +68 -23
- package/dist/client/definePlaygroundAPI.d.ts.map +1 -1
- package/dist/client/definePlaygroundAPI.js +7 -20
- package/dist/client/definePlaygroundAPI.js.map +1 -1
- package/dist/client/files.d.ts +14 -4
- package/dist/client/files.d.ts.map +1 -1
- package/dist/client/files.js +66 -11
- package/dist/client/files.js.map +1 -1
- package/dist/client/index.d.ts +323 -780
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +445 -543
- package/dist/client/index.js.map +1 -1
- package/dist/client/messages.d.ts +256 -0
- package/dist/client/messages.d.ts.map +1 -0
- package/dist/client/messages.js +97 -0
- package/dist/client/messages.js.map +1 -0
- package/dist/client/search.d.ts +35 -12
- package/dist/client/search.d.ts.map +1 -1
- package/dist/client/search.js +21 -4
- package/dist/client/search.js.map +1 -1
- package/dist/client/streaming.d.ts +21 -21
- package/dist/client/streaming.d.ts.map +1 -1
- package/dist/client/streaming.js +35 -40
- package/dist/client/streaming.js.map +1 -1
- package/dist/client/threads.d.ts +46 -0
- package/dist/client/threads.d.ts.map +1 -0
- package/dist/client/threads.js +49 -0
- package/dist/client/threads.js.map +1 -0
- package/dist/client/types.d.ts +159 -75
- package/dist/client/types.d.ts.map +1 -1
- package/dist/component/_generated/api.d.ts +261 -209
- package/dist/component/messages.d.ts +314 -105
- package/dist/component/messages.d.ts.map +1 -1
- package/dist/component/messages.js +141 -83
- package/dist/component/messages.js.map +1 -1
- package/dist/component/schema.d.ts +631 -870
- package/dist/component/schema.d.ts.map +1 -1
- package/dist/component/schema.js +11 -16
- package/dist/component/schema.js.map +1 -1
- package/dist/component/streams.d.ts +29 -149
- package/dist/component/streams.d.ts.map +1 -1
- package/dist/component/streams.js +104 -60
- package/dist/component/streams.js.map +1 -1
- package/dist/component/threads.d.ts +4 -4
- package/dist/component/users.d.ts +3 -3
- package/dist/mapping.d.ts +15 -16
- package/dist/mapping.d.ts.map +1 -1
- package/dist/mapping.js +208 -62
- package/dist/mapping.js.map +1 -1
- package/dist/parts.d.ts +3 -0
- package/dist/parts.d.ts.map +1 -0
- package/dist/parts.js +34 -0
- package/dist/parts.js.map +1 -0
- package/dist/react/SmoothText.d.ts +5 -0
- package/dist/react/SmoothText.d.ts.map +1 -0
- package/dist/react/SmoothText.js +6 -0
- package/dist/react/SmoothText.js.map +1 -0
- package/dist/react/deltas.d.ts +3 -5
- package/dist/react/deltas.d.ts.map +1 -1
- package/dist/react/deltas.js +89 -53
- package/dist/react/deltas.js.map +1 -1
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +31 -11
- package/dist/react/index.js.map +1 -1
- package/dist/react/optimisticallySendMessage.d.ts.map +1 -1
- package/dist/react/optimisticallySendMessage.js +2 -8
- package/dist/react/optimisticallySendMessage.js.map +1 -1
- package/dist/react/toUIMessages.d.ts +5 -4
- package/dist/react/toUIMessages.d.ts.map +1 -1
- package/dist/react/toUIMessages.js +103 -40
- package/dist/react/toUIMessages.js.map +1 -1
- package/dist/react/useSmoothText.d.ts +13 -12
- package/dist/react/useSmoothText.d.ts.map +1 -1
- package/dist/react/useSmoothText.js +1 -1
- package/dist/react/useSmoothText.js.map +1 -1
- package/dist/validators.d.ts +751 -1464
- package/dist/validators.d.ts.map +1 -1
- package/dist/validators.js +39 -80
- package/dist/validators.js.map +1 -1
- package/package.json +34 -30
- package/src/client/createTool.ts +66 -40
- package/src/client/defaultComponent.ts +17 -0
- package/src/client/definePlaygroundAPI.ts +17 -31
- package/src/client/files.ts +94 -17
- package/src/client/index.test.ts +28 -38
- package/src/client/index.ts +785 -977
- package/src/client/messages.ts +205 -0
- package/src/client/search.ts +37 -10
- package/src/client/streaming.ts +53 -56
- package/src/client/threads.ts +78 -0
- package/src/client/types.ts +239 -131
- package/src/component/_generated/api.d.ts +261 -209
- package/src/component/messages.test.ts +182 -40
- package/src/component/messages.ts +165 -108
- package/src/component/schema.ts +11 -17
- package/src/component/streams.ts +180 -69
- package/src/mapping.ts +253 -96
- package/src/parts.ts +39 -0
- package/src/react/SmoothText.tsx +9 -0
- package/src/react/deltas.test.ts +38 -42
- package/src/react/deltas.ts +116 -65
- package/src/react/index.ts +35 -13
- package/src/react/optimisticallySendMessage.ts +2 -8
- package/src/react/toUIMessages.test.ts +154 -36
- package/src/react/toUIMessages.ts +136 -57
- package/src/react/useSmoothText.ts +14 -15
- package/src/validators.test.ts +1 -117
- package/src/validators.ts +57 -107
- package/dist/client/listMessages.d.ts +0 -22
- package/dist/client/listMessages.d.ts.map +0 -1
- package/dist/client/listMessages.js +0 -25
- package/dist/client/listMessages.js.map +0 -1
- package/src/client/listMessages.ts +0 -38
|
@@ -327,6 +327,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
327
327
|
} | {
|
|
328
328
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
329
329
|
signature?: string | undefined;
|
|
330
|
+
state?: "streaming" | "done" | undefined;
|
|
330
331
|
type: "reasoning";
|
|
331
332
|
text: string;
|
|
332
333
|
} | {
|
|
@@ -335,6 +336,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
335
336
|
data: string;
|
|
336
337
|
} | {
|
|
337
338
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
339
|
+
providerExecuted?: boolean | undefined;
|
|
338
340
|
type: "tool-call";
|
|
339
341
|
toolCallId: string;
|
|
340
342
|
toolName: string;
|
|
@@ -346,6 +348,8 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
346
348
|
content: {
|
|
347
349
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
348
350
|
args?: any;
|
|
351
|
+
providerExecuted?: boolean | undefined;
|
|
352
|
+
isError?: boolean | undefined;
|
|
349
353
|
experimental_content?: ({
|
|
350
354
|
type: "text";
|
|
351
355
|
text: string;
|
|
@@ -354,7 +358,6 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
354
358
|
type: "image";
|
|
355
359
|
data: string;
|
|
356
360
|
})[] | undefined;
|
|
357
|
-
isError?: boolean | undefined;
|
|
358
361
|
type: "tool-result";
|
|
359
362
|
toolCallId: string;
|
|
360
363
|
toolName: string;
|
|
@@ -368,25 +371,28 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
368
371
|
text?: string | undefined;
|
|
369
372
|
reasoning?: string | undefined;
|
|
370
373
|
usage?: {
|
|
374
|
+
reasoningTokens?: number | undefined;
|
|
375
|
+
cachedInputTokens?: number | undefined;
|
|
371
376
|
promptTokens: number;
|
|
372
377
|
completionTokens: number;
|
|
373
378
|
totalTokens: number;
|
|
374
379
|
} | undefined;
|
|
375
380
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
376
|
-
sources?: {
|
|
381
|
+
sources?: ({
|
|
377
382
|
title?: string | undefined;
|
|
383
|
+
type?: "source" | undefined;
|
|
378
384
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
379
385
|
id: string;
|
|
380
386
|
sourceType: "url";
|
|
381
387
|
url: string;
|
|
382
|
-
}[] | undefined;
|
|
383
|
-
reasoningDetails?: ({
|
|
384
|
-
signature?: string | undefined;
|
|
385
|
-
type: "text";
|
|
386
|
-
text: string;
|
|
387
388
|
} | {
|
|
388
|
-
|
|
389
|
-
|
|
389
|
+
filename?: string | undefined;
|
|
390
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
391
|
+
id: string;
|
|
392
|
+
title: string;
|
|
393
|
+
type: "source";
|
|
394
|
+
sourceType: "document";
|
|
395
|
+
mediaType: string;
|
|
390
396
|
})[] | undefined;
|
|
391
397
|
warnings?: ({
|
|
392
398
|
details?: string | undefined;
|
|
@@ -401,6 +407,20 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
401
407
|
message: string;
|
|
402
408
|
})[] | undefined;
|
|
403
409
|
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
410
|
+
reasoningDetails?: ({
|
|
411
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
412
|
+
signature?: string | undefined;
|
|
413
|
+
state?: "streaming" | "done" | undefined;
|
|
414
|
+
type: "reasoning";
|
|
415
|
+
text: string;
|
|
416
|
+
} | {
|
|
417
|
+
signature?: string | undefined;
|
|
418
|
+
type: "text";
|
|
419
|
+
text: string;
|
|
420
|
+
} | {
|
|
421
|
+
type: "redacted";
|
|
422
|
+
data: string;
|
|
423
|
+
})[] | undefined;
|
|
404
424
|
parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
405
425
|
stepId?: string | undefined;
|
|
406
426
|
status: "pending" | "success" | "failed";
|
|
@@ -409,7 +429,6 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
409
429
|
stepOrder: number;
|
|
410
430
|
tool: boolean;
|
|
411
431
|
}, {
|
|
412
|
-
id: import("convex/values").VString<string | undefined, "optional">;
|
|
413
432
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
414
433
|
threadId: import("convex/values").VId<import("convex/values").GenericId<"threads">, "required">;
|
|
415
434
|
order: import("convex/values").VFloat64<number, "required">;
|
|
@@ -457,6 +476,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
457
476
|
} | {
|
|
458
477
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
459
478
|
signature?: string | undefined;
|
|
479
|
+
state?: "streaming" | "done" | undefined;
|
|
460
480
|
type: "reasoning";
|
|
461
481
|
text: string;
|
|
462
482
|
} | {
|
|
@@ -465,6 +485,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
465
485
|
data: string;
|
|
466
486
|
} | {
|
|
467
487
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
488
|
+
providerExecuted?: boolean | undefined;
|
|
468
489
|
type: "tool-call";
|
|
469
490
|
toolCallId: string;
|
|
470
491
|
toolName: string;
|
|
@@ -476,6 +497,8 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
476
497
|
content: {
|
|
477
498
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
478
499
|
args?: any;
|
|
500
|
+
providerExecuted?: boolean | undefined;
|
|
501
|
+
isError?: boolean | undefined;
|
|
479
502
|
experimental_content?: ({
|
|
480
503
|
type: "text";
|
|
481
504
|
text: string;
|
|
@@ -484,7 +507,6 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
484
507
|
type: "image";
|
|
485
508
|
data: string;
|
|
486
509
|
})[] | undefined;
|
|
487
|
-
isError?: boolean | undefined;
|
|
488
510
|
type: "tool-result";
|
|
489
511
|
toolCallId: string;
|
|
490
512
|
toolName: string;
|
|
@@ -608,6 +630,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
608
630
|
} | {
|
|
609
631
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
610
632
|
signature?: string | undefined;
|
|
633
|
+
state?: "streaming" | "done" | undefined;
|
|
611
634
|
type: "reasoning";
|
|
612
635
|
text: string;
|
|
613
636
|
} | {
|
|
@@ -616,6 +639,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
616
639
|
data: string;
|
|
617
640
|
} | {
|
|
618
641
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
642
|
+
providerExecuted?: boolean | undefined;
|
|
619
643
|
type: "tool-call";
|
|
620
644
|
toolCallId: string;
|
|
621
645
|
toolName: string;
|
|
@@ -636,6 +660,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
636
660
|
} | {
|
|
637
661
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
638
662
|
signature?: string | undefined;
|
|
663
|
+
state?: "streaming" | "done" | undefined;
|
|
639
664
|
type: "reasoning";
|
|
640
665
|
text: string;
|
|
641
666
|
} | {
|
|
@@ -644,6 +669,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
644
669
|
data: string;
|
|
645
670
|
} | {
|
|
646
671
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
672
|
+
providerExecuted?: boolean | undefined;
|
|
647
673
|
type: "tool-call";
|
|
648
674
|
toolCallId: string;
|
|
649
675
|
toolName: string;
|
|
@@ -661,6 +687,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
661
687
|
} | {
|
|
662
688
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
663
689
|
signature?: string | undefined;
|
|
690
|
+
state?: "streaming" | "done" | undefined;
|
|
664
691
|
type: "reasoning";
|
|
665
692
|
text: string;
|
|
666
693
|
} | {
|
|
@@ -669,6 +696,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
669
696
|
data: string;
|
|
670
697
|
} | {
|
|
671
698
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
699
|
+
providerExecuted?: boolean | undefined;
|
|
672
700
|
type: "tool-call";
|
|
673
701
|
toolCallId: string;
|
|
674
702
|
toolName: string;
|
|
@@ -686,6 +714,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
686
714
|
} | {
|
|
687
715
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
688
716
|
signature?: string | undefined;
|
|
717
|
+
state?: "streaming" | "done" | undefined;
|
|
689
718
|
type: "reasoning";
|
|
690
719
|
text: string;
|
|
691
720
|
} | {
|
|
@@ -694,6 +723,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
694
723
|
data: string;
|
|
695
724
|
} | {
|
|
696
725
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
726
|
+
providerExecuted?: boolean | undefined;
|
|
697
727
|
type: "tool-call";
|
|
698
728
|
toolCallId: string;
|
|
699
729
|
toolName: string;
|
|
@@ -721,6 +751,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
721
751
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, import("convex/values").VObject<{
|
|
722
752
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
723
753
|
signature?: string | undefined;
|
|
754
|
+
state?: "streaming" | "done" | undefined;
|
|
724
755
|
type: "reasoning";
|
|
725
756
|
text: string;
|
|
726
757
|
}, {
|
|
@@ -728,7 +759,8 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
728
759
|
text: import("convex/values").VString<string, "required">;
|
|
729
760
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
730
761
|
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>;
|
|
731
|
-
|
|
762
|
+
state: import("convex/values").VUnion<"streaming" | "done" | undefined, [import("convex/values").VLiteral<"streaming", "required">, import("convex/values").VLiteral<"done", "required">], "optional", never>;
|
|
763
|
+
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature" | "state">, import("convex/values").VObject<{
|
|
732
764
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
733
765
|
type: "redacted-reasoning";
|
|
734
766
|
data: string;
|
|
@@ -738,6 +770,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
738
770
|
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>;
|
|
739
771
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "data">, import("convex/values").VObject<{
|
|
740
772
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
773
|
+
providerExecuted?: boolean | undefined;
|
|
741
774
|
type: "tool-call";
|
|
742
775
|
toolCallId: string;
|
|
743
776
|
toolName: string;
|
|
@@ -748,7 +781,8 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
748
781
|
toolName: import("convex/values").VString<string, "required">;
|
|
749
782
|
args: import("convex/values").VAny<any, "required", string>;
|
|
750
783
|
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
|
-
|
|
784
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
785
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "state" | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>, "required">], "required", never>;
|
|
752
786
|
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>;
|
|
753
787
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
754
788
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -756,6 +790,8 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
756
790
|
content: {
|
|
757
791
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
758
792
|
args?: any;
|
|
793
|
+
providerExecuted?: boolean | undefined;
|
|
794
|
+
isError?: boolean | undefined;
|
|
759
795
|
experimental_content?: ({
|
|
760
796
|
type: "text";
|
|
761
797
|
text: string;
|
|
@@ -764,7 +800,6 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
764
800
|
type: "image";
|
|
765
801
|
data: string;
|
|
766
802
|
})[] | undefined;
|
|
767
|
-
isError?: boolean | undefined;
|
|
768
803
|
type: "tool-result";
|
|
769
804
|
toolCallId: string;
|
|
770
805
|
toolName: string;
|
|
@@ -775,6 +810,8 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
775
810
|
content: import("convex/values").VArray<{
|
|
776
811
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
777
812
|
args?: any;
|
|
813
|
+
providerExecuted?: boolean | undefined;
|
|
814
|
+
isError?: boolean | undefined;
|
|
778
815
|
experimental_content?: ({
|
|
779
816
|
type: "text";
|
|
780
817
|
text: string;
|
|
@@ -783,7 +820,6 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
783
820
|
type: "image";
|
|
784
821
|
data: string;
|
|
785
822
|
})[] | undefined;
|
|
786
|
-
isError?: boolean | undefined;
|
|
787
823
|
type: "tool-result";
|
|
788
824
|
toolCallId: string;
|
|
789
825
|
toolName: string;
|
|
@@ -791,6 +827,8 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
791
827
|
}[], import("convex/values").VObject<{
|
|
792
828
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
793
829
|
args?: any;
|
|
830
|
+
providerExecuted?: boolean | undefined;
|
|
831
|
+
isError?: boolean | undefined;
|
|
794
832
|
experimental_content?: ({
|
|
795
833
|
type: "text";
|
|
796
834
|
text: string;
|
|
@@ -799,7 +837,6 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
799
837
|
type: "image";
|
|
800
838
|
data: string;
|
|
801
839
|
})[] | undefined;
|
|
802
|
-
isError?: boolean | undefined;
|
|
803
840
|
type: "tool-result";
|
|
804
841
|
toolCallId: string;
|
|
805
842
|
toolName: string;
|
|
@@ -809,6 +846,9 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
809
846
|
toolCallId: import("convex/values").VString<string, "required">;
|
|
810
847
|
toolName: import("convex/values").VString<string, "required">;
|
|
811
848
|
result: import("convex/values").VAny<any, "required", string>;
|
|
849
|
+
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>;
|
|
850
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
851
|
+
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
812
852
|
args: import("convex/values").VAny<any, "optional", string>;
|
|
813
853
|
experimental_content: import("convex/values").VArray<({
|
|
814
854
|
type: "text";
|
|
@@ -839,9 +879,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
839
879
|
data: import("convex/values").VString<string, "required">;
|
|
840
880
|
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
841
881
|
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
842
|
-
|
|
843
|
-
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>;
|
|
844
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>, "required">;
|
|
882
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>, "required">;
|
|
845
883
|
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>;
|
|
846
884
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
847
885
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -855,6 +893,8 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
855
893
|
tool: import("convex/values").VBoolean<boolean, "required">;
|
|
856
894
|
text: import("convex/values").VString<string | undefined, "optional">;
|
|
857
895
|
usage: import("convex/values").VObject<{
|
|
896
|
+
reasoningTokens?: number | undefined;
|
|
897
|
+
cachedInputTokens?: number | undefined;
|
|
858
898
|
promptTokens: number;
|
|
859
899
|
completionTokens: number;
|
|
860
900
|
totalTokens: number;
|
|
@@ -862,57 +902,71 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
862
902
|
promptTokens: import("convex/values").VFloat64<number, "required">;
|
|
863
903
|
completionTokens: import("convex/values").VFloat64<number, "required">;
|
|
864
904
|
totalTokens: import("convex/values").VFloat64<number, "required">;
|
|
865
|
-
|
|
905
|
+
reasoningTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
906
|
+
cachedInputTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
907
|
+
}, "optional", "promptTokens" | "completionTokens" | "totalTokens" | "reasoningTokens" | "cachedInputTokens">;
|
|
866
908
|
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
|
-
sources: import("convex/values").VArray<{
|
|
909
|
+
sources: import("convex/values").VArray<({
|
|
910
|
+
title?: string | undefined;
|
|
911
|
+
type?: "source" | undefined;
|
|
912
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
913
|
+
id: string;
|
|
914
|
+
sourceType: "url";
|
|
915
|
+
url: string;
|
|
916
|
+
} | {
|
|
917
|
+
filename?: string | undefined;
|
|
918
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
919
|
+
id: string;
|
|
920
|
+
title: string;
|
|
921
|
+
type: "source";
|
|
922
|
+
sourceType: "document";
|
|
923
|
+
mediaType: string;
|
|
924
|
+
})[] | undefined, import("convex/values").VUnion<{
|
|
868
925
|
title?: string | undefined;
|
|
926
|
+
type?: "source" | undefined;
|
|
869
927
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
870
928
|
id: string;
|
|
871
929
|
sourceType: "url";
|
|
872
930
|
url: string;
|
|
873
|
-
}
|
|
931
|
+
} | {
|
|
932
|
+
filename?: string | undefined;
|
|
933
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
934
|
+
id: string;
|
|
935
|
+
title: string;
|
|
936
|
+
type: "source";
|
|
937
|
+
sourceType: "document";
|
|
938
|
+
mediaType: string;
|
|
939
|
+
}, [import("convex/values").VObject<{
|
|
874
940
|
title?: string | undefined;
|
|
941
|
+
type?: "source" | undefined;
|
|
875
942
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
876
943
|
id: string;
|
|
877
944
|
sourceType: "url";
|
|
878
945
|
url: string;
|
|
879
946
|
}, {
|
|
947
|
+
type: import("convex/values").VLiteral<"source" | undefined, "optional">;
|
|
880
948
|
sourceType: import("convex/values").VLiteral<"url", "required">;
|
|
881
949
|
id: import("convex/values").VString<string, "required">;
|
|
882
950
|
url: import("convex/values").VString<string, "required">;
|
|
883
951
|
title: import("convex/values").VString<string | undefined, "optional">;
|
|
884
952
|
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
|
-
}, "required", "id" | "title" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">, "
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
data: string;
|
|
894
|
-
})[] | undefined, import("convex/values").VUnion<{
|
|
895
|
-
signature?: string | undefined;
|
|
896
|
-
type: "text";
|
|
897
|
-
text: string;
|
|
898
|
-
} | {
|
|
899
|
-
type: "redacted";
|
|
900
|
-
data: string;
|
|
901
|
-
}, [import("convex/values").VObject<{
|
|
902
|
-
signature?: string | undefined;
|
|
903
|
-
type: "text";
|
|
904
|
-
text: string;
|
|
905
|
-
}, {
|
|
906
|
-
type: import("convex/values").VLiteral<"text", "required">;
|
|
907
|
-
text: import("convex/values").VString<string, "required">;
|
|
908
|
-
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
909
|
-
}, "required", "type" | "text" | "signature">, import("convex/values").VObject<{
|
|
910
|
-
type: "redacted";
|
|
911
|
-
data: string;
|
|
953
|
+
}, "required", "id" | "title" | "type" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">, import("convex/values").VObject<{
|
|
954
|
+
filename?: string | undefined;
|
|
955
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
956
|
+
id: string;
|
|
957
|
+
title: string;
|
|
958
|
+
type: "source";
|
|
959
|
+
sourceType: "document";
|
|
960
|
+
mediaType: string;
|
|
912
961
|
}, {
|
|
913
|
-
type: import("convex/values").VLiteral<"
|
|
914
|
-
|
|
915
|
-
|
|
962
|
+
type: import("convex/values").VLiteral<"source", "required">;
|
|
963
|
+
sourceType: import("convex/values").VLiteral<"document", "required">;
|
|
964
|
+
id: import("convex/values").VString<string, "required">;
|
|
965
|
+
mediaType: import("convex/values").VString<string, "required">;
|
|
966
|
+
title: import("convex/values").VString<string, "required">;
|
|
967
|
+
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
968
|
+
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>;
|
|
969
|
+
}, "required", "id" | "title" | "type" | "filename" | "providerMetadata" | "sourceType" | "mediaType" | `providerMetadata.${string}`>], "required", "id" | "title" | "type" | "providerOptions" | `providerOptions.${string}` | "filename" | "providerMetadata" | "sourceType" | "url" | "mediaType" | `providerMetadata.${string}`>, "optional">;
|
|
916
970
|
warnings: import("convex/values").VArray<({
|
|
917
971
|
details?: string | undefined;
|
|
918
972
|
type: "unsupported-setting";
|
|
@@ -959,10 +1013,65 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
959
1013
|
message: import("convex/values").VString<string, "required">;
|
|
960
1014
|
}, "required", "type" | "message">], "required", "type" | "message" | "tool" | "setting" | "details" | `tool.${string}`>, "optional">;
|
|
961
1015
|
finishReason: import("convex/values").VUnion<"length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined, [import("convex/values").VLiteral<"stop", "required">, import("convex/values").VLiteral<"length", "required">, import("convex/values").VLiteral<"content-filter", "required">, import("convex/values").VLiteral<"tool-calls", "required">, import("convex/values").VLiteral<"error", "required">, import("convex/values").VLiteral<"other", "required">, import("convex/values").VLiteral<"unknown", "required">], "optional", never>;
|
|
1016
|
+
reasoning: import("convex/values").VString<string | undefined, "optional">;
|
|
1017
|
+
reasoningDetails: import("convex/values").VArray<({
|
|
1018
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1019
|
+
signature?: string | undefined;
|
|
1020
|
+
state?: "streaming" | "done" | undefined;
|
|
1021
|
+
type: "reasoning";
|
|
1022
|
+
text: string;
|
|
1023
|
+
} | {
|
|
1024
|
+
signature?: string | undefined;
|
|
1025
|
+
type: "text";
|
|
1026
|
+
text: string;
|
|
1027
|
+
} | {
|
|
1028
|
+
type: "redacted";
|
|
1029
|
+
data: string;
|
|
1030
|
+
})[] | undefined, import("convex/values").VUnion<{
|
|
1031
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1032
|
+
signature?: string | undefined;
|
|
1033
|
+
state?: "streaming" | "done" | undefined;
|
|
1034
|
+
type: "reasoning";
|
|
1035
|
+
text: string;
|
|
1036
|
+
} | {
|
|
1037
|
+
signature?: string | undefined;
|
|
1038
|
+
type: "text";
|
|
1039
|
+
text: string;
|
|
1040
|
+
} | {
|
|
1041
|
+
type: "redacted";
|
|
1042
|
+
data: string;
|
|
1043
|
+
}, [import("convex/values").VObject<{
|
|
1044
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1045
|
+
signature?: string | undefined;
|
|
1046
|
+
state?: "streaming" | "done" | undefined;
|
|
1047
|
+
type: "reasoning";
|
|
1048
|
+
text: string;
|
|
1049
|
+
}, {
|
|
1050
|
+
type: import("convex/values").VLiteral<"reasoning", "required">;
|
|
1051
|
+
text: import("convex/values").VString<string, "required">;
|
|
1052
|
+
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
1053
|
+
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>;
|
|
1054
|
+
state: import("convex/values").VUnion<"streaming" | "done" | undefined, [import("convex/values").VLiteral<"streaming", "required">, import("convex/values").VLiteral<"done", "required">], "optional", never>;
|
|
1055
|
+
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature" | "state">, import("convex/values").VObject<{
|
|
1056
|
+
signature?: string | undefined;
|
|
1057
|
+
type: "text";
|
|
1058
|
+
text: string;
|
|
1059
|
+
}, {
|
|
1060
|
+
type: import("convex/values").VLiteral<"text", "required">;
|
|
1061
|
+
text: import("convex/values").VString<string, "required">;
|
|
1062
|
+
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
1063
|
+
}, "required", "type" | "text" | "signature">, import("convex/values").VObject<{
|
|
1064
|
+
type: "redacted";
|
|
1065
|
+
data: string;
|
|
1066
|
+
}, {
|
|
1067
|
+
type: import("convex/values").VLiteral<"redacted", "required">;
|
|
1068
|
+
data: import("convex/values").VString<string, "required">;
|
|
1069
|
+
}, "required", "type" | "data">], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "data" | "signature" | "state">, "optional">;
|
|
1070
|
+
id: import("convex/values").VString<string | undefined, "optional">;
|
|
962
1071
|
parentMessageId: import("convex/values").VId<import("convex/values").GenericId<"messages"> | undefined, "optional">;
|
|
963
1072
|
stepId: import("convex/values").VString<string | undefined, "optional">;
|
|
964
1073
|
files: import("convex/values").VArray<any[] | undefined, import("convex/values").VAny<any, "required", string>, "optional">;
|
|
965
|
-
}, "required", "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "files" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | `providerOptions.${string}` | "reasoning" | "tool" | "usage" | "providerMetadata" | "sources" |
|
|
1074
|
+
}, "required", "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "files" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | `providerOptions.${string}` | "reasoning" | "tool" | "usage" | "providerMetadata" | "sources" | `providerMetadata.${string}` | "warnings" | "finishReason" | "reasoningDetails" | "parentMessageId" | "stepId" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | "usage.reasoningTokens" | "usage.cachedInputTokens">, {
|
|
966
1075
|
threadId_status_tool_order_stepOrder: ["threadId", "status", "tool", "order", "stepOrder", "_creationTime"];
|
|
967
1076
|
embeddingId_threadId: ["embeddingId", "threadId", "_creationTime"];
|
|
968
1077
|
}, {
|
|
@@ -1047,313 +1156,56 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
1047
1156
|
streamId: import("convex/values").GenericId<"streamingMessages">;
|
|
1048
1157
|
start: number;
|
|
1049
1158
|
end: number;
|
|
1050
|
-
parts:
|
|
1051
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1052
|
-
type: "tool-call";
|
|
1053
|
-
toolCallId: string;
|
|
1054
|
-
toolName: string;
|
|
1055
|
-
args: any;
|
|
1056
|
-
} | {
|
|
1057
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1058
|
-
args?: any;
|
|
1059
|
-
experimental_content?: ({
|
|
1060
|
-
type: "text";
|
|
1061
|
-
text: string;
|
|
1062
|
-
} | {
|
|
1063
|
-
mimeType?: string | undefined;
|
|
1064
|
-
type: "image";
|
|
1065
|
-
data: string;
|
|
1066
|
-
})[] | undefined;
|
|
1067
|
-
isError?: boolean | undefined;
|
|
1068
|
-
type: "tool-result";
|
|
1069
|
-
toolCallId: string;
|
|
1070
|
-
toolName: string;
|
|
1071
|
-
result: any;
|
|
1072
|
-
} | {
|
|
1073
|
-
type: "text-delta";
|
|
1074
|
-
textDelta: string;
|
|
1075
|
-
} | {
|
|
1076
|
-
type: "reasoning";
|
|
1077
|
-
textDelta: string;
|
|
1078
|
-
} | {
|
|
1079
|
-
type: "source";
|
|
1080
|
-
source: {
|
|
1081
|
-
title?: string | undefined;
|
|
1082
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1083
|
-
id: string;
|
|
1084
|
-
sourceType: "url";
|
|
1085
|
-
url: string;
|
|
1086
|
-
};
|
|
1087
|
-
} | {
|
|
1088
|
-
type: "tool-call-streaming-start";
|
|
1089
|
-
toolCallId: string;
|
|
1090
|
-
toolName: string;
|
|
1091
|
-
} | {
|
|
1092
|
-
type: "tool-call-delta";
|
|
1093
|
-
toolCallId: string;
|
|
1094
|
-
toolName: string;
|
|
1095
|
-
argsTextDelta: string;
|
|
1096
|
-
})[];
|
|
1159
|
+
parts: any[];
|
|
1097
1160
|
}, {
|
|
1098
1161
|
streamId: import("convex/values").VId<import("convex/values").GenericId<"streamingMessages">, "required">;
|
|
1099
1162
|
start: import("convex/values").VFloat64<number, "required">;
|
|
1100
1163
|
end: import("convex/values").VFloat64<number, "required">;
|
|
1101
|
-
parts: import("convex/values").VArray<(
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
argsTextDelta: string;
|
|
1147
|
-
})[], import("convex/values").VUnion<{
|
|
1148
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1149
|
-
type: "tool-call";
|
|
1150
|
-
toolCallId: string;
|
|
1151
|
-
toolName: string;
|
|
1152
|
-
args: any;
|
|
1153
|
-
} | {
|
|
1154
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1155
|
-
args?: any;
|
|
1156
|
-
experimental_content?: ({
|
|
1157
|
-
type: "text";
|
|
1158
|
-
text: string;
|
|
1159
|
-
} | {
|
|
1160
|
-
mimeType?: string | undefined;
|
|
1161
|
-
type: "image";
|
|
1162
|
-
data: string;
|
|
1163
|
-
})[] | undefined;
|
|
1164
|
-
isError?: boolean | undefined;
|
|
1165
|
-
type: "tool-result";
|
|
1166
|
-
toolCallId: string;
|
|
1167
|
-
toolName: string;
|
|
1168
|
-
result: any;
|
|
1169
|
-
} | {
|
|
1170
|
-
type: "text-delta";
|
|
1171
|
-
textDelta: string;
|
|
1172
|
-
} | {
|
|
1173
|
-
type: "reasoning";
|
|
1174
|
-
textDelta: string;
|
|
1175
|
-
} | {
|
|
1176
|
-
type: "source";
|
|
1177
|
-
source: {
|
|
1178
|
-
title?: string | undefined;
|
|
1179
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1180
|
-
id: string;
|
|
1181
|
-
sourceType: "url";
|
|
1182
|
-
url: string;
|
|
1183
|
-
};
|
|
1184
|
-
} | {
|
|
1185
|
-
type: "tool-call-streaming-start";
|
|
1186
|
-
toolCallId: string;
|
|
1187
|
-
toolName: string;
|
|
1188
|
-
} | {
|
|
1189
|
-
type: "tool-call-delta";
|
|
1190
|
-
toolCallId: string;
|
|
1191
|
-
toolName: string;
|
|
1192
|
-
argsTextDelta: string;
|
|
1193
|
-
}, [import("convex/values").VObject<{
|
|
1194
|
-
type: "text-delta";
|
|
1195
|
-
textDelta: string;
|
|
1196
|
-
}, {
|
|
1197
|
-
type: import("convex/values").VLiteral<"text-delta", "required">;
|
|
1198
|
-
textDelta: import("convex/values").VString<string, "required">;
|
|
1199
|
-
}, "required", "type" | "textDelta">, import("convex/values").VObject<{
|
|
1200
|
-
type: "reasoning";
|
|
1201
|
-
textDelta: string;
|
|
1202
|
-
}, {
|
|
1203
|
-
type: import("convex/values").VLiteral<"reasoning", "required">;
|
|
1204
|
-
textDelta: import("convex/values").VString<string, "required">;
|
|
1205
|
-
}, "required", "type" | "textDelta">, import("convex/values").VObject<{
|
|
1206
|
-
type: "source";
|
|
1207
|
-
source: {
|
|
1208
|
-
title?: string | undefined;
|
|
1209
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1210
|
-
id: string;
|
|
1211
|
-
sourceType: "url";
|
|
1212
|
-
url: string;
|
|
1213
|
-
};
|
|
1214
|
-
}, {
|
|
1215
|
-
type: import("convex/values").VLiteral<"source", "required">;
|
|
1216
|
-
source: import("convex/values").VObject<{
|
|
1217
|
-
title?: string | undefined;
|
|
1218
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1219
|
-
id: string;
|
|
1220
|
-
sourceType: "url";
|
|
1221
|
-
url: string;
|
|
1222
|
-
}, {
|
|
1223
|
-
sourceType: import("convex/values").VLiteral<"url", "required">;
|
|
1224
|
-
id: import("convex/values").VString<string, "required">;
|
|
1225
|
-
url: import("convex/values").VString<string, "required">;
|
|
1226
|
-
title: import("convex/values").VString<string | undefined, "optional">;
|
|
1227
|
-
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>;
|
|
1228
|
-
}, "required", "id" | "title" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">;
|
|
1229
|
-
}, "required", "type" | "source" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url">, import("convex/values").VObject<{
|
|
1230
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1231
|
-
type: "tool-call";
|
|
1232
|
-
toolCallId: string;
|
|
1233
|
-
toolName: string;
|
|
1234
|
-
args: any;
|
|
1235
|
-
}, {
|
|
1236
|
-
type: import("convex/values").VLiteral<"tool-call", "required">;
|
|
1237
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
1238
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
1239
|
-
args: import("convex/values").VAny<any, "required", string>;
|
|
1240
|
-
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>;
|
|
1241
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>, import("convex/values").VObject<{
|
|
1242
|
-
type: "tool-call-streaming-start";
|
|
1243
|
-
toolCallId: string;
|
|
1244
|
-
toolName: string;
|
|
1245
|
-
}, {
|
|
1246
|
-
type: import("convex/values").VLiteral<"tool-call-streaming-start", "required">;
|
|
1247
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
1248
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
1249
|
-
}, "required", "type" | "toolCallId" | "toolName">, import("convex/values").VObject<{
|
|
1250
|
-
type: "tool-call-delta";
|
|
1251
|
-
toolCallId: string;
|
|
1252
|
-
toolName: string;
|
|
1253
|
-
argsTextDelta: string;
|
|
1254
|
-
}, {
|
|
1255
|
-
type: import("convex/values").VLiteral<"tool-call-delta", "required">;
|
|
1256
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
1257
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
1258
|
-
argsTextDelta: import("convex/values").VString<string, "required">;
|
|
1259
|
-
}, "required", "type" | "toolCallId" | "toolName" | "argsTextDelta">, import("convex/values").VObject<{
|
|
1260
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1261
|
-
args?: any;
|
|
1262
|
-
experimental_content?: ({
|
|
1263
|
-
type: "text";
|
|
1264
|
-
text: string;
|
|
1265
|
-
} | {
|
|
1266
|
-
mimeType?: string | undefined;
|
|
1267
|
-
type: "image";
|
|
1268
|
-
data: string;
|
|
1269
|
-
})[] | undefined;
|
|
1270
|
-
isError?: boolean | undefined;
|
|
1271
|
-
type: "tool-result";
|
|
1272
|
-
toolCallId: string;
|
|
1273
|
-
toolName: string;
|
|
1274
|
-
result: any;
|
|
1275
|
-
}, {
|
|
1276
|
-
type: import("convex/values").VLiteral<"tool-result", "required">;
|
|
1277
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
1278
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
1279
|
-
result: import("convex/values").VAny<any, "required", string>;
|
|
1280
|
-
args: import("convex/values").VAny<any, "optional", string>;
|
|
1281
|
-
experimental_content: import("convex/values").VArray<({
|
|
1282
|
-
type: "text";
|
|
1283
|
-
text: string;
|
|
1284
|
-
} | {
|
|
1285
|
-
mimeType?: string | undefined;
|
|
1286
|
-
type: "image";
|
|
1287
|
-
data: string;
|
|
1288
|
-
})[] | undefined, import("convex/values").VUnion<{
|
|
1289
|
-
type: "text";
|
|
1290
|
-
text: string;
|
|
1291
|
-
} | {
|
|
1292
|
-
mimeType?: string | undefined;
|
|
1293
|
-
type: "image";
|
|
1294
|
-
data: string;
|
|
1295
|
-
}, [import("convex/values").VObject<{
|
|
1296
|
-
type: "text";
|
|
1297
|
-
text: string;
|
|
1298
|
-
}, {
|
|
1299
|
-
type: import("convex/values").VLiteral<"text", "required">;
|
|
1300
|
-
text: import("convex/values").VString<string, "required">;
|
|
1301
|
-
}, "required", "type" | "text">, import("convex/values").VObject<{
|
|
1302
|
-
mimeType?: string | undefined;
|
|
1303
|
-
type: "image";
|
|
1304
|
-
data: string;
|
|
1305
|
-
}, {
|
|
1306
|
-
type: import("convex/values").VLiteral<"image", "required">;
|
|
1307
|
-
data: import("convex/values").VString<string, "required">;
|
|
1308
|
-
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
1309
|
-
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
1310
|
-
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1311
|
-
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>;
|
|
1312
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>], "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}` | "textDelta" | "source" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url" | "argsTextDelta">, "required">;
|
|
1313
|
-
}, "required", "streamId" | "start" | "end" | "parts">, {
|
|
1314
|
-
streamId_start_end: ["streamId", "start", "end", "_creationTime"];
|
|
1315
|
-
}, {}, {}>;
|
|
1316
|
-
memories: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
1317
|
-
userId?: string | undefined;
|
|
1318
|
-
threadId?: import("convex/values").GenericId<"threads"> | undefined;
|
|
1319
|
-
embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
|
|
1320
|
-
memory: string;
|
|
1321
|
-
}, {
|
|
1322
|
-
threadId: import("convex/values").VId<import("convex/values").GenericId<"threads"> | undefined, "optional">;
|
|
1323
|
-
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
1324
|
-
memory: import("convex/values").VString<string, "required">;
|
|
1325
|
-
embeddingId: import("convex/values").VUnion<import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined, import("convex/values").VId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096", "required">[], "optional", never>;
|
|
1326
|
-
}, "required", "userId" | "threadId" | "embeddingId" | "memory">, {
|
|
1327
|
-
threadId: ["threadId", "_creationTime"];
|
|
1328
|
-
userId: ["userId", "_creationTime"];
|
|
1329
|
-
embeddingId: ["embeddingId", "_creationTime"];
|
|
1330
|
-
}, {}, {}>;
|
|
1331
|
-
files: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
1332
|
-
filename?: string | undefined;
|
|
1333
|
-
mimeType: string;
|
|
1334
|
-
storageId: string;
|
|
1335
|
-
hash: string;
|
|
1336
|
-
refcount: number;
|
|
1337
|
-
lastTouchedAt: number;
|
|
1338
|
-
}, {
|
|
1339
|
-
storageId: import("convex/values").VString<string, "required">;
|
|
1340
|
-
mimeType: import("convex/values").VString<string, "required">;
|
|
1341
|
-
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
1342
|
-
hash: import("convex/values").VString<string, "required">;
|
|
1343
|
-
refcount: import("convex/values").VFloat64<number, "required">;
|
|
1344
|
-
lastTouchedAt: import("convex/values").VFloat64<number, "required">;
|
|
1345
|
-
}, "required", "mimeType" | "filename" | "storageId" | "hash" | "refcount" | "lastTouchedAt">, {
|
|
1346
|
-
hash: ["hash", "_creationTime"];
|
|
1347
|
-
refcount: ["refcount", "_creationTime"];
|
|
1348
|
-
}, {}, {}>;
|
|
1349
|
-
}, true>;
|
|
1350
|
-
export declare const vv: {
|
|
1351
|
-
id: <TableName extends import("convex/server").TableNamesInDataModel<{
|
|
1352
|
-
threads: {
|
|
1353
|
-
document: {
|
|
1354
|
-
_id: import("convex/values").GenericId<"threads">;
|
|
1355
|
-
_creationTime: number;
|
|
1356
|
-
userId?: string | undefined;
|
|
1164
|
+
parts: import("convex/values").VArray<any[], import("convex/values").VAny<any, "required", string>, "required">;
|
|
1165
|
+
}, "required", "streamId" | "start" | "end" | "parts">, {
|
|
1166
|
+
streamId_start_end: ["streamId", "start", "end", "_creationTime"];
|
|
1167
|
+
}, {}, {}>;
|
|
1168
|
+
memories: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
1169
|
+
userId?: string | undefined;
|
|
1170
|
+
threadId?: import("convex/values").GenericId<"threads"> | undefined;
|
|
1171
|
+
embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
|
|
1172
|
+
memory: string;
|
|
1173
|
+
}, {
|
|
1174
|
+
threadId: import("convex/values").VId<import("convex/values").GenericId<"threads"> | undefined, "optional">;
|
|
1175
|
+
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
1176
|
+
memory: import("convex/values").VString<string, "required">;
|
|
1177
|
+
embeddingId: import("convex/values").VUnion<import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined, import("convex/values").VId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096", "required">[], "optional", never>;
|
|
1178
|
+
}, "required", "userId" | "threadId" | "embeddingId" | "memory">, {
|
|
1179
|
+
threadId: ["threadId", "_creationTime"];
|
|
1180
|
+
userId: ["userId", "_creationTime"];
|
|
1181
|
+
embeddingId: ["embeddingId", "_creationTime"];
|
|
1182
|
+
}, {}, {}>;
|
|
1183
|
+
files: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
1184
|
+
filename?: string | undefined;
|
|
1185
|
+
mimeType: string;
|
|
1186
|
+
storageId: string;
|
|
1187
|
+
hash: string;
|
|
1188
|
+
refcount: number;
|
|
1189
|
+
lastTouchedAt: number;
|
|
1190
|
+
}, {
|
|
1191
|
+
storageId: import("convex/values").VString<string, "required">;
|
|
1192
|
+
mimeType: import("convex/values").VString<string, "required">;
|
|
1193
|
+
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
1194
|
+
hash: import("convex/values").VString<string, "required">;
|
|
1195
|
+
refcount: import("convex/values").VFloat64<number, "required">;
|
|
1196
|
+
lastTouchedAt: import("convex/values").VFloat64<number, "required">;
|
|
1197
|
+
}, "required", "mimeType" | "filename" | "storageId" | "hash" | "refcount" | "lastTouchedAt">, {
|
|
1198
|
+
hash: ["hash", "_creationTime"];
|
|
1199
|
+
refcount: ["refcount", "_creationTime"];
|
|
1200
|
+
}, {}, {}>;
|
|
1201
|
+
}, true>;
|
|
1202
|
+
export declare const vv: {
|
|
1203
|
+
id: <TableName extends import("convex/server").TableNamesInDataModel<{
|
|
1204
|
+
threads: {
|
|
1205
|
+
document: {
|
|
1206
|
+
_id: import("convex/values").GenericId<"threads">;
|
|
1207
|
+
_creationTime: number;
|
|
1208
|
+
userId?: string | undefined;
|
|
1357
1209
|
title?: string | undefined;
|
|
1358
1210
|
summary?: string | undefined;
|
|
1359
1211
|
defaultSystemPrompt?: string | undefined;
|
|
@@ -1715,6 +1567,7 @@ export declare const vv: {
|
|
|
1715
1567
|
} | {
|
|
1716
1568
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1717
1569
|
signature?: string | undefined;
|
|
1570
|
+
state?: "streaming" | "done" | undefined;
|
|
1718
1571
|
type: "reasoning";
|
|
1719
1572
|
text: string;
|
|
1720
1573
|
} | {
|
|
@@ -1723,6 +1576,7 @@ export declare const vv: {
|
|
|
1723
1576
|
data: string;
|
|
1724
1577
|
} | {
|
|
1725
1578
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1579
|
+
providerExecuted?: boolean | undefined;
|
|
1726
1580
|
type: "tool-call";
|
|
1727
1581
|
toolCallId: string;
|
|
1728
1582
|
toolName: string;
|
|
@@ -1734,6 +1588,8 @@ export declare const vv: {
|
|
|
1734
1588
|
content: {
|
|
1735
1589
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1736
1590
|
args?: any;
|
|
1591
|
+
providerExecuted?: boolean | undefined;
|
|
1592
|
+
isError?: boolean | undefined;
|
|
1737
1593
|
experimental_content?: ({
|
|
1738
1594
|
type: "text";
|
|
1739
1595
|
text: string;
|
|
@@ -1742,7 +1598,6 @@ export declare const vv: {
|
|
|
1742
1598
|
type: "image";
|
|
1743
1599
|
data: string;
|
|
1744
1600
|
})[] | undefined;
|
|
1745
|
-
isError?: boolean | undefined;
|
|
1746
1601
|
type: "tool-result";
|
|
1747
1602
|
toolCallId: string;
|
|
1748
1603
|
toolName: string;
|
|
@@ -1756,25 +1611,28 @@ export declare const vv: {
|
|
|
1756
1611
|
text?: string | undefined;
|
|
1757
1612
|
reasoning?: string | undefined;
|
|
1758
1613
|
usage?: {
|
|
1614
|
+
reasoningTokens?: number | undefined;
|
|
1615
|
+
cachedInputTokens?: number | undefined;
|
|
1759
1616
|
promptTokens: number;
|
|
1760
1617
|
completionTokens: number;
|
|
1761
1618
|
totalTokens: number;
|
|
1762
1619
|
} | undefined;
|
|
1763
1620
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1764
|
-
sources?: {
|
|
1621
|
+
sources?: ({
|
|
1765
1622
|
title?: string | undefined;
|
|
1623
|
+
type?: "source" | undefined;
|
|
1766
1624
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1767
1625
|
id: string;
|
|
1768
1626
|
sourceType: "url";
|
|
1769
1627
|
url: string;
|
|
1770
|
-
}[] | undefined;
|
|
1771
|
-
reasoningDetails?: ({
|
|
1772
|
-
signature?: string | undefined;
|
|
1773
|
-
type: "text";
|
|
1774
|
-
text: string;
|
|
1775
1628
|
} | {
|
|
1776
|
-
|
|
1777
|
-
|
|
1629
|
+
filename?: string | undefined;
|
|
1630
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1631
|
+
id: string;
|
|
1632
|
+
title: string;
|
|
1633
|
+
type: "source";
|
|
1634
|
+
sourceType: "document";
|
|
1635
|
+
mediaType: string;
|
|
1778
1636
|
})[] | undefined;
|
|
1779
1637
|
warnings?: ({
|
|
1780
1638
|
details?: string | undefined;
|
|
@@ -1789,6 +1647,20 @@ export declare const vv: {
|
|
|
1789
1647
|
message: string;
|
|
1790
1648
|
})[] | undefined;
|
|
1791
1649
|
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
1650
|
+
reasoningDetails?: ({
|
|
1651
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1652
|
+
signature?: string | undefined;
|
|
1653
|
+
state?: "streaming" | "done" | undefined;
|
|
1654
|
+
type: "reasoning";
|
|
1655
|
+
text: string;
|
|
1656
|
+
} | {
|
|
1657
|
+
signature?: string | undefined;
|
|
1658
|
+
type: "text";
|
|
1659
|
+
text: string;
|
|
1660
|
+
} | {
|
|
1661
|
+
type: "redacted";
|
|
1662
|
+
data: string;
|
|
1663
|
+
})[] | undefined;
|
|
1792
1664
|
parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
1793
1665
|
stepId?: string | undefined;
|
|
1794
1666
|
status: "pending" | "success" | "failed";
|
|
@@ -1797,7 +1669,7 @@ export declare const vv: {
|
|
|
1797
1669
|
stepOrder: number;
|
|
1798
1670
|
tool: boolean;
|
|
1799
1671
|
};
|
|
1800
|
-
fieldPaths: "_id" | ("_creationTime" | "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "files" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | `providerOptions.${string}` | "reasoning" | "tool" | "usage" | "providerMetadata" | "sources" |
|
|
1672
|
+
fieldPaths: "_id" | ("_creationTime" | "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "files" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | `providerOptions.${string}` | "reasoning" | "tool" | "usage" | "providerMetadata" | "sources" | `providerMetadata.${string}` | "warnings" | "finishReason" | "reasoningDetails" | "parentMessageId" | "stepId" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | "usage.reasoningTokens" | "usage.cachedInputTokens");
|
|
1801
1673
|
indexes: {
|
|
1802
1674
|
threadId_status_tool_order_stepOrder: ["threadId", "status", "tool", "order", "stepOrder", "_creationTime"];
|
|
1803
1675
|
embeddingId_threadId: ["embeddingId", "threadId", "_creationTime"];
|
|
@@ -1853,53 +1725,7 @@ export declare const vv: {
|
|
|
1853
1725
|
streamId: import("convex/values").GenericId<"streamingMessages">;
|
|
1854
1726
|
start: number;
|
|
1855
1727
|
end: number;
|
|
1856
|
-
parts:
|
|
1857
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1858
|
-
type: "tool-call";
|
|
1859
|
-
toolCallId: string;
|
|
1860
|
-
toolName: string;
|
|
1861
|
-
args: any;
|
|
1862
|
-
} | {
|
|
1863
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1864
|
-
args?: any;
|
|
1865
|
-
experimental_content?: ({
|
|
1866
|
-
type: "text";
|
|
1867
|
-
text: string;
|
|
1868
|
-
} | {
|
|
1869
|
-
mimeType?: string | undefined;
|
|
1870
|
-
type: "image";
|
|
1871
|
-
data: string;
|
|
1872
|
-
})[] | undefined;
|
|
1873
|
-
isError?: boolean | undefined;
|
|
1874
|
-
type: "tool-result";
|
|
1875
|
-
toolCallId: string;
|
|
1876
|
-
toolName: string;
|
|
1877
|
-
result: any;
|
|
1878
|
-
} | {
|
|
1879
|
-
type: "text-delta";
|
|
1880
|
-
textDelta: string;
|
|
1881
|
-
} | {
|
|
1882
|
-
type: "reasoning";
|
|
1883
|
-
textDelta: string;
|
|
1884
|
-
} | {
|
|
1885
|
-
type: "source";
|
|
1886
|
-
source: {
|
|
1887
|
-
title?: string | undefined;
|
|
1888
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1889
|
-
id: string;
|
|
1890
|
-
sourceType: "url";
|
|
1891
|
-
url: string;
|
|
1892
|
-
};
|
|
1893
|
-
} | {
|
|
1894
|
-
type: "tool-call-streaming-start";
|
|
1895
|
-
toolCallId: string;
|
|
1896
|
-
toolName: string;
|
|
1897
|
-
} | {
|
|
1898
|
-
type: "tool-call-delta";
|
|
1899
|
-
toolCallId: string;
|
|
1900
|
-
toolName: string;
|
|
1901
|
-
argsTextDelta: string;
|
|
1902
|
-
})[];
|
|
1728
|
+
parts: any[];
|
|
1903
1729
|
};
|
|
1904
1730
|
fieldPaths: "_id" | ("_creationTime" | "streamId" | "start" | "end" | "parts");
|
|
1905
1731
|
indexes: {
|
|
@@ -2313,6 +2139,7 @@ export declare const vv: {
|
|
|
2313
2139
|
} | {
|
|
2314
2140
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2315
2141
|
signature?: string | undefined;
|
|
2142
|
+
state?: "streaming" | "done" | undefined;
|
|
2316
2143
|
type: "reasoning";
|
|
2317
2144
|
text: string;
|
|
2318
2145
|
} | {
|
|
@@ -2321,6 +2148,7 @@ export declare const vv: {
|
|
|
2321
2148
|
data: string;
|
|
2322
2149
|
} | {
|
|
2323
2150
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2151
|
+
providerExecuted?: boolean | undefined;
|
|
2324
2152
|
type: "tool-call";
|
|
2325
2153
|
toolCallId: string;
|
|
2326
2154
|
toolName: string;
|
|
@@ -2332,6 +2160,8 @@ export declare const vv: {
|
|
|
2332
2160
|
content: {
|
|
2333
2161
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2334
2162
|
args?: any;
|
|
2163
|
+
providerExecuted?: boolean | undefined;
|
|
2164
|
+
isError?: boolean | undefined;
|
|
2335
2165
|
experimental_content?: ({
|
|
2336
2166
|
type: "text";
|
|
2337
2167
|
text: string;
|
|
@@ -2340,7 +2170,6 @@ export declare const vv: {
|
|
|
2340
2170
|
type: "image";
|
|
2341
2171
|
data: string;
|
|
2342
2172
|
})[] | undefined;
|
|
2343
|
-
isError?: boolean | undefined;
|
|
2344
2173
|
type: "tool-result";
|
|
2345
2174
|
toolCallId: string;
|
|
2346
2175
|
toolName: string;
|
|
@@ -2354,25 +2183,28 @@ export declare const vv: {
|
|
|
2354
2183
|
text?: string | undefined;
|
|
2355
2184
|
reasoning?: string | undefined;
|
|
2356
2185
|
usage?: {
|
|
2186
|
+
reasoningTokens?: number | undefined;
|
|
2187
|
+
cachedInputTokens?: number | undefined;
|
|
2357
2188
|
promptTokens: number;
|
|
2358
2189
|
completionTokens: number;
|
|
2359
2190
|
totalTokens: number;
|
|
2360
2191
|
} | undefined;
|
|
2361
2192
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2362
|
-
sources?: {
|
|
2193
|
+
sources?: ({
|
|
2363
2194
|
title?: string | undefined;
|
|
2195
|
+
type?: "source" | undefined;
|
|
2364
2196
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2365
2197
|
id: string;
|
|
2366
2198
|
sourceType: "url";
|
|
2367
2199
|
url: string;
|
|
2368
|
-
}[] | undefined;
|
|
2369
|
-
reasoningDetails?: ({
|
|
2370
|
-
signature?: string | undefined;
|
|
2371
|
-
type: "text";
|
|
2372
|
-
text: string;
|
|
2373
2200
|
} | {
|
|
2374
|
-
|
|
2375
|
-
|
|
2201
|
+
filename?: string | undefined;
|
|
2202
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2203
|
+
id: string;
|
|
2204
|
+
title: string;
|
|
2205
|
+
type: "source";
|
|
2206
|
+
sourceType: "document";
|
|
2207
|
+
mediaType: string;
|
|
2376
2208
|
})[] | undefined;
|
|
2377
2209
|
warnings?: ({
|
|
2378
2210
|
details?: string | undefined;
|
|
@@ -2387,7 +2219,21 @@ export declare const vv: {
|
|
|
2387
2219
|
message: string;
|
|
2388
2220
|
})[] | undefined;
|
|
2389
2221
|
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
2390
|
-
|
|
2222
|
+
reasoningDetails?: ({
|
|
2223
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2224
|
+
signature?: string | undefined;
|
|
2225
|
+
state?: "streaming" | "done" | undefined;
|
|
2226
|
+
type: "reasoning";
|
|
2227
|
+
text: string;
|
|
2228
|
+
} | {
|
|
2229
|
+
signature?: string | undefined;
|
|
2230
|
+
type: "text";
|
|
2231
|
+
text: string;
|
|
2232
|
+
} | {
|
|
2233
|
+
type: "redacted";
|
|
2234
|
+
data: string;
|
|
2235
|
+
})[] | undefined;
|
|
2236
|
+
parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
2391
2237
|
stepId?: string | undefined;
|
|
2392
2238
|
status: "pending" | "success" | "failed";
|
|
2393
2239
|
order: number;
|
|
@@ -2395,7 +2241,7 @@ export declare const vv: {
|
|
|
2395
2241
|
stepOrder: number;
|
|
2396
2242
|
tool: boolean;
|
|
2397
2243
|
};
|
|
2398
|
-
fieldPaths: "_id" | ("_creationTime" | "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "files" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | `providerOptions.${string}` | "reasoning" | "tool" | "usage" | "providerMetadata" | "sources" |
|
|
2244
|
+
fieldPaths: "_id" | ("_creationTime" | "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "files" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | `providerOptions.${string}` | "reasoning" | "tool" | "usage" | "providerMetadata" | "sources" | `providerMetadata.${string}` | "warnings" | "finishReason" | "reasoningDetails" | "parentMessageId" | "stepId" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | "usage.reasoningTokens" | "usage.cachedInputTokens");
|
|
2399
2245
|
indexes: {
|
|
2400
2246
|
threadId_status_tool_order_stepOrder: ["threadId", "status", "tool", "order", "stepOrder", "_creationTime"];
|
|
2401
2247
|
embeddingId_threadId: ["embeddingId", "threadId", "_creationTime"];
|
|
@@ -2451,53 +2297,7 @@ export declare const vv: {
|
|
|
2451
2297
|
streamId: import("convex/values").GenericId<"streamingMessages">;
|
|
2452
2298
|
start: number;
|
|
2453
2299
|
end: number;
|
|
2454
|
-
parts:
|
|
2455
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2456
|
-
type: "tool-call";
|
|
2457
|
-
toolCallId: string;
|
|
2458
|
-
toolName: string;
|
|
2459
|
-
args: any;
|
|
2460
|
-
} | {
|
|
2461
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2462
|
-
args?: any;
|
|
2463
|
-
experimental_content?: ({
|
|
2464
|
-
type: "text";
|
|
2465
|
-
text: string;
|
|
2466
|
-
} | {
|
|
2467
|
-
mimeType?: string | undefined;
|
|
2468
|
-
type: "image";
|
|
2469
|
-
data: string;
|
|
2470
|
-
})[] | undefined;
|
|
2471
|
-
isError?: boolean | undefined;
|
|
2472
|
-
type: "tool-result";
|
|
2473
|
-
toolCallId: string;
|
|
2474
|
-
toolName: string;
|
|
2475
|
-
result: any;
|
|
2476
|
-
} | {
|
|
2477
|
-
type: "text-delta";
|
|
2478
|
-
textDelta: string;
|
|
2479
|
-
} | {
|
|
2480
|
-
type: "reasoning";
|
|
2481
|
-
textDelta: string;
|
|
2482
|
-
} | {
|
|
2483
|
-
type: "source";
|
|
2484
|
-
source: {
|
|
2485
|
-
title?: string | undefined;
|
|
2486
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2487
|
-
id: string;
|
|
2488
|
-
sourceType: "url";
|
|
2489
|
-
url: string;
|
|
2490
|
-
};
|
|
2491
|
-
} | {
|
|
2492
|
-
type: "tool-call-streaming-start";
|
|
2493
|
-
toolCallId: string;
|
|
2494
|
-
toolName: string;
|
|
2495
|
-
} | {
|
|
2496
|
-
type: "tool-call-delta";
|
|
2497
|
-
toolCallId: string;
|
|
2498
|
-
toolName: string;
|
|
2499
|
-
argsTextDelta: string;
|
|
2500
|
-
})[];
|
|
2300
|
+
parts: any[];
|
|
2501
2301
|
};
|
|
2502
2302
|
fieldPaths: "_id" | ("_creationTime" | "streamId" | "start" | "end" | "parts");
|
|
2503
2303
|
indexes: {
|
|
@@ -2871,6 +2671,7 @@ export declare const vv: {
|
|
|
2871
2671
|
} | {
|
|
2872
2672
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2873
2673
|
signature?: string | undefined;
|
|
2674
|
+
state?: "streaming" | "done" | undefined;
|
|
2874
2675
|
type: "reasoning";
|
|
2875
2676
|
text: string;
|
|
2876
2677
|
} | {
|
|
@@ -2879,6 +2680,7 @@ export declare const vv: {
|
|
|
2879
2680
|
data: string;
|
|
2880
2681
|
} | {
|
|
2881
2682
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2683
|
+
providerExecuted?: boolean | undefined;
|
|
2882
2684
|
type: "tool-call";
|
|
2883
2685
|
toolCallId: string;
|
|
2884
2686
|
toolName: string;
|
|
@@ -2890,6 +2692,8 @@ export declare const vv: {
|
|
|
2890
2692
|
content: {
|
|
2891
2693
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2892
2694
|
args?: any;
|
|
2695
|
+
providerExecuted?: boolean | undefined;
|
|
2696
|
+
isError?: boolean | undefined;
|
|
2893
2697
|
experimental_content?: ({
|
|
2894
2698
|
type: "text";
|
|
2895
2699
|
text: string;
|
|
@@ -2898,7 +2702,6 @@ export declare const vv: {
|
|
|
2898
2702
|
type: "image";
|
|
2899
2703
|
data: string;
|
|
2900
2704
|
})[] | undefined;
|
|
2901
|
-
isError?: boolean | undefined;
|
|
2902
2705
|
type: "tool-result";
|
|
2903
2706
|
toolCallId: string;
|
|
2904
2707
|
toolName: string;
|
|
@@ -2912,25 +2715,28 @@ export declare const vv: {
|
|
|
2912
2715
|
text?: string | undefined;
|
|
2913
2716
|
reasoning?: string | undefined;
|
|
2914
2717
|
usage?: {
|
|
2718
|
+
reasoningTokens?: number | undefined;
|
|
2719
|
+
cachedInputTokens?: number | undefined;
|
|
2915
2720
|
promptTokens: number;
|
|
2916
2721
|
completionTokens: number;
|
|
2917
2722
|
totalTokens: number;
|
|
2918
2723
|
} | undefined;
|
|
2919
2724
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2920
|
-
sources?: {
|
|
2725
|
+
sources?: ({
|
|
2921
2726
|
title?: string | undefined;
|
|
2727
|
+
type?: "source" | undefined;
|
|
2922
2728
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2923
2729
|
id: string;
|
|
2924
2730
|
sourceType: "url";
|
|
2925
2731
|
url: string;
|
|
2926
|
-
}[] | undefined;
|
|
2927
|
-
reasoningDetails?: ({
|
|
2928
|
-
signature?: string | undefined;
|
|
2929
|
-
type: "text";
|
|
2930
|
-
text: string;
|
|
2931
2732
|
} | {
|
|
2932
|
-
|
|
2933
|
-
|
|
2733
|
+
filename?: string | undefined;
|
|
2734
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2735
|
+
id: string;
|
|
2736
|
+
title: string;
|
|
2737
|
+
type: "source";
|
|
2738
|
+
sourceType: "document";
|
|
2739
|
+
mediaType: string;
|
|
2934
2740
|
})[] | undefined;
|
|
2935
2741
|
warnings?: ({
|
|
2936
2742
|
details?: string | undefined;
|
|
@@ -2945,6 +2751,20 @@ export declare const vv: {
|
|
|
2945
2751
|
message: string;
|
|
2946
2752
|
})[] | undefined;
|
|
2947
2753
|
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
2754
|
+
reasoningDetails?: ({
|
|
2755
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2756
|
+
signature?: string | undefined;
|
|
2757
|
+
state?: "streaming" | "done" | undefined;
|
|
2758
|
+
type: "reasoning";
|
|
2759
|
+
text: string;
|
|
2760
|
+
} | {
|
|
2761
|
+
signature?: string | undefined;
|
|
2762
|
+
type: "text";
|
|
2763
|
+
text: string;
|
|
2764
|
+
} | {
|
|
2765
|
+
type: "redacted";
|
|
2766
|
+
data: string;
|
|
2767
|
+
})[] | undefined;
|
|
2948
2768
|
parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
2949
2769
|
stepId?: string | undefined;
|
|
2950
2770
|
status: "pending" | "success" | "failed";
|
|
@@ -2953,7 +2773,6 @@ export declare const vv: {
|
|
|
2953
2773
|
stepOrder: number;
|
|
2954
2774
|
tool: boolean;
|
|
2955
2775
|
}, {
|
|
2956
|
-
id: import("convex/values").VString<string | undefined, "optional">;
|
|
2957
2776
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
2958
2777
|
threadId: import("convex/values").VId<import("convex/values").GenericId<"threads">, "required">;
|
|
2959
2778
|
order: import("convex/values").VFloat64<number, "required">;
|
|
@@ -3001,6 +2820,7 @@ export declare const vv: {
|
|
|
3001
2820
|
} | {
|
|
3002
2821
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3003
2822
|
signature?: string | undefined;
|
|
2823
|
+
state?: "streaming" | "done" | undefined;
|
|
3004
2824
|
type: "reasoning";
|
|
3005
2825
|
text: string;
|
|
3006
2826
|
} | {
|
|
@@ -3009,6 +2829,7 @@ export declare const vv: {
|
|
|
3009
2829
|
data: string;
|
|
3010
2830
|
} | {
|
|
3011
2831
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2832
|
+
providerExecuted?: boolean | undefined;
|
|
3012
2833
|
type: "tool-call";
|
|
3013
2834
|
toolCallId: string;
|
|
3014
2835
|
toolName: string;
|
|
@@ -3020,6 +2841,8 @@ export declare const vv: {
|
|
|
3020
2841
|
content: {
|
|
3021
2842
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3022
2843
|
args?: any;
|
|
2844
|
+
providerExecuted?: boolean | undefined;
|
|
2845
|
+
isError?: boolean | undefined;
|
|
3023
2846
|
experimental_content?: ({
|
|
3024
2847
|
type: "text";
|
|
3025
2848
|
text: string;
|
|
@@ -3028,7 +2851,6 @@ export declare const vv: {
|
|
|
3028
2851
|
type: "image";
|
|
3029
2852
|
data: string;
|
|
3030
2853
|
})[] | undefined;
|
|
3031
|
-
isError?: boolean | undefined;
|
|
3032
2854
|
type: "tool-result";
|
|
3033
2855
|
toolCallId: string;
|
|
3034
2856
|
toolName: string;
|
|
@@ -3152,6 +2974,7 @@ export declare const vv: {
|
|
|
3152
2974
|
} | {
|
|
3153
2975
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3154
2976
|
signature?: string | undefined;
|
|
2977
|
+
state?: "streaming" | "done" | undefined;
|
|
3155
2978
|
type: "reasoning";
|
|
3156
2979
|
text: string;
|
|
3157
2980
|
} | {
|
|
@@ -3160,6 +2983,7 @@ export declare const vv: {
|
|
|
3160
2983
|
data: string;
|
|
3161
2984
|
} | {
|
|
3162
2985
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2986
|
+
providerExecuted?: boolean | undefined;
|
|
3163
2987
|
type: "tool-call";
|
|
3164
2988
|
toolCallId: string;
|
|
3165
2989
|
toolName: string;
|
|
@@ -3180,6 +3004,7 @@ export declare const vv: {
|
|
|
3180
3004
|
} | {
|
|
3181
3005
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3182
3006
|
signature?: string | undefined;
|
|
3007
|
+
state?: "streaming" | "done" | undefined;
|
|
3183
3008
|
type: "reasoning";
|
|
3184
3009
|
text: string;
|
|
3185
3010
|
} | {
|
|
@@ -3188,6 +3013,7 @@ export declare const vv: {
|
|
|
3188
3013
|
data: string;
|
|
3189
3014
|
} | {
|
|
3190
3015
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3016
|
+
providerExecuted?: boolean | undefined;
|
|
3191
3017
|
type: "tool-call";
|
|
3192
3018
|
toolCallId: string;
|
|
3193
3019
|
toolName: string;
|
|
@@ -3205,6 +3031,7 @@ export declare const vv: {
|
|
|
3205
3031
|
} | {
|
|
3206
3032
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3207
3033
|
signature?: string | undefined;
|
|
3034
|
+
state?: "streaming" | "done" | undefined;
|
|
3208
3035
|
type: "reasoning";
|
|
3209
3036
|
text: string;
|
|
3210
3037
|
} | {
|
|
@@ -3213,6 +3040,7 @@ export declare const vv: {
|
|
|
3213
3040
|
data: string;
|
|
3214
3041
|
} | {
|
|
3215
3042
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3043
|
+
providerExecuted?: boolean | undefined;
|
|
3216
3044
|
type: "tool-call";
|
|
3217
3045
|
toolCallId: string;
|
|
3218
3046
|
toolName: string;
|
|
@@ -3230,6 +3058,7 @@ export declare const vv: {
|
|
|
3230
3058
|
} | {
|
|
3231
3059
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3232
3060
|
signature?: string | undefined;
|
|
3061
|
+
state?: "streaming" | "done" | undefined;
|
|
3233
3062
|
type: "reasoning";
|
|
3234
3063
|
text: string;
|
|
3235
3064
|
} | {
|
|
@@ -3238,6 +3067,7 @@ export declare const vv: {
|
|
|
3238
3067
|
data: string;
|
|
3239
3068
|
} | {
|
|
3240
3069
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3070
|
+
providerExecuted?: boolean | undefined;
|
|
3241
3071
|
type: "tool-call";
|
|
3242
3072
|
toolCallId: string;
|
|
3243
3073
|
toolName: string;
|
|
@@ -3265,6 +3095,7 @@ export declare const vv: {
|
|
|
3265
3095
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, import("convex/values").VObject<{
|
|
3266
3096
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3267
3097
|
signature?: string | undefined;
|
|
3098
|
+
state?: "streaming" | "done" | undefined;
|
|
3268
3099
|
type: "reasoning";
|
|
3269
3100
|
text: string;
|
|
3270
3101
|
}, {
|
|
@@ -3272,7 +3103,8 @@ export declare const vv: {
|
|
|
3272
3103
|
text: import("convex/values").VString<string, "required">;
|
|
3273
3104
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
3274
3105
|
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>;
|
|
3275
|
-
|
|
3106
|
+
state: import("convex/values").VUnion<"streaming" | "done" | undefined, [import("convex/values").VLiteral<"streaming", "required">, import("convex/values").VLiteral<"done", "required">], "optional", never>;
|
|
3107
|
+
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature" | "state">, import("convex/values").VObject<{
|
|
3276
3108
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3277
3109
|
type: "redacted-reasoning";
|
|
3278
3110
|
data: string;
|
|
@@ -3282,6 +3114,7 @@ export declare const vv: {
|
|
|
3282
3114
|
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>;
|
|
3283
3115
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "data">, import("convex/values").VObject<{
|
|
3284
3116
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3117
|
+
providerExecuted?: boolean | undefined;
|
|
3285
3118
|
type: "tool-call";
|
|
3286
3119
|
toolCallId: string;
|
|
3287
3120
|
toolName: string;
|
|
@@ -3292,7 +3125,8 @@ export declare const vv: {
|
|
|
3292
3125
|
toolName: import("convex/values").VString<string, "required">;
|
|
3293
3126
|
args: import("convex/values").VAny<any, "required", string>;
|
|
3294
3127
|
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>;
|
|
3295
|
-
|
|
3128
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
3129
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "state" | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>, "required">], "required", never>;
|
|
3296
3130
|
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>;
|
|
3297
3131
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
3298
3132
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -3300,6 +3134,8 @@ export declare const vv: {
|
|
|
3300
3134
|
content: {
|
|
3301
3135
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3302
3136
|
args?: any;
|
|
3137
|
+
providerExecuted?: boolean | undefined;
|
|
3138
|
+
isError?: boolean | undefined;
|
|
3303
3139
|
experimental_content?: ({
|
|
3304
3140
|
type: "text";
|
|
3305
3141
|
text: string;
|
|
@@ -3308,7 +3144,6 @@ export declare const vv: {
|
|
|
3308
3144
|
type: "image";
|
|
3309
3145
|
data: string;
|
|
3310
3146
|
})[] | undefined;
|
|
3311
|
-
isError?: boolean | undefined;
|
|
3312
3147
|
type: "tool-result";
|
|
3313
3148
|
toolCallId: string;
|
|
3314
3149
|
toolName: string;
|
|
@@ -3319,6 +3154,8 @@ export declare const vv: {
|
|
|
3319
3154
|
content: import("convex/values").VArray<{
|
|
3320
3155
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3321
3156
|
args?: any;
|
|
3157
|
+
providerExecuted?: boolean | undefined;
|
|
3158
|
+
isError?: boolean | undefined;
|
|
3322
3159
|
experimental_content?: ({
|
|
3323
3160
|
type: "text";
|
|
3324
3161
|
text: string;
|
|
@@ -3327,7 +3164,6 @@ export declare const vv: {
|
|
|
3327
3164
|
type: "image";
|
|
3328
3165
|
data: string;
|
|
3329
3166
|
})[] | undefined;
|
|
3330
|
-
isError?: boolean | undefined;
|
|
3331
3167
|
type: "tool-result";
|
|
3332
3168
|
toolCallId: string;
|
|
3333
3169
|
toolName: string;
|
|
@@ -3335,6 +3171,8 @@ export declare const vv: {
|
|
|
3335
3171
|
}[], import("convex/values").VObject<{
|
|
3336
3172
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3337
3173
|
args?: any;
|
|
3174
|
+
providerExecuted?: boolean | undefined;
|
|
3175
|
+
isError?: boolean | undefined;
|
|
3338
3176
|
experimental_content?: ({
|
|
3339
3177
|
type: "text";
|
|
3340
3178
|
text: string;
|
|
@@ -3343,7 +3181,6 @@ export declare const vv: {
|
|
|
3343
3181
|
type: "image";
|
|
3344
3182
|
data: string;
|
|
3345
3183
|
})[] | undefined;
|
|
3346
|
-
isError?: boolean | undefined;
|
|
3347
3184
|
type: "tool-result";
|
|
3348
3185
|
toolCallId: string;
|
|
3349
3186
|
toolName: string;
|
|
@@ -3353,6 +3190,9 @@ export declare const vv: {
|
|
|
3353
3190
|
toolCallId: import("convex/values").VString<string, "required">;
|
|
3354
3191
|
toolName: import("convex/values").VString<string, "required">;
|
|
3355
3192
|
result: import("convex/values").VAny<any, "required", string>;
|
|
3193
|
+
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>;
|
|
3194
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
3195
|
+
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
3356
3196
|
args: import("convex/values").VAny<any, "optional", string>;
|
|
3357
3197
|
experimental_content: import("convex/values").VArray<({
|
|
3358
3198
|
type: "text";
|
|
@@ -3383,9 +3223,7 @@ export declare const vv: {
|
|
|
3383
3223
|
data: import("convex/values").VString<string, "required">;
|
|
3384
3224
|
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
3385
3225
|
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
3386
|
-
|
|
3387
|
-
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>;
|
|
3388
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>, "required">;
|
|
3226
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>, "required">;
|
|
3389
3227
|
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>;
|
|
3390
3228
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
3391
3229
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -3399,6 +3237,8 @@ export declare const vv: {
|
|
|
3399
3237
|
tool: import("convex/values").VBoolean<boolean, "required">;
|
|
3400
3238
|
text: import("convex/values").VString<string | undefined, "optional">;
|
|
3401
3239
|
usage: import("convex/values").VObject<{
|
|
3240
|
+
reasoningTokens?: number | undefined;
|
|
3241
|
+
cachedInputTokens?: number | undefined;
|
|
3402
3242
|
promptTokens: number;
|
|
3403
3243
|
completionTokens: number;
|
|
3404
3244
|
totalTokens: number;
|
|
@@ -3406,57 +3246,71 @@ export declare const vv: {
|
|
|
3406
3246
|
promptTokens: import("convex/values").VFloat64<number, "required">;
|
|
3407
3247
|
completionTokens: import("convex/values").VFloat64<number, "required">;
|
|
3408
3248
|
totalTokens: import("convex/values").VFloat64<number, "required">;
|
|
3409
|
-
|
|
3249
|
+
reasoningTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
3250
|
+
cachedInputTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
3251
|
+
}, "optional", "promptTokens" | "completionTokens" | "totalTokens" | "reasoningTokens" | "cachedInputTokens">;
|
|
3410
3252
|
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>;
|
|
3411
|
-
sources: import("convex/values").VArray<{
|
|
3253
|
+
sources: import("convex/values").VArray<({
|
|
3254
|
+
title?: string | undefined;
|
|
3255
|
+
type?: "source" | undefined;
|
|
3256
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3257
|
+
id: string;
|
|
3258
|
+
sourceType: "url";
|
|
3259
|
+
url: string;
|
|
3260
|
+
} | {
|
|
3261
|
+
filename?: string | undefined;
|
|
3262
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3263
|
+
id: string;
|
|
3264
|
+
title: string;
|
|
3265
|
+
type: "source";
|
|
3266
|
+
sourceType: "document";
|
|
3267
|
+
mediaType: string;
|
|
3268
|
+
})[] | undefined, import("convex/values").VUnion<{
|
|
3412
3269
|
title?: string | undefined;
|
|
3270
|
+
type?: "source" | undefined;
|
|
3413
3271
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3414
3272
|
id: string;
|
|
3415
3273
|
sourceType: "url";
|
|
3416
3274
|
url: string;
|
|
3417
|
-
}
|
|
3275
|
+
} | {
|
|
3276
|
+
filename?: string | undefined;
|
|
3277
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3278
|
+
id: string;
|
|
3279
|
+
title: string;
|
|
3280
|
+
type: "source";
|
|
3281
|
+
sourceType: "document";
|
|
3282
|
+
mediaType: string;
|
|
3283
|
+
}, [import("convex/values").VObject<{
|
|
3418
3284
|
title?: string | undefined;
|
|
3285
|
+
type?: "source" | undefined;
|
|
3419
3286
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3420
3287
|
id: string;
|
|
3421
3288
|
sourceType: "url";
|
|
3422
3289
|
url: string;
|
|
3423
3290
|
}, {
|
|
3291
|
+
type: import("convex/values").VLiteral<"source" | undefined, "optional">;
|
|
3424
3292
|
sourceType: import("convex/values").VLiteral<"url", "required">;
|
|
3425
3293
|
id: import("convex/values").VString<string, "required">;
|
|
3426
3294
|
url: import("convex/values").VString<string, "required">;
|
|
3427
3295
|
title: import("convex/values").VString<string | undefined, "optional">;
|
|
3428
3296
|
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>;
|
|
3429
|
-
}, "required", "id" | "title" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">, "
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
data: string;
|
|
3438
|
-
})[] | undefined, import("convex/values").VUnion<{
|
|
3439
|
-
signature?: string | undefined;
|
|
3440
|
-
type: "text";
|
|
3441
|
-
text: string;
|
|
3442
|
-
} | {
|
|
3443
|
-
type: "redacted";
|
|
3444
|
-
data: string;
|
|
3445
|
-
}, [import("convex/values").VObject<{
|
|
3446
|
-
signature?: string | undefined;
|
|
3447
|
-
type: "text";
|
|
3448
|
-
text: string;
|
|
3449
|
-
}, {
|
|
3450
|
-
type: import("convex/values").VLiteral<"text", "required">;
|
|
3451
|
-
text: import("convex/values").VString<string, "required">;
|
|
3452
|
-
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
3453
|
-
}, "required", "type" | "text" | "signature">, import("convex/values").VObject<{
|
|
3454
|
-
type: "redacted";
|
|
3455
|
-
data: string;
|
|
3297
|
+
}, "required", "id" | "title" | "type" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">, import("convex/values").VObject<{
|
|
3298
|
+
filename?: string | undefined;
|
|
3299
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3300
|
+
id: string;
|
|
3301
|
+
title: string;
|
|
3302
|
+
type: "source";
|
|
3303
|
+
sourceType: "document";
|
|
3304
|
+
mediaType: string;
|
|
3456
3305
|
}, {
|
|
3457
|
-
type: import("convex/values").VLiteral<"
|
|
3458
|
-
|
|
3459
|
-
|
|
3306
|
+
type: import("convex/values").VLiteral<"source", "required">;
|
|
3307
|
+
sourceType: import("convex/values").VLiteral<"document", "required">;
|
|
3308
|
+
id: import("convex/values").VString<string, "required">;
|
|
3309
|
+
mediaType: import("convex/values").VString<string, "required">;
|
|
3310
|
+
title: import("convex/values").VString<string, "required">;
|
|
3311
|
+
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
3312
|
+
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>;
|
|
3313
|
+
}, "required", "id" | "title" | "type" | "filename" | "providerMetadata" | "sourceType" | "mediaType" | `providerMetadata.${string}`>], "required", "id" | "title" | "type" | "providerOptions" | `providerOptions.${string}` | "filename" | "providerMetadata" | "sourceType" | "url" | "mediaType" | `providerMetadata.${string}`>, "optional">;
|
|
3460
3314
|
warnings: import("convex/values").VArray<({
|
|
3461
3315
|
details?: string | undefined;
|
|
3462
3316
|
type: "unsupported-setting";
|
|
@@ -3503,10 +3357,65 @@ export declare const vv: {
|
|
|
3503
3357
|
message: import("convex/values").VString<string, "required">;
|
|
3504
3358
|
}, "required", "type" | "message">], "required", "type" | "message" | "tool" | "setting" | "details" | `tool.${string}`>, "optional">;
|
|
3505
3359
|
finishReason: import("convex/values").VUnion<"length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined, [import("convex/values").VLiteral<"stop", "required">, import("convex/values").VLiteral<"length", "required">, import("convex/values").VLiteral<"content-filter", "required">, import("convex/values").VLiteral<"tool-calls", "required">, import("convex/values").VLiteral<"error", "required">, import("convex/values").VLiteral<"other", "required">, import("convex/values").VLiteral<"unknown", "required">], "optional", never>;
|
|
3360
|
+
reasoning: import("convex/values").VString<string | undefined, "optional">;
|
|
3361
|
+
reasoningDetails: import("convex/values").VArray<({
|
|
3362
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3363
|
+
signature?: string | undefined;
|
|
3364
|
+
state?: "streaming" | "done" | undefined;
|
|
3365
|
+
type: "reasoning";
|
|
3366
|
+
text: string;
|
|
3367
|
+
} | {
|
|
3368
|
+
signature?: string | undefined;
|
|
3369
|
+
type: "text";
|
|
3370
|
+
text: string;
|
|
3371
|
+
} | {
|
|
3372
|
+
type: "redacted";
|
|
3373
|
+
data: string;
|
|
3374
|
+
})[] | undefined, import("convex/values").VUnion<{
|
|
3375
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3376
|
+
signature?: string | undefined;
|
|
3377
|
+
state?: "streaming" | "done" | undefined;
|
|
3378
|
+
type: "reasoning";
|
|
3379
|
+
text: string;
|
|
3380
|
+
} | {
|
|
3381
|
+
signature?: string | undefined;
|
|
3382
|
+
type: "text";
|
|
3383
|
+
text: string;
|
|
3384
|
+
} | {
|
|
3385
|
+
type: "redacted";
|
|
3386
|
+
data: string;
|
|
3387
|
+
}, [import("convex/values").VObject<{
|
|
3388
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3389
|
+
signature?: string | undefined;
|
|
3390
|
+
state?: "streaming" | "done" | undefined;
|
|
3391
|
+
type: "reasoning";
|
|
3392
|
+
text: string;
|
|
3393
|
+
}, {
|
|
3394
|
+
type: import("convex/values").VLiteral<"reasoning", "required">;
|
|
3395
|
+
text: import("convex/values").VString<string, "required">;
|
|
3396
|
+
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
3397
|
+
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>;
|
|
3398
|
+
state: import("convex/values").VUnion<"streaming" | "done" | undefined, [import("convex/values").VLiteral<"streaming", "required">, import("convex/values").VLiteral<"done", "required">], "optional", never>;
|
|
3399
|
+
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature" | "state">, import("convex/values").VObject<{
|
|
3400
|
+
signature?: string | undefined;
|
|
3401
|
+
type: "text";
|
|
3402
|
+
text: string;
|
|
3403
|
+
}, {
|
|
3404
|
+
type: import("convex/values").VLiteral<"text", "required">;
|
|
3405
|
+
text: import("convex/values").VString<string, "required">;
|
|
3406
|
+
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
3407
|
+
}, "required", "type" | "text" | "signature">, import("convex/values").VObject<{
|
|
3408
|
+
type: "redacted";
|
|
3409
|
+
data: string;
|
|
3410
|
+
}, {
|
|
3411
|
+
type: import("convex/values").VLiteral<"redacted", "required">;
|
|
3412
|
+
data: import("convex/values").VString<string, "required">;
|
|
3413
|
+
}, "required", "type" | "data">], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "data" | "signature" | "state">, "optional">;
|
|
3414
|
+
id: import("convex/values").VString<string | undefined, "optional">;
|
|
3506
3415
|
parentMessageId: import("convex/values").VId<import("convex/values").GenericId<"messages"> | undefined, "optional">;
|
|
3507
3416
|
stepId: import("convex/values").VString<string | undefined, "optional">;
|
|
3508
3417
|
files: import("convex/values").VArray<any[] | undefined, import("convex/values").VAny<any, "required", string>, "optional">;
|
|
3509
|
-
}, "required", "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "files" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | `providerOptions.${string}` | "reasoning" | "tool" | "usage" | "providerMetadata" | "sources" |
|
|
3418
|
+
}, "required", "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "files" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | `providerOptions.${string}` | "reasoning" | "tool" | "usage" | "providerMetadata" | "sources" | `providerMetadata.${string}` | "warnings" | "finishReason" | "reasoningDetails" | "parentMessageId" | "stepId" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | "usage.reasoningTokens" | "usage.cachedInputTokens">, {
|
|
3510
3419
|
threadId_status_tool_order_stepOrder: ["threadId", "status", "tool", "order", "stepOrder", "_creationTime"];
|
|
3511
3420
|
embeddingId_threadId: ["embeddingId", "threadId", "_creationTime"];
|
|
3512
3421
|
}, {
|
|
@@ -3556,304 +3465,47 @@ export declare const vv: {
|
|
|
3556
3465
|
lastHeartbeat: number;
|
|
3557
3466
|
} | {
|
|
3558
3467
|
cleanupFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
|
|
3559
|
-
kind: "finished";
|
|
3560
|
-
endedAt: number;
|
|
3561
|
-
} | {
|
|
3562
|
-
kind: "aborted";
|
|
3563
|
-
reason: string;
|
|
3564
|
-
}, [import("convex/values").VObject<{
|
|
3565
|
-
timeoutFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
|
|
3566
|
-
kind: "streaming";
|
|
3567
|
-
lastHeartbeat: number;
|
|
3568
|
-
}, {
|
|
3569
|
-
kind: import("convex/values").VLiteral<"streaming", "required">;
|
|
3570
|
-
lastHeartbeat: import("convex/values").VFloat64<number, "required">;
|
|
3571
|
-
timeoutFnId: import("convex/values").VId<import("convex/values").GenericId<"_scheduled_functions"> | undefined, "optional">;
|
|
3572
|
-
}, "required", "kind" | "lastHeartbeat" | "timeoutFnId">, import("convex/values").VObject<{
|
|
3573
|
-
cleanupFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
|
|
3574
|
-
kind: "finished";
|
|
3575
|
-
endedAt: number;
|
|
3576
|
-
}, {
|
|
3577
|
-
kind: import("convex/values").VLiteral<"finished", "required">;
|
|
3578
|
-
endedAt: import("convex/values").VFloat64<number, "required">;
|
|
3579
|
-
cleanupFnId: import("convex/values").VId<import("convex/values").GenericId<"_scheduled_functions"> | undefined, "optional">;
|
|
3580
|
-
}, "required", "kind" | "endedAt" | "cleanupFnId">, import("convex/values").VObject<{
|
|
3581
|
-
kind: "aborted";
|
|
3582
|
-
reason: string;
|
|
3583
|
-
}, {
|
|
3584
|
-
kind: import("convex/values").VLiteral<"aborted", "required">;
|
|
3585
|
-
reason: import("convex/values").VString<string, "required">;
|
|
3586
|
-
}, "required", "kind" | "reason">], "required", "kind" | "lastHeartbeat" | "timeoutFnId" | "endedAt" | "cleanupFnId" | "reason">;
|
|
3587
|
-
}, "required", "userId" | "order" | "threadId" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "state" | "state.kind" | "state.lastHeartbeat" | "state.timeoutFnId" | "state.endedAt" | "state.cleanupFnId" | "state.reason">, {
|
|
3588
|
-
threadId_state_order_stepOrder: ["threadId", "state.kind", "order", "stepOrder", "_creationTime"];
|
|
3589
|
-
}, {}, {}>;
|
|
3590
|
-
streamDeltas: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3591
|
-
streamId: import("convex/values").GenericId<"streamingMessages">;
|
|
3592
|
-
start: number;
|
|
3593
|
-
end: number;
|
|
3594
|
-
parts: ({
|
|
3595
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3596
|
-
type: "tool-call";
|
|
3597
|
-
toolCallId: string;
|
|
3598
|
-
toolName: string;
|
|
3599
|
-
args: any;
|
|
3600
|
-
} | {
|
|
3601
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3602
|
-
args?: any;
|
|
3603
|
-
experimental_content?: ({
|
|
3604
|
-
type: "text";
|
|
3605
|
-
text: string;
|
|
3606
|
-
} | {
|
|
3607
|
-
mimeType?: string | undefined;
|
|
3608
|
-
type: "image";
|
|
3609
|
-
data: string;
|
|
3610
|
-
})[] | undefined;
|
|
3611
|
-
isError?: boolean | undefined;
|
|
3612
|
-
type: "tool-result";
|
|
3613
|
-
toolCallId: string;
|
|
3614
|
-
toolName: string;
|
|
3615
|
-
result: any;
|
|
3616
|
-
} | {
|
|
3617
|
-
type: "text-delta";
|
|
3618
|
-
textDelta: string;
|
|
3619
|
-
} | {
|
|
3620
|
-
type: "reasoning";
|
|
3621
|
-
textDelta: string;
|
|
3622
|
-
} | {
|
|
3623
|
-
type: "source";
|
|
3624
|
-
source: {
|
|
3625
|
-
title?: string | undefined;
|
|
3626
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3627
|
-
id: string;
|
|
3628
|
-
sourceType: "url";
|
|
3629
|
-
url: string;
|
|
3630
|
-
};
|
|
3631
|
-
} | {
|
|
3632
|
-
type: "tool-call-streaming-start";
|
|
3633
|
-
toolCallId: string;
|
|
3634
|
-
toolName: string;
|
|
3635
|
-
} | {
|
|
3636
|
-
type: "tool-call-delta";
|
|
3637
|
-
toolCallId: string;
|
|
3638
|
-
toolName: string;
|
|
3639
|
-
argsTextDelta: string;
|
|
3640
|
-
})[];
|
|
3641
|
-
}, {
|
|
3642
|
-
streamId: import("convex/values").VId<import("convex/values").GenericId<"streamingMessages">, "required">;
|
|
3643
|
-
start: import("convex/values").VFloat64<number, "required">;
|
|
3644
|
-
end: import("convex/values").VFloat64<number, "required">;
|
|
3645
|
-
parts: import("convex/values").VArray<({
|
|
3646
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3647
|
-
type: "tool-call";
|
|
3648
|
-
toolCallId: string;
|
|
3649
|
-
toolName: string;
|
|
3650
|
-
args: any;
|
|
3651
|
-
} | {
|
|
3652
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3653
|
-
args?: any;
|
|
3654
|
-
experimental_content?: ({
|
|
3655
|
-
type: "text";
|
|
3656
|
-
text: string;
|
|
3657
|
-
} | {
|
|
3658
|
-
mimeType?: string | undefined;
|
|
3659
|
-
type: "image";
|
|
3660
|
-
data: string;
|
|
3661
|
-
})[] | undefined;
|
|
3662
|
-
isError?: boolean | undefined;
|
|
3663
|
-
type: "tool-result";
|
|
3664
|
-
toolCallId: string;
|
|
3665
|
-
toolName: string;
|
|
3666
|
-
result: any;
|
|
3667
|
-
} | {
|
|
3668
|
-
type: "text-delta";
|
|
3669
|
-
textDelta: string;
|
|
3670
|
-
} | {
|
|
3671
|
-
type: "reasoning";
|
|
3672
|
-
textDelta: string;
|
|
3673
|
-
} | {
|
|
3674
|
-
type: "source";
|
|
3675
|
-
source: {
|
|
3676
|
-
title?: string | undefined;
|
|
3677
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3678
|
-
id: string;
|
|
3679
|
-
sourceType: "url";
|
|
3680
|
-
url: string;
|
|
3681
|
-
};
|
|
3682
|
-
} | {
|
|
3683
|
-
type: "tool-call-streaming-start";
|
|
3684
|
-
toolCallId: string;
|
|
3685
|
-
toolName: string;
|
|
3686
|
-
} | {
|
|
3687
|
-
type: "tool-call-delta";
|
|
3688
|
-
toolCallId: string;
|
|
3689
|
-
toolName: string;
|
|
3690
|
-
argsTextDelta: string;
|
|
3691
|
-
})[], import("convex/values").VUnion<{
|
|
3692
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3693
|
-
type: "tool-call";
|
|
3694
|
-
toolCallId: string;
|
|
3695
|
-
toolName: string;
|
|
3696
|
-
args: any;
|
|
3697
|
-
} | {
|
|
3698
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3699
|
-
args?: any;
|
|
3700
|
-
experimental_content?: ({
|
|
3701
|
-
type: "text";
|
|
3702
|
-
text: string;
|
|
3703
|
-
} | {
|
|
3704
|
-
mimeType?: string | undefined;
|
|
3705
|
-
type: "image";
|
|
3706
|
-
data: string;
|
|
3707
|
-
})[] | undefined;
|
|
3708
|
-
isError?: boolean | undefined;
|
|
3709
|
-
type: "tool-result";
|
|
3710
|
-
toolCallId: string;
|
|
3711
|
-
toolName: string;
|
|
3712
|
-
result: any;
|
|
3713
|
-
} | {
|
|
3714
|
-
type: "text-delta";
|
|
3715
|
-
textDelta: string;
|
|
3716
|
-
} | {
|
|
3717
|
-
type: "reasoning";
|
|
3718
|
-
textDelta: string;
|
|
3719
|
-
} | {
|
|
3720
|
-
type: "source";
|
|
3721
|
-
source: {
|
|
3722
|
-
title?: string | undefined;
|
|
3723
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3724
|
-
id: string;
|
|
3725
|
-
sourceType: "url";
|
|
3726
|
-
url: string;
|
|
3727
|
-
};
|
|
3728
|
-
} | {
|
|
3729
|
-
type: "tool-call-streaming-start";
|
|
3730
|
-
toolCallId: string;
|
|
3731
|
-
toolName: string;
|
|
3468
|
+
kind: "finished";
|
|
3469
|
+
endedAt: number;
|
|
3732
3470
|
} | {
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
toolName: string;
|
|
3736
|
-
argsTextDelta: string;
|
|
3471
|
+
kind: "aborted";
|
|
3472
|
+
reason: string;
|
|
3737
3473
|
}, [import("convex/values").VObject<{
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
type: import("convex/values").VLiteral<"text-delta", "required">;
|
|
3742
|
-
textDelta: import("convex/values").VString<string, "required">;
|
|
3743
|
-
}, "required", "type" | "textDelta">, import("convex/values").VObject<{
|
|
3744
|
-
type: "reasoning";
|
|
3745
|
-
textDelta: string;
|
|
3746
|
-
}, {
|
|
3747
|
-
type: import("convex/values").VLiteral<"reasoning", "required">;
|
|
3748
|
-
textDelta: import("convex/values").VString<string, "required">;
|
|
3749
|
-
}, "required", "type" | "textDelta">, import("convex/values").VObject<{
|
|
3750
|
-
type: "source";
|
|
3751
|
-
source: {
|
|
3752
|
-
title?: string | undefined;
|
|
3753
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3754
|
-
id: string;
|
|
3755
|
-
sourceType: "url";
|
|
3756
|
-
url: string;
|
|
3757
|
-
};
|
|
3758
|
-
}, {
|
|
3759
|
-
type: import("convex/values").VLiteral<"source", "required">;
|
|
3760
|
-
source: import("convex/values").VObject<{
|
|
3761
|
-
title?: string | undefined;
|
|
3762
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3763
|
-
id: string;
|
|
3764
|
-
sourceType: "url";
|
|
3765
|
-
url: string;
|
|
3766
|
-
}, {
|
|
3767
|
-
sourceType: import("convex/values").VLiteral<"url", "required">;
|
|
3768
|
-
id: import("convex/values").VString<string, "required">;
|
|
3769
|
-
url: import("convex/values").VString<string, "required">;
|
|
3770
|
-
title: import("convex/values").VString<string | undefined, "optional">;
|
|
3771
|
-
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>;
|
|
3772
|
-
}, "required", "id" | "title" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">;
|
|
3773
|
-
}, "required", "type" | "source" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url">, import("convex/values").VObject<{
|
|
3774
|
-
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3775
|
-
type: "tool-call";
|
|
3776
|
-
toolCallId: string;
|
|
3777
|
-
toolName: string;
|
|
3778
|
-
args: any;
|
|
3779
|
-
}, {
|
|
3780
|
-
type: import("convex/values").VLiteral<"tool-call", "required">;
|
|
3781
|
-
toolCallId: import("convex/values").VString<string, "required">;
|
|
3782
|
-
toolName: import("convex/values").VString<string, "required">;
|
|
3783
|
-
args: import("convex/values").VAny<any, "required", string>;
|
|
3784
|
-
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>;
|
|
3785
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>, import("convex/values").VObject<{
|
|
3786
|
-
type: "tool-call-streaming-start";
|
|
3787
|
-
toolCallId: string;
|
|
3788
|
-
toolName: string;
|
|
3474
|
+
timeoutFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
|
|
3475
|
+
kind: "streaming";
|
|
3476
|
+
lastHeartbeat: number;
|
|
3789
3477
|
}, {
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
}, "required", "
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
argsTextDelta: string;
|
|
3478
|
+
kind: import("convex/values").VLiteral<"streaming", "required">;
|
|
3479
|
+
lastHeartbeat: import("convex/values").VFloat64<number, "required">;
|
|
3480
|
+
timeoutFnId: import("convex/values").VId<import("convex/values").GenericId<"_scheduled_functions"> | undefined, "optional">;
|
|
3481
|
+
}, "required", "kind" | "lastHeartbeat" | "timeoutFnId">, import("convex/values").VObject<{
|
|
3482
|
+
cleanupFnId?: import("convex/values").GenericId<"_scheduled_functions"> | undefined;
|
|
3483
|
+
kind: "finished";
|
|
3484
|
+
endedAt: number;
|
|
3798
3485
|
}, {
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
args?: any;
|
|
3806
|
-
experimental_content?: ({
|
|
3807
|
-
type: "text";
|
|
3808
|
-
text: string;
|
|
3809
|
-
} | {
|
|
3810
|
-
mimeType?: string | undefined;
|
|
3811
|
-
type: "image";
|
|
3812
|
-
data: string;
|
|
3813
|
-
})[] | undefined;
|
|
3814
|
-
isError?: boolean | undefined;
|
|
3815
|
-
type: "tool-result";
|
|
3816
|
-
toolCallId: string;
|
|
3817
|
-
toolName: string;
|
|
3818
|
-
result: any;
|
|
3486
|
+
kind: import("convex/values").VLiteral<"finished", "required">;
|
|
3487
|
+
endedAt: import("convex/values").VFloat64<number, "required">;
|
|
3488
|
+
cleanupFnId: import("convex/values").VId<import("convex/values").GenericId<"_scheduled_functions"> | undefined, "optional">;
|
|
3489
|
+
}, "required", "kind" | "endedAt" | "cleanupFnId">, import("convex/values").VObject<{
|
|
3490
|
+
kind: "aborted";
|
|
3491
|
+
reason: string;
|
|
3819
3492
|
}, {
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
mimeType?: string | undefined;
|
|
3837
|
-
type: "image";
|
|
3838
|
-
data: string;
|
|
3839
|
-
}, [import("convex/values").VObject<{
|
|
3840
|
-
type: "text";
|
|
3841
|
-
text: string;
|
|
3842
|
-
}, {
|
|
3843
|
-
type: import("convex/values").VLiteral<"text", "required">;
|
|
3844
|
-
text: import("convex/values").VString<string, "required">;
|
|
3845
|
-
}, "required", "type" | "text">, import("convex/values").VObject<{
|
|
3846
|
-
mimeType?: string | undefined;
|
|
3847
|
-
type: "image";
|
|
3848
|
-
data: string;
|
|
3849
|
-
}, {
|
|
3850
|
-
type: import("convex/values").VLiteral<"image", "required">;
|
|
3851
|
-
data: import("convex/values").VString<string, "required">;
|
|
3852
|
-
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
3853
|
-
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
3854
|
-
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
3855
|
-
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>;
|
|
3856
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>], "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}` | "textDelta" | "source" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url" | "argsTextDelta">, "required">;
|
|
3493
|
+
kind: import("convex/values").VLiteral<"aborted", "required">;
|
|
3494
|
+
reason: import("convex/values").VString<string, "required">;
|
|
3495
|
+
}, "required", "kind" | "reason">], "required", "kind" | "lastHeartbeat" | "timeoutFnId" | "endedAt" | "cleanupFnId" | "reason">;
|
|
3496
|
+
}, "required", "userId" | "order" | "threadId" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "state" | "state.kind" | "state.lastHeartbeat" | "state.timeoutFnId" | "state.endedAt" | "state.cleanupFnId" | "state.reason">, {
|
|
3497
|
+
threadId_state_order_stepOrder: ["threadId", "state.kind", "order", "stepOrder", "_creationTime"];
|
|
3498
|
+
}, {}, {}>;
|
|
3499
|
+
streamDeltas: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3500
|
+
streamId: import("convex/values").GenericId<"streamingMessages">;
|
|
3501
|
+
start: number;
|
|
3502
|
+
end: number;
|
|
3503
|
+
parts: any[];
|
|
3504
|
+
}, {
|
|
3505
|
+
streamId: import("convex/values").VId<import("convex/values").GenericId<"streamingMessages">, "required">;
|
|
3506
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
3507
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
3508
|
+
parts: import("convex/values").VArray<any[], import("convex/values").VAny<any, "required", string>, "required">;
|
|
3857
3509
|
}, "required", "streamId" | "start" | "end" | "parts">, {
|
|
3858
3510
|
streamId_start_end: ["streamId", "start", "end", "_creationTime"];
|
|
3859
3511
|
}, {}, {}>;
|
|
@@ -3972,6 +3624,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
3972
3624
|
} | {
|
|
3973
3625
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3974
3626
|
signature?: string | undefined;
|
|
3627
|
+
state?: "streaming" | "done" | undefined;
|
|
3975
3628
|
type: "reasoning";
|
|
3976
3629
|
text: string;
|
|
3977
3630
|
} | {
|
|
@@ -3980,6 +3633,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
3980
3633
|
data: string;
|
|
3981
3634
|
} | {
|
|
3982
3635
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3636
|
+
providerExecuted?: boolean | undefined;
|
|
3983
3637
|
type: "tool-call";
|
|
3984
3638
|
toolCallId: string;
|
|
3985
3639
|
toolName: string;
|
|
@@ -3991,6 +3645,8 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
3991
3645
|
content: {
|
|
3992
3646
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3993
3647
|
args?: any;
|
|
3648
|
+
providerExecuted?: boolean | undefined;
|
|
3649
|
+
isError?: boolean | undefined;
|
|
3994
3650
|
experimental_content?: ({
|
|
3995
3651
|
type: "text";
|
|
3996
3652
|
text: string;
|
|
@@ -3999,7 +3655,6 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
3999
3655
|
type: "image";
|
|
4000
3656
|
data: string;
|
|
4001
3657
|
})[] | undefined;
|
|
4002
|
-
isError?: boolean | undefined;
|
|
4003
3658
|
type: "tool-result";
|
|
4004
3659
|
toolCallId: string;
|
|
4005
3660
|
toolName: string;
|
|
@@ -4013,25 +3668,28 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4013
3668
|
text?: string | undefined;
|
|
4014
3669
|
reasoning?: string | undefined;
|
|
4015
3670
|
usage?: {
|
|
3671
|
+
reasoningTokens?: number | undefined;
|
|
3672
|
+
cachedInputTokens?: number | undefined;
|
|
4016
3673
|
promptTokens: number;
|
|
4017
3674
|
completionTokens: number;
|
|
4018
3675
|
totalTokens: number;
|
|
4019
3676
|
} | undefined;
|
|
4020
3677
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4021
|
-
sources?: {
|
|
3678
|
+
sources?: ({
|
|
4022
3679
|
title?: string | undefined;
|
|
3680
|
+
type?: "source" | undefined;
|
|
4023
3681
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4024
3682
|
id: string;
|
|
4025
3683
|
sourceType: "url";
|
|
4026
3684
|
url: string;
|
|
4027
|
-
}[] | undefined;
|
|
4028
|
-
reasoningDetails?: ({
|
|
4029
|
-
signature?: string | undefined;
|
|
4030
|
-
type: "text";
|
|
4031
|
-
text: string;
|
|
4032
3685
|
} | {
|
|
4033
|
-
|
|
4034
|
-
|
|
3686
|
+
filename?: string | undefined;
|
|
3687
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3688
|
+
id: string;
|
|
3689
|
+
title: string;
|
|
3690
|
+
type: "source";
|
|
3691
|
+
sourceType: "document";
|
|
3692
|
+
mediaType: string;
|
|
4035
3693
|
})[] | undefined;
|
|
4036
3694
|
warnings?: ({
|
|
4037
3695
|
details?: string | undefined;
|
|
@@ -4046,6 +3704,20 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4046
3704
|
message: string;
|
|
4047
3705
|
})[] | undefined;
|
|
4048
3706
|
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
3707
|
+
reasoningDetails?: ({
|
|
3708
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3709
|
+
signature?: string | undefined;
|
|
3710
|
+
state?: "streaming" | "done" | undefined;
|
|
3711
|
+
type: "reasoning";
|
|
3712
|
+
text: string;
|
|
3713
|
+
} | {
|
|
3714
|
+
signature?: string | undefined;
|
|
3715
|
+
type: "text";
|
|
3716
|
+
text: string;
|
|
3717
|
+
} | {
|
|
3718
|
+
type: "redacted";
|
|
3719
|
+
data: string;
|
|
3720
|
+
})[] | undefined;
|
|
4049
3721
|
_id: string;
|
|
4050
3722
|
_creationTime: number;
|
|
4051
3723
|
status: "pending" | "success" | "failed";
|
|
@@ -4057,7 +3729,6 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4057
3729
|
threadId: import("convex/values").VString<string, "required">;
|
|
4058
3730
|
embeddingId: import("convex/values").VString<string | undefined, "optional">;
|
|
4059
3731
|
fileIds: import("convex/values").VArray<string[] | undefined, import("convex/values").VString<string, "required">, "optional">;
|
|
4060
|
-
id: import("convex/values").VString<string | undefined, "optional">;
|
|
4061
3732
|
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
4062
3733
|
order: import("convex/values").VFloat64<number, "required">;
|
|
4063
3734
|
stepOrder: import("convex/values").VFloat64<number, "required">;
|
|
@@ -4102,6 +3773,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4102
3773
|
} | {
|
|
4103
3774
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4104
3775
|
signature?: string | undefined;
|
|
3776
|
+
state?: "streaming" | "done" | undefined;
|
|
4105
3777
|
type: "reasoning";
|
|
4106
3778
|
text: string;
|
|
4107
3779
|
} | {
|
|
@@ -4110,6 +3782,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4110
3782
|
data: string;
|
|
4111
3783
|
} | {
|
|
4112
3784
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3785
|
+
providerExecuted?: boolean | undefined;
|
|
4113
3786
|
type: "tool-call";
|
|
4114
3787
|
toolCallId: string;
|
|
4115
3788
|
toolName: string;
|
|
@@ -4121,6 +3794,8 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4121
3794
|
content: {
|
|
4122
3795
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4123
3796
|
args?: any;
|
|
3797
|
+
providerExecuted?: boolean | undefined;
|
|
3798
|
+
isError?: boolean | undefined;
|
|
4124
3799
|
experimental_content?: ({
|
|
4125
3800
|
type: "text";
|
|
4126
3801
|
text: string;
|
|
@@ -4129,7 +3804,6 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4129
3804
|
type: "image";
|
|
4130
3805
|
data: string;
|
|
4131
3806
|
})[] | undefined;
|
|
4132
|
-
isError?: boolean | undefined;
|
|
4133
3807
|
type: "tool-result";
|
|
4134
3808
|
toolCallId: string;
|
|
4135
3809
|
toolName: string;
|
|
@@ -4253,6 +3927,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4253
3927
|
} | {
|
|
4254
3928
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4255
3929
|
signature?: string | undefined;
|
|
3930
|
+
state?: "streaming" | "done" | undefined;
|
|
4256
3931
|
type: "reasoning";
|
|
4257
3932
|
text: string;
|
|
4258
3933
|
} | {
|
|
@@ -4261,6 +3936,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4261
3936
|
data: string;
|
|
4262
3937
|
} | {
|
|
4263
3938
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3939
|
+
providerExecuted?: boolean | undefined;
|
|
4264
3940
|
type: "tool-call";
|
|
4265
3941
|
toolCallId: string;
|
|
4266
3942
|
toolName: string;
|
|
@@ -4281,6 +3957,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4281
3957
|
} | {
|
|
4282
3958
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4283
3959
|
signature?: string | undefined;
|
|
3960
|
+
state?: "streaming" | "done" | undefined;
|
|
4284
3961
|
type: "reasoning";
|
|
4285
3962
|
text: string;
|
|
4286
3963
|
} | {
|
|
@@ -4289,6 +3966,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4289
3966
|
data: string;
|
|
4290
3967
|
} | {
|
|
4291
3968
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3969
|
+
providerExecuted?: boolean | undefined;
|
|
4292
3970
|
type: "tool-call";
|
|
4293
3971
|
toolCallId: string;
|
|
4294
3972
|
toolName: string;
|
|
@@ -4306,6 +3984,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4306
3984
|
} | {
|
|
4307
3985
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4308
3986
|
signature?: string | undefined;
|
|
3987
|
+
state?: "streaming" | "done" | undefined;
|
|
4309
3988
|
type: "reasoning";
|
|
4310
3989
|
text: string;
|
|
4311
3990
|
} | {
|
|
@@ -4314,6 +3993,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4314
3993
|
data: string;
|
|
4315
3994
|
} | {
|
|
4316
3995
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3996
|
+
providerExecuted?: boolean | undefined;
|
|
4317
3997
|
type: "tool-call";
|
|
4318
3998
|
toolCallId: string;
|
|
4319
3999
|
toolName: string;
|
|
@@ -4331,6 +4011,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4331
4011
|
} | {
|
|
4332
4012
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4333
4013
|
signature?: string | undefined;
|
|
4014
|
+
state?: "streaming" | "done" | undefined;
|
|
4334
4015
|
type: "reasoning";
|
|
4335
4016
|
text: string;
|
|
4336
4017
|
} | {
|
|
@@ -4339,6 +4020,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4339
4020
|
data: string;
|
|
4340
4021
|
} | {
|
|
4341
4022
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4023
|
+
providerExecuted?: boolean | undefined;
|
|
4342
4024
|
type: "tool-call";
|
|
4343
4025
|
toolCallId: string;
|
|
4344
4026
|
toolName: string;
|
|
@@ -4366,6 +4048,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4366
4048
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, import("convex/values").VObject<{
|
|
4367
4049
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4368
4050
|
signature?: string | undefined;
|
|
4051
|
+
state?: "streaming" | "done" | undefined;
|
|
4369
4052
|
type: "reasoning";
|
|
4370
4053
|
text: string;
|
|
4371
4054
|
}, {
|
|
@@ -4373,7 +4056,8 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4373
4056
|
text: import("convex/values").VString<string, "required">;
|
|
4374
4057
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
4375
4058
|
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>;
|
|
4376
|
-
|
|
4059
|
+
state: import("convex/values").VUnion<"streaming" | "done" | undefined, [import("convex/values").VLiteral<"streaming", "required">, import("convex/values").VLiteral<"done", "required">], "optional", never>;
|
|
4060
|
+
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature" | "state">, import("convex/values").VObject<{
|
|
4377
4061
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4378
4062
|
type: "redacted-reasoning";
|
|
4379
4063
|
data: string;
|
|
@@ -4383,6 +4067,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4383
4067
|
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>;
|
|
4384
4068
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "data">, import("convex/values").VObject<{
|
|
4385
4069
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4070
|
+
providerExecuted?: boolean | undefined;
|
|
4386
4071
|
type: "tool-call";
|
|
4387
4072
|
toolCallId: string;
|
|
4388
4073
|
toolName: string;
|
|
@@ -4393,7 +4078,8 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4393
4078
|
toolName: import("convex/values").VString<string, "required">;
|
|
4394
4079
|
args: import("convex/values").VAny<any, "required", string>;
|
|
4395
4080
|
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>;
|
|
4396
|
-
|
|
4081
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
4082
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "state" | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>, "required">], "required", never>;
|
|
4397
4083
|
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>;
|
|
4398
4084
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
4399
4085
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -4401,6 +4087,8 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4401
4087
|
content: {
|
|
4402
4088
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4403
4089
|
args?: any;
|
|
4090
|
+
providerExecuted?: boolean | undefined;
|
|
4091
|
+
isError?: boolean | undefined;
|
|
4404
4092
|
experimental_content?: ({
|
|
4405
4093
|
type: "text";
|
|
4406
4094
|
text: string;
|
|
@@ -4409,7 +4097,6 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4409
4097
|
type: "image";
|
|
4410
4098
|
data: string;
|
|
4411
4099
|
})[] | undefined;
|
|
4412
|
-
isError?: boolean | undefined;
|
|
4413
4100
|
type: "tool-result";
|
|
4414
4101
|
toolCallId: string;
|
|
4415
4102
|
toolName: string;
|
|
@@ -4420,6 +4107,8 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4420
4107
|
content: import("convex/values").VArray<{
|
|
4421
4108
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4422
4109
|
args?: any;
|
|
4110
|
+
providerExecuted?: boolean | undefined;
|
|
4111
|
+
isError?: boolean | undefined;
|
|
4423
4112
|
experimental_content?: ({
|
|
4424
4113
|
type: "text";
|
|
4425
4114
|
text: string;
|
|
@@ -4428,7 +4117,6 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4428
4117
|
type: "image";
|
|
4429
4118
|
data: string;
|
|
4430
4119
|
})[] | undefined;
|
|
4431
|
-
isError?: boolean | undefined;
|
|
4432
4120
|
type: "tool-result";
|
|
4433
4121
|
toolCallId: string;
|
|
4434
4122
|
toolName: string;
|
|
@@ -4436,6 +4124,8 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4436
4124
|
}[], import("convex/values").VObject<{
|
|
4437
4125
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4438
4126
|
args?: any;
|
|
4127
|
+
providerExecuted?: boolean | undefined;
|
|
4128
|
+
isError?: boolean | undefined;
|
|
4439
4129
|
experimental_content?: ({
|
|
4440
4130
|
type: "text";
|
|
4441
4131
|
text: string;
|
|
@@ -4444,7 +4134,6 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4444
4134
|
type: "image";
|
|
4445
4135
|
data: string;
|
|
4446
4136
|
})[] | undefined;
|
|
4447
|
-
isError?: boolean | undefined;
|
|
4448
4137
|
type: "tool-result";
|
|
4449
4138
|
toolCallId: string;
|
|
4450
4139
|
toolName: string;
|
|
@@ -4454,6 +4143,9 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4454
4143
|
toolCallId: import("convex/values").VString<string, "required">;
|
|
4455
4144
|
toolName: import("convex/values").VString<string, "required">;
|
|
4456
4145
|
result: import("convex/values").VAny<any, "required", string>;
|
|
4146
|
+
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>;
|
|
4147
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
4148
|
+
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
4457
4149
|
args: import("convex/values").VAny<any, "optional", string>;
|
|
4458
4150
|
experimental_content: import("convex/values").VArray<({
|
|
4459
4151
|
type: "text";
|
|
@@ -4484,9 +4176,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4484
4176
|
data: import("convex/values").VString<string, "required">;
|
|
4485
4177
|
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
4486
4178
|
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
4487
|
-
|
|
4488
|
-
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>;
|
|
4489
|
-
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>, "required">;
|
|
4179
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>, "required">;
|
|
4490
4180
|
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>;
|
|
4491
4181
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
4492
4182
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -4500,6 +4190,8 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4500
4190
|
tool: import("convex/values").VBoolean<boolean, "required">;
|
|
4501
4191
|
text: import("convex/values").VString<string | undefined, "optional">;
|
|
4502
4192
|
usage: import("convex/values").VObject<{
|
|
4193
|
+
reasoningTokens?: number | undefined;
|
|
4194
|
+
cachedInputTokens?: number | undefined;
|
|
4503
4195
|
promptTokens: number;
|
|
4504
4196
|
completionTokens: number;
|
|
4505
4197
|
totalTokens: number;
|
|
@@ -4507,57 +4199,71 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4507
4199
|
promptTokens: import("convex/values").VFloat64<number, "required">;
|
|
4508
4200
|
completionTokens: import("convex/values").VFloat64<number, "required">;
|
|
4509
4201
|
totalTokens: import("convex/values").VFloat64<number, "required">;
|
|
4510
|
-
|
|
4202
|
+
reasoningTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4203
|
+
cachedInputTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4204
|
+
}, "optional", "promptTokens" | "completionTokens" | "totalTokens" | "reasoningTokens" | "cachedInputTokens">;
|
|
4511
4205
|
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>;
|
|
4512
|
-
sources: import("convex/values").VArray<{
|
|
4206
|
+
sources: import("convex/values").VArray<({
|
|
4207
|
+
title?: string | undefined;
|
|
4208
|
+
type?: "source" | undefined;
|
|
4209
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4210
|
+
id: string;
|
|
4211
|
+
sourceType: "url";
|
|
4212
|
+
url: string;
|
|
4213
|
+
} | {
|
|
4214
|
+
filename?: string | undefined;
|
|
4215
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4216
|
+
id: string;
|
|
4217
|
+
title: string;
|
|
4218
|
+
type: "source";
|
|
4219
|
+
sourceType: "document";
|
|
4220
|
+
mediaType: string;
|
|
4221
|
+
})[] | undefined, import("convex/values").VUnion<{
|
|
4513
4222
|
title?: string | undefined;
|
|
4223
|
+
type?: "source" | undefined;
|
|
4514
4224
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4515
4225
|
id: string;
|
|
4516
4226
|
sourceType: "url";
|
|
4517
4227
|
url: string;
|
|
4518
|
-
}
|
|
4228
|
+
} | {
|
|
4229
|
+
filename?: string | undefined;
|
|
4230
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4231
|
+
id: string;
|
|
4232
|
+
title: string;
|
|
4233
|
+
type: "source";
|
|
4234
|
+
sourceType: "document";
|
|
4235
|
+
mediaType: string;
|
|
4236
|
+
}, [import("convex/values").VObject<{
|
|
4519
4237
|
title?: string | undefined;
|
|
4238
|
+
type?: "source" | undefined;
|
|
4520
4239
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4521
4240
|
id: string;
|
|
4522
4241
|
sourceType: "url";
|
|
4523
4242
|
url: string;
|
|
4524
4243
|
}, {
|
|
4244
|
+
type: import("convex/values").VLiteral<"source" | undefined, "optional">;
|
|
4525
4245
|
sourceType: import("convex/values").VLiteral<"url", "required">;
|
|
4526
4246
|
id: import("convex/values").VString<string, "required">;
|
|
4527
4247
|
url: import("convex/values").VString<string, "required">;
|
|
4528
4248
|
title: import("convex/values").VString<string | undefined, "optional">;
|
|
4529
4249
|
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>;
|
|
4530
|
-
}, "required", "id" | "title" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">, "
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
data: string;
|
|
4539
|
-
})[] | undefined, import("convex/values").VUnion<{
|
|
4540
|
-
signature?: string | undefined;
|
|
4541
|
-
type: "text";
|
|
4542
|
-
text: string;
|
|
4543
|
-
} | {
|
|
4544
|
-
type: "redacted";
|
|
4545
|
-
data: string;
|
|
4546
|
-
}, [import("convex/values").VObject<{
|
|
4547
|
-
signature?: string | undefined;
|
|
4548
|
-
type: "text";
|
|
4549
|
-
text: string;
|
|
4550
|
-
}, {
|
|
4551
|
-
type: import("convex/values").VLiteral<"text", "required">;
|
|
4552
|
-
text: import("convex/values").VString<string, "required">;
|
|
4553
|
-
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
4554
|
-
}, "required", "type" | "text" | "signature">, import("convex/values").VObject<{
|
|
4555
|
-
type: "redacted";
|
|
4556
|
-
data: string;
|
|
4250
|
+
}, "required", "id" | "title" | "type" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">, import("convex/values").VObject<{
|
|
4251
|
+
filename?: string | undefined;
|
|
4252
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4253
|
+
id: string;
|
|
4254
|
+
title: string;
|
|
4255
|
+
type: "source";
|
|
4256
|
+
sourceType: "document";
|
|
4257
|
+
mediaType: string;
|
|
4557
4258
|
}, {
|
|
4558
|
-
type: import("convex/values").VLiteral<"
|
|
4559
|
-
|
|
4560
|
-
|
|
4259
|
+
type: import("convex/values").VLiteral<"source", "required">;
|
|
4260
|
+
sourceType: import("convex/values").VLiteral<"document", "required">;
|
|
4261
|
+
id: import("convex/values").VString<string, "required">;
|
|
4262
|
+
mediaType: import("convex/values").VString<string, "required">;
|
|
4263
|
+
title: import("convex/values").VString<string, "required">;
|
|
4264
|
+
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
4265
|
+
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>;
|
|
4266
|
+
}, "required", "id" | "title" | "type" | "filename" | "providerMetadata" | "sourceType" | "mediaType" | `providerMetadata.${string}`>], "required", "id" | "title" | "type" | "providerOptions" | `providerOptions.${string}` | "filename" | "providerMetadata" | "sourceType" | "url" | "mediaType" | `providerMetadata.${string}`>, "optional">;
|
|
4561
4267
|
warnings: import("convex/values").VArray<({
|
|
4562
4268
|
details?: string | undefined;
|
|
4563
4269
|
type: "unsupported-setting";
|
|
@@ -4604,9 +4310,64 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4604
4310
|
message: import("convex/values").VString<string, "required">;
|
|
4605
4311
|
}, "required", "type" | "message">], "required", "type" | "message" | "tool" | "setting" | "details" | `tool.${string}`>, "optional">;
|
|
4606
4312
|
finishReason: import("convex/values").VUnion<"length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined, [import("convex/values").VLiteral<"stop", "required">, import("convex/values").VLiteral<"length", "required">, import("convex/values").VLiteral<"content-filter", "required">, import("convex/values").VLiteral<"tool-calls", "required">, import("convex/values").VLiteral<"error", "required">, import("convex/values").VLiteral<"other", "required">, import("convex/values").VLiteral<"unknown", "required">], "optional", never>;
|
|
4313
|
+
reasoning: import("convex/values").VString<string | undefined, "optional">;
|
|
4314
|
+
reasoningDetails: import("convex/values").VArray<({
|
|
4315
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4316
|
+
signature?: string | undefined;
|
|
4317
|
+
state?: "streaming" | "done" | undefined;
|
|
4318
|
+
type: "reasoning";
|
|
4319
|
+
text: string;
|
|
4320
|
+
} | {
|
|
4321
|
+
signature?: string | undefined;
|
|
4322
|
+
type: "text";
|
|
4323
|
+
text: string;
|
|
4324
|
+
} | {
|
|
4325
|
+
type: "redacted";
|
|
4326
|
+
data: string;
|
|
4327
|
+
})[] | undefined, import("convex/values").VUnion<{
|
|
4328
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4329
|
+
signature?: string | undefined;
|
|
4330
|
+
state?: "streaming" | "done" | undefined;
|
|
4331
|
+
type: "reasoning";
|
|
4332
|
+
text: string;
|
|
4333
|
+
} | {
|
|
4334
|
+
signature?: string | undefined;
|
|
4335
|
+
type: "text";
|
|
4336
|
+
text: string;
|
|
4337
|
+
} | {
|
|
4338
|
+
type: "redacted";
|
|
4339
|
+
data: string;
|
|
4340
|
+
}, [import("convex/values").VObject<{
|
|
4341
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4342
|
+
signature?: string | undefined;
|
|
4343
|
+
state?: "streaming" | "done" | undefined;
|
|
4344
|
+
type: "reasoning";
|
|
4345
|
+
text: string;
|
|
4346
|
+
}, {
|
|
4347
|
+
type: import("convex/values").VLiteral<"reasoning", "required">;
|
|
4348
|
+
text: import("convex/values").VString<string, "required">;
|
|
4349
|
+
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
4350
|
+
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>;
|
|
4351
|
+
state: import("convex/values").VUnion<"streaming" | "done" | undefined, [import("convex/values").VLiteral<"streaming", "required">, import("convex/values").VLiteral<"done", "required">], "optional", never>;
|
|
4352
|
+
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature" | "state">, import("convex/values").VObject<{
|
|
4353
|
+
signature?: string | undefined;
|
|
4354
|
+
type: "text";
|
|
4355
|
+
text: string;
|
|
4356
|
+
}, {
|
|
4357
|
+
type: import("convex/values").VLiteral<"text", "required">;
|
|
4358
|
+
text: import("convex/values").VString<string, "required">;
|
|
4359
|
+
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
4360
|
+
}, "required", "type" | "text" | "signature">, import("convex/values").VObject<{
|
|
4361
|
+
type: "redacted";
|
|
4362
|
+
data: string;
|
|
4363
|
+
}, {
|
|
4364
|
+
type: import("convex/values").VLiteral<"redacted", "required">;
|
|
4365
|
+
data: import("convex/values").VString<string, "required">;
|
|
4366
|
+
}, "required", "type" | "data">], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "data" | "signature" | "state">, "optional">;
|
|
4367
|
+
id: import("convex/values").VString<string | undefined, "optional">;
|
|
4607
4368
|
_id: import("convex/values").VString<string, "required">;
|
|
4608
4369
|
_creationTime: import("convex/values").VFloat64<number, "required">;
|
|
4609
|
-
}, "required", "_id" | "_creationTime" | "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | `providerOptions.${string}` | "reasoning" | "tool" | "usage" | "providerMetadata" | "sources" |
|
|
4370
|
+
}, "required", "_id" | "_creationTime" | "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | `providerOptions.${string}` | "reasoning" | "tool" | "usage" | "providerMetadata" | "sources" | `providerMetadata.${string}` | "warnings" | "finishReason" | "reasoningDetails" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | "usage.reasoningTokens" | "usage.cachedInputTokens">;
|
|
4610
4371
|
export type MessageDoc = Infer<typeof vMessageDoc>;
|
|
4611
4372
|
export default schema;
|
|
4612
4373
|
//# sourceMappingURL=schema.d.ts.map
|