@convex-dev/agent 0.2.4-alpha.0 → 0.2.5-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 -0
- package/dist/client/definePlaygroundAPI.d.ts.map +1 -1
- package/dist/client/index.d.ts +72 -4
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +5 -4
- 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/search.d.ts +17 -0
- package/dist/client/search.d.ts.map +1 -1
- package/dist/client/streaming.d.ts +188 -1
- package/dist/client/streaming.d.ts.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/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 +10 -4
- package/src/client/messages.ts +6 -6
- package/src/component/_generated/api.d.ts +176 -0
- package/src/mapping.ts +7 -0
- package/src/react/toUIMessages.ts +36 -19
- package/src/validators.ts +24 -0
|
@@ -162,6 +162,23 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
162
162
|
toolCallId: string;
|
|
163
163
|
toolName: string;
|
|
164
164
|
result: any;
|
|
165
|
+
} | {
|
|
166
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
167
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
168
|
+
id: string;
|
|
169
|
+
title: string;
|
|
170
|
+
type: "source";
|
|
171
|
+
sourceType: "url";
|
|
172
|
+
url: string;
|
|
173
|
+
} | {
|
|
174
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
175
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
176
|
+
filename?: string | undefined;
|
|
177
|
+
id: string;
|
|
178
|
+
title: string;
|
|
179
|
+
type: "source";
|
|
180
|
+
sourceType: "document";
|
|
181
|
+
mediaType: string;
|
|
165
182
|
})[];
|
|
166
183
|
} | {
|
|
167
184
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -275,6 +292,23 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
275
292
|
toolCallId: string;
|
|
276
293
|
toolName: string;
|
|
277
294
|
result: any;
|
|
295
|
+
} | {
|
|
296
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
297
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
298
|
+
id: string;
|
|
299
|
+
title: string;
|
|
300
|
+
type: "source";
|
|
301
|
+
sourceType: "url";
|
|
302
|
+
url: string;
|
|
303
|
+
} | {
|
|
304
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
305
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
306
|
+
filename?: string | undefined;
|
|
307
|
+
id: string;
|
|
308
|
+
title: string;
|
|
309
|
+
type: "source";
|
|
310
|
+
sourceType: "document";
|
|
311
|
+
mediaType: string;
|
|
278
312
|
})[];
|
|
279
313
|
} | {
|
|
280
314
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -453,6 +487,23 @@ export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, or
|
|
|
453
487
|
toolCallId: string;
|
|
454
488
|
toolName: string;
|
|
455
489
|
result: any;
|
|
490
|
+
} | {
|
|
491
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
492
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
493
|
+
id: string;
|
|
494
|
+
title: string;
|
|
495
|
+
type: "source";
|
|
496
|
+
sourceType: "url";
|
|
497
|
+
url: string;
|
|
498
|
+
} | {
|
|
499
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
500
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
501
|
+
filename?: string | undefined;
|
|
502
|
+
id: string;
|
|
503
|
+
title: string;
|
|
504
|
+
type: "source";
|
|
505
|
+
sourceType: "document";
|
|
506
|
+
mediaType: string;
|
|
456
507
|
})[];
|
|
457
508
|
} | {
|
|
458
509
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -635,6 +686,23 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
635
686
|
toolCallId: string;
|
|
636
687
|
toolName: string;
|
|
637
688
|
result: any;
|
|
689
|
+
} | {
|
|
690
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
691
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
692
|
+
id: string;
|
|
693
|
+
title: string;
|
|
694
|
+
type: "source";
|
|
695
|
+
sourceType: "url";
|
|
696
|
+
url: string;
|
|
697
|
+
} | {
|
|
698
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
699
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
700
|
+
filename?: string | undefined;
|
|
701
|
+
id: string;
|
|
702
|
+
title: string;
|
|
703
|
+
type: "source";
|
|
704
|
+
sourceType: "document";
|
|
705
|
+
mediaType: string;
|
|
638
706
|
})[];
|
|
639
707
|
} | {
|
|
640
708
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -748,6 +816,23 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
748
816
|
toolCallId: string;
|
|
749
817
|
toolName: string;
|
|
750
818
|
result: any;
|
|
819
|
+
} | {
|
|
820
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
821
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
822
|
+
id: string;
|
|
823
|
+
title: string;
|
|
824
|
+
type: "source";
|
|
825
|
+
sourceType: "url";
|
|
826
|
+
url: string;
|
|
827
|
+
} | {
|
|
828
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
829
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
830
|
+
filename?: string | undefined;
|
|
831
|
+
id: string;
|
|
832
|
+
title: string;
|
|
833
|
+
type: "source";
|
|
834
|
+
sourceType: "document";
|
|
835
|
+
mediaType: string;
|
|
751
836
|
})[];
|
|
752
837
|
} | {
|
|
753
838
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -937,6 +1022,23 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
|
|
|
937
1022
|
toolCallId: string;
|
|
938
1023
|
toolName: string;
|
|
939
1024
|
result: any;
|
|
1025
|
+
} | {
|
|
1026
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1027
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1028
|
+
id: string;
|
|
1029
|
+
title: string;
|
|
1030
|
+
type: "source";
|
|
1031
|
+
sourceType: "url";
|
|
1032
|
+
url: string;
|
|
1033
|
+
} | {
|
|
1034
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1035
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1036
|
+
filename?: string | undefined;
|
|
1037
|
+
id: string;
|
|
1038
|
+
title: string;
|
|
1039
|
+
type: "source";
|
|
1040
|
+
sourceType: "document";
|
|
1041
|
+
mediaType: string;
|
|
940
1042
|
})[];
|
|
941
1043
|
} | {
|
|
942
1044
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1118,6 +1220,23 @@ export declare const getMessagesByIds: import("convex/server").RegisteredQuery<"
|
|
|
1118
1220
|
toolCallId: string;
|
|
1119
1221
|
toolName: string;
|
|
1120
1222
|
result: any;
|
|
1223
|
+
} | {
|
|
1224
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1225
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1226
|
+
id: string;
|
|
1227
|
+
title: string;
|
|
1228
|
+
type: "source";
|
|
1229
|
+
sourceType: "url";
|
|
1230
|
+
url: string;
|
|
1231
|
+
} | {
|
|
1232
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1233
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1234
|
+
filename?: string | undefined;
|
|
1235
|
+
id: string;
|
|
1236
|
+
title: string;
|
|
1237
|
+
type: "source";
|
|
1238
|
+
sourceType: "document";
|
|
1239
|
+
mediaType: string;
|
|
1121
1240
|
})[];
|
|
1122
1241
|
} | {
|
|
1123
1242
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1305,6 +1424,23 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
|
|
|
1305
1424
|
toolCallId: string;
|
|
1306
1425
|
toolName: string;
|
|
1307
1426
|
result: any;
|
|
1427
|
+
} | {
|
|
1428
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1429
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1430
|
+
id: string;
|
|
1431
|
+
title: string;
|
|
1432
|
+
type: "source";
|
|
1433
|
+
sourceType: "url";
|
|
1434
|
+
url: string;
|
|
1435
|
+
} | {
|
|
1436
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1437
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1438
|
+
filename?: string | undefined;
|
|
1439
|
+
id: string;
|
|
1440
|
+
title: string;
|
|
1441
|
+
type: "source";
|
|
1442
|
+
sourceType: "document";
|
|
1443
|
+
mediaType: string;
|
|
1308
1444
|
})[];
|
|
1309
1445
|
} | {
|
|
1310
1446
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1483,6 +1619,23 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
1483
1619
|
toolCallId: string;
|
|
1484
1620
|
toolName: string;
|
|
1485
1621
|
result: any;
|
|
1622
|
+
} | {
|
|
1623
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1624
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1625
|
+
id: string;
|
|
1626
|
+
title: string;
|
|
1627
|
+
type: "source";
|
|
1628
|
+
sourceType: "url";
|
|
1629
|
+
url: string;
|
|
1630
|
+
} | {
|
|
1631
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1632
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1633
|
+
filename?: string | undefined;
|
|
1634
|
+
id: string;
|
|
1635
|
+
title: string;
|
|
1636
|
+
type: "source";
|
|
1637
|
+
sourceType: "document";
|
|
1638
|
+
mediaType: string;
|
|
1486
1639
|
})[];
|
|
1487
1640
|
} | {
|
|
1488
1641
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1663,6 +1816,23 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
1663
1816
|
toolCallId: string;
|
|
1664
1817
|
toolName: string;
|
|
1665
1818
|
result: any;
|
|
1819
|
+
} | {
|
|
1820
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1821
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1822
|
+
id: string;
|
|
1823
|
+
title: string;
|
|
1824
|
+
type: "source";
|
|
1825
|
+
sourceType: "url";
|
|
1826
|
+
url: string;
|
|
1827
|
+
} | {
|
|
1828
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1829
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1830
|
+
filename?: string | undefined;
|
|
1831
|
+
id: string;
|
|
1832
|
+
title: string;
|
|
1833
|
+
type: "source";
|
|
1834
|
+
sourceType: "document";
|
|
1835
|
+
mediaType: string;
|
|
1666
1836
|
})[];
|
|
1667
1837
|
} | {
|
|
1668
1838
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1843,6 +2013,23 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
|
|
|
1843
2013
|
toolCallId: string;
|
|
1844
2014
|
toolName: string;
|
|
1845
2015
|
result: any;
|
|
2016
|
+
} | {
|
|
2017
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2018
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2019
|
+
id: string;
|
|
2020
|
+
title: string;
|
|
2021
|
+
type: "source";
|
|
2022
|
+
sourceType: "url";
|
|
2023
|
+
url: string;
|
|
2024
|
+
} | {
|
|
2025
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2026
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2027
|
+
filename?: string | undefined;
|
|
2028
|
+
id: string;
|
|
2029
|
+
title: string;
|
|
2030
|
+
type: "source";
|
|
2031
|
+
sourceType: "document";
|
|
2032
|
+
mediaType: string;
|
|
1846
2033
|
})[];
|
|
1847
2034
|
} | {
|
|
1848
2035
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/component/messages.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAIL,KAAK,WAAW,EAEhB,KAAK,QAAQ,EACd,MAAM,wBAAwB,CAAC;AAkBhC,wBAAsB,aAAa,CACjC,GAAG,EAAE,WAAW,EAChB,UAAU,EAAE,GAAG,CAAC,UAAU,CAAC,iBAS5B;AAED,eAAO,MAAM,WAAW;;4DAgBtB,CAAC;AAEH,eAAO,MAAM,eAAe,sCAE3B,CAAC;AAEF,eAAO,MA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