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