@convex-dev/agent 0.2.0-alpha.2 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/createTool.d.ts +4 -6
- package/dist/client/createTool.d.ts.map +1 -1
- package/dist/client/createTool.js +0 -1
- package/dist/client/createTool.js.map +1 -1
- package/dist/client/definePlaygroundAPI.d.ts +28 -28
- package/dist/client/files.d.ts +9 -2
- package/dist/client/files.d.ts.map +1 -1
- package/dist/client/files.js +61 -6
- package/dist/client/files.js.map +1 -1
- package/dist/client/index.d.ts +232 -242
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +375 -383
- package/dist/client/index.js.map +1 -1
- package/dist/client/messages.d.ts +91 -373
- package/dist/client/messages.d.ts.map +1 -1
- package/dist/client/messages.js +7 -1
- package/dist/client/messages.js.map +1 -1
- package/dist/client/search.d.ts +15 -15
- 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/streaming.d.ts +30 -22
- package/dist/client/streaming.d.ts.map +1 -1
- package/dist/client/streaming.js +36 -40
- package/dist/client/streaming.js.map +1 -1
- package/dist/client/types.d.ts +148 -61
- package/dist/client/types.d.ts.map +1 -1
- package/dist/component/_generated/api.d.ts +47 -357
- package/dist/component/messages.d.ts +157 -150
- package/dist/component/messages.d.ts.map +1 -1
- package/dist/component/messages.js +124 -70
- package/dist/component/messages.js.map +1 -1
- package/dist/component/schema.d.ts +1147 -2687
- package/dist/component/schema.d.ts.map +1 -1
- package/dist/component/schema.js +5 -4
- package/dist/component/schema.js.map +1 -1
- package/dist/component/streams.d.ts +29 -323
- package/dist/component/streams.d.ts.map +1 -1
- package/dist/component/streams.js +104 -60
- package/dist/component/streams.js.map +1 -1
- package/dist/component/threads.d.ts +4 -4
- package/dist/component/users.d.ts +3 -3
- package/dist/mapping.d.ts +4 -1
- package/dist/mapping.d.ts.map +1 -1
- package/dist/mapping.js +17 -1
- package/dist/mapping.js.map +1 -1
- package/dist/parts.d.ts +3 -0
- package/dist/parts.d.ts.map +1 -0
- package/dist/parts.js +34 -0
- package/dist/parts.js.map +1 -0
- package/dist/react/SmoothText.d.ts +5 -0
- package/dist/react/SmoothText.d.ts.map +1 -0
- package/dist/react/SmoothText.js +6 -0
- package/dist/react/SmoothText.js.map +1 -0
- package/dist/react/deltas.d.ts +3 -2
- package/dist/react/deltas.d.ts.map +1 -1
- package/dist/react/deltas.js +19 -79
- package/dist/react/deltas.js.map +1 -1
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +31 -11
- package/dist/react/index.js.map +1 -1
- package/dist/react/optimisticallySendMessage.d.ts.map +1 -1
- package/dist/react/optimisticallySendMessage.js +2 -8
- package/dist/react/optimisticallySendMessage.js.map +1 -1
- package/dist/react/useSmoothText.d.ts +13 -12
- package/dist/react/useSmoothText.d.ts.map +1 -1
- package/dist/react/useSmoothText.js +1 -1
- package/dist/react/useSmoothText.js.map +1 -1
- package/dist/shared.d.ts +3 -3
- package/dist/shared.d.ts.map +1 -1
- package/dist/shared.js.map +1 -1
- package/dist/validators.d.ts +109 -1590
- package/dist/validators.d.ts.map +1 -1
- package/dist/validators.js +4 -81
- package/dist/validators.js.map +1 -1
- package/package.json +3 -3
- package/src/client/createTool.ts +5 -10
- package/src/client/files.ts +89 -11
- package/src/client/index.test.ts +25 -35
- package/src/client/index.ts +686 -652
- package/src/client/messages.ts +16 -2
- package/src/client/search.ts +10 -7
- package/src/client/streaming.ts +62 -57
- package/src/client/types.ts +227 -97
- package/src/component/_generated/api.d.ts +47 -357
- package/src/component/messages.ts +157 -96
- package/src/component/schema.ts +4 -4
- package/src/component/streams.ts +180 -69
- package/src/mapping.ts +23 -2
- package/src/parts.ts +39 -0
- package/src/react/SmoothText.tsx +9 -0
- package/src/react/deltas.test.ts +38 -42
- package/src/react/deltas.ts +24 -86
- package/src/react/index.ts +35 -13
- package/src/react/optimisticallySendMessage.ts +2 -8
- package/src/react/useSmoothText.ts +14 -15
- package/src/shared.ts +3 -3
- package/src/validators.test.ts +0 -17
- package/src/validators.ts +8 -101
|
@@ -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;
|
|
@@ -26,6 +26,7 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
26
26
|
vectors: (number[] | null)[];
|
|
27
27
|
} | undefined;
|
|
28
28
|
failPendingSteps?: boolean | undefined;
|
|
29
|
+
pendingMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
29
30
|
threadId: import("convex/values").GenericId<"threads">;
|
|
30
31
|
messages: {
|
|
31
32
|
status?: "pending" | "success" | "failed" | undefined;
|
|
@@ -47,9 +48,9 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
47
48
|
title?: string | undefined;
|
|
48
49
|
type?: "source" | undefined;
|
|
49
50
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
50
|
-
url?: string | undefined;
|
|
51
51
|
id: string;
|
|
52
52
|
sourceType: "url";
|
|
53
|
+
url: string;
|
|
53
54
|
} | {
|
|
54
55
|
filename?: string | undefined;
|
|
55
56
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -59,6 +60,19 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
59
60
|
sourceType: "document";
|
|
60
61
|
mediaType: string;
|
|
61
62
|
})[] | undefined;
|
|
63
|
+
warnings?: ({
|
|
64
|
+
details?: string | undefined;
|
|
65
|
+
type: "unsupported-setting";
|
|
66
|
+
setting: string;
|
|
67
|
+
} | {
|
|
68
|
+
details?: string | undefined;
|
|
69
|
+
type: "unsupported-tool";
|
|
70
|
+
tool: any;
|
|
71
|
+
} | {
|
|
72
|
+
type: "other";
|
|
73
|
+
message: string;
|
|
74
|
+
})[] | undefined;
|
|
75
|
+
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
62
76
|
reasoningDetails?: ({
|
|
63
77
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
64
78
|
signature?: string | undefined;
|
|
@@ -73,19 +87,6 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
73
87
|
type: "redacted";
|
|
74
88
|
data: string;
|
|
75
89
|
})[] | undefined;
|
|
76
|
-
warnings?: ({
|
|
77
|
-
details?: string | undefined;
|
|
78
|
-
type: "unsupported-setting";
|
|
79
|
-
setting: string;
|
|
80
|
-
} | {
|
|
81
|
-
details?: string | undefined;
|
|
82
|
-
type: "unsupported-tool";
|
|
83
|
-
tool: any;
|
|
84
|
-
} | {
|
|
85
|
-
type: "other";
|
|
86
|
-
message: string;
|
|
87
|
-
})[] | undefined;
|
|
88
|
-
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
89
90
|
message: {
|
|
90
91
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
91
92
|
role: "user";
|
|
@@ -264,9 +265,9 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
264
265
|
title?: string | undefined;
|
|
265
266
|
type?: "source" | undefined;
|
|
266
267
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
267
|
-
url?: string | undefined;
|
|
268
268
|
id: string;
|
|
269
269
|
sourceType: "url";
|
|
270
|
+
url: string;
|
|
270
271
|
} | {
|
|
271
272
|
filename?: string | undefined;
|
|
272
273
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -276,6 +277,19 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
276
277
|
sourceType: "document";
|
|
277
278
|
mediaType: string;
|
|
278
279
|
})[] | undefined;
|
|
280
|
+
warnings?: ({
|
|
281
|
+
details?: string | undefined;
|
|
282
|
+
type: "unsupported-setting";
|
|
283
|
+
setting: string;
|
|
284
|
+
} | {
|
|
285
|
+
details?: string | undefined;
|
|
286
|
+
type: "unsupported-tool";
|
|
287
|
+
tool: any;
|
|
288
|
+
} | {
|
|
289
|
+
type: "other";
|
|
290
|
+
message: string;
|
|
291
|
+
})[] | undefined;
|
|
292
|
+
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
279
293
|
reasoningDetails?: ({
|
|
280
294
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
281
295
|
signature?: string | undefined;
|
|
@@ -290,19 +304,6 @@ export declare const addMessages: import("convex/server").RegisteredMutation<"pu
|
|
|
290
304
|
type: "redacted";
|
|
291
305
|
data: string;
|
|
292
306
|
})[] | undefined;
|
|
293
|
-
warnings?: ({
|
|
294
|
-
details?: string | undefined;
|
|
295
|
-
type: "unsupported-setting";
|
|
296
|
-
setting: string;
|
|
297
|
-
} | {
|
|
298
|
-
details?: string | undefined;
|
|
299
|
-
type: "unsupported-tool";
|
|
300
|
-
tool: any;
|
|
301
|
-
} | {
|
|
302
|
-
type: "other";
|
|
303
|
-
message: string;
|
|
304
|
-
})[] | undefined;
|
|
305
|
-
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
306
307
|
_id: string;
|
|
307
308
|
_creationTime: number;
|
|
308
309
|
status: "pending" | "success" | "failed";
|
|
@@ -415,9 +416,9 @@ export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, or
|
|
|
415
416
|
title?: string | undefined;
|
|
416
417
|
type?: "source" | undefined;
|
|
417
418
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
418
|
-
url?: string | undefined;
|
|
419
419
|
id: string;
|
|
420
420
|
sourceType: "url";
|
|
421
|
+
url: string;
|
|
421
422
|
} | {
|
|
422
423
|
filename?: string | undefined;
|
|
423
424
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -427,6 +428,19 @@ export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, or
|
|
|
427
428
|
sourceType: "document";
|
|
428
429
|
mediaType: string;
|
|
429
430
|
})[] | undefined;
|
|
431
|
+
warnings?: ({
|
|
432
|
+
details?: string | undefined;
|
|
433
|
+
type: "unsupported-setting";
|
|
434
|
+
setting: string;
|
|
435
|
+
} | {
|
|
436
|
+
details?: string | undefined;
|
|
437
|
+
type: "unsupported-tool";
|
|
438
|
+
tool: any;
|
|
439
|
+
} | {
|
|
440
|
+
type: "other";
|
|
441
|
+
message: string;
|
|
442
|
+
})[] | undefined;
|
|
443
|
+
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
430
444
|
reasoningDetails?: ({
|
|
431
445
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
432
446
|
signature?: string | undefined;
|
|
@@ -441,19 +455,6 @@ export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, or
|
|
|
441
455
|
type: "redacted";
|
|
442
456
|
data: string;
|
|
443
457
|
})[] | undefined;
|
|
444
|
-
warnings?: ({
|
|
445
|
-
details?: string | undefined;
|
|
446
|
-
type: "unsupported-setting";
|
|
447
|
-
setting: string;
|
|
448
|
-
} | {
|
|
449
|
-
details?: string | undefined;
|
|
450
|
-
type: "unsupported-tool";
|
|
451
|
-
tool: any;
|
|
452
|
-
} | {
|
|
453
|
-
type: "other";
|
|
454
|
-
message: string;
|
|
455
|
-
})[] | undefined;
|
|
456
|
-
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
457
458
|
parentMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
458
459
|
stepId?: string | undefined;
|
|
459
460
|
status: "pending" | "success" | "failed";
|
|
@@ -462,18 +463,24 @@ export declare function getMaxMessage(ctx: QueryCtx, threadId: Id<"threads">, or
|
|
|
462
463
|
stepOrder: number;
|
|
463
464
|
tool: boolean;
|
|
464
465
|
} | null>;
|
|
465
|
-
export declare const
|
|
466
|
-
|
|
466
|
+
export declare const finalizeMessage: import("convex/server").RegisteredMutation<"public", {
|
|
467
|
+
result: {
|
|
468
|
+
status: "success";
|
|
469
|
+
} | {
|
|
470
|
+
status: "failed";
|
|
471
|
+
error: string;
|
|
472
|
+
};
|
|
467
473
|
messageId: import("convex/values").GenericId<"messages">;
|
|
468
474
|
}, Promise<void>>;
|
|
469
|
-
export declare const commitMessage: import("convex/server").RegisteredMutation<"public", {
|
|
470
|
-
messageId: Id<"messages">;
|
|
471
|
-
}, Promise<void>>;
|
|
472
475
|
export declare const updateMessage: import("convex/server").RegisteredMutation<"public", {
|
|
476
|
+
messageId: import("convex/values").GenericId<"messages">;
|
|
473
477
|
patch: {
|
|
474
478
|
status?: "pending" | "success" | "failed" | undefined;
|
|
475
479
|
fileIds?: import("convex/values").GenericId<"files">[] | undefined;
|
|
476
480
|
error?: string | undefined;
|
|
481
|
+
model?: string | undefined;
|
|
482
|
+
provider?: string | undefined;
|
|
483
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
477
484
|
message?: {
|
|
478
485
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
479
486
|
role: "user";
|
|
@@ -550,8 +557,8 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
550
557
|
role: "system";
|
|
551
558
|
content: string;
|
|
552
559
|
} | undefined;
|
|
560
|
+
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
553
561
|
};
|
|
554
|
-
messageId: import("convex/values").GenericId<"messages">;
|
|
555
562
|
}, Promise<{
|
|
556
563
|
id?: string | undefined;
|
|
557
564
|
userId?: string | undefined;
|
|
@@ -652,9 +659,9 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
652
659
|
title?: string | undefined;
|
|
653
660
|
type?: "source" | undefined;
|
|
654
661
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
655
|
-
url?: string | undefined;
|
|
656
662
|
id: string;
|
|
657
663
|
sourceType: "url";
|
|
664
|
+
url: string;
|
|
658
665
|
} | {
|
|
659
666
|
filename?: string | undefined;
|
|
660
667
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -664,6 +671,19 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
664
671
|
sourceType: "document";
|
|
665
672
|
mediaType: string;
|
|
666
673
|
})[] | undefined;
|
|
674
|
+
warnings?: ({
|
|
675
|
+
details?: string | undefined;
|
|
676
|
+
type: "unsupported-setting";
|
|
677
|
+
setting: string;
|
|
678
|
+
} | {
|
|
679
|
+
details?: string | undefined;
|
|
680
|
+
type: "unsupported-tool";
|
|
681
|
+
tool: any;
|
|
682
|
+
} | {
|
|
683
|
+
type: "other";
|
|
684
|
+
message: string;
|
|
685
|
+
})[] | undefined;
|
|
686
|
+
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
667
687
|
reasoningDetails?: ({
|
|
668
688
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
669
689
|
signature?: string | undefined;
|
|
@@ -678,19 +698,6 @@ export declare const updateMessage: import("convex/server").RegisteredMutation<"
|
|
|
678
698
|
type: "redacted";
|
|
679
699
|
data: string;
|
|
680
700
|
})[] | undefined;
|
|
681
|
-
warnings?: ({
|
|
682
|
-
details?: string | undefined;
|
|
683
|
-
type: "unsupported-setting";
|
|
684
|
-
setting: string;
|
|
685
|
-
} | {
|
|
686
|
-
details?: string | undefined;
|
|
687
|
-
type: "unsupported-tool";
|
|
688
|
-
tool: any;
|
|
689
|
-
} | {
|
|
690
|
-
type: "other";
|
|
691
|
-
message: string;
|
|
692
|
-
})[] | undefined;
|
|
693
|
-
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
694
701
|
_id: string;
|
|
695
702
|
_creationTime: number;
|
|
696
703
|
status: "pending" | "success" | "failed";
|
|
@@ -814,9 +821,9 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
|
|
|
814
821
|
title?: string | undefined;
|
|
815
822
|
type?: "source" | undefined;
|
|
816
823
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
817
|
-
url?: string | undefined;
|
|
818
824
|
id: string;
|
|
819
825
|
sourceType: "url";
|
|
826
|
+
url: string;
|
|
820
827
|
} | {
|
|
821
828
|
filename?: string | undefined;
|
|
822
829
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -826,6 +833,19 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
|
|
|
826
833
|
sourceType: "document";
|
|
827
834
|
mediaType: string;
|
|
828
835
|
})[] | undefined;
|
|
836
|
+
warnings?: ({
|
|
837
|
+
details?: string | undefined;
|
|
838
|
+
type: "unsupported-setting";
|
|
839
|
+
setting: string;
|
|
840
|
+
} | {
|
|
841
|
+
details?: string | undefined;
|
|
842
|
+
type: "unsupported-tool";
|
|
843
|
+
tool: any;
|
|
844
|
+
} | {
|
|
845
|
+
type: "other";
|
|
846
|
+
message: string;
|
|
847
|
+
})[] | undefined;
|
|
848
|
+
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
829
849
|
reasoningDetails?: ({
|
|
830
850
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
831
851
|
signature?: string | undefined;
|
|
@@ -840,19 +860,6 @@ export declare const listMessagesByThreadId: import("convex/server").RegisteredQ
|
|
|
840
860
|
type: "redacted";
|
|
841
861
|
data: string;
|
|
842
862
|
})[] | undefined;
|
|
843
|
-
warnings?: ({
|
|
844
|
-
details?: string | undefined;
|
|
845
|
-
type: "unsupported-setting";
|
|
846
|
-
setting: string;
|
|
847
|
-
} | {
|
|
848
|
-
details?: string | undefined;
|
|
849
|
-
type: "unsupported-tool";
|
|
850
|
-
tool: any;
|
|
851
|
-
} | {
|
|
852
|
-
type: "other";
|
|
853
|
-
message: string;
|
|
854
|
-
})[] | undefined;
|
|
855
|
-
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
856
863
|
_id: string;
|
|
857
864
|
_creationTime: number;
|
|
858
865
|
status: "pending" | "success" | "failed";
|
|
@@ -968,9 +975,9 @@ export declare const getMessagesByIds: import("convex/server").RegisteredQuery<"
|
|
|
968
975
|
title?: string | undefined;
|
|
969
976
|
type?: "source" | undefined;
|
|
970
977
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
971
|
-
url?: string | undefined;
|
|
972
978
|
id: string;
|
|
973
979
|
sourceType: "url";
|
|
980
|
+
url: string;
|
|
974
981
|
} | {
|
|
975
982
|
filename?: string | undefined;
|
|
976
983
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -980,6 +987,19 @@ export declare const getMessagesByIds: import("convex/server").RegisteredQuery<"
|
|
|
980
987
|
sourceType: "document";
|
|
981
988
|
mediaType: string;
|
|
982
989
|
})[] | undefined;
|
|
990
|
+
warnings?: ({
|
|
991
|
+
details?: string | undefined;
|
|
992
|
+
type: "unsupported-setting";
|
|
993
|
+
setting: string;
|
|
994
|
+
} | {
|
|
995
|
+
details?: string | undefined;
|
|
996
|
+
type: "unsupported-tool";
|
|
997
|
+
tool: any;
|
|
998
|
+
} | {
|
|
999
|
+
type: "other";
|
|
1000
|
+
message: string;
|
|
1001
|
+
})[] | undefined;
|
|
1002
|
+
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
983
1003
|
reasoningDetails?: ({
|
|
984
1004
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
985
1005
|
signature?: string | undefined;
|
|
@@ -994,19 +1014,6 @@ export declare const getMessagesByIds: import("convex/server").RegisteredQuery<"
|
|
|
994
1014
|
type: "redacted";
|
|
995
1015
|
data: string;
|
|
996
1016
|
})[] | undefined;
|
|
997
|
-
warnings?: ({
|
|
998
|
-
details?: string | undefined;
|
|
999
|
-
type: "unsupported-setting";
|
|
1000
|
-
setting: string;
|
|
1001
|
-
} | {
|
|
1002
|
-
details?: string | undefined;
|
|
1003
|
-
type: "unsupported-tool";
|
|
1004
|
-
tool: any;
|
|
1005
|
-
} | {
|
|
1006
|
-
type: "other";
|
|
1007
|
-
message: string;
|
|
1008
|
-
})[] | undefined;
|
|
1009
|
-
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
1010
1017
|
_id: string;
|
|
1011
1018
|
_creationTime: number;
|
|
1012
1019
|
status: "pending" | "success" | "failed";
|
|
@@ -1023,10 +1030,10 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
|
|
|
1023
1030
|
before: number;
|
|
1024
1031
|
after: number;
|
|
1025
1032
|
} | undefined;
|
|
1033
|
+
searchAllMessagesForUserId?: string | undefined;
|
|
1026
1034
|
beforeMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
1027
1035
|
embedding?: number[] | undefined;
|
|
1028
1036
|
embeddingModel?: string | undefined;
|
|
1029
|
-
searchAllMessagesForUserId?: string | undefined;
|
|
1030
1037
|
limit: number;
|
|
1031
1038
|
}, Promise<{
|
|
1032
1039
|
id?: string | undefined;
|
|
@@ -1128,9 +1135,9 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
|
|
|
1128
1135
|
title?: string | undefined;
|
|
1129
1136
|
type?: "source" | undefined;
|
|
1130
1137
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1131
|
-
url?: string | undefined;
|
|
1132
1138
|
id: string;
|
|
1133
1139
|
sourceType: "url";
|
|
1140
|
+
url: string;
|
|
1134
1141
|
} | {
|
|
1135
1142
|
filename?: string | undefined;
|
|
1136
1143
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1140,6 +1147,19 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
|
|
|
1140
1147
|
sourceType: "document";
|
|
1141
1148
|
mediaType: string;
|
|
1142
1149
|
})[] | undefined;
|
|
1150
|
+
warnings?: ({
|
|
1151
|
+
details?: string | undefined;
|
|
1152
|
+
type: "unsupported-setting";
|
|
1153
|
+
setting: string;
|
|
1154
|
+
} | {
|
|
1155
|
+
details?: string | undefined;
|
|
1156
|
+
type: "unsupported-tool";
|
|
1157
|
+
tool: any;
|
|
1158
|
+
} | {
|
|
1159
|
+
type: "other";
|
|
1160
|
+
message: string;
|
|
1161
|
+
})[] | undefined;
|
|
1162
|
+
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
1143
1163
|
reasoningDetails?: ({
|
|
1144
1164
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1145
1165
|
signature?: string | undefined;
|
|
@@ -1154,19 +1174,6 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
|
|
|
1154
1174
|
type: "redacted";
|
|
1155
1175
|
data: string;
|
|
1156
1176
|
})[] | undefined;
|
|
1157
|
-
warnings?: ({
|
|
1158
|
-
details?: string | undefined;
|
|
1159
|
-
type: "unsupported-setting";
|
|
1160
|
-
setting: string;
|
|
1161
|
-
} | {
|
|
1162
|
-
details?: string | undefined;
|
|
1163
|
-
type: "unsupported-tool";
|
|
1164
|
-
tool: any;
|
|
1165
|
-
} | {
|
|
1166
|
-
type: "other";
|
|
1167
|
-
message: string;
|
|
1168
|
-
})[] | undefined;
|
|
1169
|
-
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
1170
1177
|
_id: string;
|
|
1171
1178
|
_creationTime: number;
|
|
1172
1179
|
status: "pending" | "success" | "failed";
|
|
@@ -1177,8 +1184,8 @@ export declare const searchMessages: import("convex/server").RegisteredAction<"p
|
|
|
1177
1184
|
}[]>>;
|
|
1178
1185
|
export declare const _fetchSearchMessages: import("convex/server").RegisteredQuery<"internal", {
|
|
1179
1186
|
threadId?: import("convex/values").GenericId<"threads"> | undefined;
|
|
1180
|
-
beforeMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
1181
1187
|
searchAllMessagesForUserId?: string | undefined;
|
|
1188
|
+
beforeMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
1182
1189
|
textSearchMessages?: {
|
|
1183
1190
|
id?: string | undefined;
|
|
1184
1191
|
userId?: string | undefined;
|
|
@@ -1279,9 +1286,9 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
1279
1286
|
title?: string | undefined;
|
|
1280
1287
|
type?: "source" | undefined;
|
|
1281
1288
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1282
|
-
url?: string | undefined;
|
|
1283
1289
|
id: string;
|
|
1284
1290
|
sourceType: "url";
|
|
1291
|
+
url: string;
|
|
1285
1292
|
} | {
|
|
1286
1293
|
filename?: string | undefined;
|
|
1287
1294
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1291,6 +1298,19 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
1291
1298
|
sourceType: "document";
|
|
1292
1299
|
mediaType: string;
|
|
1293
1300
|
})[] | undefined;
|
|
1301
|
+
warnings?: ({
|
|
1302
|
+
details?: string | undefined;
|
|
1303
|
+
type: "unsupported-setting";
|
|
1304
|
+
setting: string;
|
|
1305
|
+
} | {
|
|
1306
|
+
details?: string | undefined;
|
|
1307
|
+
type: "unsupported-tool";
|
|
1308
|
+
tool: any;
|
|
1309
|
+
} | {
|
|
1310
|
+
type: "other";
|
|
1311
|
+
message: string;
|
|
1312
|
+
})[] | undefined;
|
|
1313
|
+
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
1294
1314
|
reasoningDetails?: ({
|
|
1295
1315
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1296
1316
|
signature?: string | undefined;
|
|
@@ -1305,19 +1325,6 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
1305
1325
|
type: "redacted";
|
|
1306
1326
|
data: string;
|
|
1307
1327
|
})[] | undefined;
|
|
1308
|
-
warnings?: ({
|
|
1309
|
-
details?: string | undefined;
|
|
1310
|
-
type: "unsupported-setting";
|
|
1311
|
-
setting: string;
|
|
1312
|
-
} | {
|
|
1313
|
-
details?: string | undefined;
|
|
1314
|
-
type: "unsupported-tool";
|
|
1315
|
-
tool: any;
|
|
1316
|
-
} | {
|
|
1317
|
-
type: "other";
|
|
1318
|
-
message: string;
|
|
1319
|
-
})[] | undefined;
|
|
1320
|
-
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
1321
1328
|
_id: string;
|
|
1322
1329
|
_creationTime: number;
|
|
1323
1330
|
status: "pending" | "success" | "failed";
|
|
@@ -1432,9 +1439,9 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
1432
1439
|
title?: string | undefined;
|
|
1433
1440
|
type?: "source" | undefined;
|
|
1434
1441
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1435
|
-
url?: string | undefined;
|
|
1436
1442
|
id: string;
|
|
1437
1443
|
sourceType: "url";
|
|
1444
|
+
url: string;
|
|
1438
1445
|
} | {
|
|
1439
1446
|
filename?: string | undefined;
|
|
1440
1447
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1444,6 +1451,19 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
1444
1451
|
sourceType: "document";
|
|
1445
1452
|
mediaType: string;
|
|
1446
1453
|
})[] | undefined;
|
|
1454
|
+
warnings?: ({
|
|
1455
|
+
details?: string | undefined;
|
|
1456
|
+
type: "unsupported-setting";
|
|
1457
|
+
setting: string;
|
|
1458
|
+
} | {
|
|
1459
|
+
details?: string | undefined;
|
|
1460
|
+
type: "unsupported-tool";
|
|
1461
|
+
tool: any;
|
|
1462
|
+
} | {
|
|
1463
|
+
type: "other";
|
|
1464
|
+
message: string;
|
|
1465
|
+
})[] | undefined;
|
|
1466
|
+
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
1447
1467
|
reasoningDetails?: ({
|
|
1448
1468
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1449
1469
|
signature?: string | undefined;
|
|
@@ -1458,19 +1478,6 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
1458
1478
|
type: "redacted";
|
|
1459
1479
|
data: string;
|
|
1460
1480
|
})[] | undefined;
|
|
1461
|
-
warnings?: ({
|
|
1462
|
-
details?: string | undefined;
|
|
1463
|
-
type: "unsupported-setting";
|
|
1464
|
-
setting: string;
|
|
1465
|
-
} | {
|
|
1466
|
-
details?: string | undefined;
|
|
1467
|
-
type: "unsupported-tool";
|
|
1468
|
-
tool: any;
|
|
1469
|
-
} | {
|
|
1470
|
-
type: "other";
|
|
1471
|
-
message: string;
|
|
1472
|
-
})[] | undefined;
|
|
1473
|
-
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
1474
1481
|
_id: string;
|
|
1475
1482
|
_creationTime: number;
|
|
1476
1483
|
status: "pending" | "success" | "failed";
|
|
@@ -1481,8 +1488,8 @@ export declare const _fetchSearchMessages: import("convex/server").RegisteredQue
|
|
|
1481
1488
|
}[]>>;
|
|
1482
1489
|
export declare const textSearch: import("convex/server").RegisteredQuery<"public", {
|
|
1483
1490
|
threadId?: import("convex/values").GenericId<"threads"> | undefined;
|
|
1484
|
-
beforeMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
1485
1491
|
searchAllMessagesForUserId?: string | undefined;
|
|
1492
|
+
beforeMessageId?: import("convex/values").GenericId<"messages"> | undefined;
|
|
1486
1493
|
text: string;
|
|
1487
1494
|
limit: number;
|
|
1488
1495
|
}, Promise<{
|
|
@@ -1585,9 +1592,9 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
|
|
|
1585
1592
|
title?: string | undefined;
|
|
1586
1593
|
type?: "source" | undefined;
|
|
1587
1594
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1588
|
-
url?: string | undefined;
|
|
1589
1595
|
id: string;
|
|
1590
1596
|
sourceType: "url";
|
|
1597
|
+
url: string;
|
|
1591
1598
|
} | {
|
|
1592
1599
|
filename?: string | undefined;
|
|
1593
1600
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1597,6 +1604,19 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
|
|
|
1597
1604
|
sourceType: "document";
|
|
1598
1605
|
mediaType: string;
|
|
1599
1606
|
})[] | undefined;
|
|
1607
|
+
warnings?: ({
|
|
1608
|
+
details?: string | undefined;
|
|
1609
|
+
type: "unsupported-setting";
|
|
1610
|
+
setting: string;
|
|
1611
|
+
} | {
|
|
1612
|
+
details?: string | undefined;
|
|
1613
|
+
type: "unsupported-tool";
|
|
1614
|
+
tool: any;
|
|
1615
|
+
} | {
|
|
1616
|
+
type: "other";
|
|
1617
|
+
message: string;
|
|
1618
|
+
})[] | undefined;
|
|
1619
|
+
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
1600
1620
|
reasoningDetails?: ({
|
|
1601
1621
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1602
1622
|
signature?: string | undefined;
|
|
@@ -1611,19 +1631,6 @@ export declare const textSearch: import("convex/server").RegisteredQuery<"public
|
|
|
1611
1631
|
type: "redacted";
|
|
1612
1632
|
data: string;
|
|
1613
1633
|
})[] | undefined;
|
|
1614
|
-
warnings?: ({
|
|
1615
|
-
details?: string | undefined;
|
|
1616
|
-
type: "unsupported-setting";
|
|
1617
|
-
setting: string;
|
|
1618
|
-
} | {
|
|
1619
|
-
details?: string | undefined;
|
|
1620
|
-
type: "unsupported-tool";
|
|
1621
|
-
tool: any;
|
|
1622
|
-
} | {
|
|
1623
|
-
type: "other";
|
|
1624
|
-
message: string;
|
|
1625
|
-
})[] | undefined;
|
|
1626
|
-
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
1627
1634
|
_id: string;
|
|
1628
1635
|
_creationTime: number;
|
|
1629
1636
|
status: "pending" | "success" | "failed";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/component/messages.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/component/messages.ts"],"names":[],"mappings":"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"}
|