@convex-dev/agent 0.2.2 → 0.2.3-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/definePlaygroundAPI.d.ts +85 -8
- package/dist/client/definePlaygroundAPI.d.ts.map +1 -1
- package/dist/client/index.d.ts +84 -6
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +3 -1
- package/dist/client/index.js.map +1 -1
- package/dist/client/messages.d.ts +18 -3
- package/dist/client/messages.d.ts.map +1 -1
- package/dist/client/messages.js +7 -4
- package/dist/client/messages.js.map +1 -1
- package/dist/client/search.d.ts +17 -2
- package/dist/client/search.d.ts.map +1 -1
- package/dist/client/streaming.d.ts +195 -21
- package/dist/client/streaming.d.ts.map +1 -1
- package/dist/component/_generated/api.d.ts +112 -15
- package/dist/component/messages.d.ts +187 -21
- package/dist/component/messages.d.ts.map +1 -1
- package/dist/component/schema.d.ts +517 -55
- package/dist/component/schema.d.ts.map +1 -1
- package/dist/mapping.d.ts.map +1 -1
- package/dist/mapping.js +3 -4
- package/dist/mapping.js.map +1 -1
- package/dist/react/deltas.d.ts.map +1 -1
- package/dist/react/deltas.js +25 -4
- package/dist/react/deltas.js.map +1 -1
- package/dist/validators.d.ts +1257 -177
- package/dist/validators.d.ts.map +1 -1
- package/dist/validators.js +2 -3
- package/dist/validators.js.map +1 -1
- package/package.json +1 -1
- package/src/client/index.ts +20 -1
- package/src/client/messages.ts +12 -4
- package/src/component/_generated/api.d.ts +112 -15
- package/src/mapping.ts +8 -7
- package/src/react/deltas.ts +33 -8
- package/src/react/toUIMessages.test.ts +48 -4
- package/src/validators.ts +15 -15
|
@@ -327,7 +327,6 @@ 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;
|
|
331
330
|
type: "reasoning";
|
|
332
331
|
text: string;
|
|
333
332
|
} | {
|
|
@@ -341,6 +340,23 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
341
340
|
toolCallId: string;
|
|
342
341
|
toolName: string;
|
|
343
342
|
args: any;
|
|
343
|
+
} | {
|
|
344
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
345
|
+
args?: any;
|
|
346
|
+
providerExecuted?: boolean | undefined;
|
|
347
|
+
isError?: boolean | undefined;
|
|
348
|
+
experimental_content?: ({
|
|
349
|
+
type: "text";
|
|
350
|
+
text: string;
|
|
351
|
+
} | {
|
|
352
|
+
mimeType?: string | undefined;
|
|
353
|
+
type: "image";
|
|
354
|
+
data: string;
|
|
355
|
+
})[] | undefined;
|
|
356
|
+
type: "tool-result";
|
|
357
|
+
toolCallId: string;
|
|
358
|
+
toolName: string;
|
|
359
|
+
result: any;
|
|
344
360
|
})[];
|
|
345
361
|
} | {
|
|
346
362
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -410,7 +426,6 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
410
426
|
reasoningDetails?: ({
|
|
411
427
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
412
428
|
signature?: string | undefined;
|
|
413
|
-
state?: "streaming" | "done" | undefined;
|
|
414
429
|
type: "reasoning";
|
|
415
430
|
text: string;
|
|
416
431
|
} | {
|
|
@@ -476,7 +491,6 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
476
491
|
} | {
|
|
477
492
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
478
493
|
signature?: string | undefined;
|
|
479
|
-
state?: "streaming" | "done" | undefined;
|
|
480
494
|
type: "reasoning";
|
|
481
495
|
text: string;
|
|
482
496
|
} | {
|
|
@@ -490,6 +504,23 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
490
504
|
toolCallId: string;
|
|
491
505
|
toolName: string;
|
|
492
506
|
args: any;
|
|
507
|
+
} | {
|
|
508
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
509
|
+
args?: any;
|
|
510
|
+
providerExecuted?: boolean | undefined;
|
|
511
|
+
isError?: boolean | undefined;
|
|
512
|
+
experimental_content?: ({
|
|
513
|
+
type: "text";
|
|
514
|
+
text: string;
|
|
515
|
+
} | {
|
|
516
|
+
mimeType?: string | undefined;
|
|
517
|
+
type: "image";
|
|
518
|
+
data: string;
|
|
519
|
+
})[] | undefined;
|
|
520
|
+
type: "tool-result";
|
|
521
|
+
toolCallId: string;
|
|
522
|
+
toolName: string;
|
|
523
|
+
result: any;
|
|
493
524
|
})[];
|
|
494
525
|
} | {
|
|
495
526
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -630,7 +661,6 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
630
661
|
} | {
|
|
631
662
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
632
663
|
signature?: string | undefined;
|
|
633
|
-
state?: "streaming" | "done" | undefined;
|
|
634
664
|
type: "reasoning";
|
|
635
665
|
text: string;
|
|
636
666
|
} | {
|
|
@@ -644,6 +674,23 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
644
674
|
toolCallId: string;
|
|
645
675
|
toolName: string;
|
|
646
676
|
args: any;
|
|
677
|
+
} | {
|
|
678
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
679
|
+
args?: any;
|
|
680
|
+
providerExecuted?: boolean | undefined;
|
|
681
|
+
isError?: boolean | undefined;
|
|
682
|
+
experimental_content?: ({
|
|
683
|
+
type: "text";
|
|
684
|
+
text: string;
|
|
685
|
+
} | {
|
|
686
|
+
mimeType?: string | undefined;
|
|
687
|
+
type: "image";
|
|
688
|
+
data: string;
|
|
689
|
+
})[] | undefined;
|
|
690
|
+
type: "tool-result";
|
|
691
|
+
toolCallId: string;
|
|
692
|
+
toolName: string;
|
|
693
|
+
result: any;
|
|
647
694
|
})[];
|
|
648
695
|
}, {
|
|
649
696
|
role: import("convex/values").VLiteral<"assistant", "required">;
|
|
@@ -660,7 +707,6 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
660
707
|
} | {
|
|
661
708
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
662
709
|
signature?: string | undefined;
|
|
663
|
-
state?: "streaming" | "done" | undefined;
|
|
664
710
|
type: "reasoning";
|
|
665
711
|
text: string;
|
|
666
712
|
} | {
|
|
@@ -674,6 +720,23 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
674
720
|
toolCallId: string;
|
|
675
721
|
toolName: string;
|
|
676
722
|
args: any;
|
|
723
|
+
} | {
|
|
724
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
725
|
+
args?: any;
|
|
726
|
+
providerExecuted?: boolean | undefined;
|
|
727
|
+
isError?: boolean | undefined;
|
|
728
|
+
experimental_content?: ({
|
|
729
|
+
type: "text";
|
|
730
|
+
text: string;
|
|
731
|
+
} | {
|
|
732
|
+
mimeType?: string | undefined;
|
|
733
|
+
type: "image";
|
|
734
|
+
data: string;
|
|
735
|
+
})[] | undefined;
|
|
736
|
+
type: "tool-result";
|
|
737
|
+
toolCallId: string;
|
|
738
|
+
toolName: string;
|
|
739
|
+
result: any;
|
|
677
740
|
})[], [import("convex/values").VString<string, "required">, import("convex/values").VArray<({
|
|
678
741
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
679
742
|
type: "text";
|
|
@@ -687,7 +750,6 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
687
750
|
} | {
|
|
688
751
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
689
752
|
signature?: string | undefined;
|
|
690
|
-
state?: "streaming" | "done" | undefined;
|
|
691
753
|
type: "reasoning";
|
|
692
754
|
text: string;
|
|
693
755
|
} | {
|
|
@@ -701,6 +763,23 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
701
763
|
toolCallId: string;
|
|
702
764
|
toolName: string;
|
|
703
765
|
args: any;
|
|
766
|
+
} | {
|
|
767
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
768
|
+
args?: any;
|
|
769
|
+
providerExecuted?: boolean | undefined;
|
|
770
|
+
isError?: boolean | undefined;
|
|
771
|
+
experimental_content?: ({
|
|
772
|
+
type: "text";
|
|
773
|
+
text: string;
|
|
774
|
+
} | {
|
|
775
|
+
mimeType?: string | undefined;
|
|
776
|
+
type: "image";
|
|
777
|
+
data: string;
|
|
778
|
+
})[] | undefined;
|
|
779
|
+
type: "tool-result";
|
|
780
|
+
toolCallId: string;
|
|
781
|
+
toolName: string;
|
|
782
|
+
result: any;
|
|
704
783
|
})[], import("convex/values").VUnion<{
|
|
705
784
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
706
785
|
type: "text";
|
|
@@ -714,7 +793,6 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
714
793
|
} | {
|
|
715
794
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
716
795
|
signature?: string | undefined;
|
|
717
|
-
state?: "streaming" | "done" | undefined;
|
|
718
796
|
type: "reasoning";
|
|
719
797
|
text: string;
|
|
720
798
|
} | {
|
|
@@ -728,6 +806,23 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
728
806
|
toolCallId: string;
|
|
729
807
|
toolName: string;
|
|
730
808
|
args: any;
|
|
809
|
+
} | {
|
|
810
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
811
|
+
args?: any;
|
|
812
|
+
providerExecuted?: boolean | undefined;
|
|
813
|
+
isError?: boolean | undefined;
|
|
814
|
+
experimental_content?: ({
|
|
815
|
+
type: "text";
|
|
816
|
+
text: string;
|
|
817
|
+
} | {
|
|
818
|
+
mimeType?: string | undefined;
|
|
819
|
+
type: "image";
|
|
820
|
+
data: string;
|
|
821
|
+
})[] | undefined;
|
|
822
|
+
type: "tool-result";
|
|
823
|
+
toolCallId: string;
|
|
824
|
+
toolName: string;
|
|
825
|
+
result: any;
|
|
731
826
|
}, [import("convex/values").VObject<{
|
|
732
827
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
733
828
|
type: "text";
|
|
@@ -751,7 +846,6 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
751
846
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, import("convex/values").VObject<{
|
|
752
847
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
753
848
|
signature?: string | undefined;
|
|
754
|
-
state?: "streaming" | "done" | undefined;
|
|
755
849
|
type: "reasoning";
|
|
756
850
|
text: string;
|
|
757
851
|
}, {
|
|
@@ -759,8 +853,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
759
853
|
text: import("convex/values").VString<string, "required">;
|
|
760
854
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
761
855
|
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>;
|
|
762
|
-
|
|
763
|
-
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature" | "state">, import("convex/values").VObject<{
|
|
856
|
+
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature">, import("convex/values").VObject<{
|
|
764
857
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
765
858
|
type: "redacted-reasoning";
|
|
766
859
|
data: string;
|
|
@@ -780,9 +873,64 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
780
873
|
toolCallId: import("convex/values").VString<string, "required">;
|
|
781
874
|
toolName: import("convex/values").VString<string, "required">;
|
|
782
875
|
args: import("convex/values").VAny<any, "required", string>;
|
|
876
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
877
|
+
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>;
|
|
878
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>, import("convex/values").VObject<{
|
|
879
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
880
|
+
args?: any;
|
|
881
|
+
providerExecuted?: boolean | undefined;
|
|
882
|
+
isError?: boolean | undefined;
|
|
883
|
+
experimental_content?: ({
|
|
884
|
+
type: "text";
|
|
885
|
+
text: string;
|
|
886
|
+
} | {
|
|
887
|
+
mimeType?: string | undefined;
|
|
888
|
+
type: "image";
|
|
889
|
+
data: string;
|
|
890
|
+
})[] | undefined;
|
|
891
|
+
type: "tool-result";
|
|
892
|
+
toolCallId: string;
|
|
893
|
+
toolName: string;
|
|
894
|
+
result: any;
|
|
895
|
+
}, {
|
|
896
|
+
type: import("convex/values").VLiteral<"tool-result", "required">;
|
|
897
|
+
toolCallId: import("convex/values").VString<string, "required">;
|
|
898
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
899
|
+
result: import("convex/values").VAny<any, "required", string>;
|
|
783
900
|
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>;
|
|
784
901
|
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
785
|
-
|
|
902
|
+
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
903
|
+
args: import("convex/values").VAny<any, "optional", string>;
|
|
904
|
+
experimental_content: import("convex/values").VArray<({
|
|
905
|
+
type: "text";
|
|
906
|
+
text: string;
|
|
907
|
+
} | {
|
|
908
|
+
mimeType?: string | undefined;
|
|
909
|
+
type: "image";
|
|
910
|
+
data: string;
|
|
911
|
+
})[] | undefined, import("convex/values").VUnion<{
|
|
912
|
+
type: "text";
|
|
913
|
+
text: string;
|
|
914
|
+
} | {
|
|
915
|
+
mimeType?: string | undefined;
|
|
916
|
+
type: "image";
|
|
917
|
+
data: string;
|
|
918
|
+
}, [import("convex/values").VObject<{
|
|
919
|
+
type: "text";
|
|
920
|
+
text: string;
|
|
921
|
+
}, {
|
|
922
|
+
type: import("convex/values").VLiteral<"text", "required">;
|
|
923
|
+
text: import("convex/values").VString<string, "required">;
|
|
924
|
+
}, "required", "type" | "text">, import("convex/values").VObject<{
|
|
925
|
+
mimeType?: string | undefined;
|
|
926
|
+
type: "image";
|
|
927
|
+
data: string;
|
|
928
|
+
}, {
|
|
929
|
+
type: import("convex/values").VLiteral<"image", "required">;
|
|
930
|
+
data: import("convex/values").VString<string, "required">;
|
|
931
|
+
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
932
|
+
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
933
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>, "required">], "required", never>;
|
|
786
934
|
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>;
|
|
787
935
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
788
936
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1017,7 +1165,6 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
1017
1165
|
reasoningDetails: import("convex/values").VArray<({
|
|
1018
1166
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1019
1167
|
signature?: string | undefined;
|
|
1020
|
-
state?: "streaming" | "done" | undefined;
|
|
1021
1168
|
type: "reasoning";
|
|
1022
1169
|
text: string;
|
|
1023
1170
|
} | {
|
|
@@ -1030,7 +1177,6 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
1030
1177
|
})[] | undefined, import("convex/values").VUnion<{
|
|
1031
1178
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1032
1179
|
signature?: string | undefined;
|
|
1033
|
-
state?: "streaming" | "done" | undefined;
|
|
1034
1180
|
type: "reasoning";
|
|
1035
1181
|
text: string;
|
|
1036
1182
|
} | {
|
|
@@ -1043,7 +1189,6 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
1043
1189
|
}, [import("convex/values").VObject<{
|
|
1044
1190
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1045
1191
|
signature?: string | undefined;
|
|
1046
|
-
state?: "streaming" | "done" | undefined;
|
|
1047
1192
|
type: "reasoning";
|
|
1048
1193
|
text: string;
|
|
1049
1194
|
}, {
|
|
@@ -1051,8 +1196,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
1051
1196
|
text: import("convex/values").VString<string, "required">;
|
|
1052
1197
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
1053
1198
|
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
|
-
|
|
1055
|
-
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature" | "state">, import("convex/values").VObject<{
|
|
1199
|
+
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature">, import("convex/values").VObject<{
|
|
1056
1200
|
signature?: string | undefined;
|
|
1057
1201
|
type: "text";
|
|
1058
1202
|
text: string;
|
|
@@ -1066,7 +1210,7 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
1066
1210
|
}, {
|
|
1067
1211
|
type: import("convex/values").VLiteral<"redacted", "required">;
|
|
1068
1212
|
data: import("convex/values").VString<string, "required">;
|
|
1069
|
-
}, "required", "type" | "data">], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "data" | "signature"
|
|
1213
|
+
}, "required", "type" | "data">], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "data" | "signature">, "optional">;
|
|
1070
1214
|
id: import("convex/values").VString<string | undefined, "optional">;
|
|
1071
1215
|
parentMessageId: import("convex/values").VId<import("convex/values").GenericId<"messages"> | undefined, "optional">;
|
|
1072
1216
|
stepId: import("convex/values").VString<string | undefined, "optional">;
|
|
@@ -1567,7 +1711,6 @@ export declare const vv: {
|
|
|
1567
1711
|
} | {
|
|
1568
1712
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1569
1713
|
signature?: string | undefined;
|
|
1570
|
-
state?: "streaming" | "done" | undefined;
|
|
1571
1714
|
type: "reasoning";
|
|
1572
1715
|
text: string;
|
|
1573
1716
|
} | {
|
|
@@ -1581,6 +1724,23 @@ export declare const vv: {
|
|
|
1581
1724
|
toolCallId: string;
|
|
1582
1725
|
toolName: string;
|
|
1583
1726
|
args: any;
|
|
1727
|
+
} | {
|
|
1728
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1729
|
+
args?: any;
|
|
1730
|
+
providerExecuted?: boolean | undefined;
|
|
1731
|
+
isError?: boolean | undefined;
|
|
1732
|
+
experimental_content?: ({
|
|
1733
|
+
type: "text";
|
|
1734
|
+
text: string;
|
|
1735
|
+
} | {
|
|
1736
|
+
mimeType?: string | undefined;
|
|
1737
|
+
type: "image";
|
|
1738
|
+
data: string;
|
|
1739
|
+
})[] | undefined;
|
|
1740
|
+
type: "tool-result";
|
|
1741
|
+
toolCallId: string;
|
|
1742
|
+
toolName: string;
|
|
1743
|
+
result: any;
|
|
1584
1744
|
})[];
|
|
1585
1745
|
} | {
|
|
1586
1746
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1650,7 +1810,6 @@ export declare const vv: {
|
|
|
1650
1810
|
reasoningDetails?: ({
|
|
1651
1811
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1652
1812
|
signature?: string | undefined;
|
|
1653
|
-
state?: "streaming" | "done" | undefined;
|
|
1654
1813
|
type: "reasoning";
|
|
1655
1814
|
text: string;
|
|
1656
1815
|
} | {
|
|
@@ -2139,7 +2298,6 @@ export declare const vv: {
|
|
|
2139
2298
|
} | {
|
|
2140
2299
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2141
2300
|
signature?: string | undefined;
|
|
2142
|
-
state?: "streaming" | "done" | undefined;
|
|
2143
2301
|
type: "reasoning";
|
|
2144
2302
|
text: string;
|
|
2145
2303
|
} | {
|
|
@@ -2153,6 +2311,23 @@ export declare const vv: {
|
|
|
2153
2311
|
toolCallId: string;
|
|
2154
2312
|
toolName: string;
|
|
2155
2313
|
args: any;
|
|
2314
|
+
} | {
|
|
2315
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2316
|
+
args?: any;
|
|
2317
|
+
providerExecuted?: boolean | undefined;
|
|
2318
|
+
isError?: boolean | undefined;
|
|
2319
|
+
experimental_content?: ({
|
|
2320
|
+
type: "text";
|
|
2321
|
+
text: string;
|
|
2322
|
+
} | {
|
|
2323
|
+
mimeType?: string | undefined;
|
|
2324
|
+
type: "image";
|
|
2325
|
+
data: string;
|
|
2326
|
+
})[] | undefined;
|
|
2327
|
+
type: "tool-result";
|
|
2328
|
+
toolCallId: string;
|
|
2329
|
+
toolName: string;
|
|
2330
|
+
result: any;
|
|
2156
2331
|
})[];
|
|
2157
2332
|
} | {
|
|
2158
2333
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2222,7 +2397,6 @@ export declare const vv: {
|
|
|
2222
2397
|
reasoningDetails?: ({
|
|
2223
2398
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2224
2399
|
signature?: string | undefined;
|
|
2225
|
-
state?: "streaming" | "done" | undefined;
|
|
2226
2400
|
type: "reasoning";
|
|
2227
2401
|
text: string;
|
|
2228
2402
|
} | {
|
|
@@ -2671,7 +2845,6 @@ export declare const vv: {
|
|
|
2671
2845
|
} | {
|
|
2672
2846
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2673
2847
|
signature?: string | undefined;
|
|
2674
|
-
state?: "streaming" | "done" | undefined;
|
|
2675
2848
|
type: "reasoning";
|
|
2676
2849
|
text: string;
|
|
2677
2850
|
} | {
|
|
@@ -2685,6 +2858,23 @@ export declare const vv: {
|
|
|
2685
2858
|
toolCallId: string;
|
|
2686
2859
|
toolName: string;
|
|
2687
2860
|
args: any;
|
|
2861
|
+
} | {
|
|
2862
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2863
|
+
args?: any;
|
|
2864
|
+
providerExecuted?: boolean | undefined;
|
|
2865
|
+
isError?: boolean | undefined;
|
|
2866
|
+
experimental_content?: ({
|
|
2867
|
+
type: "text";
|
|
2868
|
+
text: string;
|
|
2869
|
+
} | {
|
|
2870
|
+
mimeType?: string | undefined;
|
|
2871
|
+
type: "image";
|
|
2872
|
+
data: string;
|
|
2873
|
+
})[] | undefined;
|
|
2874
|
+
type: "tool-result";
|
|
2875
|
+
toolCallId: string;
|
|
2876
|
+
toolName: string;
|
|
2877
|
+
result: any;
|
|
2688
2878
|
})[];
|
|
2689
2879
|
} | {
|
|
2690
2880
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2754,7 +2944,6 @@ export declare const vv: {
|
|
|
2754
2944
|
reasoningDetails?: ({
|
|
2755
2945
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2756
2946
|
signature?: string | undefined;
|
|
2757
|
-
state?: "streaming" | "done" | undefined;
|
|
2758
2947
|
type: "reasoning";
|
|
2759
2948
|
text: string;
|
|
2760
2949
|
} | {
|
|
@@ -2820,7 +3009,6 @@ export declare const vv: {
|
|
|
2820
3009
|
} | {
|
|
2821
3010
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2822
3011
|
signature?: string | undefined;
|
|
2823
|
-
state?: "streaming" | "done" | undefined;
|
|
2824
3012
|
type: "reasoning";
|
|
2825
3013
|
text: string;
|
|
2826
3014
|
} | {
|
|
@@ -2834,6 +3022,23 @@ export declare const vv: {
|
|
|
2834
3022
|
toolCallId: string;
|
|
2835
3023
|
toolName: string;
|
|
2836
3024
|
args: any;
|
|
3025
|
+
} | {
|
|
3026
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3027
|
+
args?: any;
|
|
3028
|
+
providerExecuted?: boolean | undefined;
|
|
3029
|
+
isError?: boolean | undefined;
|
|
3030
|
+
experimental_content?: ({
|
|
3031
|
+
type: "text";
|
|
3032
|
+
text: string;
|
|
3033
|
+
} | {
|
|
3034
|
+
mimeType?: string | undefined;
|
|
3035
|
+
type: "image";
|
|
3036
|
+
data: string;
|
|
3037
|
+
})[] | undefined;
|
|
3038
|
+
type: "tool-result";
|
|
3039
|
+
toolCallId: string;
|
|
3040
|
+
toolName: string;
|
|
3041
|
+
result: any;
|
|
2837
3042
|
})[];
|
|
2838
3043
|
} | {
|
|
2839
3044
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2974,7 +3179,6 @@ export declare const vv: {
|
|
|
2974
3179
|
} | {
|
|
2975
3180
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2976
3181
|
signature?: string | undefined;
|
|
2977
|
-
state?: "streaming" | "done" | undefined;
|
|
2978
3182
|
type: "reasoning";
|
|
2979
3183
|
text: string;
|
|
2980
3184
|
} | {
|
|
@@ -2988,6 +3192,23 @@ export declare const vv: {
|
|
|
2988
3192
|
toolCallId: string;
|
|
2989
3193
|
toolName: string;
|
|
2990
3194
|
args: any;
|
|
3195
|
+
} | {
|
|
3196
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3197
|
+
args?: any;
|
|
3198
|
+
providerExecuted?: boolean | undefined;
|
|
3199
|
+
isError?: boolean | undefined;
|
|
3200
|
+
experimental_content?: ({
|
|
3201
|
+
type: "text";
|
|
3202
|
+
text: string;
|
|
3203
|
+
} | {
|
|
3204
|
+
mimeType?: string | undefined;
|
|
3205
|
+
type: "image";
|
|
3206
|
+
data: string;
|
|
3207
|
+
})[] | undefined;
|
|
3208
|
+
type: "tool-result";
|
|
3209
|
+
toolCallId: string;
|
|
3210
|
+
toolName: string;
|
|
3211
|
+
result: any;
|
|
2991
3212
|
})[];
|
|
2992
3213
|
}, {
|
|
2993
3214
|
role: import("convex/values").VLiteral<"assistant", "required">;
|
|
@@ -3004,7 +3225,6 @@ export declare const vv: {
|
|
|
3004
3225
|
} | {
|
|
3005
3226
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3006
3227
|
signature?: string | undefined;
|
|
3007
|
-
state?: "streaming" | "done" | undefined;
|
|
3008
3228
|
type: "reasoning";
|
|
3009
3229
|
text: string;
|
|
3010
3230
|
} | {
|
|
@@ -3018,6 +3238,23 @@ export declare const vv: {
|
|
|
3018
3238
|
toolCallId: string;
|
|
3019
3239
|
toolName: string;
|
|
3020
3240
|
args: any;
|
|
3241
|
+
} | {
|
|
3242
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3243
|
+
args?: any;
|
|
3244
|
+
providerExecuted?: boolean | undefined;
|
|
3245
|
+
isError?: boolean | undefined;
|
|
3246
|
+
experimental_content?: ({
|
|
3247
|
+
type: "text";
|
|
3248
|
+
text: string;
|
|
3249
|
+
} | {
|
|
3250
|
+
mimeType?: string | undefined;
|
|
3251
|
+
type: "image";
|
|
3252
|
+
data: string;
|
|
3253
|
+
})[] | undefined;
|
|
3254
|
+
type: "tool-result";
|
|
3255
|
+
toolCallId: string;
|
|
3256
|
+
toolName: string;
|
|
3257
|
+
result: any;
|
|
3021
3258
|
})[], [import("convex/values").VString<string, "required">, import("convex/values").VArray<({
|
|
3022
3259
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3023
3260
|
type: "text";
|
|
@@ -3031,7 +3268,6 @@ export declare const vv: {
|
|
|
3031
3268
|
} | {
|
|
3032
3269
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3033
3270
|
signature?: string | undefined;
|
|
3034
|
-
state?: "streaming" | "done" | undefined;
|
|
3035
3271
|
type: "reasoning";
|
|
3036
3272
|
text: string;
|
|
3037
3273
|
} | {
|
|
@@ -3045,6 +3281,23 @@ export declare const vv: {
|
|
|
3045
3281
|
toolCallId: string;
|
|
3046
3282
|
toolName: string;
|
|
3047
3283
|
args: any;
|
|
3284
|
+
} | {
|
|
3285
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3286
|
+
args?: any;
|
|
3287
|
+
providerExecuted?: boolean | undefined;
|
|
3288
|
+
isError?: boolean | undefined;
|
|
3289
|
+
experimental_content?: ({
|
|
3290
|
+
type: "text";
|
|
3291
|
+
text: string;
|
|
3292
|
+
} | {
|
|
3293
|
+
mimeType?: string | undefined;
|
|
3294
|
+
type: "image";
|
|
3295
|
+
data: string;
|
|
3296
|
+
})[] | undefined;
|
|
3297
|
+
type: "tool-result";
|
|
3298
|
+
toolCallId: string;
|
|
3299
|
+
toolName: string;
|
|
3300
|
+
result: any;
|
|
3048
3301
|
})[], import("convex/values").VUnion<{
|
|
3049
3302
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3050
3303
|
type: "text";
|
|
@@ -3058,7 +3311,6 @@ export declare const vv: {
|
|
|
3058
3311
|
} | {
|
|
3059
3312
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3060
3313
|
signature?: string | undefined;
|
|
3061
|
-
state?: "streaming" | "done" | undefined;
|
|
3062
3314
|
type: "reasoning";
|
|
3063
3315
|
text: string;
|
|
3064
3316
|
} | {
|
|
@@ -3072,6 +3324,23 @@ export declare const vv: {
|
|
|
3072
3324
|
toolCallId: string;
|
|
3073
3325
|
toolName: string;
|
|
3074
3326
|
args: any;
|
|
3327
|
+
} | {
|
|
3328
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3329
|
+
args?: any;
|
|
3330
|
+
providerExecuted?: boolean | undefined;
|
|
3331
|
+
isError?: boolean | undefined;
|
|
3332
|
+
experimental_content?: ({
|
|
3333
|
+
type: "text";
|
|
3334
|
+
text: string;
|
|
3335
|
+
} | {
|
|
3336
|
+
mimeType?: string | undefined;
|
|
3337
|
+
type: "image";
|
|
3338
|
+
data: string;
|
|
3339
|
+
})[] | undefined;
|
|
3340
|
+
type: "tool-result";
|
|
3341
|
+
toolCallId: string;
|
|
3342
|
+
toolName: string;
|
|
3343
|
+
result: any;
|
|
3075
3344
|
}, [import("convex/values").VObject<{
|
|
3076
3345
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3077
3346
|
type: "text";
|
|
@@ -3095,7 +3364,6 @@ export declare const vv: {
|
|
|
3095
3364
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, import("convex/values").VObject<{
|
|
3096
3365
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3097
3366
|
signature?: string | undefined;
|
|
3098
|
-
state?: "streaming" | "done" | undefined;
|
|
3099
3367
|
type: "reasoning";
|
|
3100
3368
|
text: string;
|
|
3101
3369
|
}, {
|
|
@@ -3103,8 +3371,7 @@ export declare const vv: {
|
|
|
3103
3371
|
text: import("convex/values").VString<string, "required">;
|
|
3104
3372
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
3105
3373
|
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>;
|
|
3106
|
-
|
|
3107
|
-
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature" | "state">, import("convex/values").VObject<{
|
|
3374
|
+
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature">, import("convex/values").VObject<{
|
|
3108
3375
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3109
3376
|
type: "redacted-reasoning";
|
|
3110
3377
|
data: string;
|
|
@@ -3124,9 +3391,64 @@ export declare const vv: {
|
|
|
3124
3391
|
toolCallId: import("convex/values").VString<string, "required">;
|
|
3125
3392
|
toolName: import("convex/values").VString<string, "required">;
|
|
3126
3393
|
args: import("convex/values").VAny<any, "required", string>;
|
|
3394
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
3395
|
+
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>;
|
|
3396
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>, import("convex/values").VObject<{
|
|
3397
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3398
|
+
args?: any;
|
|
3399
|
+
providerExecuted?: boolean | undefined;
|
|
3400
|
+
isError?: boolean | undefined;
|
|
3401
|
+
experimental_content?: ({
|
|
3402
|
+
type: "text";
|
|
3403
|
+
text: string;
|
|
3404
|
+
} | {
|
|
3405
|
+
mimeType?: string | undefined;
|
|
3406
|
+
type: "image";
|
|
3407
|
+
data: string;
|
|
3408
|
+
})[] | undefined;
|
|
3409
|
+
type: "tool-result";
|
|
3410
|
+
toolCallId: string;
|
|
3411
|
+
toolName: string;
|
|
3412
|
+
result: any;
|
|
3413
|
+
}, {
|
|
3414
|
+
type: import("convex/values").VLiteral<"tool-result", "required">;
|
|
3415
|
+
toolCallId: import("convex/values").VString<string, "required">;
|
|
3416
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
3417
|
+
result: import("convex/values").VAny<any, "required", string>;
|
|
3127
3418
|
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>;
|
|
3128
3419
|
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
3129
|
-
|
|
3420
|
+
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
3421
|
+
args: import("convex/values").VAny<any, "optional", string>;
|
|
3422
|
+
experimental_content: import("convex/values").VArray<({
|
|
3423
|
+
type: "text";
|
|
3424
|
+
text: string;
|
|
3425
|
+
} | {
|
|
3426
|
+
mimeType?: string | undefined;
|
|
3427
|
+
type: "image";
|
|
3428
|
+
data: string;
|
|
3429
|
+
})[] | undefined, import("convex/values").VUnion<{
|
|
3430
|
+
type: "text";
|
|
3431
|
+
text: string;
|
|
3432
|
+
} | {
|
|
3433
|
+
mimeType?: string | undefined;
|
|
3434
|
+
type: "image";
|
|
3435
|
+
data: string;
|
|
3436
|
+
}, [import("convex/values").VObject<{
|
|
3437
|
+
type: "text";
|
|
3438
|
+
text: string;
|
|
3439
|
+
}, {
|
|
3440
|
+
type: import("convex/values").VLiteral<"text", "required">;
|
|
3441
|
+
text: import("convex/values").VString<string, "required">;
|
|
3442
|
+
}, "required", "type" | "text">, import("convex/values").VObject<{
|
|
3443
|
+
mimeType?: string | undefined;
|
|
3444
|
+
type: "image";
|
|
3445
|
+
data: string;
|
|
3446
|
+
}, {
|
|
3447
|
+
type: import("convex/values").VLiteral<"image", "required">;
|
|
3448
|
+
data: import("convex/values").VString<string, "required">;
|
|
3449
|
+
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
3450
|
+
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
3451
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>, "required">], "required", never>;
|
|
3130
3452
|
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>;
|
|
3131
3453
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
3132
3454
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -3361,7 +3683,6 @@ export declare const vv: {
|
|
|
3361
3683
|
reasoningDetails: import("convex/values").VArray<({
|
|
3362
3684
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3363
3685
|
signature?: string | undefined;
|
|
3364
|
-
state?: "streaming" | "done" | undefined;
|
|
3365
3686
|
type: "reasoning";
|
|
3366
3687
|
text: string;
|
|
3367
3688
|
} | {
|
|
@@ -3374,7 +3695,6 @@ export declare const vv: {
|
|
|
3374
3695
|
})[] | undefined, import("convex/values").VUnion<{
|
|
3375
3696
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3376
3697
|
signature?: string | undefined;
|
|
3377
|
-
state?: "streaming" | "done" | undefined;
|
|
3378
3698
|
type: "reasoning";
|
|
3379
3699
|
text: string;
|
|
3380
3700
|
} | {
|
|
@@ -3387,7 +3707,6 @@ export declare const vv: {
|
|
|
3387
3707
|
}, [import("convex/values").VObject<{
|
|
3388
3708
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3389
3709
|
signature?: string | undefined;
|
|
3390
|
-
state?: "streaming" | "done" | undefined;
|
|
3391
3710
|
type: "reasoning";
|
|
3392
3711
|
text: string;
|
|
3393
3712
|
}, {
|
|
@@ -3395,8 +3714,7 @@ export declare const vv: {
|
|
|
3395
3714
|
text: import("convex/values").VString<string, "required">;
|
|
3396
3715
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
3397
3716
|
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
|
-
|
|
3399
|
-
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature" | "state">, import("convex/values").VObject<{
|
|
3717
|
+
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature">, import("convex/values").VObject<{
|
|
3400
3718
|
signature?: string | undefined;
|
|
3401
3719
|
type: "text";
|
|
3402
3720
|
text: string;
|
|
@@ -3410,7 +3728,7 @@ export declare const vv: {
|
|
|
3410
3728
|
}, {
|
|
3411
3729
|
type: import("convex/values").VLiteral<"redacted", "required">;
|
|
3412
3730
|
data: import("convex/values").VString<string, "required">;
|
|
3413
|
-
}, "required", "type" | "data">], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "data" | "signature"
|
|
3731
|
+
}, "required", "type" | "data">], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "data" | "signature">, "optional">;
|
|
3414
3732
|
id: import("convex/values").VString<string | undefined, "optional">;
|
|
3415
3733
|
parentMessageId: import("convex/values").VId<import("convex/values").GenericId<"messages"> | undefined, "optional">;
|
|
3416
3734
|
stepId: import("convex/values").VString<string | undefined, "optional">;
|
|
@@ -3624,7 +3942,6 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
3624
3942
|
} | {
|
|
3625
3943
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3626
3944
|
signature?: string | undefined;
|
|
3627
|
-
state?: "streaming" | "done" | undefined;
|
|
3628
3945
|
type: "reasoning";
|
|
3629
3946
|
text: string;
|
|
3630
3947
|
} | {
|
|
@@ -3638,6 +3955,23 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
3638
3955
|
toolCallId: string;
|
|
3639
3956
|
toolName: string;
|
|
3640
3957
|
args: any;
|
|
3958
|
+
} | {
|
|
3959
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3960
|
+
args?: any;
|
|
3961
|
+
providerExecuted?: boolean | undefined;
|
|
3962
|
+
isError?: boolean | undefined;
|
|
3963
|
+
experimental_content?: ({
|
|
3964
|
+
type: "text";
|
|
3965
|
+
text: string;
|
|
3966
|
+
} | {
|
|
3967
|
+
mimeType?: string | undefined;
|
|
3968
|
+
type: "image";
|
|
3969
|
+
data: string;
|
|
3970
|
+
})[] | undefined;
|
|
3971
|
+
type: "tool-result";
|
|
3972
|
+
toolCallId: string;
|
|
3973
|
+
toolName: string;
|
|
3974
|
+
result: any;
|
|
3641
3975
|
})[];
|
|
3642
3976
|
} | {
|
|
3643
3977
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -3707,7 +4041,6 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
3707
4041
|
reasoningDetails?: ({
|
|
3708
4042
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3709
4043
|
signature?: string | undefined;
|
|
3710
|
-
state?: "streaming" | "done" | undefined;
|
|
3711
4044
|
type: "reasoning";
|
|
3712
4045
|
text: string;
|
|
3713
4046
|
} | {
|
|
@@ -3773,7 +4106,6 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
3773
4106
|
} | {
|
|
3774
4107
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3775
4108
|
signature?: string | undefined;
|
|
3776
|
-
state?: "streaming" | "done" | undefined;
|
|
3777
4109
|
type: "reasoning";
|
|
3778
4110
|
text: string;
|
|
3779
4111
|
} | {
|
|
@@ -3787,6 +4119,23 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
3787
4119
|
toolCallId: string;
|
|
3788
4120
|
toolName: string;
|
|
3789
4121
|
args: any;
|
|
4122
|
+
} | {
|
|
4123
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4124
|
+
args?: any;
|
|
4125
|
+
providerExecuted?: boolean | undefined;
|
|
4126
|
+
isError?: boolean | undefined;
|
|
4127
|
+
experimental_content?: ({
|
|
4128
|
+
type: "text";
|
|
4129
|
+
text: string;
|
|
4130
|
+
} | {
|
|
4131
|
+
mimeType?: string | undefined;
|
|
4132
|
+
type: "image";
|
|
4133
|
+
data: string;
|
|
4134
|
+
})[] | undefined;
|
|
4135
|
+
type: "tool-result";
|
|
4136
|
+
toolCallId: string;
|
|
4137
|
+
toolName: string;
|
|
4138
|
+
result: any;
|
|
3790
4139
|
})[];
|
|
3791
4140
|
} | {
|
|
3792
4141
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -3927,7 +4276,6 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
3927
4276
|
} | {
|
|
3928
4277
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3929
4278
|
signature?: string | undefined;
|
|
3930
|
-
state?: "streaming" | "done" | undefined;
|
|
3931
4279
|
type: "reasoning";
|
|
3932
4280
|
text: string;
|
|
3933
4281
|
} | {
|
|
@@ -3941,6 +4289,23 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
3941
4289
|
toolCallId: string;
|
|
3942
4290
|
toolName: string;
|
|
3943
4291
|
args: any;
|
|
4292
|
+
} | {
|
|
4293
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4294
|
+
args?: any;
|
|
4295
|
+
providerExecuted?: boolean | undefined;
|
|
4296
|
+
isError?: boolean | undefined;
|
|
4297
|
+
experimental_content?: ({
|
|
4298
|
+
type: "text";
|
|
4299
|
+
text: string;
|
|
4300
|
+
} | {
|
|
4301
|
+
mimeType?: string | undefined;
|
|
4302
|
+
type: "image";
|
|
4303
|
+
data: string;
|
|
4304
|
+
})[] | undefined;
|
|
4305
|
+
type: "tool-result";
|
|
4306
|
+
toolCallId: string;
|
|
4307
|
+
toolName: string;
|
|
4308
|
+
result: any;
|
|
3944
4309
|
})[];
|
|
3945
4310
|
}, {
|
|
3946
4311
|
role: import("convex/values").VLiteral<"assistant", "required">;
|
|
@@ -3957,7 +4322,6 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
3957
4322
|
} | {
|
|
3958
4323
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3959
4324
|
signature?: string | undefined;
|
|
3960
|
-
state?: "streaming" | "done" | undefined;
|
|
3961
4325
|
type: "reasoning";
|
|
3962
4326
|
text: string;
|
|
3963
4327
|
} | {
|
|
@@ -3971,6 +4335,23 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
3971
4335
|
toolCallId: string;
|
|
3972
4336
|
toolName: string;
|
|
3973
4337
|
args: any;
|
|
4338
|
+
} | {
|
|
4339
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4340
|
+
args?: any;
|
|
4341
|
+
providerExecuted?: boolean | undefined;
|
|
4342
|
+
isError?: boolean | undefined;
|
|
4343
|
+
experimental_content?: ({
|
|
4344
|
+
type: "text";
|
|
4345
|
+
text: string;
|
|
4346
|
+
} | {
|
|
4347
|
+
mimeType?: string | undefined;
|
|
4348
|
+
type: "image";
|
|
4349
|
+
data: string;
|
|
4350
|
+
})[] | undefined;
|
|
4351
|
+
type: "tool-result";
|
|
4352
|
+
toolCallId: string;
|
|
4353
|
+
toolName: string;
|
|
4354
|
+
result: any;
|
|
3974
4355
|
})[], [import("convex/values").VString<string, "required">, import("convex/values").VArray<({
|
|
3975
4356
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3976
4357
|
type: "text";
|
|
@@ -3984,7 +4365,6 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
3984
4365
|
} | {
|
|
3985
4366
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3986
4367
|
signature?: string | undefined;
|
|
3987
|
-
state?: "streaming" | "done" | undefined;
|
|
3988
4368
|
type: "reasoning";
|
|
3989
4369
|
text: string;
|
|
3990
4370
|
} | {
|
|
@@ -3998,6 +4378,23 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
3998
4378
|
toolCallId: string;
|
|
3999
4379
|
toolName: string;
|
|
4000
4380
|
args: any;
|
|
4381
|
+
} | {
|
|
4382
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4383
|
+
args?: any;
|
|
4384
|
+
providerExecuted?: boolean | undefined;
|
|
4385
|
+
isError?: boolean | undefined;
|
|
4386
|
+
experimental_content?: ({
|
|
4387
|
+
type: "text";
|
|
4388
|
+
text: string;
|
|
4389
|
+
} | {
|
|
4390
|
+
mimeType?: string | undefined;
|
|
4391
|
+
type: "image";
|
|
4392
|
+
data: string;
|
|
4393
|
+
})[] | undefined;
|
|
4394
|
+
type: "tool-result";
|
|
4395
|
+
toolCallId: string;
|
|
4396
|
+
toolName: string;
|
|
4397
|
+
result: any;
|
|
4001
4398
|
})[], import("convex/values").VUnion<{
|
|
4002
4399
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4003
4400
|
type: "text";
|
|
@@ -4011,7 +4408,6 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4011
4408
|
} | {
|
|
4012
4409
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4013
4410
|
signature?: string | undefined;
|
|
4014
|
-
state?: "streaming" | "done" | undefined;
|
|
4015
4411
|
type: "reasoning";
|
|
4016
4412
|
text: string;
|
|
4017
4413
|
} | {
|
|
@@ -4025,6 +4421,23 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4025
4421
|
toolCallId: string;
|
|
4026
4422
|
toolName: string;
|
|
4027
4423
|
args: any;
|
|
4424
|
+
} | {
|
|
4425
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4426
|
+
args?: any;
|
|
4427
|
+
providerExecuted?: boolean | undefined;
|
|
4428
|
+
isError?: boolean | undefined;
|
|
4429
|
+
experimental_content?: ({
|
|
4430
|
+
type: "text";
|
|
4431
|
+
text: string;
|
|
4432
|
+
} | {
|
|
4433
|
+
mimeType?: string | undefined;
|
|
4434
|
+
type: "image";
|
|
4435
|
+
data: string;
|
|
4436
|
+
})[] | undefined;
|
|
4437
|
+
type: "tool-result";
|
|
4438
|
+
toolCallId: string;
|
|
4439
|
+
toolName: string;
|
|
4440
|
+
result: any;
|
|
4028
4441
|
}, [import("convex/values").VObject<{
|
|
4029
4442
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4030
4443
|
type: "text";
|
|
@@ -4048,7 +4461,6 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4048
4461
|
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, import("convex/values").VObject<{
|
|
4049
4462
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4050
4463
|
signature?: string | undefined;
|
|
4051
|
-
state?: "streaming" | "done" | undefined;
|
|
4052
4464
|
type: "reasoning";
|
|
4053
4465
|
text: string;
|
|
4054
4466
|
}, {
|
|
@@ -4056,8 +4468,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4056
4468
|
text: import("convex/values").VString<string, "required">;
|
|
4057
4469
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
4058
4470
|
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>;
|
|
4059
|
-
|
|
4060
|
-
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature" | "state">, import("convex/values").VObject<{
|
|
4471
|
+
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature">, import("convex/values").VObject<{
|
|
4061
4472
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4062
4473
|
type: "redacted-reasoning";
|
|
4063
4474
|
data: string;
|
|
@@ -4077,9 +4488,64 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4077
4488
|
toolCallId: import("convex/values").VString<string, "required">;
|
|
4078
4489
|
toolName: import("convex/values").VString<string, "required">;
|
|
4079
4490
|
args: import("convex/values").VAny<any, "required", string>;
|
|
4491
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
4492
|
+
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>;
|
|
4493
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}`>, import("convex/values").VObject<{
|
|
4494
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4495
|
+
args?: any;
|
|
4496
|
+
providerExecuted?: boolean | undefined;
|
|
4497
|
+
isError?: boolean | undefined;
|
|
4498
|
+
experimental_content?: ({
|
|
4499
|
+
type: "text";
|
|
4500
|
+
text: string;
|
|
4501
|
+
} | {
|
|
4502
|
+
mimeType?: string | undefined;
|
|
4503
|
+
type: "image";
|
|
4504
|
+
data: string;
|
|
4505
|
+
})[] | undefined;
|
|
4506
|
+
type: "tool-result";
|
|
4507
|
+
toolCallId: string;
|
|
4508
|
+
toolName: string;
|
|
4509
|
+
result: any;
|
|
4510
|
+
}, {
|
|
4511
|
+
type: import("convex/values").VLiteral<"tool-result", "required">;
|
|
4512
|
+
toolCallId: import("convex/values").VString<string, "required">;
|
|
4513
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
4514
|
+
result: import("convex/values").VAny<any, "required", string>;
|
|
4080
4515
|
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>;
|
|
4081
4516
|
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
4082
|
-
|
|
4517
|
+
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
4518
|
+
args: import("convex/values").VAny<any, "optional", string>;
|
|
4519
|
+
experimental_content: import("convex/values").VArray<({
|
|
4520
|
+
type: "text";
|
|
4521
|
+
text: string;
|
|
4522
|
+
} | {
|
|
4523
|
+
mimeType?: string | undefined;
|
|
4524
|
+
type: "image";
|
|
4525
|
+
data: string;
|
|
4526
|
+
})[] | undefined, import("convex/values").VUnion<{
|
|
4527
|
+
type: "text";
|
|
4528
|
+
text: string;
|
|
4529
|
+
} | {
|
|
4530
|
+
mimeType?: string | undefined;
|
|
4531
|
+
type: "image";
|
|
4532
|
+
data: string;
|
|
4533
|
+
}, [import("convex/values").VObject<{
|
|
4534
|
+
type: "text";
|
|
4535
|
+
text: string;
|
|
4536
|
+
}, {
|
|
4537
|
+
type: import("convex/values").VLiteral<"text", "required">;
|
|
4538
|
+
text: import("convex/values").VString<string, "required">;
|
|
4539
|
+
}, "required", "type" | "text">, import("convex/values").VObject<{
|
|
4540
|
+
mimeType?: string | undefined;
|
|
4541
|
+
type: "image";
|
|
4542
|
+
data: string;
|
|
4543
|
+
}, {
|
|
4544
|
+
type: import("convex/values").VLiteral<"image", "required">;
|
|
4545
|
+
data: import("convex/values").VString<string, "required">;
|
|
4546
|
+
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
4547
|
+
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
4548
|
+
}, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>, "required">], "required", never>;
|
|
4083
4549
|
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>;
|
|
4084
4550
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
4085
4551
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -4314,7 +4780,6 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4314
4780
|
reasoningDetails: import("convex/values").VArray<({
|
|
4315
4781
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4316
4782
|
signature?: string | undefined;
|
|
4317
|
-
state?: "streaming" | "done" | undefined;
|
|
4318
4783
|
type: "reasoning";
|
|
4319
4784
|
text: string;
|
|
4320
4785
|
} | {
|
|
@@ -4327,7 +4792,6 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4327
4792
|
})[] | undefined, import("convex/values").VUnion<{
|
|
4328
4793
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4329
4794
|
signature?: string | undefined;
|
|
4330
|
-
state?: "streaming" | "done" | undefined;
|
|
4331
4795
|
type: "reasoning";
|
|
4332
4796
|
text: string;
|
|
4333
4797
|
} | {
|
|
@@ -4340,7 +4804,6 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4340
4804
|
}, [import("convex/values").VObject<{
|
|
4341
4805
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4342
4806
|
signature?: string | undefined;
|
|
4343
|
-
state?: "streaming" | "done" | undefined;
|
|
4344
4807
|
type: "reasoning";
|
|
4345
4808
|
text: string;
|
|
4346
4809
|
}, {
|
|
@@ -4348,8 +4811,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4348
4811
|
text: import("convex/values").VString<string, "required">;
|
|
4349
4812
|
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
4350
4813
|
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
|
-
|
|
4352
|
-
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature" | "state">, import("convex/values").VObject<{
|
|
4814
|
+
}, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature">, import("convex/values").VObject<{
|
|
4353
4815
|
signature?: string | undefined;
|
|
4354
4816
|
type: "text";
|
|
4355
4817
|
text: string;
|
|
@@ -4363,7 +4825,7 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4363
4825
|
}, {
|
|
4364
4826
|
type: import("convex/values").VLiteral<"redacted", "required">;
|
|
4365
4827
|
data: import("convex/values").VString<string, "required">;
|
|
4366
|
-
}, "required", "type" | "data">], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "data" | "signature"
|
|
4828
|
+
}, "required", "type" | "data">], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "data" | "signature">, "optional">;
|
|
4367
4829
|
id: import("convex/values").VString<string | undefined, "optional">;
|
|
4368
4830
|
_id: import("convex/values").VString<string, "required">;
|
|
4369
4831
|
_creationTime: import("convex/values").VFloat64<number, "required">;
|