@convex-dev/agent 0.6.0-alpha.0 → 0.6.0-beta.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/MIGRATION.md +153 -0
- package/dist/UIMessages.d.ts.map +1 -1
- package/dist/UIMessages.js +88 -0
- package/dist/UIMessages.js.map +1 -1
- package/dist/client/createTool.d.ts +18 -21
- package/dist/client/createTool.d.ts.map +1 -1
- package/dist/client/createTool.js +3 -2
- package/dist/client/createTool.js.map +1 -1
- package/dist/client/definePlaygroundAPI.d.ts +31 -31
- package/dist/client/index.d.ts +70 -23
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +126 -1
- package/dist/client/index.js.map +1 -1
- package/dist/client/messages.d.ts +9 -9
- package/dist/client/mockModel.d.ts.map +1 -1
- package/dist/client/mockModel.js +9 -2
- package/dist/client/mockModel.js.map +1 -1
- package/dist/client/search.d.ts +9 -9
- package/dist/client/search.d.ts.map +1 -1
- package/dist/client/search.js +12 -2
- package/dist/client/search.js.map +1 -1
- package/dist/client/start.d.ts +1 -1
- package/dist/client/start.d.ts.map +1 -1
- package/dist/client/start.js +29 -15
- package/dist/client/start.js.map +1 -1
- package/dist/client/streamText.d.ts.map +1 -1
- package/dist/client/streamText.js +37 -3
- package/dist/client/streamText.js.map +1 -1
- package/dist/client/streaming.d.ts +78 -67
- package/dist/client/streaming.d.ts.map +1 -1
- package/dist/client/streaming.js +64 -28
- package/dist/client/streaming.js.map +1 -1
- package/dist/client/types.d.ts +13 -12
- package/dist/client/types.d.ts.map +1 -1
- package/dist/component/_generated/component.d.ts +1 -0
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/messages.d.ts +107 -106
- package/dist/component/messages.d.ts.map +1 -1
- package/dist/component/messages.js +13 -3
- package/dist/component/messages.js.map +1 -1
- package/dist/component/schema.d.ts +40 -40
- package/dist/component/streams.d.ts +4 -4
- package/dist/component/threads.d.ts +17 -17
- package/dist/component/users.d.ts +3 -3
- package/dist/component/vector/index.d.ts +1 -1
- package/dist/deltas.d.ts.map +1 -1
- package/dist/deltas.js +0 -1
- package/dist/deltas.js.map +1 -1
- package/dist/mapping.d.ts +22 -0
- package/dist/mapping.d.ts.map +1 -1
- package/dist/mapping.js +99 -5
- package/dist/mapping.js.map +1 -1
- package/dist/react/useDeltaStreams.d.ts.map +1 -1
- package/dist/react/useDeltaStreams.js +5 -0
- package/dist/react/useDeltaStreams.js.map +1 -1
- package/dist/validators.d.ts +13 -13
- package/package.json +4 -2
- package/src/UIMessages.ts +126 -0
- package/src/client/approval.test.ts +494 -0
- package/src/client/createTool.ts +50 -52
- package/src/client/index.ts +170 -1
- package/src/client/mockModel.ts +9 -2
- package/src/client/search.test.ts +4 -5
- package/src/client/search.ts +18 -2
- package/src/client/start.ts +42 -25
- package/src/client/streamText.ts +36 -3
- package/src/client/streaming.integration.test.ts +1206 -0
- package/src/client/streaming.ts +67 -31
- package/src/client/types.ts +14 -12
- package/src/component/_generated/component.ts +53 -64
- package/src/component/messages.ts +12 -2
- package/src/deltas.ts +0 -1
- package/src/mapping.test.ts +143 -1
- package/src/mapping.ts +131 -6
- package/src/react/useDeltaStreams.ts +6 -0
|
@@ -5,6 +5,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
5
5
|
splitCursor?: string | null | undefined;
|
|
6
6
|
pageStatus?: "SplitRecommended" | "SplitRequired" | null | undefined;
|
|
7
7
|
streams?: {
|
|
8
|
+
kind: "list";
|
|
8
9
|
messages: {
|
|
9
10
|
userId?: string | undefined;
|
|
10
11
|
agentName?: string | undefined;
|
|
@@ -12,12 +13,11 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
12
13
|
provider?: string | undefined;
|
|
13
14
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
14
15
|
format?: "UIMessageChunk" | "TextStreamPart" | undefined;
|
|
15
|
-
status: "streaming" | "finished" | "aborted";
|
|
16
16
|
order: number;
|
|
17
17
|
stepOrder: number;
|
|
18
|
+
status: "streaming" | "finished" | "aborted";
|
|
18
19
|
streamId: string;
|
|
19
20
|
}[];
|
|
20
|
-
kind: "list";
|
|
21
21
|
} | {
|
|
22
22
|
kind: "deltas";
|
|
23
23
|
deltas: {
|
|
@@ -28,8 +28,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
28
28
|
}[];
|
|
29
29
|
} | undefined;
|
|
30
30
|
page: {
|
|
31
|
-
id?: string | undefined;
|
|
32
31
|
userId?: string | undefined;
|
|
32
|
+
id?: string | undefined;
|
|
33
33
|
embeddingId?: string | undefined;
|
|
34
34
|
fileIds?: string[] | undefined;
|
|
35
35
|
error?: string | undefined;
|
|
@@ -186,9 +186,9 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
186
186
|
toolCallId: string;
|
|
187
187
|
toolName: string;
|
|
188
188
|
} | {
|
|
189
|
-
title?: string | undefined;
|
|
190
189
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
191
190
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
191
|
+
title?: string | undefined;
|
|
192
192
|
id: string;
|
|
193
193
|
type: "source";
|
|
194
194
|
url: string;
|
|
@@ -198,10 +198,10 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
198
198
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
199
199
|
filename?: string | undefined;
|
|
200
200
|
id: string;
|
|
201
|
-
title: string;
|
|
202
201
|
type: "source";
|
|
203
202
|
mediaType: string;
|
|
204
203
|
sourceType: "document";
|
|
204
|
+
title: string;
|
|
205
205
|
} | {
|
|
206
206
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
207
207
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -317,10 +317,10 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
317
317
|
totalTokens: number;
|
|
318
318
|
} | undefined;
|
|
319
319
|
sources?: ({
|
|
320
|
-
title?: string | undefined;
|
|
321
320
|
type?: "source" | undefined;
|
|
322
321
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
323
322
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
323
|
+
title?: string | undefined;
|
|
324
324
|
id: string;
|
|
325
325
|
url: string;
|
|
326
326
|
sourceType: "url";
|
|
@@ -329,10 +329,10 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
329
329
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
330
330
|
filename?: string | undefined;
|
|
331
331
|
id: string;
|
|
332
|
-
title: string;
|
|
333
332
|
type: "source";
|
|
334
333
|
mediaType: string;
|
|
335
334
|
sourceType: "document";
|
|
335
|
+
title: string;
|
|
336
336
|
})[] | undefined;
|
|
337
337
|
warnings?: ({
|
|
338
338
|
details?: string | undefined;
|
|
@@ -346,7 +346,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
346
346
|
type: "other";
|
|
347
347
|
message: string;
|
|
348
348
|
})[] | undefined;
|
|
349
|
-
finishReason?: "
|
|
349
|
+
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
350
350
|
reasoningDetails?: ({
|
|
351
351
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
352
352
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -361,18 +361,19 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
361
361
|
type: "redacted";
|
|
362
362
|
data: string;
|
|
363
363
|
})[] | undefined;
|
|
364
|
-
|
|
365
|
-
order: number;
|
|
364
|
+
_id: string;
|
|
366
365
|
_creationTime: number;
|
|
367
366
|
threadId: string;
|
|
367
|
+
order: number;
|
|
368
368
|
stepOrder: number;
|
|
369
|
+
status: "pending" | "success" | "failed";
|
|
369
370
|
tool: boolean;
|
|
370
|
-
_id: string;
|
|
371
371
|
}[];
|
|
372
372
|
continueCursor: string;
|
|
373
373
|
isDone: boolean;
|
|
374
374
|
}, {
|
|
375
375
|
streams: import("convex/values").VUnion<{
|
|
376
|
+
kind: "list";
|
|
376
377
|
messages: {
|
|
377
378
|
userId?: string | undefined;
|
|
378
379
|
agentName?: string | undefined;
|
|
@@ -380,12 +381,11 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
380
381
|
provider?: string | undefined;
|
|
381
382
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
382
383
|
format?: "UIMessageChunk" | "TextStreamPart" | undefined;
|
|
383
|
-
status: "streaming" | "finished" | "aborted";
|
|
384
384
|
order: number;
|
|
385
385
|
stepOrder: number;
|
|
386
|
+
status: "streaming" | "finished" | "aborted";
|
|
386
387
|
streamId: string;
|
|
387
388
|
}[];
|
|
388
|
-
kind: "list";
|
|
389
389
|
} | {
|
|
390
390
|
kind: "deltas";
|
|
391
391
|
deltas: {
|
|
@@ -395,6 +395,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
395
395
|
parts: any[];
|
|
396
396
|
}[];
|
|
397
397
|
} | undefined, [import("convex/values").VObject<{
|
|
398
|
+
kind: "list";
|
|
398
399
|
messages: {
|
|
399
400
|
userId?: string | undefined;
|
|
400
401
|
agentName?: string | undefined;
|
|
@@ -402,12 +403,11 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
402
403
|
provider?: string | undefined;
|
|
403
404
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
404
405
|
format?: "UIMessageChunk" | "TextStreamPart" | undefined;
|
|
405
|
-
status: "streaming" | "finished" | "aborted";
|
|
406
406
|
order: number;
|
|
407
407
|
stepOrder: number;
|
|
408
|
+
status: "streaming" | "finished" | "aborted";
|
|
408
409
|
streamId: string;
|
|
409
410
|
}[];
|
|
410
|
-
kind: "list";
|
|
411
411
|
}, {
|
|
412
412
|
kind: import("convex/values").VLiteral<"list", "required">;
|
|
413
413
|
messages: import("convex/values").VArray<{
|
|
@@ -417,9 +417,9 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
417
417
|
provider?: string | undefined;
|
|
418
418
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
419
419
|
format?: "UIMessageChunk" | "TextStreamPart" | undefined;
|
|
420
|
-
status: "streaming" | "finished" | "aborted";
|
|
421
420
|
order: number;
|
|
422
421
|
stepOrder: number;
|
|
422
|
+
status: "streaming" | "finished" | "aborted";
|
|
423
423
|
streamId: string;
|
|
424
424
|
}[], import("convex/values").VObject<{
|
|
425
425
|
userId?: string | undefined;
|
|
@@ -428,9 +428,9 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
428
428
|
provider?: string | undefined;
|
|
429
429
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
430
430
|
format?: "UIMessageChunk" | "TextStreamPart" | undefined;
|
|
431
|
-
status: "streaming" | "finished" | "aborted";
|
|
432
431
|
order: number;
|
|
433
432
|
stepOrder: number;
|
|
433
|
+
status: "streaming" | "finished" | "aborted";
|
|
434
434
|
streamId: string;
|
|
435
435
|
}, {
|
|
436
436
|
streamId: import("convex/values").VString<string, "required">;
|
|
@@ -443,8 +443,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
443
443
|
model: import("convex/values").VString<string | undefined, "optional">;
|
|
444
444
|
provider: import("convex/values").VString<string | undefined, "optional">;
|
|
445
445
|
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>;
|
|
446
|
-
}, "required", "
|
|
447
|
-
}, "required", "
|
|
446
|
+
}, "required", "userId" | "order" | "stepOrder" | "status" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "streamId" | "format">, "required">;
|
|
447
|
+
}, "required", "kind" | "messages">, import("convex/values").VObject<{
|
|
448
448
|
kind: "deltas";
|
|
449
449
|
deltas: {
|
|
450
450
|
streamId: string;
|
|
@@ -470,10 +470,10 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
470
470
|
end: import("convex/values").VFloat64<number, "required">;
|
|
471
471
|
parts: import("convex/values").VArray<any[], import("convex/values").VAny<any, "required", string>, "required">;
|
|
472
472
|
}, "required", "streamId" | "start" | "end" | "parts">, "required">;
|
|
473
|
-
}, "required", "kind" | "deltas">], "optional", "
|
|
473
|
+
}, "required", "kind" | "deltas">], "optional", "kind" | "messages" | "deltas">;
|
|
474
474
|
page: import("convex/values").VArray<{
|
|
475
|
-
id?: string | undefined;
|
|
476
475
|
userId?: string | undefined;
|
|
476
|
+
id?: string | undefined;
|
|
477
477
|
embeddingId?: string | undefined;
|
|
478
478
|
fileIds?: string[] | undefined;
|
|
479
479
|
error?: string | undefined;
|
|
@@ -630,9 +630,9 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
630
630
|
toolCallId: string;
|
|
631
631
|
toolName: string;
|
|
632
632
|
} | {
|
|
633
|
-
title?: string | undefined;
|
|
634
633
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
635
634
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
635
|
+
title?: string | undefined;
|
|
636
636
|
id: string;
|
|
637
637
|
type: "source";
|
|
638
638
|
url: string;
|
|
@@ -642,10 +642,10 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
642
642
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
643
643
|
filename?: string | undefined;
|
|
644
644
|
id: string;
|
|
645
|
-
title: string;
|
|
646
645
|
type: "source";
|
|
647
646
|
mediaType: string;
|
|
648
647
|
sourceType: "document";
|
|
648
|
+
title: string;
|
|
649
649
|
} | {
|
|
650
650
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
651
651
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -761,10 +761,10 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
761
761
|
totalTokens: number;
|
|
762
762
|
} | undefined;
|
|
763
763
|
sources?: ({
|
|
764
|
-
title?: string | undefined;
|
|
765
764
|
type?: "source" | undefined;
|
|
766
765
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
767
766
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
767
|
+
title?: string | undefined;
|
|
768
768
|
id: string;
|
|
769
769
|
url: string;
|
|
770
770
|
sourceType: "url";
|
|
@@ -773,10 +773,10 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
773
773
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
774
774
|
filename?: string | undefined;
|
|
775
775
|
id: string;
|
|
776
|
-
title: string;
|
|
777
776
|
type: "source";
|
|
778
777
|
mediaType: string;
|
|
779
778
|
sourceType: "document";
|
|
779
|
+
title: string;
|
|
780
780
|
})[] | undefined;
|
|
781
781
|
warnings?: ({
|
|
782
782
|
details?: string | undefined;
|
|
@@ -790,7 +790,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
790
790
|
type: "other";
|
|
791
791
|
message: string;
|
|
792
792
|
})[] | undefined;
|
|
793
|
-
finishReason?: "
|
|
793
|
+
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
794
794
|
reasoningDetails?: ({
|
|
795
795
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
796
796
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -805,16 +805,16 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
805
805
|
type: "redacted";
|
|
806
806
|
data: string;
|
|
807
807
|
})[] | undefined;
|
|
808
|
-
|
|
809
|
-
order: number;
|
|
808
|
+
_id: string;
|
|
810
809
|
_creationTime: number;
|
|
811
810
|
threadId: string;
|
|
811
|
+
order: number;
|
|
812
812
|
stepOrder: number;
|
|
813
|
+
status: "pending" | "success" | "failed";
|
|
813
814
|
tool: boolean;
|
|
814
|
-
_id: string;
|
|
815
815
|
}[], import("convex/values").VObject<{
|
|
816
|
-
id?: string | undefined;
|
|
817
816
|
userId?: string | undefined;
|
|
817
|
+
id?: string | undefined;
|
|
818
818
|
embeddingId?: string | undefined;
|
|
819
819
|
fileIds?: string[] | undefined;
|
|
820
820
|
error?: string | undefined;
|
|
@@ -971,9 +971,9 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
971
971
|
toolCallId: string;
|
|
972
972
|
toolName: string;
|
|
973
973
|
} | {
|
|
974
|
-
title?: string | undefined;
|
|
975
974
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
976
975
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
976
|
+
title?: string | undefined;
|
|
977
977
|
id: string;
|
|
978
978
|
type: "source";
|
|
979
979
|
url: string;
|
|
@@ -983,10 +983,10 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
983
983
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
984
984
|
filename?: string | undefined;
|
|
985
985
|
id: string;
|
|
986
|
-
title: string;
|
|
987
986
|
type: "source";
|
|
988
987
|
mediaType: string;
|
|
989
988
|
sourceType: "document";
|
|
989
|
+
title: string;
|
|
990
990
|
} | {
|
|
991
991
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
992
992
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1102,10 +1102,10 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
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
|
url: string;
|
|
1111
1111
|
sourceType: "url";
|
|
@@ -1114,10 +1114,10 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1114
1114
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1115
1115
|
filename?: string | undefined;
|
|
1116
1116
|
id: string;
|
|
1117
|
-
title: string;
|
|
1118
1117
|
type: "source";
|
|
1119
1118
|
mediaType: string;
|
|
1120
1119
|
sourceType: "document";
|
|
1120
|
+
title: string;
|
|
1121
1121
|
})[] | undefined;
|
|
1122
1122
|
warnings?: ({
|
|
1123
1123
|
details?: string | undefined;
|
|
@@ -1131,7 +1131,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1131
1131
|
type: "other";
|
|
1132
1132
|
message: string;
|
|
1133
1133
|
})[] | undefined;
|
|
1134
|
-
finishReason?: "
|
|
1134
|
+
finishReason?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
|
|
1135
1135
|
reasoningDetails?: ({
|
|
1136
1136
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1137
1137
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1146,13 +1146,13 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1146
1146
|
type: "redacted";
|
|
1147
1147
|
data: string;
|
|
1148
1148
|
})[] | undefined;
|
|
1149
|
-
|
|
1150
|
-
order: number;
|
|
1149
|
+
_id: string;
|
|
1151
1150
|
_creationTime: number;
|
|
1152
1151
|
threadId: string;
|
|
1152
|
+
order: number;
|
|
1153
1153
|
stepOrder: number;
|
|
1154
|
+
status: "pending" | "success" | "failed";
|
|
1154
1155
|
tool: boolean;
|
|
1155
|
-
_id: string;
|
|
1156
1156
|
}, {
|
|
1157
1157
|
_id: import("convex/values").VString<string, "required">;
|
|
1158
1158
|
_creationTime: import("convex/values").VFloat64<number, "required">;
|
|
@@ -1317,9 +1317,9 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1317
1317
|
toolCallId: string;
|
|
1318
1318
|
toolName: string;
|
|
1319
1319
|
} | {
|
|
1320
|
-
title?: string | undefined;
|
|
1321
1320
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1322
1321
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1322
|
+
title?: string | undefined;
|
|
1323
1323
|
id: string;
|
|
1324
1324
|
type: "source";
|
|
1325
1325
|
url: string;
|
|
@@ -1329,10 +1329,10 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1329
1329
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1330
1330
|
filename?: string | undefined;
|
|
1331
1331
|
id: string;
|
|
1332
|
-
title: string;
|
|
1333
1332
|
type: "source";
|
|
1334
1333
|
mediaType: string;
|
|
1335
1334
|
sourceType: "document";
|
|
1335
|
+
title: string;
|
|
1336
1336
|
} | {
|
|
1337
1337
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1338
1338
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1684,9 +1684,9 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1684
1684
|
toolCallId: string;
|
|
1685
1685
|
toolName: string;
|
|
1686
1686
|
} | {
|
|
1687
|
-
title?: string | undefined;
|
|
1688
1687
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1689
1688
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1689
|
+
title?: string | undefined;
|
|
1690
1690
|
id: string;
|
|
1691
1691
|
type: "source";
|
|
1692
1692
|
url: string;
|
|
@@ -1696,10 +1696,10 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1696
1696
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1697
1697
|
filename?: string | undefined;
|
|
1698
1698
|
id: string;
|
|
1699
|
-
title: string;
|
|
1700
1699
|
type: "source";
|
|
1701
1700
|
mediaType: string;
|
|
1702
1701
|
sourceType: "document";
|
|
1702
|
+
title: string;
|
|
1703
1703
|
} | {
|
|
1704
1704
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1705
1705
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1832,9 +1832,9 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1832
1832
|
toolCallId: string;
|
|
1833
1833
|
toolName: string;
|
|
1834
1834
|
} | {
|
|
1835
|
-
title?: string | undefined;
|
|
1836
1835
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1837
1836
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1837
|
+
title?: string | undefined;
|
|
1838
1838
|
id: string;
|
|
1839
1839
|
type: "source";
|
|
1840
1840
|
url: string;
|
|
@@ -1844,10 +1844,10 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1844
1844
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1845
1845
|
filename?: string | undefined;
|
|
1846
1846
|
id: string;
|
|
1847
|
-
title: string;
|
|
1848
1847
|
type: "source";
|
|
1849
1848
|
mediaType: string;
|
|
1850
1849
|
sourceType: "document";
|
|
1850
|
+
title: string;
|
|
1851
1851
|
} | {
|
|
1852
1852
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1853
1853
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -1977,9 +1977,9 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1977
1977
|
toolCallId: string;
|
|
1978
1978
|
toolName: string;
|
|
1979
1979
|
} | {
|
|
1980
|
-
title?: string | undefined;
|
|
1981
1980
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1982
1981
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1982
|
+
title?: string | undefined;
|
|
1983
1983
|
id: string;
|
|
1984
1984
|
type: "source";
|
|
1985
1985
|
url: string;
|
|
@@ -1989,10 +1989,10 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1989
1989
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1990
1990
|
filename?: string | undefined;
|
|
1991
1991
|
id: string;
|
|
1992
|
-
title: string;
|
|
1993
1992
|
type: "source";
|
|
1994
1993
|
mediaType: string;
|
|
1995
1994
|
sourceType: "document";
|
|
1995
|
+
title: string;
|
|
1996
1996
|
} | {
|
|
1997
1997
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1998
1998
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2122,9 +2122,9 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2122
2122
|
toolCallId: string;
|
|
2123
2123
|
toolName: string;
|
|
2124
2124
|
} | {
|
|
2125
|
-
title?: string | undefined;
|
|
2126
2125
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2127
2126
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2127
|
+
title?: string | undefined;
|
|
2128
2128
|
id: string;
|
|
2129
2129
|
type: "source";
|
|
2130
2130
|
url: string;
|
|
@@ -2134,10 +2134,10 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2134
2134
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2135
2135
|
filename?: string | undefined;
|
|
2136
2136
|
id: string;
|
|
2137
|
-
title: string;
|
|
2138
2137
|
type: "source";
|
|
2139
2138
|
mediaType: string;
|
|
2140
2139
|
sourceType: "document";
|
|
2140
|
+
title: string;
|
|
2141
2141
|
} | {
|
|
2142
2142
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2143
2143
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
@@ -2664,9 +2664,9 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2664
2664
|
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
2665
2665
|
}, "required", "type" | "mimeType" | "data">], "required", "type" | "text" | "mimeType" | "data">, "optional">;
|
|
2666
2666
|
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "toolName" | "args" | "providerExecuted" | `args.${string}` | "output" | "result" | "isError" | "experimental_content" | "output.type" | "output.providerOptions" | `output.providerOptions.${string}` | "output.value" | `output.value.${string}` | "output.reason" | `result.${string}`>, import("convex/values").VUnion<{
|
|
2667
|
-
title?: string | undefined;
|
|
2668
2667
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2669
2668
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2669
|
+
title?: string | undefined;
|
|
2670
2670
|
id: string;
|
|
2671
2671
|
type: "source";
|
|
2672
2672
|
url: string;
|
|
@@ -2676,14 +2676,14 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2676
2676
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2677
2677
|
filename?: string | undefined;
|
|
2678
2678
|
id: string;
|
|
2679
|
-
title: string;
|
|
2680
2679
|
type: "source";
|
|
2681
2680
|
mediaType: string;
|
|
2682
2681
|
sourceType: "document";
|
|
2682
|
+
title: string;
|
|
2683
2683
|
}, [import("convex/values").VObject<{
|
|
2684
|
-
title?: string | undefined;
|
|
2685
2684
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2686
2685
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2686
|
+
title?: string | undefined;
|
|
2687
2687
|
id: string;
|
|
2688
2688
|
type: "source";
|
|
2689
2689
|
url: string;
|
|
@@ -2696,15 +2696,15 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2696
2696
|
title: import("convex/values").VString<string | undefined, "optional">;
|
|
2697
2697
|
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>;
|
|
2698
2698
|
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>;
|
|
2699
|
-
}, "required", "id" | "
|
|
2699
|
+
}, "required", "id" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "url" | "sourceType" | "title">, import("convex/values").VObject<{
|
|
2700
2700
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2701
2701
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2702
2702
|
filename?: string | undefined;
|
|
2703
2703
|
id: string;
|
|
2704
|
-
title: string;
|
|
2705
2704
|
type: "source";
|
|
2706
2705
|
mediaType: string;
|
|
2707
2706
|
sourceType: "document";
|
|
2707
|
+
title: string;
|
|
2708
2708
|
}, {
|
|
2709
2709
|
type: import("convex/values").VLiteral<"source", "required">;
|
|
2710
2710
|
sourceType: import("convex/values").VLiteral<"document", "required">;
|
|
@@ -2714,7 +2714,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2714
2714
|
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
2715
2715
|
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>;
|
|
2716
2716
|
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>;
|
|
2717
|
-
}, "required", "id" | "
|
|
2717
|
+
}, "required", "id" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "filename" | "sourceType" | "title">], "required", "id" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "filename" | "url" | "sourceType" | "title">, import("convex/values").VObject<{
|
|
2718
2718
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2719
2719
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2720
2720
|
type: "tool-approval-request";
|
|
@@ -2726,7 +2726,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2726
2726
|
toolCallId: import("convex/values").VString<string, "required">;
|
|
2727
2727
|
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>;
|
|
2728
2728
|
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>;
|
|
2729
|
-
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "approvalId">], "required", "id" | "
|
|
2729
|
+
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "approvalId">], "required", "id" | "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "input" | "args" | "providerExecuted" | `input.${string}` | `args.${string}` | "output" | "url" | "result" | "isError" | "experimental_content" | "output.type" | "output.providerOptions" | `output.providerOptions.${string}` | "output.value" | `output.value.${string}` | "output.reason" | `result.${string}` | "sourceType" | "title" | "approvalId">, "required">], "required", never>;
|
|
2730
2730
|
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>;
|
|
2731
2731
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
2732
2732
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -3459,10 +3459,10 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3459
3459
|
}, "optional", "promptTokens" | "completionTokens" | "totalTokens" | "reasoningTokens" | "cachedInputTokens">;
|
|
3460
3460
|
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>;
|
|
3461
3461
|
sources: import("convex/values").VArray<({
|
|
3462
|
-
title?: string | undefined;
|
|
3463
3462
|
type?: "source" | undefined;
|
|
3464
3463
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3465
3464
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3465
|
+
title?: string | undefined;
|
|
3466
3466
|
id: string;
|
|
3467
3467
|
url: string;
|
|
3468
3468
|
sourceType: "url";
|
|
@@ -3471,15 +3471,15 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3471
3471
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3472
3472
|
filename?: string | undefined;
|
|
3473
3473
|
id: string;
|
|
3474
|
-
title: string;
|
|
3475
3474
|
type: "source";
|
|
3476
3475
|
mediaType: string;
|
|
3477
3476
|
sourceType: "document";
|
|
3477
|
+
title: string;
|
|
3478
3478
|
})[] | undefined, import("convex/values").VUnion<{
|
|
3479
|
-
title?: string | undefined;
|
|
3480
3479
|
type?: "source" | undefined;
|
|
3481
3480
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3482
3481
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3482
|
+
title?: string | undefined;
|
|
3483
3483
|
id: string;
|
|
3484
3484
|
url: string;
|
|
3485
3485
|
sourceType: "url";
|
|
@@ -3488,15 +3488,15 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3488
3488
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3489
3489
|
filename?: string | undefined;
|
|
3490
3490
|
id: string;
|
|
3491
|
-
title: string;
|
|
3492
3491
|
type: "source";
|
|
3493
3492
|
mediaType: string;
|
|
3494
3493
|
sourceType: "document";
|
|
3494
|
+
title: string;
|
|
3495
3495
|
}, [import("convex/values").VObject<{
|
|
3496
|
-
title?: string | undefined;
|
|
3497
3496
|
type?: "source" | undefined;
|
|
3498
3497
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3499
3498
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3499
|
+
title?: string | undefined;
|
|
3500
3500
|
id: string;
|
|
3501
3501
|
url: string;
|
|
3502
3502
|
sourceType: "url";
|
|
@@ -3508,15 +3508,15 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3508
3508
|
title: import("convex/values").VString<string | undefined, "optional">;
|
|
3509
3509
|
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>;
|
|
3510
3510
|
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>;
|
|
3511
|
-
}, "required", "id" | "
|
|
3511
|
+
}, "required", "id" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "url" | "sourceType" | "title">, import("convex/values").VObject<{
|
|
3512
3512
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3513
3513
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3514
3514
|
filename?: string | undefined;
|
|
3515
3515
|
id: string;
|
|
3516
|
-
title: string;
|
|
3517
3516
|
type: "source";
|
|
3518
3517
|
mediaType: string;
|
|
3519
3518
|
sourceType: "document";
|
|
3519
|
+
title: string;
|
|
3520
3520
|
}, {
|
|
3521
3521
|
type: import("convex/values").VLiteral<"source", "required">;
|
|
3522
3522
|
sourceType: import("convex/values").VLiteral<"document", "required">;
|
|
@@ -3526,7 +3526,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3526
3526
|
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
3527
3527
|
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>;
|
|
3528
3528
|
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>;
|
|
3529
|
-
}, "required", "id" | "
|
|
3529
|
+
}, "required", "id" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "filename" | "sourceType" | "title">], "required", "id" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "filename" | "url" | "sourceType" | "title">, "optional">;
|
|
3530
3530
|
warnings: import("convex/values").VArray<({
|
|
3531
3531
|
details?: string | undefined;
|
|
3532
3532
|
type: "unsupported-setting";
|
|
@@ -3572,7 +3572,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3572
3572
|
type: import("convex/values").VLiteral<"other", "required">;
|
|
3573
3573
|
message: import("convex/values").VString<string, "required">;
|
|
3574
3574
|
}, "required", "type" | "message">], "required", "type" | "message" | "tool" | "setting" | "details" | `tool.${string}`>, "optional">;
|
|
3575
|
-
finishReason: import("convex/values").VUnion<"
|
|
3575
|
+
finishReason: import("convex/values").VUnion<"length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined, [import("convex/values").VLiteral<"stop", "required">, import("convex/values").VLiteral<"length", "required">, import("convex/values").VLiteral<"content-filter", "required">, import("convex/values").VLiteral<"tool-calls", "required">, import("convex/values").VLiteral<"error", "required">, import("convex/values").VLiteral<"other", "required">, import("convex/values").VLiteral<"unknown", "required">], "optional", never>;
|
|
3576
3576
|
reasoning: import("convex/values").VString<string | undefined, "optional">;
|
|
3577
3577
|
reasoningDetails: import("convex/values").VArray<({
|
|
3578
3578
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -3628,12 +3628,12 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3628
3628
|
data: import("convex/values").VString<string, "required">;
|
|
3629
3629
|
}, "required", "type" | "data">], "required", "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "data" | "signature">, "optional">;
|
|
3630
3630
|
id: import("convex/values").VString<string | undefined, "optional">;
|
|
3631
|
-
}, "required", "
|
|
3631
|
+
}, "required", "_id" | "_creationTime" | "userId" | "id" | "threadId" | "order" | "stepOrder" | "embeddingId" | "fileIds" | "error" | "status" | "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">;
|
|
3632
3632
|
continueCursor: import("convex/values").VString<string, "required">;
|
|
3633
3633
|
isDone: import("convex/values").VBoolean<boolean, "required">;
|
|
3634
3634
|
splitCursor: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
3635
3635
|
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>;
|
|
3636
|
-
}, "required", "page" | "continueCursor" | "isDone" | "splitCursor" | "pageStatus" | "streams" | "streams.
|
|
3636
|
+
}, "required", "page" | "continueCursor" | "isDone" | "splitCursor" | "pageStatus" | "streams" | "streams.kind" | "streams.messages" | "streams.deltas">;
|
|
3637
3637
|
/**
|
|
3638
3638
|
* A function that handles fetching stream deltas, used with the React hooks
|
|
3639
3639
|
* `useThreadMessages` or `useStreamingThreadMessages`.
|
|
@@ -3753,9 +3753,20 @@ export declare class DeltaStreamer<T> {
|
|
|
3753
3753
|
providerOptions?: ProviderOptions;
|
|
3754
3754
|
format: "UIMessageChunk" | "TextStreamPart" | undefined;
|
|
3755
3755
|
});
|
|
3756
|
-
getStreamId(): Promise<string
|
|
3756
|
+
getStreamId(): Promise<string>;
|
|
3757
3757
|
addParts(parts: T[]): Promise<void>;
|
|
3758
3758
|
consumeStream(stream: AsyncIterableStream<T>): Promise<void>;
|
|
3759
|
+
/**
|
|
3760
|
+
* Mark the stream as being finished externally (e.g., atomically via addMessages).
|
|
3761
|
+
* When called, consumeStream() will skip calling finish() since it will be
|
|
3762
|
+
* handled elsewhere in the same mutation as message saving.
|
|
3763
|
+
*/
|
|
3764
|
+
markFinishedExternally(): void;
|
|
3765
|
+
/**
|
|
3766
|
+
* Get the stream ID, waiting for it to be created if necessary.
|
|
3767
|
+
* Useful for passing to addMessages for atomic finish.
|
|
3768
|
+
*/
|
|
3769
|
+
getOrCreateStreamId(): Promise<string>;
|
|
3759
3770
|
finish(): Promise<void>;
|
|
3760
3771
|
fail(reason: string): Promise<void>;
|
|
3761
3772
|
}
|