@convex-dev/agent 0.6.0-beta.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,6 @@ 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";
9
8
  messages: {
10
9
  userId?: string | undefined;
11
10
  agentName?: string | undefined;
@@ -13,11 +12,12 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
13
12
  provider?: string | undefined;
14
13
  providerOptions?: Record<string, Record<string, any>> | undefined;
15
14
  format?: "UIMessageChunk" | "TextStreamPart" | undefined;
15
+ status: "streaming" | "finished" | "aborted";
16
16
  order: number;
17
17
  stepOrder: number;
18
- status: "streaming" | "finished" | "aborted";
19
18
  streamId: string;
20
19
  }[];
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
- userId?: string | undefined;
32
31
  id?: string | undefined;
32
+ userId?: 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;
189
190
  providerOptions?: Record<string, Record<string, any>> | undefined;
190
191
  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;
201
202
  type: "source";
202
203
  mediaType: string;
203
204
  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;
320
321
  type?: "source" | undefined;
321
322
  providerOptions?: Record<string, Record<string, any>> | undefined;
322
323
  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;
332
333
  type: "source";
333
334
  mediaType: string;
334
335
  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?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
349
+ finishReason?: "error" | "length" | "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,19 +361,18 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
361
361
  type: "redacted";
362
362
  data: string;
363
363
  })[] | undefined;
364
- _id: string;
364
+ status: "pending" | "success" | "failed";
365
+ order: number;
365
366
  _creationTime: number;
366
367
  threadId: string;
367
- order: number;
368
368
  stepOrder: number;
369
- status: "pending" | "success" | "failed";
370
369
  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";
377
376
  messages: {
378
377
  userId?: string | undefined;
379
378
  agentName?: string | undefined;
@@ -381,11 +380,12 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
381
380
  provider?: string | undefined;
382
381
  providerOptions?: Record<string, Record<string, any>> | undefined;
383
382
  format?: "UIMessageChunk" | "TextStreamPart" | undefined;
383
+ status: "streaming" | "finished" | "aborted";
384
384
  order: number;
385
385
  stepOrder: number;
386
- status: "streaming" | "finished" | "aborted";
387
386
  streamId: string;
388
387
  }[];
388
+ kind: "list";
389
389
  } | {
390
390
  kind: "deltas";
391
391
  deltas: {
@@ -395,7 +395,6 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
395
395
  parts: any[];
396
396
  }[];
397
397
  } | undefined, [import("convex/values").VObject<{
398
- kind: "list";
399
398
  messages: {
400
399
  userId?: string | undefined;
401
400
  agentName?: string | undefined;
@@ -403,11 +402,12 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
403
402
  provider?: string | undefined;
404
403
  providerOptions?: Record<string, Record<string, any>> | undefined;
405
404
  format?: "UIMessageChunk" | "TextStreamPart" | undefined;
405
+ status: "streaming" | "finished" | "aborted";
406
406
  order: number;
407
407
  stepOrder: number;
408
- status: "streaming" | "finished" | "aborted";
409
408
  streamId: string;
410
409
  }[];
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";
420
421
  order: number;
421
422
  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";
431
432
  order: number;
432
433
  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", "userId" | "order" | "stepOrder" | "status" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "streamId" | "format">, "required">;
447
- }, "required", "kind" | "messages">, import("convex/values").VObject<{
446
+ }, "required", "status" | "userId" | "order" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "format" | "streamId">, "required">;
447
+ }, "required", "messages" | "kind">, 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", "kind" | "messages" | "deltas">;
473
+ }, "required", "kind" | "deltas">], "optional", "messages" | "kind" | "deltas">;
474
474
  page: import("convex/values").VArray<{
475
- userId?: string | undefined;
476
475
  id?: string | undefined;
476
+ userId?: 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;
633
634
  providerOptions?: Record<string, Record<string, any>> | undefined;
634
635
  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;
645
646
  type: "source";
646
647
  mediaType: string;
647
648
  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;
764
765
  type?: "source" | undefined;
765
766
  providerOptions?: Record<string, Record<string, any>> | undefined;
766
767
  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;
776
777
  type: "source";
777
778
  mediaType: string;
778
779
  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?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
793
+ finishReason?: "error" | "length" | "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
- _id: string;
808
+ status: "pending" | "success" | "failed";
809
+ order: number;
809
810
  _creationTime: number;
810
811
  threadId: string;
811
- order: number;
812
812
  stepOrder: number;
813
- status: "pending" | "success" | "failed";
814
813
  tool: boolean;
814
+ _id: string;
815
815
  }[], import("convex/values").VObject<{
816
- userId?: string | undefined;
817
816
  id?: string | undefined;
817
+ userId?: 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;
974
975
  providerOptions?: Record<string, Record<string, any>> | undefined;
975
976
  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;
986
987
  type: "source";
987
988
  mediaType: string;
988
989
  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;
1105
1106
  type?: "source" | undefined;
1106
1107
  providerOptions?: Record<string, Record<string, any>> | undefined;
1107
1108
  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;
1117
1118
  type: "source";
1118
1119
  mediaType: string;
1119
1120
  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?: "length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown" | undefined;
1134
+ finishReason?: "error" | "length" | "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
- _id: string;
1149
+ status: "pending" | "success" | "failed";
1150
+ order: number;
1150
1151
  _creationTime: number;
1151
1152
  threadId: string;
1152
- order: number;
1153
1153
  stepOrder: number;
1154
- status: "pending" | "success" | "failed";
1155
1154
  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;
1320
1321
  providerOptions?: Record<string, Record<string, any>> | undefined;
1321
1322
  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;
1332
1333
  type: "source";
1333
1334
  mediaType: string;
1334
1335
  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;
1687
1688
  providerOptions?: Record<string, Record<string, any>> | undefined;
1688
1689
  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;
1699
1700
  type: "source";
1700
1701
  mediaType: string;
1701
1702
  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;
1835
1836
  providerOptions?: Record<string, Record<string, any>> | undefined;
1836
1837
  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;
1847
1848
  type: "source";
1848
1849
  mediaType: string;
1849
1850
  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;
1980
1981
  providerOptions?: Record<string, Record<string, any>> | undefined;
1981
1982
  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;
1992
1993
  type: "source";
1993
1994
  mediaType: string;
1994
1995
  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;
2125
2126
  providerOptions?: Record<string, Record<string, any>> | undefined;
2126
2127
  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;
2137
2138
  type: "source";
2138
2139
  mediaType: string;
2139
2140
  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;
2667
2668
  providerOptions?: Record<string, Record<string, any>> | undefined;
2668
2669
  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;
2679
2680
  type: "source";
2680
2681
  mediaType: string;
2681
2682
  sourceType: "document";
2682
- title: string;
2683
2683
  }, [import("convex/values").VObject<{
2684
+ title?: string | undefined;
2684
2685
  providerOptions?: Record<string, Record<string, any>> | undefined;
2685
2686
  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" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "url" | "sourceType" | "title">, import("convex/values").VObject<{
2699
+ }, "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "url" | "sourceType">, 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;
2704
2705
  type: "source";
2705
2706
  mediaType: string;
2706
2707
  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" | "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<{
2717
+ }, "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "filename" | "sourceType">], "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "filename" | "url" | "sourceType">, 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" | "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>;
2729
+ }, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "approvalId">], "required", "id" | "title" | "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" | "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;
3462
3463
  type?: "source" | undefined;
