@convex-dev/agent 0.6.0-beta.0 → 0.6.1
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 +31 -31
- package/dist/client/index.d.ts +23 -23
- package/dist/client/messages.d.ts +9 -9
- package/dist/client/search.d.ts +9 -9
- package/dist/client/streaming.d.ts +66 -66
- package/dist/component/_generated/dataModel.d.ts +1 -1
- package/dist/component/_generated/server.d.ts.map +1 -1
- package/dist/component/messages.d.ts +107 -107
- package/dist/component/schema.d.ts +59 -56
- package/dist/component/schema.d.ts.map +1 -1
- package/dist/component/streams.d.ts +4 -4
- package/dist/component/threads.d.ts +17 -17
- package/dist/component/users.d.ts +3 -3
- package/dist/component/vector/tables.d.ts +2 -2
- package/dist/component/vector/tables.d.ts.map +1 -1
- package/dist/validators.d.ts +15 -15
- package/package.json +39 -39
- package/src/component/_generated/dataModel.ts +1 -1
- package/src/component/_generated/server.ts +0 -5
- package/src/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -0
|
@@ -6,8 +6,8 @@ export declare const deleteByIds: import("convex/server").RegisteredMutation<"pu
|
|
|
6
6
|
}, Promise<import("convex/values").GenericId<"messages">[]>>;
|
|
7
7
|
export declare const messageStatuses: ("pending" | "success" | "failed")[];
|
|
8
8
|
export declare const deleteByOrder: import("convex/server").RegisteredMutation<"public", {
|
|
9
|
-
startStepOrder?: number | undefined;
|
|
10
9
|
endStepOrder?: number | undefined;
|
|
10
|
+
startStepOrder?: number | undefined;
|
|
11
11
|
threadId: import("convex/values").GenericId<"threads">;
|
|
12
12
|
startOrder: number;
|
|
13
13
|
endOrder: number;
|
|
@@ -20,20 +20,20 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
20
20
|
userId?: string | undefined;
|
|
21
21
|
agentName?: string | undefined;
|
|
22
22
|
promptMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
23
|
-
failPendingSteps?: boolean | undefined;
|
|
24
23
|
embeddings?: {
|
|
25
24
|
model: string;
|
|
26
|
-
vectors: (number[] | null)[];
|
|
27
25
|
dimension: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
26
|
+
vectors: (number[] | null)[];
|
|
28
27
|
} | undefined;
|
|
29
|
-
|
|
30
|
-
hideFromUserIdSearch?: boolean | undefined;
|
|
28
|
+
failPendingSteps?: boolean | undefined;
|
|
31
29
|
finishStreamId?: import("convex/values").GenericId<"streamingMessages"> | undefined;
|
|
30
|
+
hideFromUserIdSearch?: boolean | undefined;
|
|
31
|
+
pendingMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
32
32
|
threadId: import("convex/values").GenericId<"threads">;
|
|
33
33
|
messages: {
|
|
34
|
+
status?: "pending" | "success" | "failed" | undefined;
|
|
34
35
|
fileIds?: import("convex/values").GenericId<"files">[] | undefined;
|
|
35
36
|
error?: string | undefined;
|
|
36
|
-
status?: "pending" | "success" | "failed" | undefined;
|
|
37
37
|
model?: string | undefined;
|
|
38
38
|
provider?: string | undefined;
|
|
39
39
|
text?: string | undefined;
|
|
@@ -47,10 +47,10 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
47
47
|
totalTokens: number;
|
|
48
48
|
} | undefined;
|
|
49
49
|
sources?: ({
|
|
50
|
+
title?: string | undefined;
|
|
50
51
|
type?: "source" | undefined;
|
|
51
52
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
52
53
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
53
|
-
title?: string | undefined;
|
|
54
54
|
id: string;
|
|
55
55
|
url: string;
|
|
56
56
|
sourceType: "url";
|
|
@@ -59,10 +59,10 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
59
59
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
60
60
|
filename?: string | undefined;
|
|
61
61
|
id: string;
|
|
62
|
+
title: string;
|
|
62
63
|
type: "source";
|
|
63
64
|
mediaType: string;
|
|
64
65
|
sourceType: "document";
|
|
65
|
-
title: string;
|
|
66
66
|
})[] | undefined;
|
|
67
67
|
warnings?: ({
|
|
68
68
|
details?: string | undefined;
|
|
@@ -76,7 +76,7 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
76
76
|
type: "other";
|
|
77
77
|
message: string;
|
|
78
78
|
})[] | undefined;
|
|
79
|
-
finishReason?: "
|
|
79
|
+
finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
80
80
|
reasoningDetails?: ({
|
|
81
81
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
82
82
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -240,9 +240,9 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
240
240
|
toolCallId: string;
|
|
241
241
|
toolName: string;
|
|
242
242
|
} | {
|
|
243
|
+
title?: string | undefined;
|
|
243
244
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
244
245
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
245
|
-
title?: string | undefined;
|
|
246
246
|
id: string;
|
|
247
247
|
type: "source";
|
|
248
248
|
url: string;
|
|
@@ -252,10 +252,10 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
252
252
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
253
253
|
filename?: string | undefined;
|
|
254
254
|
id: string;
|
|
255
|
+
title: string;
|
|
255
256
|
type: "source";
|
|
256
257
|
mediaType: string;
|
|
257
258
|
sourceType: "document";
|
|
258
|
-
title: string;
|
|
259
259
|
} | {
|
|
260
260
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
261
261
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -363,8 +363,8 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
363
363
|
}[];
|
|
364
364
|
}, Promise<{
|
|
365
365
|
messages: {
|
|
366
|
-
userId?: string | undefined;
|
|
367
366
|
id?: string | undefined;
|
|
367
|
+
userId?: string | undefined;
|
|
368
368
|
embeddingId?: string | undefined;
|
|
369
369
|
fileIds?: string[] | undefined;
|
|
370
370
|
error?: string | undefined;
|
|
@@ -521,9 +521,9 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
521
521
|
toolCallId: string;
|
|
522
522
|
toolName: string;
|
|
523
523
|
} | {
|
|
524
|
+
title?: string | undefined;
|
|
524
525
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
525
526
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
526
|
-
title?: string | undefined;
|
|
527
527
|
id: string;
|
|
528
528
|
type: "source";
|
|
529
529
|
url: string;
|
|
@@ -533,10 +533,10 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
533
533
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
534
534
|
filename?: string | undefined;
|
|
535
535
|
id: string;
|
|
536
|
+
title: string;
|
|
536
537
|
type: "source";
|
|
537
538
|
mediaType: string;
|
|
538
539
|
sourceType: "document";
|
|
539
|
-
title: string;
|
|
540
540
|
} | {
|
|
541
541
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
542
542
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -652,10 +652,10 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
652
652
|
totalTokens: number;
|
|
653
653
|
} | undefined;
|
|
654
654
|
sources?: ({
|
|
655
|
+
title?: string | undefined;
|
|
655
656
|
type?: "source" | undefined;
|
|
656
657
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
657
658
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
658
|
-
title?: string | undefined;
|
|
659
659
|
id: string;
|
|
660
660
|
url: string;
|
|
661
661
|
sourceType: "url";
|
|
@@ -664,10 +664,10 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
664
664
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
665
665
|
filename?: string | undefined;
|
|
666
666
|
id: string;
|
|
667
|
+
title: string;
|
|
667
668
|
type: "source";
|
|
668
669
|
mediaType: string;
|
|
669
670
|
sourceType: "document";
|
|
670
|
-
title: string;
|
|
671
671
|
})[] | undefined;
|
|
672
672
|
warnings?: ({
|
|
673
673
|
details?: string | undefined;
|
|
@@ -681,7 +681,7 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
681
681
|
type: "other";
|
|
682
682
|
message: string;
|
|
683
683
|
})[] | undefined;
|
|
684
|
-
finishReason?: "
|
|
684
|
+
finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
685
685
|
reasoningDetails?: ({
|
|
686
686
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
687
687
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -696,22 +696,23 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
696
696
|
type: "redacted";
|
|
697
697
|
data: string;
|
|
698
698
|
})[] | undefined;
|
|
699
|
-
|
|
699
|
+
status: "pending" | "success" | "failed";
|
|
700
|
+
order: number;
|
|
700
701
|
_creationTime: number;
|
|
701
702
|
threadId: string;
|
|
702
|
-
order: number;
|
|
703
703
|
stepOrder: number;
|
|
704
|
-
status: "pending" | "success" | "failed";
|
|
705
704
|
tool: boolean;
|
|
705
|
+
_id: string;
|
|
706
706
|
}[];
|
|
707
707
|
}>>;
|
|
708
708
|
export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, order?: number): Promise<{
|
|
709
709
|
_id: import("convex/values").GenericId<"messages">;
|
|
710
710
|
_creationTime: number;
|
|
711
|
-
userId?: string | undefined;
|
|
712
711
|
id?: string | undefined;
|
|
712
|
+
userId?: string | undefined;
|
|
713
713
|
embeddingId?: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096"> | undefined;
|
|
714
714
|
fileIds?: import("convex/values").GenericId<"files">[] | undefined;
|
|
715
|
+
files?: any[] | undefined;
|
|
715
716
|
error?: string | undefined;
|
|
716
717
|
agentName?: string | undefined;
|
|
717
718
|
model?: string | undefined;
|
|
@@ -866,9 +867,9 @@ export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, or
|
|
|
866
867
|
toolCallId: string;
|
|
867
868
|
toolName: string;
|
|
868
869
|
} | {
|
|
870
|
+
title?: string | undefined;
|
|
869
871
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
870
872
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
871
|
-
title?: string | undefined;
|
|
872
873
|
id: string;
|
|
873
874
|
type: "source";
|
|
874
875
|
url: string;
|
|
@@ -878,10 +879,10 @@ export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, or
|
|
|
878
879
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
879
880
|
filename?: string | undefined;
|
|
880
881
|
id: string;
|
|
882
|
+
title: string;
|
|
881
883
|
type: "source";
|
|
882
884
|
mediaType: string;
|
|
883
885
|
sourceType: "document";
|
|
884
|
-
title: string;
|
|
885
886
|
} | {
|
|
886
887
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
887
888
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -997,10 +998,10 @@ export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, or
|
|
|
997
998
|
totalTokens: number;
|
|
998
999
|
} | undefined;
|
|
999
1000
|
sources?: ({
|
|
1001
|
+
title?: string | undefined;
|
|
1000
1002
|
type?: "source" | undefined;
|
|
1001
1003
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1002
1004
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1003
|
-
title?: string | undefined;
|
|
1004
1005
|
id: string;
|
|
1005
1006
|
url: string;
|
|
1006
1007
|
sourceType: "url";
|
|
@@ -1009,10 +1010,10 @@ export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, or
|
|
|
1009
1010
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1010
1011
|
filename?: string | undefined;
|
|
1011
1012
|
id: string;
|
|
1013
|
+
title: string;
|
|
1012
1014
|
type: "source";
|
|
1013
1015
|
mediaType: string;
|
|
1014
1016
|
sourceType: "document";
|
|
1015
|
-
title: string;
|
|
1016
1017
|
})[] | undefined;
|
|
1017
1018
|
warnings?: ({
|
|
1018
1019
|
details?: string | undefined;
|
|
@@ -1026,7 +1027,7 @@ export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, or
|
|
|
1026
1027
|
type: "other";
|
|
1027
1028
|
message: string;
|
|
1028
1029
|
})[] | undefined;
|
|
1029
|
-
finishReason?: "
|
|
1030
|
+
finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
1030
1031
|
reasoningDetails?: ({
|
|
1031
1032
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1032
1033
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1041,29 +1042,29 @@ export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, or
|
|
|
1041
1042
|
type: "redacted";
|
|
1042
1043
|
data: string;
|
|
1043
1044
|
})[] | undefined;
|
|
1044
|
-
files?: any[] | undefined;
|
|
1045
1045
|
parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
1046
1046
|
stepId?: string | undefined;
|
|
1047
|
-
|
|
1047
|
+
status: "pending" | "success" | "failed";
|
|
1048
1048
|
order: number;
|
|
1049
|
+
threadId: import("convex/values").GenericId<"threads">;
|
|
1049
1050
|
stepOrder: number;
|
|
1050
|
-
status: "pending" | "success" | "failed";
|
|
1051
1051
|
tool: boolean;
|
|
1052
1052
|
} | null>;
|
|
1053
1053
|
export declare const finalizeMessage: import("convex/server").RegisteredMutation<"public", {
|
|
1054
1054
|
result: {
|
|
1055
1055
|
status: "success";
|
|
1056
1056
|
} | {
|
|
1057
|
-
error: string;
|
|
1058
1057
|
status: "failed";
|
|
1058
|
+
error: string;
|
|
1059
1059
|
};
|
|
1060
1060
|
messageId: import("convex/values").GenericId<"messages">;
|
|
1061
1061
|
}, Promise<void>>;
|
|
1062
1062
|
export declare const updateMessage: import("convex/server").RegisteredMutation<"public", {
|
|
1063
|
+
messageId: import("convex/values").GenericId<"messages">;
|
|
1063
1064
|
patch: {
|
|
1065
|
+
status?: "pending" | "success" | "failed" | undefined;
|
|
1064
1066
|
fileIds?: import("convex/values").GenericId<"files">[] | undefined;
|
|
1065
1067
|
error?: string | undefined;
|
|
1066
|
-
status?: "pending" | "success" | "failed" | undefined;
|
|
1067
1068
|
model?: string | undefined;
|
|
1068
1069
|
provider?: string | undefined;
|
|
1069
1070
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1216,9 +1217,9 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
1216
1217
|
toolCallId: string;
|
|
1217
1218
|
toolName: string;
|
|
1218
1219
|
} | {
|
|
1220
|
+
title?: string | undefined;
|
|
1219
1221
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1220
1222
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1221
|
-
title?: string | undefined;
|
|
1222
1223
|
id: string;
|
|
1223
1224
|
type: "source";
|
|
1224
1225
|
url: string;
|
|
@@ -1228,10 +1229,10 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
1228
1229
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1229
1230
|
filename?: string | undefined;
|
|
1230
1231
|
id: string;
|
|
1232
|
+
title: string;
|
|
1231
1233
|
type: "source";
|
|
1232
1234
|
mediaType: string;
|
|
1233
1235
|
sourceType: "document";
|
|
1234
|
-
title: string;
|
|
1235
1236
|
} | {
|
|
1236
1237
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1237
1238
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1336,12 +1337,11 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
1336
1337
|
role: "system";
|
|
1337
1338
|
content: string;
|
|
1338
1339
|
} | undefined;
|
|
1339
|
-
finishReason?: "
|
|
1340
|
+
finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
1340
1341
|
};
|
|
1341
|
-
messageId: import("convex/values").GenericId<"messages">;
|
|
1342
1342
|
}, Promise<{
|
|
1343
|
-
userId?: string | undefined;
|
|
1344
1343
|
id?: string | undefined;
|
|
1344
|
+
userId?: string | undefined;
|
|
1345
1345
|
embeddingId?: string | undefined;
|
|
1346
1346
|
fileIds?: string[] | undefined;
|
|
1347
1347
|
error?: string | undefined;
|
|
@@ -1498,9 +1498,9 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
1498
1498
|
toolCallId: string;
|
|
1499
1499
|
toolName: string;
|
|
1500
1500
|
} | {
|
|
1501
|
+
title?: string | undefined;
|
|
1501
1502
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1502
1503
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1503
|
-
title?: string | undefined;
|
|
1504
1504
|
id: string;
|
|
1505
1505
|
type: "source";
|
|
1506
1506
|
url: string;
|
|
@@ -1510,10 +1510,10 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
1510
1510
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1511
1511
|
filename?: string | undefined;
|
|
1512
1512
|
id: string;
|
|
1513
|
+
title: string;
|
|
1513
1514
|
type: "source";
|
|
1514
1515
|
mediaType: string;
|
|
1515
1516
|
sourceType: "document";
|
|
1516
|
-
title: string;
|
|
1517
1517
|
} | {
|
|
1518
1518
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1519
1519
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1629,10 +1629,10 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
1629
1629
|
totalTokens: number;
|
|
1630
1630
|
} | undefined;
|
|
1631
1631
|
sources?: ({
|
|
1632
|
+
title?: string | undefined;
|
|
1632
1633
|
type?: "source" | undefined;
|
|
1633
1634
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1634
1635
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1635
|
-
title?: string | undefined;
|
|
1636
1636
|
id: string;
|
|
1637
1637
|
url: string;
|
|
1638
1638
|
sourceType: "url";
|
|
@@ -1641,10 +1641,10 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
1641
1641
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1642
1642
|
filename?: string | undefined;
|
|
1643
1643
|
id: string;
|
|
1644
|
+
title: string;
|
|
1644
1645
|
type: "source";
|
|
1645
1646
|
mediaType: string;
|
|
1646
1647
|
sourceType: "document";
|
|
1647
|
-
title: string;
|
|
1648
1648
|
})[] | undefined;
|
|
1649
1649
|
warnings?: ({
|
|
1650
1650
|
details?: string | undefined;
|
|
@@ -1658,7 +1658,7 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
1658
1658
|
type: "other";
|
|
1659
1659
|
message: string;
|
|
1660
1660
|
})[] | undefined;
|
|
1661
|
-
finishReason?: "
|
|
1661
|
+
finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
1662
1662
|
reasoningDetails?: ({
|
|
1663
1663
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1664
1664
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1673,20 +1673,20 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
1673
1673
|
type: "redacted";
|
|
1674
1674
|
data: string;
|
|
1675
1675
|
})[] | undefined;
|
|
1676
|
-
|
|
1676
|
+
status: "pending" | "success" | "failed";
|
|
1677
|
+
order: number;
|
|
1677
1678
|
_creationTime: number;
|
|
1678
1679
|
threadId: string;
|
|
1679
|
-
order: number;
|
|
1680
1680
|
stepOrder: number;
|
|
1681
|
-
status: "pending" | "success" | "failed";
|
|
1682
1681
|
tool: boolean;
|
|
1682
|
+
_id: string;
|
|
1683
1683
|
}>>;
|
|
1684
1684
|
export declare const cloneMessageBatch: import("convex/server").RegisteredMutation<"internal", {
|
|
1685
1685
|
excludeToolMessages?: boolean | undefined;
|
|
1686
|
-
statuses?: ("pending" | "success" | "failed")[] | undefined;
|
|
1687
1686
|
copyUserIdForVectorSearch?: boolean | undefined;
|
|
1688
|
-
upToAndIncludingMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
1689
1687
|
insertAtOrder?: number | undefined;
|
|
1688
|
+
statuses?: ("pending" | "success" | "failed")[] | undefined;
|
|
1689
|
+
upToAndIncludingMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
1690
1690
|
paginationOpts: {
|
|
1691
1691
|
id?: number;
|
|
1692
1692
|
endCursor?: string | null;
|
|
@@ -1703,13 +1703,13 @@ export declare const cloneMessageBatch: import("convex/server").RegisteredMutati
|
|
|
1703
1703
|
isDone: boolean;
|
|
1704
1704
|
}>>;
|
|
1705
1705
|
export declare const cloneThread: import("convex/server").RegisteredAction<"public", {
|
|
1706
|
-
excludeToolMessages?: boolean | undefined;
|
|
1707
1706
|
limit?: number | undefined;
|
|
1708
|
-
|
|
1707
|
+
excludeToolMessages?: boolean | undefined;
|
|
1708
|
+
batchSize?: number | undefined;
|
|
1709
1709
|
copyUserIdForVectorSearch?: boolean | undefined;
|
|
1710
|
-
upToAndIncludingMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
1711
1710
|
insertAtOrder?: number | undefined;
|
|
1712
|
-
|
|
1711
|
+
statuses?: ("pending" | "success" | "failed")[] | undefined;
|
|
1712
|
+
upToAndIncludingMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
1713
1713
|
sourceThreadId: import("convex/values").GenericId<"threads">;
|
|
1714
1714
|
targetThreadId: import("convex/values").GenericId<"threads">;
|
|
1715
1715
|
}, Promise<number>>;
|
|
@@ -1738,7 +1738,6 @@ export declare const listMessagesByThreadIdArgs: {
|
|
|
1738
1738
|
};
|
|
1739
1739
|
export declare const listMessagesByThreadId: import("convex/server").RegisteredQuery<"public", {
|
|
1740
1740
|
excludeToolMessages?: boolean | undefined;
|
|
1741
|
-
statuses?: ("pending" | "success" | "failed")[] | undefined;
|
|
1742
1741
|
paginationOpts?: {
|
|
1743
1742
|
id?: number;
|
|
1744
1743
|
endCursor?: string | null;
|
|
@@ -1747,13 +1746,14 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
|
|
|
1747
1746
|
numItems: number;
|
|
1748
1747
|
cursor: string | null;
|
|
1749
1748
|
} | undefined;
|
|
1749
|
+
statuses?: ("pending" | "success" | "failed")[] | undefined;
|
|
1750
1750
|
upToAndIncludingMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
1751
|
-
threadId: import("convex/values").GenericId<"threads">;
|
|
1752
1751
|
order: "asc" | "desc";
|
|
1752
|
+
threadId: import("convex/values").GenericId<"threads">;
|
|
1753
1753
|
}, Promise<{
|
|
1754
1754
|
page: {
|
|
1755
|
-
userId?: string | undefined;
|
|
1756
1755
|
id?: string | undefined;
|
|
1756
|
+
userId?: string | undefined;
|
|
1757
1757
|
embeddingId?: string | undefined;
|
|
1758
1758
|
fileIds?: string[] | undefined;
|
|
1759
1759
|
error?: string | undefined;
|
|
@@ -1910,9 +1910,9 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
|
|
|
1910
1910
|
toolCallId: string;
|
|
1911
1911
|
toolName: string;
|
|
1912
1912
|
} | {
|
|
1913
|
+
title?: string | undefined;
|
|
1913
1914
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1914
1915
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1915
|
-
title?: string | undefined;
|
|
1916
1916
|
id: string;
|
|
1917
1917
|
type: "source";
|
|
1918
1918
|
url: string;
|
|
@@ -1922,10 +1922,10 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
|
|
|
1922
1922
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1923
1923
|
filename?: string | undefined;
|
|
1924
1924
|
id: string;
|
|
1925
|
+
title: string;
|
|
1925
1926
|
type: "source";
|
|
1926
1927
|
mediaType: string;
|
|
1927
1928
|
sourceType: "document";
|
|
1928
|
-
title: string;
|
|
1929
1929
|
} | {
|
|
1930
1930
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1931
1931
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2041,10 +2041,10 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
|
|
|
2041
2041
|
totalTokens: number;
|
|
2042
2042
|
} | undefined;
|
|
2043
2043
|
sources?: ({
|
|
2044
|
+
title?: string | undefined;
|
|
2044
2045
|
type?: "source" | undefined;
|
|
2045
2046
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2046
2047
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2047
|
-
title?: string | undefined;
|
|
2048
2048
|
id: string;
|
|
2049
2049
|
url: string;
|
|
2050
2050
|
sourceType: "url";
|
|
@@ -2053,10 +2053,10 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
|
|
|
2053
2053
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2054
2054
|
filename?: string | undefined;
|
|
2055
2055
|
id: string;
|
|
2056
|
+
title: string;
|
|
2056
2057
|
type: "source";
|
|
2057
2058
|
mediaType: string;
|
|
2058
2059
|
sourceType: "document";
|
|
2059
|
-
title: string;
|
|
2060
2060
|
})[] | undefined;
|
|
2061
2061
|
warnings?: ({
|
|
2062
2062
|
details?: string | undefined;
|
|
@@ -2070,7 +2070,7 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
|
|
|
2070
2070
|
type: "other";
|
|
2071
2071
|
message: string;
|
|
2072
2072
|
})[] | undefined;
|
|
2073
|
-
finishReason?: "
|
|
2073
|
+
finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
2074
2074
|
reasoningDetails?: ({
|
|
2075
2075
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2076
2076
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2085,13 +2085,13 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
|
|
|
2085
2085
|
type: "redacted";
|
|
2086
2086
|
data: string;
|
|
2087
2087
|
})[] | undefined;
|
|
2088
|
-
|
|
2088
|
+
status: "pending" | "success" | "failed";
|
|
2089
|
+
order: number;
|
|
2089
2090
|
_creationTime: number;
|
|
2090
2091
|
threadId: string;
|
|
2091
|
-
order: number;
|
|
2092
2092
|
stepOrder: number;
|
|
2093
|
-
status: "pending" | "success" | "failed";
|
|
2094
2093
|
tool: boolean;
|
|
2094
|
+
_id: string;
|
|
2095
2095
|
}[];
|
|
2096
2096
|
isDone: boolean;
|
|
2097
2097
|
continueCursor: import("convex/server").Cursor;
|
|
@@ -2101,8 +2101,8 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
|
|
|
2101
2101
|
export declare const getMessagesByIds: import("convex/server").RegisteredQuery<"public", {
|
|
2102
2102
|
messageIds: import("convex/values").GenericId<"messages">[];
|
|
2103
2103
|
}, Promise<({
|
|
2104
|
-
userId?: string | undefined;
|
|
2105
2104
|
id?: string | undefined;
|
|
2105
|
+
userId?: string | undefined;
|
|
2106
2106
|
embeddingId?: string | undefined;
|
|
2107
2107
|
fileIds?: string[] | undefined;
|
|
2108
2108
|
error?: string | undefined;
|
|
@@ -2259,9 +2259,9 @@ export declare const getMessagesByIds: import("convex/server").RegisteredQuery<"
|
|
|
2259
2259
|
toolCallId: string;
|
|
2260
2260
|
toolName: string;
|
|
2261
2261
|
} | {
|
|
2262
|
+
title?: string | undefined;
|
|
2262
2263
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2263
2264
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2264
|
-
title?: string | undefined;
|
|
2265
2265
|
id: string;
|
|
2266
2266
|
type: "source";
|
|
2267
2267
|
url: string;
|
|
@@ -2271,10 +2271,10 @@ export declare const getMessagesByIds: import("convex/server").RegisteredQuery<"
|
|
|
2271
2271
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2272
2272
|
filename?: string | undefined;
|
|
2273
2273
|
id: string;
|
|
2274
|
+
title: string;
|
|
2274
2275
|
type: "source";
|
|
2275
2276
|
mediaType: string;
|
|
2276
2277
|
sourceType: "document";
|
|
2277
|
-
title: string;
|
|
2278
2278
|
} | {
|
|
2279
2279
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2280
2280
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2390,10 +2390,10 @@ export declare const getMessagesByIds: import("convex/server").RegisteredQuery<"
|
|
|
2390
2390
|
totalTokens: number;
|
|
2391
2391
|
} | undefined;
|
|
2392
2392
|
sources?: ({
|
|
2393
|
+
title?: string | undefined;
|
|
2393
2394
|
type?: "source" | undefined;
|
|
2394
2395
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2395
2396
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2396
|
-
title?: string | undefined;
|
|
2397
2397
|
id: string;
|
|
2398
2398
|
url: string;
|
|
2399
2399
|
sourceType: "url";
|
|
@@ -2402,10 +2402,10 @@ export declare const getMessagesByIds: import("convex/server").RegisteredQuery<"
|
|
|
2402
2402
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2403
2403
|
filename?: string | undefined;
|
|
2404
2404
|
id: string;
|
|
2405
|
+
title: string;
|
|
2405
2406
|
type: "source";
|
|
2406
2407
|
mediaType: string;
|
|
2407
2408
|
sourceType: "document";
|
|
2408
|
-
title: string;
|
|
2409
2409
|
})[] | undefined;
|
|
2410
2410
|
warnings?: ({
|
|
2411
2411
|
details?: string | undefined;
|
|
@@ -2419,7 +2419,7 @@ export declare const getMessagesByIds: import("convex/server").RegisteredQuery<"
|
|
|
2419
2419
|
type: "other";
|
|
2420
2420
|
message: string;
|
|
2421
2421
|
})[] | undefined;
|
|
2422
|
-
finishReason?: "
|
|
2422
|
+
finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
2423
2423
|
reasoningDetails?: ({
|
|
2424
2424
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2425
2425
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2434,13 +2434,13 @@ export declare const getMessagesByIds: import("convex/server").RegisteredQuery<"
|
|
|
2434
2434
|
type: "redacted";
|
|
2435
2435
|
data: string;
|
|
2436
2436
|
})[] | undefined;
|
|
2437
|
-
|
|
2437
|
+
status: "pending" | "success" | "failed";
|
|
2438
|
+
order: number;
|
|
2438
2439
|
_creationTime: number;
|
|
2439
2440
|
threadId: string;
|
|
2440
|
-
order: number;
|
|
2441
2441
|
stepOrder: number;
|
|
2442
|
-
status: "pending" | "success" | "failed";
|
|
2443
2442
|
tool: boolean;
|
|
2443
|
+
_id: string;
|
|
2444
2444
|
} | null)[]>>;
|
|
2445
2445
|
export declare const searchMessages: import("convex/server").RegisteredAction<"public", {
|
|
2446
2446
|
threadId?: import("convex/values").GenericId<"threads"> | undefined;
|
|
@@ -2452,14 +2452,14 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
|
|
|
2452
2452
|
before: number;
|
|
2453
2453
|
after: number;
|
|
2454
2454
|
} | undefined;
|
|
2455
|
-
embeddingModel?: string | undefined;
|
|
2456
2455
|
embedding?: number[] | undefined;
|
|
2456
|
+
embeddingModel?: string | undefined;
|
|
2457
2457
|
searchAllMessagesForUserId?: string | undefined;
|
|
2458
2458
|
targetMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
2459
2459
|
limit: number;
|
|
2460
2460
|
}, Promise<{
|
|
2461
|
-
userId?: string | undefined;
|
|
2462
2461
|
id?: string | undefined;
|
|
2462
|
+
userId?: string | undefined;
|
|
2463
2463
|
embeddingId?: string | undefined;
|
|
2464
2464
|
fileIds?: string[] | undefined;
|
|
2465
2465
|
error?: string | undefined;
|
|
@@ -2616,9 +2616,9 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
|
|
|
2616
2616
|
toolCallId: string;
|
|
2617
2617
|
toolName: string;
|
|
2618
2618
|
} | {
|
|
2619
|
+
title?: string | undefined;
|
|
2619
2620
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2620
2621
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2621
|
-
title?: string | undefined;
|
|
2622
2622
|
id: string;
|
|
2623
2623
|
type: "source";
|
|
2624
2624
|
url: string;
|
|
@@ -2628,10 +2628,10 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
|
|
|
2628
2628
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2629
2629
|
filename?: string | undefined;
|
|
2630
2630
|
id: string;
|
|
2631
|
+
title: string;
|
|
2631
2632
|
type: "source";
|
|
2632
2633
|
mediaType: string;
|
|
2633
2634
|
sourceType: "document";
|
|
2634
|
-
title: string;
|
|
2635
2635
|
} | {
|
|
2636
2636
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2637
2637
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2747,10 +2747,10 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
|
|
|
2747
2747
|
totalTokens: number;
|
|
2748
2748
|
} | undefined;
|
|
2749
2749
|
sources?: ({
|
|
2750
|
+
title?: string | undefined;
|
|
2750
2751
|
type?: "source" | undefined;
|
|
2751
2752
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2752
2753
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2753
|
-
title?: string | undefined;
|
|
2754
2754
|
id: string;
|
|
2755
2755
|
url: string;
|
|
2756
2756
|
sourceType: "url";
|
|
@@ -2759,10 +2759,10 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
|
|
|
2759
2759
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2760
2760
|
filename?: string | undefined;
|
|
2761
2761
|
id: string;
|
|
2762
|
+
title: string;
|
|
2762
2763
|
type: "source";
|
|
2763
2764
|
mediaType: string;
|
|
2764
2765
|
sourceType: "document";
|
|
2765
|
-
title: string;
|
|
2766
2766
|
})[] | undefined;
|
|
2767
2767
|
warnings?: ({
|
|
2768
2768
|
details?: string | undefined;
|
|
@@ -2776,7 +2776,7 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
|
|
|
2776
2776
|
type: "other";
|
|
2777
2777
|
message: string;
|
|
2778
2778
|
})[] | undefined;
|
|
2779
|
-
finishReason?: "
|
|
2779
|
+
finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
2780
2780
|
reasoningDetails?: ({
|
|
2781
2781
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2782
2782
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2791,20 +2791,20 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
|
|
|
2791
2791
|
type: "redacted";
|
|
2792
2792
|
data: string;
|
|
2793
2793
|
})[] | undefined;
|
|
2794
|
-
|
|
2794
|
+
status: "pending" | "success" | "failed";
|
|
2795
|
+
order: number;
|
|
2795
2796
|
_creationTime: number;
|
|
2796
2797
|
threadId: string;
|
|
2797
|
-
order: number;
|
|
2798
2798
|
stepOrder: number;
|
|
2799
|
-
status: "pending" | "success" | "failed";
|
|
2800
2799
|
tool: boolean;
|
|
2800
|
+
_id: string;
|
|
2801
2801
|
}[]>>;
|
|
2802
2802
|
export declare const _fetchSearchMessages: import("convex/server").RegisteredQuery<"internal", {
|
|
2803
2803
|
threadId?: import("convex/values").GenericId<"threads"> | undefined;
|
|
2804
2804
|
searchAllMessagesForUserId?: string | undefined;
|
|
2805
2805
|
textSearchMessages?: {
|
|
2806
|
-
userId?: string | undefined;
|
|
2807
2806
|
id?: string | undefined;
|
|
2807
|
+
userId?: string | undefined;
|
|
2808
2808
|
embeddingId?: string | undefined;
|
|
2809
2809
|
fileIds?: string[] | undefined;
|
|
2810
2810
|
error?: string | undefined;
|
|
@@ -2961,9 +2961,9 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
2961
2961
|
toolCallId: string;
|
|
2962
2962
|
toolName: string;
|
|
2963
2963
|
} | {
|
|
2964
|
+
title?: string | undefined;
|
|
2964
2965
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2965
2966
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2966
|
-
title?: string | undefined;
|
|
2967
2967
|
id: string;
|
|
2968
2968
|
type: "source";
|
|
2969
2969
|
url: string;
|
|
@@ -2973,10 +2973,10 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
2973
2973
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2974
2974
|
filename?: string | undefined;
|
|
2975
2975
|
id: string;
|
|
2976
|
+
title: string;
|
|
2976
2977
|
type: "source";
|
|
2977
2978
|
mediaType: string;
|
|
2978
2979
|
sourceType: "document";
|
|
2979
|
-
title: string;
|
|
2980
2980
|
} | {
|
|
2981
2981
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2982
2982
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -3092,10 +3092,10 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
3092
3092
|
totalTokens: number;
|
|
3093
3093
|
} | undefined;
|
|
3094
3094
|
sources?: ({
|
|
3095
|
+
title?: string | undefined;
|
|
3095
3096
|
type?: "source" | undefined;
|
|
3096
3097
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3097
3098
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3098
|
-
title?: string | undefined;
|
|
3099
3099
|
id: string;
|
|
3100
3100
|
url: string;
|
|
3101
3101
|
sourceType: "url";
|
|
@@ -3104,10 +3104,10 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
3104
3104
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3105
3105
|
filename?: string | undefined;
|
|
3106
3106
|
id: string;
|
|
3107
|
+
title: string;
|
|
3107
3108
|
type: "source";
|
|
3108
3109
|
mediaType: string;
|
|
3109
3110
|
sourceType: "document";
|
|
3110
|
-
title: string;
|
|
3111
3111
|
})[] | undefined;
|
|
3112
3112
|
warnings?: ({
|
|
3113
3113
|
details?: string | undefined;
|
|
@@ -3121,7 +3121,7 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
3121
3121
|
type: "other";
|
|
3122
3122
|
message: string;
|
|
3123
3123
|
})[] | undefined;
|
|
3124
|
-
finishReason?: "
|
|
3124
|
+
finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
3125
3125
|
reasoningDetails?: ({
|
|
3126
3126
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3127
3127
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -3136,13 +3136,13 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
3136
3136
|
type: "redacted";
|
|
3137
3137
|
data: string;
|
|
3138
3138
|
})[] | undefined;
|
|
3139
|
-
|
|
3139
|
+
status: "pending" | "success" | "failed";
|
|
3140
|
+
order: number;
|
|
3140
3141
|
_creationTime: number;
|
|
3141
3142
|
threadId: string;
|
|
3142
|
-
order: number;
|
|
3143
3143
|
stepOrder: number;
|
|
3144
|
-
status: "pending" | "success" | "failed";
|
|
3145
3144
|
tool: boolean;
|
|
3145
|
+
_id: string;
|
|
3146
3146
|
}[] | undefined;
|
|
3147
3147
|
beforeMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
3148
3148
|
limit: number;
|
|
@@ -3152,8 +3152,8 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
3152
3152
|
};
|
|
3153
3153
|
embeddingIds: import("convex/values").GenericId<"embeddings_128" | "embeddings_256" | "embeddings_512" | "embeddings_768" | "embeddings_1024" | "embeddings_1408" | "embeddings_1536" | "embeddings_2048" | "embeddings_3072" | "embeddings_4096">[];
|
|
3154
3154
|
}, Promise<{
|
|
3155
|
-
userId?: string | undefined;
|
|
3156
3155
|
id?: string | undefined;
|
|
3156
|
+
userId?: string | undefined;
|
|
3157
3157
|
embeddingId?: string | undefined;
|
|
3158
3158
|
fileIds?: string[] | undefined;
|
|
3159
3159
|
error?: string | undefined;
|
|
@@ -3310,9 +3310,9 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
3310
3310
|
toolCallId: string;
|
|
3311
3311
|
toolName: string;
|
|
3312
3312
|
} | {
|
|
3313
|
+
title?: string | undefined;
|
|
3313
3314
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3314
3315
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3315
|
-
title?: string | undefined;
|
|
3316
3316
|
id: string;
|
|
3317
3317
|
type: "source";
|
|
3318
3318
|
url: string;
|
|
@@ -3322,10 +3322,10 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
3322
3322
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3323
3323
|
filename?: string | undefined;
|
|
3324
3324
|
id: string;
|
|
3325
|
+
title: string;
|
|
3325
3326
|
type: "source";
|
|
3326
3327
|
mediaType: string;
|
|
3327
3328
|
sourceType: "document";
|
|
3328
|
-
title: string;
|
|
3329
3329
|
} | {
|
|
3330
3330
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3331
3331
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -3441,10 +3441,10 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
3441
3441
|
totalTokens: number;
|
|
3442
3442
|
} | undefined;
|
|
3443
3443
|
sources?: ({
|
|
3444
|
+
title?: string | undefined;
|
|
3444
3445
|
type?: "source" | undefined;
|
|
3445
3446
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3446
3447
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3447
|
-
title?: string | undefined;
|
|
3448
3448
|
id: string;
|
|
3449
3449
|
url: string;
|
|
3450
3450
|
sourceType: "url";
|
|
@@ -3453,10 +3453,10 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
3453
3453
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3454
3454
|
filename?: string | undefined;
|
|
3455
3455
|
id: string;
|
|
3456
|
+
title: string;
|
|
3456
3457
|
type: "source";
|
|
3457
3458
|
mediaType: string;
|
|
3458
3459
|
sourceType: "document";
|
|
3459
|
-
title: string;
|
|
3460
3460
|
})[] | undefined;
|
|
3461
3461
|
warnings?: ({
|
|
3462
3462
|
details?: string | undefined;
|
|
@@ -3470,7 +3470,7 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
3470
3470
|
type: "other";
|
|
3471
3471
|
message: string;
|
|
3472
3472
|
})[] | undefined;
|
|
3473
|
-
finishReason?: "
|
|
3473
|
+
finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
3474
3474
|
reasoningDetails?: ({
|
|
3475
3475
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3476
3476
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -3485,13 +3485,13 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
3485
3485
|
type: "redacted";
|
|
3486
3486
|
data: string;
|
|
3487
3487
|
})[] | undefined;
|
|
3488
|
-
|
|
3488
|
+
status: "pending" | "success" | "failed";
|
|
3489
|
+
order: number;
|
|
3489
3490
|
_creationTime: number;
|
|
3490
3491
|
threadId: string;
|
|
3491
|
-
order: number;
|
|
3492
3492
|
stepOrder: number;
|
|
3493
|
-
status: "pending" | "success" | "failed";
|
|
3494
3493
|
tool: boolean;
|
|
3494
|
+
_id: string;
|
|
3495
3495
|
}[]>>;
|
|
3496
3496
|
export declare const textSearch: import("convex/server").RegisteredQuery<"public", {
|
|
3497
3497
|
threadId?: import("convex/values").GenericId<"threads"> | undefined;
|
|
@@ -3500,8 +3500,8 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
|
|
|
3500
3500
|
targetMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
3501
3501
|
limit: number;
|
|
3502
3502
|
}, Promise<{
|
|
3503
|
-
userId?: string | undefined;
|
|
3504
3503
|
id?: string | undefined;
|
|
3504
|
+
userId?: string | undefined;
|
|
3505
3505
|
embeddingId?: string | undefined;
|
|
3506
3506
|
fileIds?: string[] | undefined;
|
|
3507
3507
|
error?: string | undefined;
|
|
@@ -3658,9 +3658,9 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
|
|
|
3658
3658
|
toolCallId: string;
|
|
3659
3659
|
toolName: string;
|
|
3660
3660
|
} | {
|
|
3661
|
+
title?: string | undefined;
|
|
3661
3662
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3662
3663
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3663
|
-
title?: string | undefined;
|
|
3664
3664
|
id: string;
|
|
3665
3665
|
type: "source";
|
|
3666
3666
|
url: string;
|
|
@@ -3670,10 +3670,10 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
|
|
|
3670
3670
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3671
3671
|
filename?: string | undefined;
|
|
3672
3672
|
id: string;
|
|
3673
|
+
title: string;
|
|
3673
3674
|
type: "source";
|
|
3674
3675
|
mediaType: string;
|
|
3675
3676
|
sourceType: "document";
|
|
3676
|
-
title: string;
|
|
3677
3677
|
} | {
|
|
3678
3678
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3679
3679
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -3789,10 +3789,10 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
|
|
|
3789
3789
|
totalTokens: number;
|
|
3790
3790
|
} | undefined;
|
|
3791
3791
|
sources?: ({
|
|
3792
|
+
title?: string | undefined;
|
|
3792
3793
|
type?: "source" | undefined;
|
|
3793
3794
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3794
3795
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3795
|
-
title?: string | undefined;
|
|
3796
3796
|
id: string;
|
|
3797
3797
|
url: string;
|
|
3798
3798
|
sourceType: "url";
|
|
@@ -3801,10 +3801,10 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
|
|
|
3801
3801
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3802
3802
|
filename?: string | undefined;
|
|
3803
3803
|
id: string;
|
|
3804
|
+
title: string;
|
|
3804
3805
|
type: "source";
|
|
3805
3806
|
mediaType: string;
|
|
3806
3807
|
sourceType: "document";
|
|
3807
|
-
title: string;
|
|
3808
3808
|
})[] | undefined;
|
|
3809
3809
|
warnings?: ({
|
|
3810
3810
|
details?: string | undefined;
|
|
@@ -3818,7 +3818,7 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
|
|
|
3818
3818
|
type: "other";
|
|
3819
3819
|
message: string;
|
|
3820
3820
|
})[] | undefined;
|
|
3821
|
-
finishReason?: "
|
|
3821
|
+
finishReason?: "error" | "length" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
3822
3822
|
reasoningDetails?: ({
|
|
3823
3823
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3824
3824
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -3833,13 +3833,13 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
|
|
|
3833
3833
|
type: "redacted";
|
|
3834
3834
|
data: string;
|
|
3835
3835
|
})[] | undefined;
|
|
3836
|
-
|
|
3836
|
+
status: "pending" | "success" | "failed";
|
|
3837
|
+
order: number;
|
|
3837
3838
|
_creationTime: number;
|
|
3838
3839
|
threadId: string;
|
|
3839
|
-
order: number;
|
|
3840
3840
|
stepOrder: number;
|
|
3841
|
-
status: "pending" | "success" | "failed";
|
|
3842
3841
|
tool: boolean;
|
|
3842
|
+
_id: string;
|
|
3843
3843
|
}[]>>;
|
|
3844
3844
|
export declare const getMessageSearchFields: import("convex/server").RegisteredQuery<"public", {
|
|
3845
3845
|
messageId: import("convex/values").GenericId<"messages">;
|