@convex-dev/agent 0.2.10 → 0.2.11-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/UIMessages.d.ts.map +1 -1
- package/dist/UIMessages.js +2 -7
- package/dist/UIMessages.js.map +1 -1
- package/dist/client/definePlaygroundAPI.d.ts +42 -42
- package/dist/client/files.d.ts +2 -2
- package/dist/client/files.d.ts.map +1 -1
- package/dist/client/files.js.map +1 -1
- package/dist/client/index.d.ts +58 -58
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +1 -1
- package/dist/client/index.js.map +1 -1
- package/dist/client/messages.d.ts +15 -15
- package/dist/client/messages.d.ts.map +1 -1
- package/dist/client/messages.js.map +1 -1
- package/dist/client/saveInputMessages.d.ts +2 -2
- package/dist/client/saveInputMessages.d.ts.map +1 -1
- package/dist/client/saveInputMessages.js.map +1 -1
- package/dist/client/search.d.ts +17 -17
- package/dist/client/search.d.ts.map +1 -1
- package/dist/client/search.js +4 -13
- package/dist/client/search.js.map +1 -1
- package/dist/client/streaming.d.ts +95 -95
- package/dist/client/streaming.d.ts.map +1 -1
- package/dist/client/streaming.js.map +1 -1
- package/dist/client/threads.d.ts +5 -5
- package/dist/client/threads.d.ts.map +1 -1
- package/dist/client/threads.js.map +1 -1
- package/dist/client/types.d.ts +6 -8
- package/dist/client/types.d.ts.map +1 -1
- package/dist/component/messages.d.ts +113 -113
- package/dist/component/streams.d.ts +7 -7
- package/dist/component/threads.d.ts +7 -7
- package/dist/component/users.d.ts +3 -3
- package/dist/deltas.d.ts.map +1 -1
- package/dist/deltas.js +6 -17
- package/dist/deltas.js.map +1 -1
- package/dist/mapping.d.ts +5 -4
- package/dist/mapping.d.ts.map +1 -1
- package/dist/mapping.js +7 -0
- package/dist/mapping.js.map +1 -1
- package/dist/shared.d.ts +4 -2
- package/dist/shared.d.ts.map +1 -1
- package/dist/shared.js +10 -10
- package/dist/shared.js.map +1 -1
- package/dist/validators.d.ts +1 -0
- package/dist/validators.d.ts.map +1 -1
- package/dist/validators.js.map +1 -1
- package/package.json +1 -1
- package/src/UIMessages.ts +8 -8
- package/src/client/files.ts +2 -2
- package/src/client/index.ts +22 -22
- package/src/client/messages.ts +10 -5
- package/src/client/saveInputMessages.test.ts +13 -5
- package/src/client/saveInputMessages.ts +3 -3
- package/src/client/search.test.ts +19 -15
- package/src/client/search.ts +20 -28
- package/src/client/streaming.ts +7 -6
- package/src/client/threads.ts +10 -5
- package/src/client/types.ts +6 -8
- package/src/deltas.test.ts +24 -14
- package/src/deltas.ts +6 -17
- package/src/mapping.ts +12 -3
- package/src/shared.ts +37 -12
- package/src/toUIMessages.test.ts +77 -2
- package/src/validators.ts +10 -0
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { type AsyncIterableStream, type ChunkDetector, type StreamTextTransform, type TextStreamPart, type ToolSet, type UIMessageChunk } from "ai";
|
|
2
2
|
import { type ProviderOptions, type StreamArgs, type StreamMessage } from "../validators.js";
|
|
3
|
-
import type { AgentComponent,
|
|
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;
|
|
7
5
|
streams?: {
|
|
8
6
|
messages: {
|
|
9
7
|
userId?: string | undefined;
|
|
@@ -12,24 +10,27 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
12
10
|
provider?: string | undefined;
|
|
13
11
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
14
12
|
format?: "UIMessageChunk" | "TextStreamPart" | undefined;
|
|
15
|
-
status: "streaming" | "finished" | "aborted";
|
|
16
13
|
order: number;
|
|
17
14
|
stepOrder: number;
|
|
15
|
+
status: "aborted" | "streaming" | "finished";
|
|
18
16
|
streamId: string;
|
|
19
17
|
}[];
|
|
20
18
|
kind: "list";
|
|
21
19
|
} | {
|
|
22
20
|
kind: "deltas";
|
|
23
21
|
deltas: {
|
|
24
|
-
streamId: string;
|
|
25
22
|
start: number;
|
|
23
|
+
streamId: string;
|
|
26
24
|
end: number;
|
|
27
25
|
parts: any[];
|
|
28
26
|
}[];
|
|
29
27
|
} | undefined;
|
|
28
|
+
splitCursor?: string | null | undefined;
|
|
29
|
+
pageStatus?: "SplitRecommended" | "SplitRequired" | null | undefined;
|
|
30
|
+
isDone: boolean;
|
|
30
31
|
page: {
|
|
31
|
-
id?: string | undefined;
|
|
32
32
|
userId?: string | undefined;
|
|
33
|
+
id?: string | undefined;
|
|
33
34
|
embeddingId?: string | undefined;
|
|
34
35
|
fileIds?: string[] | undefined;
|
|
35
36
|
error?: string | undefined;
|
|
@@ -134,22 +135,22 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
134
135
|
toolCallId: string;
|
|
135
136
|
toolName: string;
|
|
136
137
|
} | {
|
|
137
|
-
title?: string | undefined;
|
|
138
138
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
139
139
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
140
|
-
|
|
140
|
+
title?: string | undefined;
|
|
141
141
|
type: "source";
|
|
142
|
+
id: string;
|
|
142
143
|
sourceType: "url";
|
|
143
144
|
url: string;
|
|
144
145
|
} | {
|
|
145
146
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
146
147
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
147
148
|
filename?: string | undefined;
|
|
148
|
-
id: string;
|
|
149
|
-
title: string;
|
|
150
149
|
type: "source";
|
|
150
|
+
id: string;
|
|
151
151
|
mediaType: string;
|
|
152
152
|
sourceType: "document";
|
|
153
|
+
title: string;
|
|
153
154
|
})[];
|
|
154
155
|
} | {
|
|
155
156
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -212,10 +213,10 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
212
213
|
totalTokens: number;
|
|
213
214
|
} | undefined;
|
|
214
215
|
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;
|
|
219
220
|
id: string;
|
|
220
221
|
sourceType: "url";
|
|
221
222
|
url: string;
|
|
@@ -223,11 +224,11 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
223
224
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
224
225
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
225
226
|
filename?: string | undefined;
|
|
226
|
-
id: string;
|
|
227
|
-
title: string;
|
|
228
227
|
type: "source";
|
|
228
|
+
id: string;
|
|
229
229
|
mediaType: string;
|
|
230
230
|
sourceType: "document";
|
|
231
|
+
title: string;
|
|
231
232
|
})[] | undefined;
|
|
232
233
|
warnings?: ({
|
|
233
234
|
details?: string | undefined;
|
|
@@ -258,14 +259,13 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
258
259
|
})[] | undefined;
|
|
259
260
|
_id: string;
|
|
260
261
|
_creationTime: number;
|
|
261
|
-
status: "pending" | "success" | "failed";
|
|
262
|
-
order: number;
|
|
263
262
|
threadId: string;
|
|
263
|
+
order: number;
|
|
264
264
|
stepOrder: number;
|
|
265
|
+
status: "pending" | "success" | "failed";
|
|
265
266
|
tool: boolean;
|
|
266
267
|
}[];
|
|
267
268
|
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";
|
|
279
278
|
order: number;
|
|
280
279
|
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
|
-
streamId: string;
|
|
288
287
|
start: number;
|
|
288
|
+
streamId: string;
|
|
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";
|
|
301
300
|
order: number;
|
|
302
301
|
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";
|
|
316
315
|
order: number;
|
|
317
316
|
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";
|
|
327
326
|
order: number;
|
|
328
327
|
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<"aborted" | "streaming" | "finished", [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", "userId" | "order" | "stepOrder" | "status" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "streamId" | "format">, "required">;
|
|
342
342
|
}, "required", "messages" | "kind">, import("convex/values").VObject<{
|
|
343
343
|
kind: "deltas";
|
|
344
344
|
deltas: {
|
|
345
|
-
streamId: string;
|
|
346
345
|
start: number;
|
|
346
|
+
streamId: string;
|
|
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
|
-
streamId: string;
|
|
354
353
|
start: number;
|
|
354
|
+
streamId: string;
|
|
355
355
|
end: number;
|
|
356
356
|
parts: any[];
|
|
357
357
|
}[], import("convex/values").VObject<{
|
|
358
|
-
streamId: string;
|
|
359
358
|
start: number;
|
|
359
|
+
streamId: string;
|
|
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", "start" | "streamId" | "end" | "parts">, "required">;
|
|
368
368
|
}, "required", "kind" | "deltas">], "optional", "messages" | "kind" | "deltas">;
|
|
369
369
|
page: import("convex/values").VArray<{
|
|
370
|
-
id?: string | undefined;
|
|
371
370
|
userId?: string | undefined;
|
|
371
|
+
id?: 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;
|
|
477
476
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
478
477
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
479
|
-
|
|
478
|
+
title?: string | undefined;
|
|
480
479
|
type: "source";
|
|
480
|
+
id: string;
|
|
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
|
-
id: string;
|
|
488
|
-
title: string;
|
|
489
487
|
type: "source";
|
|
488
|
+
id: string;
|
|
490
489
|
mediaType: string;
|
|
491
490
|
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;
|
|
555
554
|
type?: "source" | undefined;
|
|
556
555
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
557
556
|
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
|
-
id: string;
|
|
566
|
-
title: string;
|
|
567
565
|
type: "source";
|
|
566
|
+
id: string;
|
|
568
567
|
mediaType: string;
|
|
569
568
|
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
|
-
status: "pending" | "success" | "failed";
|
|
601
|
-
order: number;
|
|
602
600
|
threadId: string;
|
|
601
|
+
order: number;
|
|
603
602
|
stepOrder: number;
|
|
603
|
+
status: "pending" | "success" | "failed";
|
|
604
604
|
tool: boolean;
|
|
605
605
|
}[], import("convex/values").VObject<{
|
|
606
|
-
id?: string | undefined;
|
|
607
606
|
userId?: string | undefined;
|
|
607
|
+
id?: 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;
|
|
713
712
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
714
713
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
715
|
-
|
|
714
|
+
title?: string | undefined;
|
|
716
715
|
type: "source";
|
|
716
|
+
id: string;
|
|
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
|
-
id: string;
|
|
724
|
-
title: string;
|
|
725
723
|
type: "source";
|
|
724
|
+
id: string;
|
|
726
725
|
mediaType: string;
|
|
727
726
|
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;
|
|
791
790
|
type?: "source" | undefined;
|
|
792
791
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
793
792
|
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
|
-
id: string;
|
|
802
|
-
title: string;
|
|
803
801
|
type: "source";
|
|
802
|
+
id: string;
|
|
804
803
|
mediaType: string;
|
|
805
804
|
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
|
-
status: "pending" | "success" | "failed";
|
|
837
|
-
order: number;
|
|
838
836
|
threadId: string;
|
|
837
|
+
order: number;
|
|
839
838
|
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;
|
|
954
953
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
955
954
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
956
|
-
|
|
955
|
+
title?: string | undefined;
|
|
957
956
|
type: "source";
|
|
957
|
+
id: string;
|
|
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
|
-
id: string;
|
|
965
|
-
title: string;
|
|
966
964
|
type: "source";
|
|
965
|
+
id: string;
|
|
967
966
|
mediaType: string;
|
|
968
967
|
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;
|
|
1206
1205
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1207
1206
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1208
|
-
|
|
1207
|
+
title?: string | undefined;
|
|
1209
1208
|
type: "source";
|
|
1209
|
+
id: string;
|
|
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
|
-
id: string;
|
|
1217
|
-
title: string;
|
|
1218
1216
|
type: "source";
|
|
1217
|
+
id: string;
|
|
1219
1218
|
mediaType: string;
|
|
1220
1219
|
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;
|
|
1298
1297
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1299
1298
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1300
|
-
|
|
1299
|
+
title?: string | undefined;
|
|
1301
1300
|
type: "source";
|
|
1301
|
+
id: string;
|
|
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
|
-
id: string;
|
|
1309
|
-
title: string;
|
|
1310
1308
|
type: "source";
|
|
1309
|
+
id: string;
|
|
1311
1310
|
mediaType: string;
|
|
1312
1311
|
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;
|
|
1387
1386
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1388
1387
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1389
|
-
|
|
1388
|
+
title?: string | undefined;
|
|
1390
1389
|
type: "source";
|
|
1390
|
+
id: string;
|
|
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
|
-
id: string;
|
|
1398
|
-
title: string;
|
|
1399
1397
|
type: "source";
|
|
1398
|
+
id: string;
|
|
1400
1399
|
mediaType: string;
|
|
1401
1400
|
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;
|
|
1476
1475
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1477
1476
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1478
|
-
|
|
1477
|
+
title?: string | undefined;
|
|
1479
1478
|
type: "source";
|
|
1479
|
+
id: string;
|
|
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
|
-
id: string;
|
|
1487
|
-
title: string;
|
|
1488
1486
|
type: "source";
|
|
1487
|
+
id: string;
|
|
1489
1488
|
mediaType: string;
|
|
1490
1489
|
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;
|
|
1723
1722
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1724
1723
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1725
|
-
|
|
1724
|
+
title?: string | undefined;
|
|
1726
1725
|
type: "source";
|
|
1726
|
+
id: string;
|
|
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
|
-
id: string;
|
|
1734
|
-
title: string;
|
|
1735
1733
|
type: "source";
|
|
1734
|
+
id: string;
|
|
1736
1735
|
mediaType: string;
|
|
1737
1736
|
sourceType: "document";
|
|
1737
|
+
title: string;
|
|
1738
1738
|
}, [import("convex/values").VObject<{
|
|
1739
|
-
title?: string | undefined;
|
|
1740
1739
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1741
1740
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1742
|
-
|
|
1741
|
+
title?: string | undefined;
|
|
1743
1742
|
type: "source";
|
|
1743
|
+
id: string;
|
|
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", "type" | "id" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "sourceType" | "url" | "title">, 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
|
-
id: string;
|
|
1759
|
-
title: string;
|
|
1760
1758
|
type: "source";
|
|
1759
|
+
id: string;
|
|
1761
1760
|
mediaType: string;
|
|
1762
1761
|
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", "type" | "id" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "filename" | "mediaType" | "sourceType" | "title">], "required", "type" | "id" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "filename" | "mediaType" | "sourceType" | "url" | "title">], "required", "type" | "id" | "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" | "title">, "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;
|
|
2059
2058
|
type?: "source" | undefined;
|
|
2060
2059
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2061
2060
|
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
|
-
id: string;
|
|
2070
|
-
title: string;
|
|
2071
2069
|
type: "source";
|
|
2070
|
+
id: string;
|
|
2072
2071
|
mediaType: string;
|
|
2073
2072
|
sourceType: "document";
|
|
2073
|
+
title: string;
|
|
2074
2074
|
})[] | undefined, import("convex/values").VUnion<{
|
|
2075
|
-
title?: string | undefined;
|
|
2076
2075
|
type?: "source" | undefined;
|
|
2077
2076
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2078
2077
|
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
|
-
id: string;
|
|
2087
|
-
title: string;
|
|
2088
2086
|
type: "source";
|
|
2087
|
+
id: string;
|
|
2089
2088
|
mediaType: string;
|
|
2090
2089
|
sourceType: "document";
|
|
2090
|
+
title: string;
|
|
2091
2091
|
}, [import("convex/values").VObject<{
|
|
2092
|
-
title?: string | undefined;
|
|
2093
2092
|
type?: "source" | undefined;
|
|
2094
2093
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2095
2094
|
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", "type" | "id" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "sourceType" | "url" | "title">, 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
|
-
id: string;
|
|
2112
|
-
title: string;
|
|
2113
2111
|
type: "source";
|
|
2112
|
+
id: string;
|
|
2114
2113
|
mediaType: string;
|
|
2115
2114
|
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", "type" | "id" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "filename" | "mediaType" | "sourceType" | "title">], "required", "type" | "id" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "filename" | "mediaType" | "sourceType" | "url" | "title">, "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" | "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">;
|
|
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", "streams" | "isDone" | "page" | "continueCursor" | "splitCursor" | "pageStatus" | "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`.
|
|
@@ -2239,12 +2239,12 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2239
2239
|
* @param args.streamArgs The stream arguments with per-stream cursors.
|
|
2240
2240
|
* @returns The deltas for each stream from their existing cursor.
|
|
2241
2241
|
*/
|
|
2242
|
-
export declare function syncStreams(ctx:
|
|
2242
|
+
export declare function syncStreams(ctx: QueryCtx | MutationCtx | ActionCtx, component: AgentComponent, { threadId, streamArgs, includeStatuses, }: {
|
|
2243
2243
|
threadId: string;
|
|
2244
2244
|
streamArgs?: StreamArgs | undefined;
|
|
2245
2245
|
includeStatuses?: ("streaming" | "finished" | "aborted")[];
|
|
2246
2246
|
}): Promise<SyncStreamsReturnValue | undefined>;
|
|
2247
|
-
export declare function abortStream(ctx:
|
|
2247
|
+
export declare function abortStream(ctx: MutationCtx, component: AgentComponent, args: {
|
|
2248
2248
|
reason: string;
|
|
2249
2249
|
} & ({
|
|
2250
2250
|
streamId: string;
|
|
@@ -2261,7 +2261,7 @@ export declare function abortStream(ctx: RunMutationCtx, component: AgentCompone
|
|
|
2261
2261
|
* @param args.includeStatuses The statuses to include in the list.
|
|
2262
2262
|
* @returns The streams for the thread.
|
|
2263
2263
|
*/
|
|
2264
|
-
export declare function listStreams(ctx:
|
|
2264
|
+
export declare function listStreams(ctx: QueryCtx | MutationCtx | ActionCtx, component: AgentComponent, { threadId, startOrder, includeStatuses, }: {
|
|
2265
2265
|
threadId: string;
|
|
2266
2266
|
startOrder?: number;
|
|
2267
2267
|
includeStatuses?: ("streaming" | "finished" | "aborted")[];
|
|
@@ -2314,7 +2314,7 @@ export declare function mergeTransforms<TOOLS extends ToolSet>(options: {
|
|
|
2314
2314
|
export declare class DeltaStreamer<T> {
|
|
2315
2315
|
#private;
|
|
2316
2316
|
readonly component: AgentComponent;
|
|
2317
|
-
readonly ctx:
|
|
2317
|
+
readonly ctx: MutationCtx;
|
|
2318
2318
|
readonly metadata: {
|
|
2319
2319
|
threadId: string;
|
|
2320
2320
|
userId?: string;
|
|
@@ -2333,7 +2333,7 @@ export declare class DeltaStreamer<T> {
|
|
|
2333
2333
|
compress: ((parts: T[]) => T[]) | null;
|
|
2334
2334
|
};
|
|
2335
2335
|
abortController: AbortController;
|
|
2336
|
-
constructor(component: AgentComponent, ctx:
|
|
2336
|
+
constructor(component: AgentComponent, ctx: MutationCtx, config: {
|
|
2337
2337
|
throttleMs: number | undefined;
|
|
2338
2338
|
onAsyncAbort: (reason: string) => Promise<void>;
|
|
2339
2339
|
abortSignal: AbortSignal | undefined;
|