@convex-dev/agent 0.2.4 → 0.2.5
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 -0
- package/dist/client/definePlaygroundAPI.d.ts.map +1 -1
- package/dist/client/index.d.ts +85 -23
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +52 -51
- package/dist/client/index.js.map +1 -1
- package/dist/client/messages.d.ts +17 -0
- package/dist/client/messages.d.ts.map +1 -1
- package/dist/client/messages.js +5 -5
- package/dist/client/messages.js.map +1 -1
- package/dist/client/mockModel.d.ts +30 -0
- package/dist/client/mockModel.d.ts.map +1 -0
- package/dist/client/mockModel.js +153 -0
- package/dist/client/mockModel.js.map +1 -0
- package/dist/client/search.d.ts +17 -0
- package/dist/client/search.d.ts.map +1 -1
- package/dist/client/streaming.d.ts +190 -2
- package/dist/client/streaming.d.ts.map +1 -1
- package/dist/client/streaming.js +10 -8
- package/dist/client/streaming.js.map +1 -1
- package/dist/component/_generated/api.d.ts +176 -0
- package/dist/component/messages.d.ts +187 -0
- package/dist/component/messages.d.ts.map +1 -1
- package/dist/component/messages.js +1 -1
- package/dist/component/messages.js.map +1 -1
- package/dist/component/schema.d.ts +496 -3
- package/dist/component/schema.d.ts.map +1 -1
- package/dist/mapping.d.ts.map +1 -1
- package/dist/mapping.js +5 -0
- package/dist/mapping.js.map +1 -1
- package/dist/react/toUIMessages.d.ts.map +1 -1
- package/dist/react/toUIMessages.js +29 -19
- package/dist/react/toUIMessages.js.map +1 -1
- package/dist/validators.d.ts +1183 -8
- package/dist/validators.d.ts.map +1 -1
- package/dist/validators.js +19 -1
- package/dist/validators.js.map +1 -1
- package/package.json +3 -3
- package/src/client/index.ts +91 -82
- package/src/client/messages.ts +6 -6
- package/src/client/mockModel.ts +195 -0
- package/src/client/streaming.ts +8 -7
- package/src/component/_generated/api.d.ts +176 -0
- package/src/component/messages.ts +1 -1
- package/src/mapping.ts +7 -0
- package/src/react/toUIMessages.ts +36 -19
- package/src/validators.ts +24 -0
|
@@ -365,6 +365,23 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
365
365
|
toolCallId: string;
|
|
366
366
|
toolName: string;
|
|
367
367
|
result: any;
|
|
368
|
+
} | {
|
|
369
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
370
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
371
|
+
id: string;
|
|
372
|
+
title: string;
|
|
373
|
+
type: "source";
|
|
374
|
+
sourceType: "url";
|
|
375
|
+
url: string;
|
|
376
|
+
} | {
|
|
377
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
378
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
379
|
+
filename?: string | undefined;
|
|
380
|
+
id: string;
|
|
381
|
+
title: string;
|
|
382
|
+
type: "source";
|
|
383
|
+
sourceType: "document";
|
|
384
|
+
mediaType: string;
|
|
368
385
|
})[];
|
|
369
386
|
} | {
|
|
370
387
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -541,6 +558,23 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
541
558
|
toolCallId: string;
|
|
542
559
|
toolName: string;
|
|
543
560
|
result: any;
|
|
561
|
+
} | {
|
|
562
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
563
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
564
|
+
id: string;
|
|
565
|
+
title: string;
|
|
566
|
+
type: "source";
|
|
567
|
+
sourceType: "url";
|
|
568
|
+
url: string;
|
|
569
|
+
} | {
|
|
570
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
571
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
572
|
+
filename?: string | undefined;
|
|
573
|
+
id: string;
|
|
574
|
+
title: string;
|
|
575
|
+
type: "source";
|
|
576
|
+
sourceType: "document";
|
|
577
|
+
mediaType: string;
|
|
544
578
|
})[];
|
|
545
579
|
} | {
|
|
546
580
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -730,6 +764,23 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
730
764
|
toolCallId: string;
|
|
731
765
|
toolName: string;
|
|
732
766
|
result: any;
|
|
767
|
+
} | {
|
|
768
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
769
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
770
|
+
id: string;
|
|
771
|
+
title: string;
|
|
772
|
+
type: "source";
|
|
773
|
+
sourceType: "url";
|
|
774
|
+
url: string;
|
|
775
|
+
} | {
|
|
776
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
777
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
778
|
+
filename?: string | undefined;
|
|
779
|
+
id: string;
|
|
780
|
+
title: string;
|
|
781
|
+
type: "source";
|
|
782
|
+
sourceType: "document";
|
|
783
|
+
mediaType: string;
|
|
733
784
|
})[];
|
|
734
785
|
}, {
|
|
735
786
|
role: import("convex/values").VLiteral<"assistant", "required">;
|
|
@@ -782,6 +833,23 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
782
833
|
toolCallId: string;
|
|
783
834
|
toolName: string;
|
|
784
835
|
result: any;
|
|
836
|
+
} | {
|
|
837
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
838
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
839
|
+
id: string;
|
|
840
|
+
title: string;
|
|
841
|
+
type: "source";
|
|
842
|
+
sourceType: "url";
|
|
843
|
+
url: string;
|
|
844
|
+
} | {
|
|
845
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
846
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
847
|
+
filename?: string | undefined;
|
|
848
|
+
id: string;
|
|
849
|
+
title: string;
|
|
850
|
+
type: "source";
|
|
851
|
+
sourceType: "document";
|
|
852
|
+
mediaType: string;
|
|
785
853
|
})[], [import("convex/values").VString<string, "required">, import("convex/values").VArray<({
|
|
786
854
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
787
855
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -831,6 +899,23 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
831
899
|
toolCallId: string;
|
|
832
900
|
toolName: string;
|
|
833
901
|
result: any;
|
|
902
|
+
} | {
|
|
903
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
904
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
905
|
+
id: string;
|
|
906
|
+
title: string;
|
|
907
|
+
type: "source";
|
|
908
|
+
sourceType: "url";
|
|
909
|
+
url: string;
|
|
910
|
+
} | {
|
|
911
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
912
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
913
|
+
filename?: string | undefined;
|
|
914
|
+
id: string;
|
|
915
|
+
title: string;
|
|
916
|
+
type: "source";
|
|
917
|
+
sourceType: "document";
|
|
918
|
+
mediaType: string;
|
|
834
919
|
})[], import("convex/values").VUnion<{
|
|
835
920
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
836
921
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -880,6 +965,23 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
880
965
|
toolCallId: string;
|
|
881
966
|
toolName: string;
|
|
882
967
|
result: any;
|
|
968
|
+
} | {
|
|
969
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
970
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
971
|
+
id: string;
|
|
972
|
+
title: string;
|
|
973
|
+
type: "source";
|
|
974
|
+
sourceType: "url";
|
|
975
|
+
url: string;
|
|
976
|
+
} | {
|
|
977
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
978
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
979
|
+
filename?: string | undefined;
|
|
980
|
+
id: string;
|
|
981
|
+
title: string;
|
|
982
|
+
type: "source";
|
|
983
|
+
sourceType: "document";
|
|
984
|
+
mediaType: string;
|
|
883
985
|
}, [import("convex/values").VObject<{
|
|
884
986
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
885
987
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -999,7 +1101,58 @@ export declare const schema: import("convex/server").SchemaDefinition<{
|
|
|
999
1101
|
data: import("convex/values").VString<string, "required">;
|
|
1000
1102
|
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
1001
1103
|
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
1002
|
-
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}
|
|
1104
|
+
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>, import("convex/values").VUnion<{
|
|
1105
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1106
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1107
|
+
id: string;
|
|
1108
|
+
title: string;
|
|
1109
|
+
type: "source";
|
|
1110
|
+
sourceType: "url";
|
|
1111
|
+
url: string;
|
|
1112
|
+
} | {
|
|
1113
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1114
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1115
|
+
filename?: string | undefined;
|
|
1116
|
+
id: string;
|
|
1117
|
+
title: string;
|
|
1118
|
+
type: "source";
|
|
1119
|
+
sourceType: "document";
|
|
1120
|
+
mediaType: string;
|
|
1121
|
+
}, [import("convex/values").VObject<{
|
|
1122
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1123
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1124
|
+
id: string;
|
|
1125
|
+
title: string;
|
|
1126
|
+
type: "source";
|
|
1127
|
+
sourceType: "url";
|
|
1128
|
+
url: string;
|
|
1129
|
+
}, {
|
|
1130
|
+
type: import("convex/values").VLiteral<"source", "required">;
|
|
1131
|
+
sourceType: import("convex/values").VLiteral<"url", "required">;
|
|
1132
|
+
id: import("convex/values").VString<string, "required">;
|
|
1133
|
+
url: import("convex/values").VString<string, "required">;
|
|
1134
|
+
title: import("convex/values").VString<string, "required">;
|
|
1135
|
+
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>;
|
|
1136
|
+
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>;
|
|
1137
|
+
}, "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "sourceType" | "url">, import("convex/values").VObject<{
|
|
1138
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1139
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1140
|
+
filename?: string | undefined;
|
|
1141
|
+
id: string;
|
|
1142
|
+
title: string;
|
|
1143
|
+
type: "source";
|
|
1144
|
+
sourceType: "document";
|
|
1145
|
+
mediaType: string;
|
|
1146
|
+
}, {
|
|
1147
|
+
type: import("convex/values").VLiteral<"source", "required">;
|
|
1148
|
+
sourceType: import("convex/values").VLiteral<"document", "required">;
|
|
1149
|
+
id: import("convex/values").VString<string, "required">;
|
|
1150
|
+
mediaType: import("convex/values").VString<string, "required">;
|
|
1151
|
+
title: import("convex/values").VString<string, "required">;
|
|
1152
|
+
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
1153
|
+
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>;
|
|
1154
|
+
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>;
|
|
1155
|
+
}, "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "filename" | "sourceType" | "mediaType">], "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "filename" | "sourceType" | "url" | "mediaType">], "required", "id" | "title" | "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}` | "sourceType" | "url" | "mediaType">, "required">], "required", never>;
|
|
1003
1156
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
1004
1157
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
1005
1158
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1834,6 +1987,23 @@ export declare const vv: {
|
|
|
1834
1987
|
toolCallId: string;
|
|
1835
1988
|
toolName: string;
|
|
1836
1989
|
result: any;
|
|
1990
|
+
} | {
|
|
1991
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1992
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1993
|
+
id: string;
|
|
1994
|
+
title: string;
|
|
1995
|
+
type: "source";
|
|
1996
|
+
sourceType: "url";
|
|
1997
|
+
url: string;
|
|
1998
|
+
} | {
|
|
1999
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2000
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2001
|
+
filename?: string | undefined;
|
|
2002
|
+
id: string;
|
|
2003
|
+
title: string;
|
|
2004
|
+
type: "source";
|
|
2005
|
+
sourceType: "document";
|
|
2006
|
+
mediaType: string;
|
|
1837
2007
|
})[];
|
|
1838
2008
|
} | {
|
|
1839
2009
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2433,6 +2603,23 @@ export declare const vv: {
|
|
|
2433
2603
|
toolCallId: string;
|
|
2434
2604
|
toolName: string;
|
|
2435
2605
|
result: any;
|
|
2606
|
+
} | {
|
|
2607
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2608
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2609
|
+
id: string;
|
|
2610
|
+
title: string;
|
|
2611
|
+
type: "source";
|
|
2612
|
+
sourceType: "url";
|
|
2613
|
+
url: string;
|
|
2614
|
+
} | {
|
|
2615
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2616
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2617
|
+
filename?: string | undefined;
|
|
2618
|
+
id: string;
|
|
2619
|
+
title: string;
|
|
2620
|
+
type: "source";
|
|
2621
|
+
sourceType: "document";
|
|
2622
|
+
mediaType: string;
|
|
2436
2623
|
})[];
|
|
2437
2624
|
} | {
|
|
2438
2625
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2992,6 +3179,23 @@ export declare const vv: {
|
|
|
2992
3179
|
toolCallId: string;
|
|
2993
3180
|
toolName: string;
|
|
2994
3181
|
result: any;
|
|
3182
|
+
} | {
|
|
3183
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3184
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3185
|
+
id: string;
|
|
3186
|
+
title: string;
|
|
3187
|
+
type: "source";
|
|
3188
|
+
sourceType: "url";
|
|
3189
|
+
url: string;
|
|
3190
|
+
} | {
|
|
3191
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3192
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3193
|
+
filename?: string | undefined;
|
|
3194
|
+
id: string;
|
|
3195
|
+
title: string;
|
|
3196
|
+
type: "source";
|
|
3197
|
+
sourceType: "document";
|
|
3198
|
+
mediaType: string;
|
|
2995
3199
|
})[];
|
|
2996
3200
|
} | {
|
|
2997
3201
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -3168,6 +3372,23 @@ export declare const vv: {
|
|
|
3168
3372
|
toolCallId: string;
|
|
3169
3373
|
toolName: string;
|
|
3170
3374
|
result: any;
|
|
3375
|
+
} | {
|
|
3376
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3377
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3378
|
+
id: string;
|
|
3379
|
+
title: string;
|
|
3380
|
+
type: "source";
|
|
3381
|
+
sourceType: "url";
|
|
3382
|
+
url: string;
|
|
3383
|
+
} | {
|
|
3384
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3385
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3386
|
+
filename?: string | undefined;
|
|
3387
|
+
id: string;
|
|
3388
|
+
title: string;
|
|
3389
|
+
type: "source";
|
|
3390
|
+
sourceType: "document";
|
|
3391
|
+
mediaType: string;
|
|
3171
3392
|
})[];
|
|
3172
3393
|
} | {
|
|
3173
3394
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -3357,6 +3578,23 @@ export declare const vv: {
|
|
|
3357
3578
|
toolCallId: string;
|
|
3358
3579
|
toolName: string;
|
|
3359
3580
|
result: any;
|
|
3581
|
+
} | {
|
|
3582
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3583
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3584
|
+
id: string;
|
|
3585
|
+
title: string;
|
|
3586
|
+
type: "source";
|
|
3587
|
+
sourceType: "url";
|
|
3588
|
+
url: string;
|
|
3589
|
+
} | {
|
|
3590
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3591
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3592
|
+
filename?: string | undefined;
|
|
3593
|
+
id: string;
|
|
3594
|
+
title: string;
|
|
3595
|
+
type: "source";
|
|
3596
|
+
sourceType: "document";
|
|
3597
|
+
mediaType: string;
|
|
3360
3598
|
})[];
|
|
3361
3599
|
}, {
|
|
3362
3600
|
role: import("convex/values").VLiteral<"assistant", "required">;
|
|
@@ -3409,6 +3647,23 @@ export declare const vv: {
|
|
|
3409
3647
|
toolCallId: string;
|
|
3410
3648
|
toolName: string;
|
|
3411
3649
|
result: any;
|
|
3650
|
+
} | {
|
|
3651
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3652
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3653
|
+
id: string;
|
|
3654
|
+
title: string;
|
|
3655
|
+
type: "source";
|
|
3656
|
+
sourceType: "url";
|
|
3657
|
+
url: string;
|
|
3658
|
+
} | {
|
|
3659
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3660
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3661
|
+
filename?: string | undefined;
|
|
3662
|
+
id: string;
|
|
3663
|
+
title: string;
|
|
3664
|
+
type: "source";
|
|
3665
|
+
sourceType: "document";
|
|
3666
|
+
mediaType: string;
|
|
3412
3667
|
})[], [import("convex/values").VString<string, "required">, import("convex/values").VArray<({
|
|
3413
3668
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3414
3669
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -3458,6 +3713,23 @@ export declare const vv: {
|
|
|
3458
3713
|
toolCallId: string;
|
|
3459
3714
|
toolName: string;
|
|
3460
3715
|
result: any;
|
|
3716
|
+
} | {
|
|
3717
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3718
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3719
|
+
id: string;
|
|
3720
|
+
title: string;
|
|
3721
|
+
type: "source";
|
|
3722
|
+
sourceType: "url";
|
|
3723
|
+
url: string;
|
|
3724
|
+
} | {
|
|
3725
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3726
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3727
|
+
filename?: string | undefined;
|
|
3728
|
+
id: string;
|
|
3729
|
+
title: string;
|
|
3730
|
+
type: "source";
|
|
3731
|
+
sourceType: "document";
|
|
3732
|
+
mediaType: string;
|
|
3461
3733
|
})[], import("convex/values").VUnion<{
|
|
3462
3734
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3463
3735
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -3507,6 +3779,23 @@ export declare const vv: {
|
|
|
3507
3779
|
toolCallId: string;
|
|
3508
3780
|
toolName: string;
|
|
3509
3781
|
result: any;
|
|
3782
|
+
} | {
|
|
3783
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3784
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3785
|
+
id: string;
|
|
3786
|
+
title: string;
|
|
3787
|
+
type: "source";
|
|
3788
|
+
sourceType: "url";
|
|
3789
|
+
url: string;
|
|
3790
|
+
} | {
|
|
3791
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3792
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3793
|
+
filename?: string | undefined;
|
|
3794
|
+
id: string;
|
|
3795
|
+
title: string;
|
|
3796
|
+
type: "source";
|
|
3797
|
+
sourceType: "document";
|
|
3798
|
+
mediaType: string;
|
|
3510
3799
|
}, [import("convex/values").VObject<{
|
|
3511
3800
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3512
3801
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -3626,7 +3915,58 @@ export declare const vv: {
|
|
|
3626
3915
|
data: import("convex/values").VString<string, "required">;
|
|
3627
3916
|
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
3628
3917
|
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
3629
|
-
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}
|
|
3918
|
+
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>, import("convex/values").VUnion<{
|
|
3919
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3920
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3921
|
+
id: string;
|
|
3922
|
+
title: string;
|
|
3923
|
+
type: "source";
|
|
3924
|
+
sourceType: "url";
|
|
3925
|
+
url: string;
|
|
3926
|
+
} | {
|
|
3927
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3928
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3929
|
+
filename?: string | undefined;
|
|
3930
|
+
id: string;
|
|
3931
|
+
title: string;
|
|
3932
|
+
type: "source";
|
|
3933
|
+
sourceType: "document";
|
|
3934
|
+
mediaType: string;
|
|
3935
|
+
}, [import("convex/values").VObject<{
|
|
3936
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3937
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3938
|
+
id: string;
|
|
3939
|
+
title: string;
|
|
3940
|
+
type: "source";
|
|
3941
|
+
sourceType: "url";
|
|
3942
|
+
url: string;
|
|
3943
|
+
}, {
|
|
3944
|
+
type: import("convex/values").VLiteral<"source", "required">;
|
|
3945
|
+
sourceType: import("convex/values").VLiteral<"url", "required">;
|
|
3946
|
+
id: import("convex/values").VString<string, "required">;
|
|
3947
|
+
url: import("convex/values").VString<string, "required">;
|
|
3948
|
+
title: import("convex/values").VString<string, "required">;
|
|
3949
|
+
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>;
|
|
3950
|
+
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>;
|
|
3951
|
+
}, "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "sourceType" | "url">, import("convex/values").VObject<{
|
|
3952
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3953
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3954
|
+
filename?: string | undefined;
|
|
3955
|
+
id: string;
|
|
3956
|
+
title: string;
|
|
3957
|
+
type: "source";
|
|
3958
|
+
sourceType: "document";
|
|
3959
|
+
mediaType: string;
|
|
3960
|
+
}, {
|
|
3961
|
+
type: import("convex/values").VLiteral<"source", "required">;
|
|
3962
|
+
sourceType: import("convex/values").VLiteral<"document", "required">;
|
|
3963
|
+
id: import("convex/values").VString<string, "required">;
|
|
3964
|
+
mediaType: import("convex/values").VString<string, "required">;
|
|
3965
|
+
title: import("convex/values").VString<string, "required">;
|
|
3966
|
+
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
3967
|
+
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>;
|
|
3968
|
+
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>;
|
|
3969
|
+
}, "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "filename" | "sourceType" | "mediaType">], "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "filename" | "sourceType" | "url" | "mediaType">], "required", "id" | "title" | "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}` | "sourceType" | "url" | "mediaType">, "required">], "required", never>;
|
|
3630
3970
|
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>;
|
|
3631
3971
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
3632
3972
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -4174,6 +4514,23 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4174
4514
|
toolCallId: string;
|
|
4175
4515
|
toolName: string;
|
|
4176
4516
|
result: any;
|
|
4517
|
+
} | {
|
|
4518
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4519
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4520
|
+
id: string;
|
|
4521
|
+
title: string;
|
|
4522
|
+
type: "source";
|
|
4523
|
+
sourceType: "url";
|
|
4524
|
+
url: string;
|
|
4525
|
+
} | {
|
|
4526
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4527
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4528
|
+
filename?: string | undefined;
|
|
4529
|
+
id: string;
|
|
4530
|
+
title: string;
|
|
4531
|
+
type: "source";
|
|
4532
|
+
sourceType: "document";
|
|
4533
|
+
mediaType: string;
|
|
4177
4534
|
})[];
|
|
4178
4535
|
} | {
|
|
4179
4536
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -4350,6 +4707,23 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4350
4707
|
toolCallId: string;
|
|
4351
4708
|
toolName: string;
|
|
4352
4709
|
result: any;
|
|
4710
|
+
} | {
|
|
4711
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4712
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4713
|
+
id: string;
|
|
4714
|
+
title: string;
|
|
4715
|
+
type: "source";
|
|
4716
|
+
sourceType: "url";
|
|
4717
|
+
url: string;
|
|
4718
|
+
} | {
|
|
4719
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4720
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4721
|
+
filename?: string | undefined;
|
|
4722
|
+
id: string;
|
|
4723
|
+
title: string;
|
|
4724
|
+
type: "source";
|
|
4725
|
+
sourceType: "document";
|
|
4726
|
+
mediaType: string;
|
|
4353
4727
|
})[];
|
|
4354
4728
|
} | {
|
|
4355
4729
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -4539,6 +4913,23 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4539
4913
|
toolCallId: string;
|
|
4540
4914
|
toolName: string;
|
|
4541
4915
|
result: any;
|
|
4916
|
+
} | {
|
|
4917
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4918
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4919
|
+
id: string;
|
|
4920
|
+
title: string;
|
|
4921
|
+
type: "source";
|
|
4922
|
+
sourceType: "url";
|
|
4923
|
+
url: string;
|
|
4924
|
+
} | {
|
|
4925
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4926
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4927
|
+
filename?: string | undefined;
|
|
4928
|
+
id: string;
|
|
4929
|
+
title: string;
|
|
4930
|
+
type: "source";
|
|
4931
|
+
sourceType: "document";
|
|
4932
|
+
mediaType: string;
|
|
4542
4933
|
})[];
|
|
4543
4934
|
}, {
|
|
4544
4935
|
role: import("convex/values").VLiteral<"assistant", "required">;
|
|
@@ -4591,6 +4982,23 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4591
4982
|
toolCallId: string;
|
|
4592
4983
|
toolName: string;
|
|
4593
4984
|
result: any;
|
|
4985
|
+
} | {
|
|
4986
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4987
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4988
|
+
id: string;
|
|
4989
|
+
title: string;
|
|
4990
|
+
type: "source";
|
|
4991
|
+
sourceType: "url";
|
|
4992
|
+
url: string;
|
|
4993
|
+
} | {
|
|
4994
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4995
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
4996
|
+
filename?: string | undefined;
|
|
4997
|
+
id: string;
|
|
4998
|
+
title: string;
|
|
4999
|
+
type: "source";
|
|
5000
|
+
sourceType: "document";
|
|
5001
|
+
mediaType: string;
|
|
4594
5002
|
})[], [import("convex/values").VString<string, "required">, import("convex/values").VArray<({
|
|
4595
5003
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4596
5004
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -4640,6 +5048,23 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4640
5048
|
toolCallId: string;
|
|
4641
5049
|
toolName: string;
|
|
4642
5050
|
result: any;
|
|
5051
|
+
} | {
|
|
5052
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5053
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5054
|
+
id: string;
|
|
5055
|
+
title: string;
|
|
5056
|
+
type: "source";
|
|
5057
|
+
sourceType: "url";
|
|
5058
|
+
url: string;
|
|
5059
|
+
} | {
|
|
5060
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5061
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5062
|
+
filename?: string | undefined;
|
|
5063
|
+
id: string;
|
|
5064
|
+
title: string;
|
|
5065
|
+
type: "source";
|
|
5066
|
+
sourceType: "document";
|
|
5067
|
+
mediaType: string;
|
|
4643
5068
|
})[], import("convex/values").VUnion<{
|
|
4644
5069
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4645
5070
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -4689,6 +5114,23 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4689
5114
|
toolCallId: string;
|
|
4690
5115
|
toolName: string;
|
|
4691
5116
|
result: any;
|
|
5117
|
+
} | {
|
|
5118
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5119
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5120
|
+
id: string;
|
|
5121
|
+
title: string;
|
|
5122
|
+
type: "source";
|
|
5123
|
+
sourceType: "url";
|
|
5124
|
+
url: string;
|
|
5125
|
+
} | {
|
|
5126
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5127
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5128
|
+
filename?: string | undefined;
|
|
5129
|
+
id: string;
|
|
5130
|
+
title: string;
|
|
5131
|
+
type: "source";
|
|
5132
|
+
sourceType: "document";
|
|
5133
|
+
mediaType: string;
|
|
4692
5134
|
}, [import("convex/values").VObject<{
|
|
4693
5135
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
4694
5136
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -4808,7 +5250,58 @@ export declare const vMessageDoc: import("convex/values").VObject<{
|
|
|
4808
5250
|
data: import("convex/values").VString<string, "required">;
|
|
4809
5251
|
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
4810
5252
|
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
4811
|
-
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}
|
|
5253
|
+
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}`>, import("convex/values").VUnion<{
|
|
5254
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5255
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5256
|
+
id: string;
|
|
5257
|
+
title: string;
|
|
5258
|
+
type: "source";
|
|
5259
|
+
sourceType: "url";
|
|
5260
|
+
url: string;
|
|
5261
|
+
} | {
|
|
5262
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5263
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5264
|
+
filename?: string | undefined;
|
|
5265
|
+
id: string;
|
|
5266
|
+
title: string;
|
|
5267
|
+
type: "source";
|
|
5268
|
+
sourceType: "document";
|
|
5269
|
+
mediaType: string;
|
|
5270
|
+
}, [import("convex/values").VObject<{
|
|
5271
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5272
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5273
|
+
id: string;
|
|
5274
|
+
title: string;
|
|
5275
|
+
type: "source";
|
|
5276
|
+
sourceType: "url";
|
|
5277
|
+
url: string;
|
|
5278
|
+
}, {
|
|
5279
|
+
type: import("convex/values").VLiteral<"source", "required">;
|
|
5280
|
+
sourceType: import("convex/values").VLiteral<"url", "required">;
|
|
5281
|
+
id: import("convex/values").VString<string, "required">;
|
|
5282
|
+
url: import("convex/values").VString<string, "required">;
|
|
5283
|
+
title: import("convex/values").VString<string, "required">;
|
|
5284
|
+
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>;
|
|
5285
|
+
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>;
|
|
5286
|
+
}, "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "sourceType" | "url">, import("convex/values").VObject<{
|
|
5287
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
5288
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
5289
|
+
filename?: string | undefined;
|
|
5290
|
+
id: string;
|
|
5291
|
+
title: string;
|
|
5292
|
+
type: "source";
|
|
5293
|
+
sourceType: "document";
|
|
5294
|
+
mediaType: string;
|
|
5295
|
+
}, {
|
|
5296
|
+
type: import("convex/values").VLiteral<"source", "required">;
|
|
5297
|
+
sourceType: import("convex/values").VLiteral<"document", "required">;
|
|
5298
|
+
id: import("convex/values").VString<string, "required">;
|
|
5299
|
+
mediaType: import("convex/values").VString<string, "required">;
|
|
5300
|
+
title: import("convex/values").VString<string, "required">;
|
|
5301
|
+
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
5302
|
+
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>;
|
|
5303
|
+
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>;
|
|
5304
|
+
}, "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "filename" | "sourceType" | "mediaType">], "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "filename" | "sourceType" | "url" | "mediaType">], "required", "id" | "title" | "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "result" | "isError" | "experimental_content" | `result.${string}` | "sourceType" | "url" | "mediaType">, "required">], "required", never>;
|
|
4812
5305
|
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>;
|
|
4813
5306
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
4814
5307
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|