3463
3464
  providerOptions?: Record<string, Record<string, any>> | undefined;
3464
3465
  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;
3474
3475
  type: "source";
3475
3476
  mediaType: string;
3476
3477
  sourceType: "document";
3477
- title: string;
3478
3478
  })[] | undefined, import("convex/values").VUnion<{
3479
+ title?: string | undefined;
3479
3480
  type?: "source" | undefined;
3480
3481
  providerOptions?: Record<string, Record<string, any>> | undefined;
3481
3482
  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;
3491
3492
  type: "source";
3492
3493
  mediaType: string;
3493
3494
  sourceType: "document";
3494
- title: string;
3495
3495
  }, [import("convex/values").VObject<{
3496
+ title?: string | undefined;
3496
3497
  type?: "source" | undefined;
3497
3498
  providerOptions?: Record<string, Record<string, any>> | undefined;
3498
3499
  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" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "url" | "sourceType" | "title">, import("convex/values").VObject<{
3511
+ }, "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "url" | "sourceType">, 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;
3516
3517
  type: "source";
3517
3518
  mediaType: string;
3518
3519
  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" | "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">;
3529
+ }, "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "filename" | "sourceType">], "required", "id" | "title" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "filename" | "url" | "sourceType">, "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<"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>;
3575
+ finishReason: import("convex/values").VUnion<"error" | "length" | "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", "_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">;
3631
+ }, "required", "id" | "status" | "userId" | "order" | "_creationTime" | "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" | "_id">, "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.kind" | "streams.messages" | "streams.deltas">;
3636
+ }, "required", "page" | "continueCursor" | "isDone" | "splitCursor" | "pageStatus" | "streams" | "streams.messages" | "streams.kind" | "streams.deltas">;
3637
3637
  /**
3638
3638
  * A function that handles fetching stream deltas, used with the React hooks
3639
3639
  * `useThreadMessages` or `useStreamingThreadMessages`.
@@ -25,7 +25,7 @@ export type Doc<TableName extends TableNames> = DocumentByName<DataModel, TableN
25
25
  * Convex documents are uniquely identified by their `Id`, which is accessible
26
26
  * on the `_id` field. To learn more, see [Document IDs](https://docs.convex.dev/using/document-ids).
27
27
  *
28
- * Documents can be loaded using `db.get(id)` in query and mutation functions.
28
+ * Documents can be loaded using `db.get(tableName, id)` in query and mutation functions.
29
29
  *
30
30
  * IDs are just strings at runtime, but this type can be used to distinguish them from other
31
31
  * strings when type checking.