File tree Expand file tree Collapse file tree 8 files changed +14
-31
lines changed
example/convex/_generated
chat-basic/convex/_generated
chat-streaming/convex/_generated
files-images/convex/_generated Expand file tree Collapse file tree 8 files changed +14
-31
lines changed Original file line number Diff line number Diff line change 17
17
- Add ` rawRequestResponseHandler ` to the Agent definition, so you can log
18
18
the raw request and response from the LLM.
19
19
20
+ ### Breaking
21
+
22
+ - The ` steps ` table is now gone. It will still be around in your backend, where
23
+ you can inspect or clear it if you want, but it will not be written to, and
24
+ the low-level APIs around saving steps alongside messages are gone.
25
+ To get debug information, you can use the ` rawRequestResponseHandler ` and
26
+ dump the request and response to your own debug table. Maybe conditional on
27
+ some environment variable so you can turn it on/off for debugging.
28
+ - The ` files ` field is deprecated in favor of ` fileIds ` in the message metadata.
29
+ This wasn't really used before but it was possible folks discovered how to
30
+ set it.
31
+
20
32
## 0.1.6
21
33
22
34
- Fix pagination for the Agent messages when loading more
Original file line number Diff line number Diff line change @@ -342,7 +342,6 @@ export declare const components: {
342
342
embeddingId ?: string ;
343
343
error ?: string ;
344
344
fileIds ?: Array < string > ;
345
- files ?: Array < any > ;
346
345
finishReason ?:
347
346
| "stop"
348
347
| "length"
@@ -520,7 +519,6 @@ export declare const components: {
520
519
embeddingId ?: string ;
521
520
error ?: string ;
522
521
fileIds ?: Array < string > ;
523
- files ?: Array < any > ;
524
522
finishReason ?:
525
523
| "stop"
526
524
| "length"
@@ -666,7 +664,6 @@ export declare const components: {
666
664
embeddingId ?: string ;
667
665
error ?: string ;
668
666
fileIds ?: Array < string > ;
669
- files ?: Array < any > ;
670
667
finishReason ?:
671
668
| "stop"
672
669
| "length"
@@ -858,7 +855,6 @@ export declare const components: {
858
855
embeddingId ?: string ;
859
856
error ?: string ;
860
857
fileIds ?: Array < string > ;
861
- files ?: Array < any > ;
862
858
finishReason ?:
863
859
| "stop"
864
860
| "length"
@@ -1048,7 +1044,6 @@ export declare const components: {
1048
1044
embeddingId ?: string ;
1049
1045
error ?: string ;
1050
1046
fileIds ?: Array < string > ;
1051
- files ?: Array < any > ;
1052
1047
finishReason ?:
1053
1048
| "stop"
1054
1049
| "length"
@@ -1197,7 +1192,6 @@ export declare const components: {
1197
1192
embeddingId ?: string ;
1198
1193
error ?: string ;
1199
1194
fileIds ?: Array < string > ;
1200
- files ?: Array < any > ;
1201
1195
finishReason ?:
1202
1196
| "stop"
1203
1197
| "length"
Original file line number Diff line number Diff line change @@ -328,7 +328,6 @@ export declare const components: {
328
328
embeddingId ?: string ;
329
329
error ?: string ;
330
330
fileIds ?: Array < string > ;
331
- files ?: Array < any > ;
332
331
finishReason ?:
333
332
| "stop"
334
333
| "length"
@@ -506,7 +505,6 @@ export declare const components: {
506
505
embeddingId ?: string ;
507
506
error ?: string ;
508
507
fileIds ?: Array < string > ;
509
- files ?: Array < any > ;
510
508
finishReason ?:
511
509
| "stop"
512
510
| "length"
@@ -652,7 +650,6 @@ export declare const components: {
652
650
embeddingId ?: string ;
653
651
error ?: string ;
654
652
fileIds ?: Array < string > ;
655
- files ?: Array < any > ;
656
653
finishReason ?:
657
654
| "stop"
658
655
| "length"
@@ -844,7 +841,6 @@ export declare const components: {
844
841
embeddingId ?: string ;
845
842
error ?: string ;
846
843
fileIds ?: Array < string > ;
847
- files ?: Array < any > ;
848
844
finishReason ?:
849
845
| "stop"
850
846
| "length"
@@ -1034,7 +1030,6 @@ export declare const components: {
1034
1030
embeddingId ?: string ;
1035
1031
error ?: string ;
1036
1032
fileIds ?: Array < string > ;
1037
- files ?: Array < any > ;
1038
1033
finishReason ?:
1039
1034
| "stop"
1040
1035
| "length"
@@ -1183,7 +1178,6 @@ export declare const components: {
1183
1178
embeddingId ?: string ;
1184
1179
error ?: string ;
1185
1180
fileIds ?: Array < string > ;
1186
- files ?: Array < any > ;
1187
1181
finishReason ?:
1188
1182
| "stop"
1189
1183
| "length"
Original file line number Diff line number Diff line change @@ -328,7 +328,6 @@ export declare const components: {
328
328
embeddingId ?: string ;
329
329
error ?: string ;
330
330
fileIds ?: Array < string > ;
331
- files ?: Array < any > ;
332
331
finishReason ?:
333
332
| "stop"
334
333
| "length"
@@ -506,7 +505,6 @@ export declare const components: {
506
505
embeddingId ?: string ;
507
506
error ?: string ;
508
507
fileIds ?: Array < string > ;
509
- files ?: Array < any > ;
510
508
finishReason ?:
511
509
| "stop"
512
510
| "length"
@@ -652,7 +650,6 @@ export declare const components: {
652
650
embeddingId ?: string ;
653
651
error ?: string ;
654
652
fileIds ?: Array < string > ;
655
- files ?: Array < any > ;
656
653
finishReason ?:
657
654
| "stop"
658
655
| "length"
@@ -844,7 +841,6 @@ export declare const components: {
844
841
embeddingId ?: string ;
845
842
error ?: string ;
846
843
fileIds ?: Array < string > ;
847
- files ?: Array < any > ;
848
844
finishReason ?:
849
845
| "stop"
850
846
| "length"
@@ -1034,7 +1030,6 @@ export declare const components: {
1034
1030
embeddingId ?: string ;
1035
1031
error ?: string ;
1036
1032
fileIds ?: Array < string > ;
1037
- files ?: Array < any > ;
1038
1033
finishReason ?:
1039
1034
| "stop"
1040
1035
| "length"
@@ -1183,7 +1178,6 @@ export declare const components: {
1183
1178
embeddingId ?: string ;
1184
1179
error ?: string ;
1185
1180
fileIds ?: Array < string > ;
1186
- files ?: Array < any > ;
1187
1181
finishReason ?:
1188
1182
| "stop"
1189
1183
| "length"
Original file line number Diff line number Diff line change @@ -330,7 +330,6 @@ export declare const components: {
330
330
embeddingId ?: string ;
331
331
error ?: string ;
332
332
fileIds ?: Array < string > ;
333
- files ?: Array < any > ;
334
333
finishReason ?:
335
334
| "stop"
336
335
| "length"
@@ -508,7 +507,6 @@ export declare const components: {
508
507
embeddingId ?: string ;
509
508
error ?: string ;
510
509
fileIds ?: Array < string > ;
511
- files ?: Array < any > ;
512
510
finishReason ?:
513
511
| "stop"
514
512
| "length"
@@ -654,7 +652,6 @@ export declare const components: {
654
652
embeddingId ?: string ;
655
653
error ?: string ;
656
654
fileIds ?: Array < string > ;
657
- files ?: Array < any > ;
658
655
finishReason ?:
659
656
| "stop"
660
657
| "length"
@@ -846,7 +843,6 @@ export declare const components: {
846
843
embeddingId ?: string ;
847
844
error ?: string ;
848
845
fileIds ?: Array < string > ;
849
- files ?: Array < any > ;
850
846
finishReason ?:
851
847
| "stop"
852
848
| "length"
@@ -1036,7 +1032,6 @@ export declare const components: {
1036
1032
embeddingId ?: string ;
1037
1033
error ?: string ;
1038
1034
fileIds ?: Array < string > ;
1039
- files ?: Array < any > ;
1040
1035
finishReason ?:
1041
1036
| "stop"
1042
1037
| "length"
@@ -1185,7 +1180,6 @@ export declare const components: {
1185
1180
embeddingId ?: string ;
1186
1181
error ?: string ;
1187
1182
fileIds ?: Array < string > ;
1188
- files ?: Array < any > ;
1189
1183
finishReason ?:
1190
1184
| "stop"
1191
1185
| "length"
Original file line number Diff line number Diff line change @@ -280,7 +280,6 @@ export type Mounts = {
280
280
embeddingId ?: string ;
281
281
error ?: string ;
282
282
fileIds ?: Array < string > ;
283
- files ?: Array < any > ;
284
283
finishReason ?:
285
284
| "stop"
286
285
| "length"
@@ -430,7 +429,6 @@ export type Mounts = {
430
429
embeddingId ?: string ;
431
430
error ?: string ;
432
431
fileIds ?: Array < string > ;
433
- files ?: Array < any > ;
434
432
finishReason ?:
435
433
| "stop"
436
434
| "length"
@@ -576,7 +574,6 @@ export type Mounts = {
576
574
embeddingId ?: string ;
577
575
error ?: string ;
578
576
fileIds ?: Array < string > ;
579
- files ?: Array < any > ;
580
577
finishReason ?:
581
578
| "stop"
582
579
| "length"
@@ -740,7 +737,6 @@ export type Mounts = {
740
737
embeddingId ?: string ;
741
738
error ?: string ;
742
739
fileIds ?: Array < string > ;
743
- files ?: Array < any > ;
744
740
finishReason ?:
745
741
| "stop"
746
742
| "length"
@@ -902,7 +898,6 @@ export type Mounts = {
902
898
embeddingId ?: string ;
903
899
error ?: string ;
904
900
fileIds ?: Array < string > ;
905
- files ?: Array < any > ;
906
901
finishReason ?:
907
902
| "stop"
908
903
| "length"
@@ -1051,7 +1046,6 @@ export type Mounts = {
1051
1046
embeddingId ?: string ;
1052
1047
error ?: string ;
1053
1048
fileIds ?: Array < string > ;
1054
- files ?: Array < any > ;
1055
1049
finishReason ?:
1056
1050
| "stop"
1057
1051
| "length"
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ export const getThread = _getThread;
50
50
export const updateThread = _updateThread ;
51
51
52
52
function publicMessage ( message : Doc < "messages" > ) : MessageDoc {
53
- return omit ( message , [ "parentMessageId" , "stepId" ] ) ;
53
+ return omit ( message , [ "parentMessageId" , "stepId" , "files" ] ) ;
54
54
}
55
55
56
56
export async function deleteMessage (
Original file line number Diff line number Diff line change @@ -181,6 +181,7 @@ export const vMessageDoc = v.object({
181
181
...omit ( schema . tables . messages . validator . fields , [
182
182
"parentMessageId" ,
183
183
"stepId" ,
184
+ "files" ,
184
185
] ) ,
185
186
// Overwrite all the types that have a v.id validator
186
187
// Outside of the component, they are strings
You can’t perform that action at this time.
0 commit comments