@convex-dev/agent 0.2.11-alpha.0 → 0.2.11-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/definePlaygroundAPI.d.ts +42 -42
- package/dist/client/index.d.ts +38 -38
- package/dist/client/messages.d.ts +10 -10
- package/dist/client/search.d.ts +10 -10
- package/dist/client/search.d.ts.map +1 -1
- package/dist/client/search.js +29 -8
- package/dist/client/search.js.map +1 -1
- package/dist/client/streaming.d.ts +89 -89
- 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 +3 -1
- package/dist/deltas.js.map +1 -1
- package/package.json +1 -1
- package/src/client/search.test.ts +25 -4
- package/src/client/search.ts +34 -9
- package/src/deltas.ts +5 -1
|
@@ -2,6 +2,8 @@ import { type AsyncIterableStream, type ChunkDetector, type StreamTextTransform,
|
|
|
2
2
|
import { type ProviderOptions, type StreamArgs, type StreamMessage } from "../validators.js";
|
|
3
3
|
import type { ActionCtx, AgentComponent, MutationCtx, QueryCtx, SyncStreamsReturnValue } from "./types.js";
|
|
4
4
|
export declare const vStreamMessagesReturnValue: import("convex/values").VObject<{
|
|
5
|
+
splitCursor?: string | null | undefined;
|
|
6
|
+
pageStatus?: "SplitRecommended" | "SplitRequired" | null | undefined;
|
|
5
7
|
streams?: {
|
|
6
8
|
messages: {
|
|
7
9
|
userId?: string | undefined;
|
|
@@ -10,27 +12,24 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
10
12
|
provider?: string | undefined;
|
|
11
13
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
12
14
|
format?: "UIMessageChunk" | "TextStreamPart" | undefined;
|
|
15
|
+
status: "streaming" | "finished" | "aborted";
|
|
13
16
|
order: number;
|
|
14
17
|
stepOrder: number;
|
|
15
|
-
status: "aborted" | "streaming" | "finished";
|
|
16
18
|
streamId: string;
|
|
17
19
|
}[];
|
|
18
20
|
kind: "list";
|
|
19
21
|
} | {
|
|
20
22
|
kind: "deltas";
|
|
21
23
|
deltas: {
|
|
22
|
-
start: number;
|
|
23
24
|
streamId: string;
|
|
25
|
+
start: number;
|
|
24
26
|
end: number;
|
|
25
27
|
parts: any[];
|
|
26
28
|
}[];
|
|
27
29
|
} | undefined;
|
|
28
|
-
splitCursor?: string | null | undefined;
|
|
29
|
-
pageStatus?: "SplitRecommended" | "SplitRequired" | null | undefined;
|
|
30
|
-
isDone: boolean;
|
|
31
30
|
page: {
|
|
32
|
-
userId?: string | undefined;
|
|
33
31
|
id?: string | undefined;
|
|
32
|
+
userId?: string | undefined;
|
|
34
33
|
embeddingId?: string | undefined;
|
|
35
34
|
fileIds?: string[] | undefined;
|
|
36
35
|
error?: string | undefined;
|
|
@@ -135,22 +134,22 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
135
134
|
toolCallId: string;
|
|
136
135
|
toolName: string;
|
|
137
136
|
} | {
|
|
137
|
+
title?: string | undefined;
|
|
138
138
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
139
139
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
140
|
-
title?: string | undefined;
|
|
141
|
-
type: "source";
|
|
142
140
|
id: string;
|
|
141
|
+
type: "source";
|
|
143
142
|
sourceType: "url";
|
|
144
143
|
url: string;
|
|
145
144
|
} | {
|
|
146
145
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
147
146
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
148
147
|
filename?: string | undefined;
|
|
149
|
-
type: "source";
|
|
150
148
|
id: string;
|
|
149
|
+
title: string;
|
|
150
|
+
type: "source";
|
|
151
151
|
mediaType: string;
|
|
152
152
|
sourceType: "document";
|
|
153
|
-
title: string;
|
|
154
153
|
})[];
|
|
155
154
|
} | {
|
|
156
155
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -213,10 +212,10 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
213
212
|
totalTokens: number;
|
|
214
213
|
} | undefined;
|
|
215
214
|
sources?: ({
|
|
215
|
+
title?: string | undefined;
|
|
216
216
|
type?: "source" | undefined;
|
|
217
217
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
218
218
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
219
|
-
title?: string | undefined;
|
|
220
219
|
id: string;
|
|
221
220
|
sourceType: "url";
|
|
222
221
|
url: string;
|
|
@@ -224,11 +223,11 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
224
223
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
225
224
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
226
225
|
filename?: string | undefined;
|
|
227
|
-
type: "source";
|
|
228
226
|
id: string;
|
|
227
|
+
title: string;
|
|
228
|
+
type: "source";
|
|
229
229
|
mediaType: string;
|
|
230
230
|
sourceType: "document";
|
|
231
|
-
title: string;
|
|
232
231
|
})[] | undefined;
|
|
233
232
|
warnings?: ({
|
|
234
233
|
details?: string | undefined;
|
|
@@ -259,13 +258,14 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
259
258
|
})[] | undefined;
|
|
260
259
|
_id: string;
|
|
261
260
|
_creationTime: number;
|
|
262
|
-
|
|
261
|
+
status: "pending" | "success" | "failed";
|
|
263
262
|
order: number;
|
|
263
|
+
threadId: string;
|
|
264
264
|
stepOrder: number;
|
|
265
|
-
status: "pending" | "success" | "failed";
|
|
266
265
|
tool: boolean;
|
|
267
266
|
}[];
|
|
268
267
|
continueCursor: string;
|
|
268
|
+
isDone: boolean;
|
|
269
269
|
}, {
|
|
270
270
|
streams: import("convex/values").VUnion<{
|
|
271
271
|
messages: {
|
|
@@ -275,17 +275,17 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
275
275
|
provider?: string | undefined;
|
|
276
276
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
277
277
|
format?: "UIMessageChunk" | "TextStreamPart" | undefined;
|
|
278
|
+
status: "streaming" | "finished" | "aborted";
|
|
278
279
|
order: number;
|
|
279
280
|
stepOrder: number;
|
|
280
|
-
status: "aborted" | "streaming" | "finished";
|
|
281
281
|
streamId: string;
|
|
282
282
|
}[];
|
|
283
283
|
kind: "list";
|
|
284
284
|
} | {
|
|
285
285
|
kind: "deltas";
|
|
286
286
|
deltas: {
|
|
287
|
-
start: number;
|
|
288
287
|
streamId: string;
|
|
288
|
+
start: number;
|
|
289
289
|
end: number;
|
|
290
290
|
parts: any[];
|
|
291
291
|
}[];
|
|
@@ -297,9 +297,9 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
297
297
|
provider?: string | undefined;
|
|
298
298
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
299
299
|
format?: "UIMessageChunk" | "TextStreamPart" | undefined;
|
|
300
|
+
status: "streaming" | "finished" | "aborted";
|
|
300
301
|
order: number;
|
|
301
302
|
stepOrder: number;
|
|
302
|
-
status: "aborted" | "streaming" | "finished";
|
|
303
303
|
streamId: string;
|
|
304
304
|
}[];
|
|
305
305
|
kind: "list";
|
|
@@ -312,9 +312,9 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
312
312
|
provider?: string | undefined;
|
|
313
313
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
314
314
|
format?: "UIMessageChunk" | "TextStreamPart" | undefined;
|
|
315
|
+
status: "streaming" | "finished" | "aborted";
|
|
315
316
|
order: number;
|
|
316
317
|
stepOrder: number;
|
|
317
|
-
status: "aborted" | "streaming" | "finished";
|
|
318
318
|
streamId: string;
|
|
319
319
|
}[], import("convex/values").VObject<{
|
|
320
320
|
userId?: string | undefined;
|
|
@@ -323,13 +323,13 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
323
323
|
provider?: string | undefined;
|
|
324
324
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
325
325
|
format?: "UIMessageChunk" | "TextStreamPart" | undefined;
|
|
326
|
+
status: "streaming" | "finished" | "aborted";
|
|
326
327
|
order: number;
|
|
327
328
|
stepOrder: number;
|
|
328
|
-
status: "aborted" | "streaming" | "finished";
|
|
329
329
|
streamId: string;
|
|
330
330
|
}, {
|
|
331
331
|
streamId: import("convex/values").VString<string, "required">;
|
|
332
|
-
status: import("convex/values").VUnion<"
|
|
332
|
+
status: import("convex/values").VUnion<"streaming" | "finished" | "aborted", [import("convex/values").VLiteral<"streaming", "required">, import("convex/values").VLiteral<"finished", "required">, import("convex/values").VLiteral<"aborted", "required">], "required", never>;
|
|
333
333
|
format: import("convex/values").VUnion<"UIMessageChunk" | "TextStreamPart" | undefined, [import("convex/values").VLiteral<"UIMessageChunk", "required">, import("convex/values").VLiteral<"TextStreamPart", "required">], "optional", never>;
|
|
334
334
|
order: import("convex/values").VFloat64<number, "required">;
|
|
335
335
|
stepOrder: import("convex/values").VFloat64<number, "required">;
|
|
@@ -338,25 +338,25 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
338
338
|
model: import("convex/values").VString<string | undefined, "optional">;
|
|
339
339
|
provider: import("convex/values").VString<string | undefined, "optional">;
|
|
340
340
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
341
|
-
}, "required", "
|
|
341
|
+
}, "required", "status" | "userId" | "order" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "format" | "streamId">, "required">;
|
|
342
342
|
}, "required", "messages" | "kind">, import("convex/values").VObject<{
|
|
343
343
|
kind: "deltas";
|
|
344
344
|
deltas: {
|
|
345
|
-
start: number;
|
|
346
345
|
streamId: string;
|
|
346
|
+
start: number;
|
|
347
347
|
end: number;
|
|
348
348
|
parts: any[];
|
|
349
349
|
}[];
|
|
350
350
|
}, {
|
|
351
351
|
kind: import("convex/values").VLiteral<"deltas", "required">;
|
|
352
352
|
deltas: import("convex/values").VArray<{
|
|
353
|
-
start: number;
|
|
354
353
|
streamId: string;
|
|
354
|
+
start: number;
|
|
355
355
|
end: number;
|
|
356
356
|
parts: any[];
|
|
357
357
|
}[], import("convex/values").VObject<{
|
|
358
|
-
start: number;
|
|
359
358
|
streamId: string;
|
|
359
|
+
start: number;
|
|
360
360
|
end: number;
|
|
361
361
|
parts: any[];
|
|
362
362
|
}, {
|
|
@@ -364,11 +364,11 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
364
364
|
start: import("convex/values").VFloat64<number, "required">;
|
|
365
365
|
end: import("convex/values").VFloat64<number, "required">;
|
|
366
366
|
parts: import("convex/values").VArray<any[], import("convex/values").VAny<any, "required", string>, "required">;
|
|
367
|
-
}, "required", "
|
|
367
|
+
}, "required", "streamId" | "start" | "end" | "parts">, "required">;
|
|
368
368
|
}, "required", "kind" | "deltas">], "optional", "messages" | "kind" | "deltas">;
|
|
369
369
|
page: import("convex/values").VArray<{
|
|
370
|
-
userId?: string | undefined;
|
|
371
370
|
id?: string | undefined;
|
|
371
|
+
userId?: string | undefined;
|
|
372
372
|
embeddingId?: string | undefined;
|
|
373
373
|
fileIds?: string[] | undefined;
|
|
374
374
|
error?: string | undefined;
|
|
@@ -473,22 +473,22 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
473
473
|
toolCallId: string;
|
|
474
474
|
toolName: string;
|
|
475
475
|
} | {
|
|
476
|
+
title?: string | undefined;
|
|
476
477
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
477
478
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
478
|
-
title?: string | undefined;
|
|
479
|
-
type: "source";
|
|
480
479
|
id: string;
|
|
480
|
+
type: "source";
|
|
481
481
|
sourceType: "url";
|
|
482
482
|
url: string;
|
|
483
483
|
} | {
|
|
484
484
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
485
485
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
486
486
|
filename?: string | undefined;
|
|
487
|
-
type: "source";
|
|
488
487
|
id: string;
|
|
488
|
+
title: string;
|
|
489
|
+
type: "source";
|
|
489
490
|
mediaType: string;
|
|
490
491
|
sourceType: "document";
|
|
491
|
-
title: string;
|
|
492
492
|
})[];
|
|
493
493
|
} | {
|
|
494
494
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -551,10 +551,10 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
551
551
|
totalTokens: number;
|
|
552
552
|
} | undefined;
|
|
553
553
|
sources?: ({
|
|
554
|
+
title?: string | undefined;
|
|
554
555
|
type?: "source" | undefined;
|
|
555
556
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
556
557
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
557
|
-
title?: string | undefined;
|
|
558
558
|
id: string;
|
|
559
559
|
sourceType: "url";
|
|
560
560
|
url: string;
|
|
@@ -562,11 +562,11 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
562
562
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
563
563
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
564
564
|
filename?: string | undefined;
|
|
565
|
-
type: "source";
|
|
566
565
|
id: string;
|
|
566
|
+
title: string;
|
|
567
|
+
type: "source";
|
|
567
568
|
mediaType: string;
|
|
568
569
|
sourceType: "document";
|
|
569
|
-
title: string;
|
|
570
570
|
})[] | undefined;
|
|
571
571
|
warnings?: ({
|
|
572
572
|
details?: string | undefined;
|
|
@@ -597,14 +597,14 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
597
597
|
})[] | undefined;
|
|
598
598
|
_id: string;
|
|
599
599
|
_creationTime: number;
|
|
600
|
-
|
|
600
|
+
status: "pending" | "success" | "failed";
|
|
601
601
|
order: number;
|
|
602
|
+
threadId: string;
|
|
602
603
|
stepOrder: number;
|
|
603
|
-
status: "pending" | "success" | "failed";
|
|
604
604
|
tool: boolean;
|
|
605
605
|
}[], import("convex/values").VObject<{
|
|
606
|
-
userId?: string | undefined;
|
|
607
606
|
id?: string | undefined;
|
|
607
|
+
userId?: string | undefined;
|
|
608
608
|
embeddingId?: string | undefined;
|
|
609
609
|
fileIds?: string[] | undefined;
|
|
610
610
|
error?: string | undefined;
|
|
@@ -709,22 +709,22 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
709
709
|
toolCallId: string;
|
|
710
710
|
toolName: string;
|
|
711
711
|
} | {
|
|
712
|
+
title?: string | undefined;
|
|
712
713
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
713
714
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
714
|
-
title?: string | undefined;
|
|
715
|
-
type: "source";
|
|
716
715
|
id: string;
|
|
716
|
+
type: "source";
|
|
717
717
|
sourceType: "url";
|
|
718
718
|
url: string;
|
|
719
719
|
} | {
|
|
720
720
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
721
721
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
722
722
|
filename?: string | undefined;
|
|
723
|
-
type: "source";
|
|
724
723
|
id: string;
|
|
724
|
+
title: string;
|
|
725
|
+
type: "source";
|
|
725
726
|
mediaType: string;
|
|
726
727
|
sourceType: "document";
|
|
727
|
-
title: string;
|
|
728
728
|
})[];
|
|
729
729
|
} | {
|
|
730
730
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -787,10 +787,10 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
787
787
|
totalTokens: number;
|
|
788
788
|
} | undefined;
|
|
789
789
|
sources?: ({
|
|
790
|
+
title?: string | undefined;
|
|
790
791
|
type?: "source" | undefined;
|
|
791
792
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
792
793
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
793
|
-
title?: string | undefined;
|
|
794
794
|
id: string;
|
|
795
795
|
sourceType: "url";
|
|
796
796
|
url: string;
|
|
@@ -798,11 +798,11 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
798
798
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
799
799
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
800
800
|
filename?: string | undefined;
|
|
801
|
-
type: "source";
|
|
802
801
|
id: string;
|
|
802
|
+
title: string;
|
|
803
|
+
type: "source";
|
|
803
804
|
mediaType: string;
|
|
804
805
|
sourceType: "document";
|
|
805
|
-
title: string;
|
|
806
806
|
})[] | undefined;
|
|
807
807
|
warnings?: ({
|
|
808
808
|
details?: string | undefined;
|
|
@@ -833,10 +833,10 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
833
833
|
})[] | undefined;
|
|
834
834
|
_id: string;
|
|
835
835
|
_creationTime: number;
|
|
836
|
-
|
|
836
|
+
status: "pending" | "success" | "failed";
|
|
837
837
|
order: number;
|
|
838
|
+
threadId: string;
|
|
838
839
|
stepOrder: number;
|
|
839
|
-
status: "pending" | "success" | "failed";
|
|
840
840
|
tool: boolean;
|
|
841
841
|
}, {
|
|
842
842
|
_id: import("convex/values").VString<string, "required">;
|
|
@@ -950,22 +950,22 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
950
950
|
toolCallId: string;
|
|
951
951
|
toolName: string;
|
|
952
952
|
} | {
|
|
953
|
+
title?: string | undefined;
|
|
953
954
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
954
955
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
955
|
-
title?: string | undefined;
|
|
956
|
-
type: "source";
|
|
957
956
|
id: string;
|
|
957
|
+
type: "source";
|
|
958
958
|
sourceType: "url";
|
|
959
959
|
url: string;
|
|
960
960
|
} | {
|
|
961
961
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
962
962
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
963
963
|
filename?: string | undefined;
|
|
964
|
-
type: "source";
|
|
965
964
|
id: string;
|
|
965
|
+
title: string;
|
|
966
|
+
type: "source";
|
|
966
967
|
mediaType: string;
|
|
967
968
|
sourceType: "document";
|
|
968
|
-
title: string;
|
|
969
969
|
})[];
|
|
970
970
|
} | {
|
|
971
971
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1202,22 +1202,22 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1202
1202
|
toolCallId: string;
|
|
1203
1203
|
toolName: string;
|
|
1204
1204
|
} | {
|
|
1205
|
+
title?: string | undefined;
|
|
1205
1206
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1206
1207
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1207
|
-
title?: string | undefined;
|
|
1208
|
-
type: "source";
|
|
1209
1208
|
id: string;
|
|
1209
|
+
type: "source";
|
|
1210
1210
|
sourceType: "url";
|
|
1211
1211
|
url: string;
|
|
1212
1212
|
} | {
|
|
1213
1213
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1214
1214
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1215
1215
|
filename?: string | undefined;
|
|
1216
|
-
type: "source";
|
|
1217
1216
|
id: string;
|
|
1217
|
+
title: string;
|
|
1218
|
+
type: "source";
|
|
1218
1219
|
mediaType: string;
|
|
1219
1220
|
sourceType: "document";
|
|
1220
|
-
title: string;
|
|
1221
1221
|
})[];
|
|
1222
1222
|
}, {
|
|
1223
1223
|
role: import("convex/values").VLiteral<"assistant", "required">;
|
|
@@ -1294,22 +1294,22 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1294
1294
|
toolCallId: string;
|
|
1295
1295
|
toolName: string;
|
|
1296
1296
|
} | {
|
|
1297
|
+
title?: string | undefined;
|
|
1297
1298
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1298
1299
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1299
|
-
title?: string | undefined;
|
|
1300
|
-
type: "source";
|
|
1301
1300
|
id: string;
|
|
1301
|
+
type: "source";
|
|
1302
1302
|
sourceType: "url";
|
|
1303
1303
|
url: string;
|
|
1304
1304
|
} | {
|
|
1305
1305
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1306
1306
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1307
1307
|
filename?: string | undefined;
|
|
1308
|
-
type: "source";
|
|
1309
1308
|
id: string;
|
|
1309
|
+
title: string;
|
|
1310
|
+
type: "source";
|
|
1310
1311
|
mediaType: string;
|
|
1311
1312
|
sourceType: "document";
|
|
1312
|
-
title: string;
|
|
1313
1313
|
})[], [import("convex/values").VString<string, "required">, import("convex/values").VArray<({
|
|
1314
1314
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1315
1315
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1383,22 +1383,22 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1383
1383
|
toolCallId: string;
|
|
1384
1384
|
toolName: string;
|
|
1385
1385
|
} | {
|
|
1386
|
+
title?: string | undefined;
|
|
1386
1387
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1387
1388
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1388
|
-
title?: string | undefined;
|
|
1389
|
-
type: "source";
|
|
1390
1389
|
id: string;
|
|
1390
|
+
type: "source";
|
|
1391
1391
|
sourceType: "url";
|
|
1392
1392
|
url: string;
|
|
1393
1393
|
} | {
|
|
1394
1394
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1395
1395
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1396
1396
|
filename?: string | undefined;
|
|
1397
|
-
type: "source";
|
|
1398
1397
|
id: string;
|
|
1398
|
+
title: string;
|
|
1399
|
+
type: "source";
|
|
1399
1400
|
mediaType: string;
|
|
1400
1401
|
sourceType: "document";
|
|
1401
|
-
title: string;
|
|
1402
1402
|
})[], import("convex/values").VUnion<{
|
|
1403
1403
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1404
1404
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1472,22 +1472,22 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1472
1472
|
toolCallId: string;
|
|
1473
1473
|
toolName: string;
|
|
1474
1474
|
} | {
|
|
1475
|
+
title?: string | undefined;
|
|
1475
1476
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1476
1477
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1477
|
-
title?: string | undefined;
|
|
1478
|
-
type: "source";
|
|
1479
1478
|
id: string;
|
|
1479
|
+
type: "source";
|
|
1480
1480
|
sourceType: "url";
|
|
1481
1481
|
url: string;
|
|
1482
1482
|
} | {
|
|
1483
1483
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1484
1484
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1485
1485
|
filename?: string | undefined;
|
|
1486
|
-
type: "source";
|
|
1487
1486
|
id: string;
|
|
1487
|
+
title: string;
|
|
1488
|
+
type: "source";
|
|
1488
1489
|
mediaType: string;
|
|
1489
1490
|
sourceType: "document";
|
|
1490
|
-
title: string;
|
|
1491
1491
|
}, [import("convex/values").VObject<{
|
|
1492
1492
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1493
1493
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1719,28 +1719,28 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1719
1719
|
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
1720
1720
|
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
1721
1721
|
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "output" | "result" | "isError" | "experimental_content" | "output.type" | "output.value" | `output.value.${string}` | `result.${string}`>, import("convex/values").VUnion<{
|
|
1722
|
+
title?: string | undefined;
|
|
1722
1723
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1723
1724
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1724
|
-
title?: string | undefined;
|
|
1725
|
-
type: "source";
|
|
1726
1725
|
id: string;
|
|
1726
|
+
type: "source";
|
|
1727
1727
|
sourceType: "url";
|
|
1728
1728
|
url: string;
|
|
1729
1729
|
} | {
|
|
1730
1730
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1731
1731
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1732
1732
|
filename?: string | undefined;
|
|
1733
|
-
type: "source";
|
|
1734
1733
|
id: string;
|
|
1734
|
+
title: string;
|
|
1735
|
+
type: "source";
|
|
1735
1736
|
mediaType: string;
|
|
1736
1737
|
sourceType: "document";
|
|
1737
|
-
title: string;
|
|
1738
1738
|
}, [import("convex/values").VObject<{
|
|
1739
|
+
title?: string | undefined;
|
|
1739
1740
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1740
1741
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1741
|
-
title?: string | undefined;
|
|
1742
|
-
type: "source";
|
|
1743
1742
|
id: string;
|
|
1743
|
+
type: "source";
|
|
1744
1744
|
sourceType: "url";
|
|
1745
1745
|
url: string;
|
|
1746
1746
|
}, {
|
|
@@ -1751,15 +1751,15 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1751
1751
|
title: import("convex/values").VString<string | undefined, "optional">;
|
|
1752
1752
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
1753
1753
|
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
1754
|
-
}, "required", "
|
|
1754
|
+
}, "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "sourceType" | "url">, import("convex/values").VObject<{
|
|
1755
1755
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1756
1756
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1757
1757
|
filename?: string | undefined;
|
|
1758
|
-
type: "source";
|
|
1759
1758
|
id: string;
|
|
1759
|
+
title: string;
|
|
1760
|
+
type: "source";
|
|
1760
1761
|
mediaType: string;
|
|
1761
1762
|
sourceType: "document";
|
|
1762
|
-
title: string;
|
|
1763
1763
|
}, {
|
|
1764
1764
|
type: import("convex/values").VLiteral<"source", "required">;
|
|
1765
1765
|
sourceType: import("convex/values").VLiteral<"document", "required">;
|
|
@@ -1769,7 +1769,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1769
1769
|
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
1770
1770
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
1771
1771
|
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
1772
|
-
}, "required", "
|
|
1772
|
+
}, "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "filename" | "mediaType" | "sourceType">], "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "filename" | "mediaType" | "sourceType" | "url">], "required", "id" | "title" | "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "output" | "mediaType" | "result" | "isError" | "experimental_content" | "output.type" | "output.value" | `output.value.${string}` | `result.${string}` | "sourceType" | "url">, "required">], "required", never>;
|
|
1773
1773
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
1774
1774
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
1775
1775
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2055,10 +2055,10 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2055
2055
|
}, "optional", "promptTokens" | "completionTokens" | "totalTokens" | "reasoningTokens" | "cachedInputTokens">;
|
|
2056
2056
|
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
2057
2057
|
sources: import("convex/values").VArray<({
|
|
2058
|
+
title?: string | undefined;
|
|
2058
2059
|
type?: "source" | undefined;
|
|
2059
2060
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2060
2061
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2061
|
-
title?: string | undefined;
|
|
2062
2062
|
id: string;
|
|
2063
2063
|
sourceType: "url";
|
|
2064
2064
|
url: string;
|
|
@@ -2066,16 +2066,16 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2066
2066
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2067
2067
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2068
2068
|
filename?: string | undefined;
|
|
2069
|
-
type: "source";
|
|
2070
2069
|
id: string;
|
|
2070
|
+
title: string;
|
|
2071
|
+
type: "source";
|
|
2071
2072
|
mediaType: string;
|
|
2072
2073
|
sourceType: "document";
|
|
2073
|
-
title: string;
|
|
2074
2074
|
})[] | undefined, import("convex/values").VUnion<{
|
|
2075
|
+
title?: string | undefined;
|
|
2075
2076
|
type?: "source" | undefined;
|
|
2076
2077
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2077
2078
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2078
|
-
title?: string | undefined;
|
|
2079
2079
|
id: string;
|
|
2080
2080
|
sourceType: "url";
|
|
2081
2081
|
url: string;
|
|
@@ -2083,16 +2083,16 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2083
2083
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2084
2084
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2085
2085
|
filename?: string | undefined;
|
|
2086
|
-
type: "source";
|
|
2087
2086
|
id: string;
|
|
2087
|
+
title: string;
|
|
2088
|
+
type: "source";
|
|
2088
2089
|
mediaType: string;
|
|
2089
2090
|
sourceType: "document";
|
|
2090
|
-
title: string;
|
|
2091
2091
|
}, [import("convex/values").VObject<{
|
|
2092
|
+
title?: string | undefined;
|
|
2092
2093
|
type?: "source" | undefined;
|
|
2093
2094
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2094
2095
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2095
|
-
title?: string | undefined;
|
|
2096
2096
|
id: string;
|
|
2097
2097
|
sourceType: "url";
|
|
2098
2098
|
url: string;
|
|
@@ -2104,15 +2104,15 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2104
2104
|
title: import("convex/values").VString<string | undefined, "optional">;
|
|
2105
2105
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
2106
2106
|
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
2107
|
-
}, "required", "
|
|
2107
|
+
}, "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "sourceType" | "url">, import("convex/values").VObject<{
|
|
2108
2108
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2109
2109
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2110
2110
|
filename?: string | undefined;
|
|
2111
|
-
type: "source";
|
|
2112
2111
|
id: string;
|
|
2112
|
+
title: string;
|
|
2113
|
+
type: "source";
|
|
2113
2114
|
mediaType: string;
|
|
2114
2115
|
sourceType: "document";
|
|
2115
|
-
title: string;
|
|
2116
2116
|
}, {
|
|
2117
2117
|
type: import("convex/values").VLiteral<"source", "required">;
|
|
2118
2118
|
sourceType: import("convex/values").VLiteral<"document", "required">;
|
|
@@ -2122,7 +2122,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2122
2122
|
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
2123
2123
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
2124
2124
|
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
2125
|
-
}, "required", "
|
|
2125
|
+
}, "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "filename" | "mediaType" | "sourceType">], "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "filename" | "mediaType" | "sourceType" | "url">, "optional">;
|
|
2126
2126
|
warnings: import("convex/values").VArray<({
|
|
2127
2127
|
details?: string | undefined;
|
|
2128
2128
|
type: "unsupported-setting";
|
|
@@ -2224,12 +2224,12 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2224
2224
|
data: import("convex/values").VString<string, "required">;
|
|
2225
2225
|
}, "required", "type" | "data">], "required", "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "data" | "signature">, "optional">;
|
|
2226
2226
|
id: import("convex/values").VString<string | undefined, "optional">;
|
|
2227
|
-
}, "required", "_id" | "_creationTime" | "
|
|
2227
|
+
}, "required", "_id" | "_creationTime" | "id" | "status" | "userId" | "order" | "threadId" | "stepOrder" | "embeddingId" | "fileIds" | "error" | "agentName" | "model" | "provider" | "providerOptions" | "message" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "reasoning" | "tool" | "usage" | "sources" | "warnings" | "finishReason" | "reasoningDetails" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | "usage.reasoningTokens" | "usage.cachedInputTokens">, "required">;
|
|
2228
2228
|
continueCursor: import("convex/values").VString<string, "required">;
|
|
2229
2229
|
isDone: import("convex/values").VBoolean<boolean, "required">;
|
|
2230
2230
|
splitCursor: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
2231
2231
|
pageStatus: import("convex/values").VUnion<"SplitRecommended" | "SplitRequired" | null | undefined, [import("convex/values").VLiteral<"SplitRecommended", "required">, import("convex/values").VLiteral<"SplitRequired", "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
2232
|
-
}, "required", "
|
|
2232
|
+
}, "required", "page" | "continueCursor" | "isDone" | "splitCursor" | "pageStatus" | "streams" | "streams.messages" | "streams.kind" | "streams.deltas">;
|
|
2233
2233
|
/**
|
|
2234
2234
|
* A function that handles fetching stream deltas, used with the React hooks
|
|
2235
2235
|
* `useThreadMessages` or `useStreamingThreadMessages`.
|