@convex-dev/agent 0.2.10 → 0.2.11-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/UIMessages.d.ts.map +1 -1
- package/dist/UIMessages.js +2 -7
- package/dist/UIMessages.js.map +1 -1
- package/dist/client/definePlaygroundAPI.d.ts +42 -42
- package/dist/client/files.d.ts +2 -2
- package/dist/client/files.d.ts.map +1 -1
- package/dist/client/files.js.map +1 -1
- package/dist/client/index.d.ts +58 -58
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +1 -1
- package/dist/client/index.js.map +1 -1
- package/dist/client/messages.d.ts +15 -15
- package/dist/client/messages.d.ts.map +1 -1
- package/dist/client/messages.js.map +1 -1
- package/dist/client/saveInputMessages.d.ts +2 -2
- package/dist/client/saveInputMessages.d.ts.map +1 -1
- package/dist/client/saveInputMessages.js.map +1 -1
- package/dist/client/search.d.ts +17 -17
- package/dist/client/search.d.ts.map +1 -1
- package/dist/client/search.js +4 -13
- package/dist/client/search.js.map +1 -1
- package/dist/client/streaming.d.ts +95 -95
- package/dist/client/streaming.d.ts.map +1 -1
- package/dist/client/streaming.js.map +1 -1
- package/dist/client/threads.d.ts +5 -5
- package/dist/client/threads.d.ts.map +1 -1
- package/dist/client/threads.js.map +1 -1
- package/dist/client/types.d.ts +6 -8
- package/dist/client/types.d.ts.map +1 -1
- package/dist/component/messages.d.ts +113 -113
- package/dist/component/streams.d.ts +7 -7
- package/dist/component/threads.d.ts +7 -7
- package/dist/component/users.d.ts +3 -3
- package/dist/deltas.d.ts.map +1 -1
- package/dist/deltas.js +6 -17
- package/dist/deltas.js.map +1 -1
- package/dist/mapping.d.ts +5 -4
- package/dist/mapping.d.ts.map +1 -1
- package/dist/mapping.js +7 -0
- package/dist/mapping.js.map +1 -1
- package/dist/shared.d.ts +4 -2
- package/dist/shared.d.ts.map +1 -1
- package/dist/shared.js +10 -10
- package/dist/shared.js.map +1 -1
- package/dist/validators.d.ts +1 -0
- package/dist/validators.d.ts.map +1 -1
- package/dist/validators.js.map +1 -1
- package/package.json +1 -1
- package/src/UIMessages.ts +8 -8
- package/src/client/files.ts +2 -2
- package/src/client/index.ts +22 -22
- package/src/client/messages.ts +10 -5
- package/src/client/saveInputMessages.test.ts +13 -5
- package/src/client/saveInputMessages.ts +3 -3
- package/src/client/search.test.ts +19 -15
- package/src/client/search.ts +20 -28
- package/src/client/streaming.ts +7 -6
- package/src/client/threads.ts +10 -5
- package/src/client/types.ts +6 -8
- package/src/deltas.test.ts +24 -14
- package/src/deltas.ts +6 -17
- package/src/mapping.ts +12 -3
- package/src/shared.ts +37 -12
- package/src/toUIMessages.test.ts +77 -2
- package/src/validators.ts +10 -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,18 +20,17 @@ 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;
|
|
23
24
|
embeddings?: {
|
|
24
25
|
model: string;
|
|
25
|
-
dimension: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
26
26
|
vectors: (number[] | null)[];
|
|
27
|
+
dimension: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
|
|
27
28
|
} | undefined;
|
|
28
|
-
failPendingSteps?: boolean | undefined;
|
|
29
29
|
pendingMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
30
|
-
threadId: import("convex/values").GenericId<"threads">;
|
|
31
30
|
messages: {
|
|
32
|
-
status?: "pending" | "success" | "failed" | undefined;
|
|
33
31
|
fileIds?: import("convex/values").GenericId<"files">[] | undefined;
|
|
34
32
|
error?: string | undefined;
|
|
33
|
+
status?: "pending" | "success" | "failed" | undefined;
|
|
35
34
|
model?: string | undefined;
|
|
36
35
|
provider?: string | undefined;
|
|
37
36
|
text?: string | undefined;
|
|
@@ -45,10 +44,10 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
45
44
|
totalTokens: number;
|
|
46
45
|
} | undefined;
|
|
47
46
|
sources?: ({
|
|
48
|
-
title?: string | undefined;
|
|
49
47
|
type?: "source" | undefined;
|
|
50
48
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
51
49
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
50
|
+
title?: string | undefined;
|
|
52
51
|
id: string;
|
|
53
52
|
sourceType: "url";
|
|
54
53
|
url: string;
|
|
@@ -56,11 +55,11 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
56
55
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
57
56
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
58
57
|
filename?: string | undefined;
|
|
59
|
-
id: string;
|
|
60
|
-
title: string;
|
|
61
58
|
type: "source";
|
|
59
|
+
id: string;
|
|
62
60
|
mediaType: string;
|
|
63
61
|
sourceType: "document";
|
|
62
|
+
title: string;
|
|
64
63
|
})[] | undefined;
|
|
65
64
|
warnings?: ({
|
|
66
65
|
details?: string | undefined;
|
|
@@ -186,22 +185,22 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
186
185
|
toolCallId: string;
|
|
187
186
|
toolName: string;
|
|
188
187
|
} | {
|
|
189
|
-
title?: string | undefined;
|
|
190
188
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
191
189
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
192
|
-
|
|
190
|
+
title?: string | undefined;
|
|
193
191
|
type: "source";
|
|
192
|
+
id: string;
|
|
194
193
|
sourceType: "url";
|
|
195
194
|
url: string;
|
|
196
195
|
} | {
|
|
197
196
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
198
197
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
199
198
|
filename?: string | undefined;
|
|
200
|
-
id: string;
|
|
201
|
-
title: string;
|
|
202
199
|
type: "source";
|
|
200
|
+
id: string;
|
|
203
201
|
mediaType: string;
|
|
204
202
|
sourceType: "document";
|
|
203
|
+
title: string;
|
|
205
204
|
})[];
|
|
206
205
|
} | {
|
|
207
206
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -254,10 +253,11 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
254
253
|
content: string;
|
|
255
254
|
};
|
|
256
255
|
}[];
|
|
256
|
+
threadId: import("convex/values").GenericId<"threads">;
|
|
257
257
|
}, Promise<{
|
|
258
258
|
messages: {
|
|
259
|
-
id?: string | undefined;
|
|
260
259
|
userId?: string | undefined;
|
|
260
|
+
id?: string | undefined;
|
|
261
261
|
embeddingId?: string | undefined;
|
|
262
262
|
fileIds?: string[] | undefined;
|
|
263
263
|
error?: string | undefined;
|
|
@@ -362,22 +362,22 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
362
362
|
toolCallId: string;
|
|
363
363
|
toolName: string;
|
|
364
364
|
} | {
|
|
365
|
-
title?: string | undefined;
|
|
366
365
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
367
366
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
368
|
-
|
|
367
|
+
title?: string | undefined;
|
|
369
368
|
type: "source";
|
|
369
|
+
id: string;
|
|
370
370
|
sourceType: "url";
|
|
371
371
|
url: string;
|
|
372
372
|
} | {
|
|
373
373
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
374
374
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
375
375
|
filename?: string | undefined;
|
|
376
|
-
id: string;
|
|
377
|
-
title: string;
|
|
378
376
|
type: "source";
|
|
377
|
+
id: string;
|
|
379
378
|
mediaType: string;
|
|
380
379
|
sourceType: "document";
|
|
380
|
+
title: string;
|
|
381
381
|
})[];
|
|
382
382
|
} | {
|
|
383
383
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -440,10 +440,10 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
440
440
|
totalTokens: number;
|
|
441
441
|
} | undefined;
|
|
442
442
|
sources?: ({
|
|
443
|
-
title?: string | undefined;
|
|
444
443
|
type?: "source" | undefined;
|
|
445
444
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
446
445
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
446
|
+
title?: string | undefined;
|
|
447
447
|
id: string;
|
|
448
448
|
sourceType: "url";
|
|
449
449
|
url: string;
|
|
@@ -451,11 +451,11 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
451
451
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
452
452
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
453
453
|
filename?: string | undefined;
|
|
454
|
-
id: string;
|
|
455
|
-
title: string;
|
|
456
454
|
type: "source";
|
|
455
|
+
id: string;
|
|
457
456
|
mediaType: string;
|
|
458
457
|
sourceType: "document";
|
|
458
|
+
title: string;
|
|
459
459
|
})[] | undefined;
|
|
460
460
|
warnings?: ({
|
|
461
461
|
details?: string | undefined;
|
|
@@ -486,21 +486,20 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
486
486
|
})[] | undefined;
|
|
487
487
|
_id: string;
|
|
488
488
|
_creationTime: number;
|
|
489
|
-
status: "pending" | "success" | "failed";
|
|
490
|
-
order: number;
|
|
491
489
|
threadId: string;
|
|
490
|
+
order: number;
|
|
492
491
|
stepOrder: number;
|
|
492
|
+
status: "pending" | "success" | "failed";
|
|
493
493
|
tool: boolean;
|
|
494
494
|
}[];
|
|
495
495
|
}>>;
|
|
496
496
|
export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, order?: number): Promise<{
|
|
497
497
|
_id: import("convex/values").GenericId<"messages">;
|
|
498
498
|
_creationTime: number;
|
|
499
|
-
id?: string | undefined;
|
|
500
499
|
userId?: string | undefined;
|
|
500
|
+
id?: string | undefined;
|
|
501
501
|
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;
|
|
502
502
|
fileIds?: import("convex/values").GenericId<"files">[] | undefined;
|
|
503
|
-
files?: any[] | undefined;
|
|
504
503
|
error?: string | undefined;
|
|
505
504
|
agentName?: string | undefined;
|
|
506
505
|
model?: string | undefined;
|
|
@@ -603,22 +602,22 @@ export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, or
|
|
|
603
602
|
toolCallId: string;
|
|
604
603
|
toolName: string;
|
|
605
604
|
} | {
|
|
606
|
-
title?: string | undefined;
|
|
607
605
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
608
606
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
609
|
-
|
|
607
|
+
title?: string | undefined;
|
|
610
608
|
type: "source";
|
|
609
|
+
id: string;
|
|
611
610
|
sourceType: "url";
|
|
612
611
|
url: string;
|
|
613
612
|
} | {
|
|
614
613
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
615
614
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
616
615
|
filename?: string | undefined;
|
|
617
|
-
id: string;
|
|
618
|
-
title: string;
|
|
619
616
|
type: "source";
|
|
617
|
+
id: string;
|
|
620
618
|
mediaType: string;
|
|
621
619
|
sourceType: "document";
|
|
620
|
+
title: string;
|
|
622
621
|
})[];
|
|
623
622
|
} | {
|
|
624
623
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -681,10 +680,10 @@ export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, or
|
|
|
681
680
|
totalTokens: number;
|
|
682
681
|
} | undefined;
|
|
683
682
|
sources?: ({
|
|
684
|
-
title?: string | undefined;
|
|
685
683
|
type?: "source" | undefined;
|
|
686
684
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
687
685
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
686
|
+
title?: string | undefined;
|
|
688
687
|
id: string;
|
|
689
688
|
sourceType: "url";
|
|
690
689
|
url: string;
|
|
@@ -692,11 +691,11 @@ export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, or
|
|
|
692
691
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
693
692
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
694
693
|
filename?: string | undefined;
|
|
695
|
-
id: string;
|
|
696
|
-
title: string;
|
|
697
694
|
type: "source";
|
|
695
|
+
id: string;
|
|
698
696
|
mediaType: string;
|
|
699
697
|
sourceType: "document";
|
|
698
|
+
title: string;
|
|
700
699
|
})[] | undefined;
|
|
701
700
|
warnings?: ({
|
|
702
701
|
details?: string | undefined;
|
|
@@ -725,29 +724,29 @@ export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, or
|
|
|
725
724
|
type: "redacted";
|
|
726
725
|
data: string;
|
|
727
726
|
})[] | undefined;
|
|
727
|
+
files?: any[] | undefined;
|
|
728
728
|
parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
729
729
|
stepId?: string | undefined;
|
|
730
|
-
status: "pending" | "success" | "failed";
|
|
731
|
-
order: number;
|
|
732
730
|
threadId: import("convex/values").GenericId<"threads">;
|
|
731
|
+
order: number;
|
|
733
732
|
stepOrder: number;
|
|
733
|
+
status: "pending" | "success" | "failed";
|
|
734
734
|
tool: boolean;
|
|
735
735
|
} | null>;
|
|
736
736
|
export declare const finalizeMessage: import("convex/server").RegisteredMutation<"public", {
|
|
737
737
|
result: {
|
|
738
738
|
status: "success";
|
|
739
739
|
} | {
|
|
740
|
-
status: "failed";
|
|
741
740
|
error: string;
|
|
741
|
+
status: "failed";
|
|
742
742
|
};
|
|
743
743
|
messageId: import("convex/values").GenericId<"messages">;
|
|
744
744
|
}, Promise<void>>;
|
|
745
745
|
export declare const updateMessage: import("convex/server").RegisteredMutation<"public", {
|
|
746
|
-
messageId: import("convex/values").GenericId<"messages">;
|
|
747
746
|
patch: {
|
|
748
|
-
status?: "pending" | "success" | "failed" | undefined;
|
|
749
747
|
fileIds?: import("convex/values").GenericId<"files">[] | undefined;
|
|
750
748
|
error?: string | undefined;
|
|
749
|
+
status?: "pending" | "success" | "failed" | undefined;
|
|
751
750
|
model?: string | undefined;
|
|
752
751
|
provider?: string | undefined;
|
|
753
752
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -848,22 +847,22 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
848
847
|
toolCallId: string;
|
|
849
848
|
toolName: string;
|
|
850
849
|
} | {
|
|
851
|
-
title?: string | undefined;
|
|
852
850
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
853
851
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
854
|
-
|
|
852
|
+
title?: string | undefined;
|
|
855
853
|
type: "source";
|
|
854
|
+
id: string;
|
|
856
855
|
sourceType: "url";
|
|
857
856
|
url: string;
|
|
858
857
|
} | {
|
|
859
858
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
860
859
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
861
860
|
filename?: string | undefined;
|
|
862
|
-
id: string;
|
|
863
|
-
title: string;
|
|
864
861
|
type: "source";
|
|
862
|
+
id: string;
|
|
865
863
|
mediaType: string;
|
|
866
864
|
sourceType: "document";
|
|
865
|
+
title: string;
|
|
867
866
|
})[];
|
|
868
867
|
} | {
|
|
869
868
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -917,9 +916,10 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
917
916
|
} | undefined;
|
|
918
917
|
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
919
918
|
};
|
|
919
|
+
messageId: import("convex/values").GenericId<"messages">;
|
|
920
920
|
}, Promise<{
|
|
921
|
-
id?: string | undefined;
|
|
922
921
|
userId?: string | undefined;
|
|
922
|
+
id?: string | undefined;
|
|
923
923
|
embeddingId?: string | undefined;
|
|
924
924
|
fileIds?: string[] | undefined;
|
|
925
925
|
error?: string | undefined;
|
|
@@ -1024,22 +1024,22 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
1024
1024
|
toolCallId: string;
|
|
1025
1025
|
toolName: string;
|
|
1026
1026
|
} | {
|
|
1027
|
-
title?: string | undefined;
|
|
1028
1027
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1029
1028
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1030
|
-
|
|
1029
|
+
title?: string | undefined;
|
|
1031
1030
|
type: "source";
|
|
1031
|
+
id: string;
|
|
1032
1032
|
sourceType: "url";
|
|
1033
1033
|
url: string;
|
|
1034
1034
|
} | {
|
|
1035
1035
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1036
1036
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1037
1037
|
filename?: string | undefined;
|
|
1038
|
-
id: string;
|
|
1039
|
-
title: string;
|
|
1040
1038
|
type: "source";
|
|
1039
|
+
id: string;
|
|
1041
1040
|
mediaType: string;
|
|
1042
1041
|
sourceType: "document";
|
|
1042
|
+
title: string;
|
|
1043
1043
|
})[];
|
|
1044
1044
|
} | {
|
|
1045
1045
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1102,10 +1102,10 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
1102
1102
|
totalTokens: number;
|
|
1103
1103
|
} | undefined;
|
|
1104
1104
|
sources?: ({
|
|
1105
|
-
title?: string | undefined;
|
|
1106
1105
|
type?: "source" | undefined;
|
|
1107
1106
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1108
1107
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1108
|
+
title?: string | undefined;
|
|
1109
1109
|
id: string;
|
|
1110
1110
|
sourceType: "url";
|
|
1111
1111
|
url: string;
|
|
@@ -1113,11 +1113,11 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
1113
1113
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1114
1114
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1115
1115
|
filename?: string | undefined;
|
|
1116
|
-
id: string;
|
|
1117
|
-
title: string;
|
|
1118
1116
|
type: "source";
|
|
1117
|
+
id: string;
|
|
1119
1118
|
mediaType: string;
|
|
1120
1119
|
sourceType: "document";
|
|
1120
|
+
title: string;
|
|
1121
1121
|
})[] | undefined;
|
|
1122
1122
|
warnings?: ({
|
|
1123
1123
|
details?: string | undefined;
|
|
@@ -1148,14 +1148,15 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
1148
1148
|
})[] | undefined;
|
|
1149
1149
|
_id: string;
|
|
1150
1150
|
_creationTime: number;
|
|
1151
|
-
status: "pending" | "success" | "failed";
|
|
1152
|
-
order: number;
|
|
1153
1151
|
threadId: string;
|
|
1152
|
+
order: number;
|
|
1154
1153
|
stepOrder: number;
|
|
1154
|
+
status: "pending" | "success" | "failed";
|
|
1155
1155
|
tool: boolean;
|
|
1156
1156
|
}>>;
|
|
1157
1157
|
export declare const listMessagesByThreadId: import("convex/server").RegisteredQuery<"public", {
|
|
1158
1158
|
excludeToolMessages?: boolean | undefined;
|
|
1159
|
+
statuses?: ("pending" | "success" | "failed")[] | undefined;
|
|
1159
1160
|
paginationOpts?: {
|
|
1160
1161
|
id?: number | undefined;
|
|
1161
1162
|
endCursor?: string | null | undefined;
|
|
@@ -1164,14 +1165,13 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
|
|
|
1164
1165
|
numItems: number;
|
|
1165
1166
|
cursor: string | null;
|
|
1166
1167
|
} | undefined;
|
|
1167
|
-
statuses?: ("pending" | "success" | "failed")[] | undefined;
|
|
1168
1168
|
upToAndIncludingMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
1169
|
-
order: "asc" | "desc";
|
|
1170
1169
|
threadId: import("convex/values").GenericId<"threads">;
|
|
1170
|
+
order: "asc" | "desc";
|
|
1171
1171
|
}, Promise<{
|
|
1172
1172
|
page: {
|
|
1173
|
-
id?: string | undefined;
|
|
1174
1173
|
userId?: string | undefined;
|
|
1174
|
+
id?: string | undefined;
|
|
1175
1175
|
embeddingId?: string | undefined;
|
|
1176
1176
|
fileIds?: string[] | undefined;
|
|
1177
1177
|
error?: string | undefined;
|
|
@@ -1276,22 +1276,22 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
|
|
|
1276
1276
|
toolCallId: string;
|
|
1277
1277
|
toolName: string;
|
|
1278
1278
|
} | {
|
|
1279
|
-
title?: string | undefined;
|
|
1280
1279
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1281
1280
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1282
|
-
|
|
1281
|
+
title?: string | undefined;
|
|
1283
1282
|
type: "source";
|
|
1283
|
+
id: string;
|
|
1284
1284
|
sourceType: "url";
|
|
1285
1285
|
url: string;
|
|
1286
1286
|
} | {
|
|
1287
1287
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1288
1288
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1289
1289
|
filename?: string | undefined;
|
|
1290
|
-
id: string;
|
|
1291
|
-
title: string;
|
|
1292
1290
|
type: "source";
|
|
1291
|
+
id: string;
|
|
1293
1292
|
mediaType: string;
|
|
1294
1293
|
sourceType: "document";
|
|
1294
|
+
title: string;
|
|
1295
1295
|
})[];
|
|
1296
1296
|
} | {
|
|
1297
1297
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1354,10 +1354,10 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
|
|
|
1354
1354
|
totalTokens: number;
|
|
1355
1355
|
} | undefined;
|
|
1356
1356
|
sources?: ({
|
|
1357
|
-
title?: string | undefined;
|
|
1358
1357
|
type?: "source" | undefined;
|
|
1359
1358
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1360
1359
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1360
|
+
title?: string | undefined;
|
|
1361
1361
|
id: string;
|
|
1362
1362
|
sourceType: "url";
|
|
1363
1363
|
url: string;
|
|
@@ -1365,11 +1365,11 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
|
|
|
1365
1365
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1366
1366
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1367
1367
|
filename?: string | undefined;
|
|
1368
|
-
id: string;
|
|
1369
|
-
title: string;
|
|
1370
1368
|
type: "source";
|
|
1369
|
+
id: string;
|
|
1371
1370
|
mediaType: string;
|
|
1372
1371
|
sourceType: "document";
|
|
1372
|
+
title: string;
|
|
1373
1373
|
})[] | undefined;
|
|
1374
1374
|
warnings?: ({
|
|
1375
1375
|
details?: string | undefined;
|
|
@@ -1400,10 +1400,10 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
|
|
|
1400
1400
|
})[] | undefined;
|
|
1401
1401
|
_id: string;
|
|
1402
1402
|
_creationTime: number;
|
|
1403
|
-
status: "pending" | "success" | "failed";
|
|
1404
|
-
order: number;
|
|
1405
1403
|
threadId: string;
|
|
1404
|
+
order: number;
|
|
1406
1405
|
stepOrder: number;
|
|
1406
|
+
status: "pending" | "success" | "failed";
|
|
1407
1407
|
tool: boolean;
|
|
1408
1408
|
}[];
|
|
1409
1409
|
isDone: boolean;
|
|
@@ -1414,8 +1414,8 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
|
|
|
1414
1414
|
export declare const getMessagesByIds: import("convex/server").RegisteredQuery<"public", {
|
|
1415
1415
|
messageIds: import("convex/values").GenericId<"messages">[];
|
|
1416
1416
|
}, Promise<({
|
|
1417
|
-
id?: string | undefined;
|
|
1418
1417
|
userId?: string | undefined;
|
|
1418
|
+
id?: string | undefined;
|
|
1419
1419
|
embeddingId?: string | undefined;
|
|
1420
1420
|
fileIds?: string[] | undefined;
|
|
1421
1421
|
error?: string | undefined;
|
|
@@ -1520,22 +1520,22 @@ export declare const getMessagesByIds: import("convex/server").RegisteredQuery<"
|
|
|
1520
1520
|
toolCallId: string;
|
|
1521
1521
|
toolName: string;
|
|
1522
1522
|
} | {
|
|
1523
|
-
title?: string | undefined;
|
|
1524
1523
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1525
1524
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1526
|
-
|
|
1525
|
+
title?: string | undefined;
|
|
1527
1526
|
type: "source";
|
|
1527
|
+
id: string;
|
|
1528
1528
|
sourceType: "url";
|
|
1529
1529
|
url: string;
|
|
1530
1530
|
} | {
|
|
1531
1531
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1532
1532
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1533
1533
|
filename?: string | undefined;
|
|
1534
|
-
id: string;
|
|
1535
|
-
title: string;
|
|
1536
1534
|
type: "source";
|
|
1535
|
+
id: string;
|
|
1537
1536
|
mediaType: string;
|
|
1538
1537
|
sourceType: "document";
|
|
1538
|
+
title: string;
|
|
1539
1539
|
})[];
|
|
1540
1540
|
} | {
|
|
1541
1541
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1598,10 +1598,10 @@ export declare const getMessagesByIds: import("convex/server").RegisteredQuery<"
|
|
|
1598
1598
|
totalTokens: number;
|
|
1599
1599
|
} | undefined;
|
|
1600
1600
|
sources?: ({
|
|
1601
|
-
title?: string | undefined;
|
|
1602
1601
|
type?: "source" | undefined;
|
|
1603
1602
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1604
1603
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1604
|
+
title?: string | undefined;
|
|
1605
1605
|
id: string;
|
|
1606
1606
|
sourceType: "url";
|
|
1607
1607
|
url: string;
|
|
@@ -1609,11 +1609,11 @@ export declare const getMessagesByIds: import("convex/server").RegisteredQuery<"
|
|
|
1609
1609
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1610
1610
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1611
1611
|
filename?: string | undefined;
|
|
1612
|
-
id: string;
|
|
1613
|
-
title: string;
|
|
1614
1612
|
type: "source";
|
|
1613
|
+
id: string;
|
|
1615
1614
|
mediaType: string;
|
|
1616
1615
|
sourceType: "document";
|
|
1616
|
+
title: string;
|
|
1617
1617
|
})[] | undefined;
|
|
1618
1618
|
warnings?: ({
|
|
1619
1619
|
details?: string | undefined;
|
|
@@ -1644,10 +1644,10 @@ export declare const getMessagesByIds: import("convex/server").RegisteredQuery<"
|
|
|
1644
1644
|
})[] | undefined;
|
|
1645
1645
|
_id: string;
|
|
1646
1646
|
_creationTime: number;
|
|
1647
|
-
status: "pending" | "success" | "failed";
|
|
1648
|
-
order: number;
|
|
1649
1647
|
threadId: string;
|
|
1648
|
+
order: number;
|
|
1650
1649
|
stepOrder: number;
|
|
1650
|
+
status: "pending" | "success" | "failed";
|
|
1651
1651
|
tool: boolean;
|
|
1652
1652
|
} | null)[]>>;
|
|
1653
1653
|
export declare const searchMessages: import("convex/server").RegisteredAction<"public", {
|
|
@@ -1660,14 +1660,14 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
|
|
|
1660
1660
|
before: number;
|
|
1661
1661
|
after: number;
|
|
1662
1662
|
} | undefined;
|
|
1663
|
+
embedding?: number[] | undefined;
|
|
1663
1664
|
searchAllMessagesForUserId?: string | undefined;
|
|
1664
1665
|
targetMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
1665
|
-
embedding?: number[] | undefined;
|
|
1666
1666
|
embeddingModel?: string | undefined;
|
|
1667
1667
|
limit: number;
|
|
1668
1668
|
}, Promise<{
|
|
1669
|
-
id?: string | undefined;
|
|
1670
1669
|
userId?: string | undefined;
|
|
1670
|
+
id?: string | undefined;
|
|
1671
1671
|
embeddingId?: string | undefined;
|
|
1672
1672
|
fileIds?: string[] | undefined;
|
|
1673
1673
|
error?: string | undefined;
|
|
@@ -1772,22 +1772,22 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
|
|
|
1772
1772
|
toolCallId: string;
|
|
1773
1773
|
toolName: string;
|
|
1774
1774
|
} | {
|
|
1775
|
-
title?: string | undefined;
|
|
1776
1775
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1777
1776
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1778
|
-
|
|
1777
|
+
title?: string | undefined;
|
|
1779
1778
|
type: "source";
|
|
1779
|
+
id: string;
|
|
1780
1780
|
sourceType: "url";
|
|
1781
1781
|
url: string;
|
|
1782
1782
|
} | {
|
|
1783
1783
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1784
1784
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1785
1785
|
filename?: string | undefined;
|
|
1786
|
-
id: string;
|
|
1787
|
-
title: string;
|
|
1788
1786
|
type: "source";
|
|
1787
|
+
id: string;
|
|
1789
1788
|
mediaType: string;
|
|
1790
1789
|
sourceType: "document";
|
|
1790
|
+
title: string;
|
|
1791
1791
|
})[];
|
|
1792
1792
|
} | {
|
|
1793
1793
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1850,10 +1850,10 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
|
|
|
1850
1850
|
totalTokens: number;
|
|
1851
1851
|
} | undefined;
|
|
1852
1852
|
sources?: ({
|
|
1853
|
-
title?: string | undefined;
|
|
1854
1853
|
type?: "source" | undefined;
|
|
1855
1854
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1856
1855
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1856
|
+
title?: string | undefined;
|
|
1857
1857
|
id: string;
|
|
1858
1858
|
sourceType: "url";
|
|
1859
1859
|
url: string;
|
|
@@ -1861,11 +1861,11 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
|
|
|
1861
1861
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1862
1862
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1863
1863
|
filename?: string | undefined;
|
|
1864
|
-
id: string;
|
|
1865
|
-
title: string;
|
|
1866
1864
|
type: "source";
|
|
1865
|
+
id: string;
|
|
1867
1866
|
mediaType: string;
|
|
1868
1867
|
sourceType: "document";
|
|
1868
|
+
title: string;
|
|
1869
1869
|
})[] | undefined;
|
|
1870
1870
|
warnings?: ({
|
|
1871
1871
|
details?: string | undefined;
|
|
@@ -1896,18 +1896,18 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
|
|
|
1896
1896
|
})[] | undefined;
|
|
1897
1897
|
_id: string;
|
|
1898
1898
|
_creationTime: number;
|
|
1899
|
-
status: "pending" | "success" | "failed";
|
|
1900
|
-
order: number;
|
|
1901
1899
|
threadId: string;
|
|
1900
|
+
order: number;
|
|
1902
1901
|
stepOrder: number;
|
|
1902
|
+
status: "pending" | "success" | "failed";
|
|
1903
1903
|
tool: boolean;
|
|
1904
1904
|
}[]>>;
|
|
1905
1905
|
export declare const _fetchSearchMessages: import("convex/server").RegisteredQuery<"internal", {
|
|
1906
1906
|
threadId?: import("convex/values").GenericId<"threads"> | undefined;
|
|
1907
1907
|
searchAllMessagesForUserId?: string | undefined;
|
|
1908
1908
|
textSearchMessages?: {
|
|
1909
|
-
id?: string | undefined;
|
|
1910
1909
|
userId?: string | undefined;
|
|
1910
|
+
id?: string | undefined;
|
|
1911
1911
|
embeddingId?: string | undefined;
|
|
1912
1912
|
fileIds?: string[] | undefined;
|
|
1913
1913
|
error?: string | undefined;
|
|
@@ -2012,22 +2012,22 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
2012
2012
|
toolCallId: string;
|
|
2013
2013
|
toolName: string;
|
|
2014
2014
|
} | {
|
|
2015
|
-
title?: string | undefined;
|
|
2016
2015
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2017
2016
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2018
|
-
|
|
2017
|
+
title?: string | undefined;
|
|
2019
2018
|
type: "source";
|
|
2019
|
+
id: string;
|
|
2020
2020
|
sourceType: "url";
|
|
2021
2021
|
url: string;
|
|
2022
2022
|
} | {
|
|
2023
2023
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2024
2024
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2025
2025
|
filename?: string | undefined;
|
|
2026
|
-
id: string;
|
|
2027
|
-
title: string;
|
|
2028
2026
|
type: "source";
|
|
2027
|
+
id: string;
|
|
2029
2028
|
mediaType: string;
|
|
2030
2029
|
sourceType: "document";
|
|
2030
|
+
title: string;
|
|
2031
2031
|
})[];
|
|
2032
2032
|
} | {
|
|
2033
2033
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2090,10 +2090,10 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
2090
2090
|
totalTokens: number;
|
|
2091
2091
|
} | undefined;
|
|
2092
2092
|
sources?: ({
|
|
2093
|
-
title?: string | undefined;
|
|
2094
2093
|
type?: "source" | undefined;
|
|
2095
2094
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2096
2095
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2096
|
+
title?: string | undefined;
|
|
2097
2097
|
id: string;
|
|
2098
2098
|
sourceType: "url";
|
|
2099
2099
|
url: string;
|
|
@@ -2101,11 +2101,11 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
2101
2101
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2102
2102
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2103
2103
|
filename?: string | undefined;
|
|
2104
|
-
id: string;
|
|
2105
|
-
title: string;
|
|
2106
2104
|
type: "source";
|
|
2105
|
+
id: string;
|
|
2107
2106
|
mediaType: string;
|
|
2108
2107
|
sourceType: "document";
|
|
2108
|
+
title: string;
|
|
2109
2109
|
})[] | undefined;
|
|
2110
2110
|
warnings?: ({
|
|
2111
2111
|
details?: string | undefined;
|
|
@@ -2136,10 +2136,10 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
2136
2136
|
})[] | undefined;
|
|
2137
2137
|
_id: string;
|
|
2138
2138
|
_creationTime: number;
|
|
2139
|
-
status: "pending" | "success" | "failed";
|
|
2140
|
-
order: number;
|
|
2141
2139
|
threadId: string;
|
|
2140
|
+
order: number;
|
|
2142
2141
|
stepOrder: number;
|
|
2142
|
+
status: "pending" | "success" | "failed";
|
|
2143
2143
|
tool: boolean;
|
|
2144
2144
|
}[] | undefined;
|
|
2145
2145
|
beforeMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
@@ -2150,8 +2150,8 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
2150
2150
|
};
|
|
2151
2151
|
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">[];
|
|
2152
2152
|
}, Promise<{
|
|
2153
|
-
id?: string | undefined;
|
|
2154
2153
|
userId?: string | undefined;
|
|
2154
|
+
id?: string | undefined;
|
|
2155
2155
|
embeddingId?: string | undefined;
|
|
2156
2156
|
fileIds?: string[] | undefined;
|
|
2157
2157
|
error?: string | undefined;
|
|
@@ -2256,22 +2256,22 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
2256
2256
|
toolCallId: string;
|
|
2257
2257
|
toolName: string;
|
|
2258
2258
|
} | {
|
|
2259
|
-
title?: string | undefined;
|
|
2260
2259
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2261
2260
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2262
|
-
|
|
2261
|
+
title?: string | undefined;
|
|
2263
2262
|
type: "source";
|
|
2263
|
+
id: string;
|
|
2264
2264
|
sourceType: "url";
|
|
2265
2265
|
url: string;
|
|
2266
2266
|
} | {
|
|
2267
2267
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2268
2268
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2269
2269
|
filename?: string | undefined;
|
|
2270
|
-
id: string;
|
|
2271
|
-
title: string;
|
|
2272
2270
|
type: "source";
|
|
2271
|
+
id: string;
|
|
2273
2272
|
mediaType: string;
|
|
2274
2273
|
sourceType: "document";
|
|
2274
|
+
title: string;
|
|
2275
2275
|
})[];
|
|
2276
2276
|
} | {
|
|
2277
2277
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2334,10 +2334,10 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
2334
2334
|
totalTokens: number;
|
|
2335
2335
|
} | undefined;
|
|
2336
2336
|
sources?: ({
|
|
2337
|
-
title?: string | undefined;
|
|
2338
2337
|
type?: "source" | undefined;
|
|
2339
2338
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2340
2339
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2340
|
+
title?: string | undefined;
|
|
2341
2341
|
id: string;
|
|
2342
2342
|
sourceType: "url";
|
|
2343
2343
|
url: string;
|
|
@@ -2345,11 +2345,11 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
2345
2345
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2346
2346
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2347
2347
|
filename?: string | undefined;
|
|
2348
|
-
id: string;
|
|
2349
|
-
title: string;
|
|
2350
2348
|
type: "source";
|
|
2349
|
+
id: string;
|
|
2351
2350
|
mediaType: string;
|
|
2352
2351
|
sourceType: "document";
|
|
2352
|
+
title: string;
|
|
2353
2353
|
})[] | undefined;
|
|
2354
2354
|
warnings?: ({
|
|
2355
2355
|
details?: string | undefined;
|
|
@@ -2380,10 +2380,10 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
2380
2380
|
})[] | undefined;
|
|
2381
2381
|
_id: string;
|
|
2382
2382
|
_creationTime: number;
|
|
2383
|
-
status: "pending" | "success" | "failed";
|
|
2384
|
-
order: number;
|
|
2385
2383
|
threadId: string;
|
|
2384
|
+
order: number;
|
|
2386
2385
|
stepOrder: number;
|
|
2386
|
+
status: "pending" | "success" | "failed";
|
|
2387
2387
|
tool: boolean;
|
|
2388
2388
|
}[]>>;
|
|
2389
2389
|
export declare const textSearch: import("convex/server").RegisteredQuery<"public", {
|
|
@@ -2393,8 +2393,8 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
|
|
|
2393
2393
|
targetMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
2394
2394
|
limit: number;
|
|
2395
2395
|
}, Promise<{
|
|
2396
|
-
id?: string | undefined;
|
|
2397
2396
|
userId?: string | undefined;
|
|
2397
|
+
id?: string | undefined;
|
|
2398
2398
|
embeddingId?: string | undefined;
|
|
2399
2399
|
fileIds?: string[] | undefined;
|
|
2400
2400
|
error?: string | undefined;
|
|
@@ -2499,22 +2499,22 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
|
|
|
2499
2499
|
toolCallId: string;
|
|
2500
2500
|
toolName: string;
|
|
2501
2501
|
} | {
|
|
2502
|
-
title?: string | undefined;
|
|
2503
2502
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2504
2503
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2505
|
-
|
|
2504
|
+
title?: string | undefined;
|
|
2506
2505
|
type: "source";
|
|
2506
|
+
id: string;
|
|
2507
2507
|
sourceType: "url";
|
|
2508
2508
|
url: string;
|
|
2509
2509
|
} | {
|
|
2510
2510
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2511
2511
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2512
2512
|
filename?: string | undefined;
|
|
2513
|
-
id: string;
|
|
2514
|
-
title: string;
|
|
2515
2513
|
type: "source";
|
|
2514
|
+
id: string;
|
|
2516
2515
|
mediaType: string;
|
|
2517
2516
|
sourceType: "document";
|
|
2517
|
+
title: string;
|
|
2518
2518
|
})[];
|
|
2519
2519
|
} | {
|
|
2520
2520
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2577,10 +2577,10 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
|
|
|
2577
2577
|
totalTokens: number;
|
|
2578
2578
|
} | undefined;
|
|
2579
2579
|
sources?: ({
|
|
2580
|
-
title?: string | undefined;
|
|
2581
2580
|
type?: "source" | undefined;
|
|
2582
2581
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2583
2582
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2583
|
+
title?: string | undefined;
|
|
2584
2584
|
id: string;
|
|
2585
2585
|
sourceType: "url";
|
|
2586
2586
|
url: string;
|
|
@@ -2588,11 +2588,11 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
|
|
|
2588
2588
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2589
2589
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2590
2590
|
filename?: string | undefined;
|
|
2591
|
-
id: string;
|
|
2592
|
-
title: string;
|
|
2593
2591
|
type: "source";
|
|
2592
|
+
id: string;
|
|
2594
2593
|
mediaType: string;
|
|
2595
2594
|
sourceType: "document";
|
|
2595
|
+
title: string;
|
|
2596
2596
|
})[] | undefined;
|
|
2597
2597
|
warnings?: ({
|
|
2598
2598
|
details?: string | undefined;
|
|
@@ -2623,10 +2623,10 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
|
|
|
2623
2623
|
})[] | undefined;
|
|
2624
2624
|
_id: string;
|
|
2625
2625
|
_creationTime: number;
|
|
2626
|
-
status: "pending" | "success" | "failed";
|
|
2627
|
-
order: number;
|
|
2628
2626
|
threadId: string;
|
|
2627
|
+
order: number;
|
|
2629
2628
|
stepOrder: number;
|
|
2629
|
+
status: "pending" | "success" | "failed";
|
|
2630
2630
|
tool: boolean;
|
|
2631
2631
|
}[]>>;
|
|
2632
2632
|
export declare const getMessageSearchFields: import("convex/server").RegisteredQuery<"public", {
|