@convex-dev/agent 0.1.15-alpha.2 → 0.1.16-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.
Files changed (55) hide show
  1. package/README.md +41 -700
  2. package/dist/client/index.d.ts +23 -20
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +34 -18
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/streaming.d.ts +24 -2
  7. package/dist/client/streaming.d.ts.map +1 -1
  8. package/dist/client/streaming.js +35 -4
  9. package/dist/client/streaming.js.map +1 -1
  10. package/dist/client/types.d.ts +2 -20
  11. package/dist/client/types.d.ts.map +1 -1
  12. package/dist/component/_generated/api.d.ts +7 -150
  13. package/dist/component/messages.d.ts +0 -59
  14. package/dist/component/messages.d.ts.map +1 -1
  15. package/dist/component/messages.js +8 -24
  16. package/dist/component/messages.js.map +1 -1
  17. package/dist/component/schema.d.ts +4 -4
  18. package/dist/component/schema.d.ts.map +1 -1
  19. package/dist/component/schema.js +1 -1
  20. package/dist/component/schema.js.map +1 -1
  21. package/dist/component/streams.d.ts +7 -2
  22. package/dist/component/streams.d.ts.map +1 -1
  23. package/dist/component/streams.js +40 -14
  24. package/dist/component/streams.js.map +1 -1
  25. package/dist/component/vector/tables.d.ts +3 -3
  26. package/dist/component/vector/tables.d.ts.map +1 -1
  27. package/dist/mapping.d.ts +5 -0
  28. package/dist/mapping.d.ts.map +1 -1
  29. package/dist/mapping.js +8 -1
  30. package/dist/mapping.js.map +1 -1
  31. package/dist/react/deltas.d.ts.map +1 -1
  32. package/dist/react/deltas.js +20 -1
  33. package/dist/react/deltas.js.map +1 -1
  34. package/dist/react/index.js +1 -1
  35. package/dist/react/index.js.map +1 -1
  36. package/dist/react/toUIMessages.js +2 -2
  37. package/dist/react/toUIMessages.js.map +1 -1
  38. package/dist/validators.d.ts +217 -265
  39. package/dist/validators.d.ts.map +1 -1
  40. package/dist/validators.js +1 -7
  41. package/dist/validators.js.map +1 -1
  42. package/package.json +1 -1
  43. package/src/client/index.ts +41 -29
  44. package/src/client/streaming.ts +55 -4
  45. package/src/client/types.ts +2 -21
  46. package/src/component/_generated/api.d.ts +7 -150
  47. package/src/component/messages.ts +13 -30
  48. package/src/component/schema.ts +1 -1
  49. package/src/component/streams.ts +49 -16
  50. package/src/component/vector/tables.ts +5 -5
  51. package/src/mapping.ts +8 -1
  52. package/src/react/deltas.ts +24 -3
  53. package/src/react/index.ts +1 -1
  54. package/src/react/toUIMessages.ts +2 -2
  55. package/src/validators.ts +1 -26
@@ -1,4 +1,4 @@
1
- import { type Infer, type ObjectType, type Validator, type Value, type VObject } from "convex/values";
1
+ import { type Infer, type ObjectType, type Validator, type Value } from "convex/values";
2
2
  export declare const vProviderOptions: import("convex/values").VRecord<Record<string, Record<string, any>>, 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>, "required", string>;
3
3
  declare const 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>;
4
4
  export type ProviderOptions = Infer<typeof providerOptions>;
@@ -9,7 +9,7 @@ export declare const vThreadStatus: import("convex/values").VUnion<"active" | "a
9
9
  export declare const vMessageStatus: import("convex/values").VUnion<"pending" | "success" | "failed", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"success", "required">, import("convex/values").VLiteral<"failed", "required">], "required", never>;
10
10
  export type MessageStatus = Infer<typeof vMessageStatus>;
11
11
  export declare const vRole: import("convex/values").VUnion<"user" | "assistant" | "tool" | "system", [import("convex/values").VLiteral<"system", "required">, import("convex/values").VLiteral<"user", "required">, import("convex/values").VLiteral<"assistant", "required">, import("convex/values").VLiteral<"tool", "required">], "required", never>;
12
- export declare const vTextPart: VObject<{
12
+ export declare const vTextPart: import("convex/values").VObject<{
13
13
  providerOptions?: Record<string, Record<string, any>> | undefined;
14
14
  type: "text";
15
15
  text: string;
@@ -18,7 +18,7 @@ export declare const vTextPart: VObject<{
18
18
  text: import("convex/values").VString<string, "required">;
19
19
  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>;
20
20
  }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>;
21
- export declare const vImagePart: VObject<{
21
+ export declare const vImagePart: import("convex/values").VObject<{
22
22
  providerOptions?: Record<string, Record<string, any>> | undefined;
23
23
  mimeType?: string | undefined;
24
24
  type: "image";
@@ -29,7 +29,7 @@ export declare const vImagePart: VObject<{
29
29
  mimeType: import("convex/values").VString<string | undefined, "optional">;
30
30
  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>;
31
31
  }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType">;
32
- export declare const vFilePart: VObject<{
32
+ export declare const vFilePart: import("convex/values").VObject<{
33
33
  providerOptions?: Record<string, Record<string, any>> | undefined;
34
34
  filename?: string | undefined;
35
35
  type: "file";
@@ -87,7 +87,7 @@ export declare const vUserContent: import("convex/values").VUnion<string | ({
87
87
  type: "file";
88
88
  mimeType: string;
89
89
  data: string | ArrayBuffer;
90
- }, [VObject<{
90
+ }, [import("convex/values").VObject<{
91
91
  providerOptions?: Record<string, Record<string, any>> | undefined;
92
92
  type: "text";
93
93
  text: string;
@@ -95,7 +95,7 @@ export declare const vUserContent: import("convex/values").VUnion<string | ({
95
95
  type: import("convex/values").VLiteral<"text", "required">;
96
96
  text: import("convex/values").VString<string, "required">;
97
97
  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>;
98
- }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, VObject<{
98
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{
99
99
  providerOptions?: Record<string, Record<string, any>> | undefined;
100
100
  mimeType?: string | undefined;
101
101
  type: "image";
@@ -105,7 +105,7 @@ export declare const vUserContent: import("convex/values").VUnion<string | ({
105
105
  image: import("convex/values").VUnion<string | ArrayBuffer, [import("convex/values").VString<string, "required">, import("convex/values").VBytes<ArrayBuffer, "required">], "required", never>;
106
106
  mimeType: import("convex/values").VString<string | undefined, "optional">;
107
107
  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>;
108
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType">, VObject<{
108
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType">, import("convex/values").VObject<{
109
109
  providerOptions?: Record<string, Record<string, any>> | undefined;
110
110
  filename?: string | undefined;
111
111
  type: "file";
@@ -118,7 +118,7 @@ export declare const vUserContent: import("convex/values").VUnion<string | ({
118
118
  mimeType: import("convex/values").VString<string, "required">;
119
119
  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>;
120
120
  }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "image" | "mimeType" | "data" | "filename">, "required">], "required", never>;
121
- export declare const vReasoningPart: VObject<{
121
+ export declare const vReasoningPart: import("convex/values").VObject<{
122
122
  providerOptions?: Record<string, Record<string, any>> | undefined;
123
123
  signature?: string | undefined;
124
124
  type: "reasoning";
@@ -129,7 +129,7 @@ export declare const vReasoningPart: VObject<{
129
129
  signature: import("convex/values").VString<string | undefined, "optional">;
130
130
  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>;
131
131
  }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature">;
132
- export declare const vRedactedReasoningPart: VObject<{
132
+ export declare const vRedactedReasoningPart: import("convex/values").VObject<{
133
133
  providerOptions?: Record<string, Record<string, any>> | undefined;
134
134
  type: "redacted-reasoning";
135
135
  data: string;
@@ -152,7 +152,7 @@ export declare const vReasoningDetails: import("convex/values").VArray<({
152
152
  } | {
153
153
  type: "redacted";
154
154
  data: string;
155
- }, [VObject<{
155
+ }, [import("convex/values").VObject<{
156
156
  signature?: string | undefined;
157
157
  type: "text";
158
158
  text: string;
@@ -160,14 +160,14 @@ export declare const vReasoningDetails: import("convex/values").VArray<({
160
160
  type: import("convex/values").VLiteral<"text", "required">;
161
161
  text: import("convex/values").VString<string, "required">;
162
162
  signature: import("convex/values").VString<string | undefined, "optional">;
163
- }, "required", "type" | "text" | "signature">, VObject<{
163
+ }, "required", "type" | "text" | "signature">, import("convex/values").VObject<{
164
164
  type: "redacted";
165
165
  data: string;
166
166
  }, {
167
167
  type: import("convex/values").VLiteral<"redacted", "required">;
168
168
  data: import("convex/values").VString<string, "required">;
169
169
  }, "required", "type" | "data">], "required", "type" | "text" | "data" | "signature">, "required">;
170
- export declare const vToolCallPart: VObject<{
170
+ export declare const vToolCallPart: import("convex/values").VObject<{
171
171
  providerOptions?: Record<string, Record<string, any>> | undefined;
172
172
  type: "tool-call";
173
173
  toolCallId: string;
@@ -255,7 +255,7 @@ export declare const vAssistantContent: import("convex/values").VUnion<string |
255
255
  toolCallId: string;
256
256
  toolName: string;
257
257
  args: any;
258
- }, [VObject<{
258
+ }, [import("convex/values").VObject<{
259
259
  providerOptions?: Record<string, Record<string, any>> | undefined;
260
260
  type: "text";
261
261
  text: string;
@@ -263,7 +263,7 @@ export declare const vAssistantContent: import("convex/values").VUnion<string |
263
263
  type: import("convex/values").VLiteral<"text", "required">;
264
264
  text: import("convex/values").VString<string, "required">;
265
265
  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>;
266
- }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, VObject<{
266
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{
267
267
  providerOptions?: Record<string, Record<string, any>> | undefined;
268
268
  filename?: string | undefined;
269
269
  type: "file";
@@ -275,7 +275,7 @@ export declare const vAssistantContent: import("convex/values").VUnion<string |
275
275
  filename: import("convex/values").VString<string | undefined, "optional">;
276
276
  mimeType: import("convex/values").VString<string, "required">;
277
277
  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>;
278
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, VObject<{
278
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, import("convex/values").VObject<{
279
279
  providerOptions?: Record<string, Record<string, any>> | undefined;
280
280
  signature?: string | undefined;
281
281
  type: "reasoning";
@@ -285,7 +285,7 @@ export declare const vAssistantContent: import("convex/values").VUnion<string |
285
285
  text: import("convex/values").VString<string, "required">;
286
286
  signature: import("convex/values").VString<string | undefined, "optional">;
287
287
  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>;
288
- }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature">, VObject<{
288
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature">, import("convex/values").VObject<{
289
289
  providerOptions?: Record<string, Record<string, any>> | undefined;
290
290
  type: "redacted-reasoning";
291
291
  data: string;
@@ -293,7 +293,7 @@ export declare const vAssistantContent: import("convex/values").VUnion<string |
293
293
  type: import("convex/values").VLiteral<"redacted-reasoning", "required">;
294
294
  data: import("convex/values").VString<string, "required">;
295
295
  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>;
296
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "data">, VObject<{
296
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "data">, import("convex/values").VObject<{
297
297
  providerOptions?: Record<string, Record<string, any>> | undefined;
298
298
  type: "tool-call";
299
299
  toolCallId: string;
@@ -322,7 +322,7 @@ export declare const vToolContent: import("convex/values").VArray<{
322
322
  toolCallId: string;
323
323
  toolName: string;
324
324
  result: any;
325
- }[], VObject<{
325
+ }[], import("convex/values").VObject<{
326
326
  providerOptions?: Record<string, Record<string, any>> | undefined;
327
327
  args?: any;
328
328
  experimental_content?: ({
@@ -358,13 +358,13 @@ export declare const vToolContent: import("convex/values").VArray<{
358
358
  mimeType?: string | undefined;
359
359
  type: "image";
360
360
  data: string;
361
- }, [VObject<{
361
+ }, [import("convex/values").VObject<{
362
362
  type: "text";
363
363
  text: string;
364
364
  }, {
365
365
  type: import("convex/values").VLiteral<"text", "required">;
366
366
  text: import("convex/values").VString<string, "required">;
367
- }, "required", "type" | "text">, VObject<{
367
+ }, "required", "type" | "text">, import("convex/values").VObject<{
368
368
  mimeType?: string | undefined;
369
369
  type: "image";
370
370
  data: string;
@@ -477,7 +477,7 @@ export declare const vContent: import("convex/values").VUnion<string | ({
477
477
  type: "file";
478
478
  mimeType: string;
479
479
  data: string | ArrayBuffer;
480
- }, [VObject<{
480
+ }, [import("convex/values").VObject<{
481
481
  providerOptions?: Record<string, Record<string, any>> | undefined;
482
482
  type: "text";
483
483
  text: string;
@@ -485,7 +485,7 @@ export declare const vContent: import("convex/values").VUnion<string | ({
485
485
  type: import("convex/values").VLiteral<"text", "required">;
486
486
  text: import("convex/values").VString<string, "required">;
487
487
  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>;
488
- }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, VObject<{
488
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{
489
489
  providerOptions?: Record<string, Record<string, any>> | undefined;
490
490
  mimeType?: string | undefined;
491
491
  type: "image";
@@ -495,7 +495,7 @@ export declare const vContent: import("convex/values").VUnion<string | ({
495
495
  image: import("convex/values").VUnion<string | ArrayBuffer, [import("convex/values").VString<string, "required">, import("convex/values").VBytes<ArrayBuffer, "required">], "required", never>;
496
496
  mimeType: import("convex/values").VString<string | undefined, "optional">;
497
497
  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>;
498
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType">, VObject<{
498
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType">, import("convex/values").VObject<{
499
499
  providerOptions?: Record<string, Record<string, any>> | undefined;
500
500
  filename?: string | undefined;
501
501
  type: "file";
@@ -582,7 +582,7 @@ export declare const vContent: import("convex/values").VUnion<string | ({
582
582
  toolCallId: string;
583
583
  toolName: string;
584
584
  args: any;
585
- }, [VObject<{
585
+ }, [import("convex/values").VObject<{
586
586
  providerOptions?: Record<string, Record<string, any>> | undefined;
587
587
  type: "text";
588
588
  text: string;
@@ -590,7 +590,7 @@ export declare const vContent: import("convex/values").VUnion<string | ({
590
590
  type: import("convex/values").VLiteral<"text", "required">;
591
591
  text: import("convex/values").VString<string, "required">;
592
592
  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>;
593
- }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, VObject<{
593
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{
594
594
  providerOptions?: Record<string, Record<string, any>> | undefined;
595
595
  filename?: string | undefined;
596
596
  type: "file";
@@ -602,7 +602,7 @@ export declare const vContent: import("convex/values").VUnion<string | ({
602
602
  filename: import("convex/values").VString<string | undefined, "optional">;
603
603
  mimeType: import("convex/values").VString<string, "required">;
604
604
  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>;
605
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, VObject<{
605
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, import("convex/values").VObject<{
606
606
  providerOptions?: Record<string, Record<string, any>> | undefined;
607
607
  signature?: string | undefined;
608
608
  type: "reasoning";
@@ -612,7 +612,7 @@ export declare const vContent: import("convex/values").VUnion<string | ({
612
612
  text: import("convex/values").VString<string, "required">;
613
613
  signature: import("convex/values").VString<string | undefined, "optional">;
614
614
  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>;
615
- }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature">, VObject<{
615
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature">, import("convex/values").VObject<{
616
616
  providerOptions?: Record<string, Record<string, any>> | undefined;
617
617
  type: "redacted-reasoning";
618
618
  data: string;
@@ -620,7 +620,7 @@ export declare const vContent: import("convex/values").VUnion<string | ({
620
620
  type: import("convex/values").VLiteral<"redacted-reasoning", "required">;
621
621
  data: import("convex/values").VString<string, "required">;
622
622
  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>;
623
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "data">, VObject<{
623
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "data">, import("convex/values").VObject<{
624
624
  providerOptions?: Record<string, Record<string, any>> | undefined;
625
625
  type: "tool-call";
626
626
  toolCallId: string;
@@ -648,7 +648,7 @@ export declare const vContent: import("convex/values").VUnion<string | ({
648
648
  toolCallId: string;
649
649
  toolName: string;
650
650
  result: any;
651
- }[], VObject<{
651
+ }[], import("convex/values").VObject<{
652
652
  providerOptions?: Record<string, Record<string, any>> | undefined;
653
653
  args?: any;
654
654
  experimental_content?: ({
@@ -684,13 +684,13 @@ export declare const vContent: import("convex/values").VUnion<string | ({
684
684
  mimeType?: string | undefined;
685
685
  type: "image";
686
686
  data: string;
687
- }, [VObject<{
687
+ }, [import("convex/values").VObject<{
688
688
  type: "text";
689
689
  text: string;
690
690
  }, {
691
691
  type: import("convex/values").VLiteral<"text", "required">;
692
692
  text: import("convex/values").VString<string, "required">;
693
- }, "required", "type" | "text">, VObject<{
693
+ }, "required", "type" | "text">, import("convex/values").VObject<{
694
694
  mimeType?: string | undefined;
695
695
  type: "image";
696
696
  data: string;
@@ -703,7 +703,7 @@ export declare const vContent: import("convex/values").VUnion<string | ({
703
703
  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>;
704
704
  }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>, "required">], "required", never>;
705
705
  export type Content = Infer<typeof vContent>;
706
- export declare const vUserMessage: VObject<{
706
+ export declare const vUserMessage: import("convex/values").VObject<{
707
707
  providerOptions?: Record<string, Record<string, any>> | undefined;
708
708
  role: "user";
709
709
  content: string | ({
@@ -769,7 +769,7 @@ export declare const vUserMessage: VObject<{
769
769
  type: "file";
770
770
  mimeType: string;
771
771
  data: string | ArrayBuffer;
772
- }, [VObject<{
772
+ }, [import("convex/values").VObject<{
773
773
  providerOptions?: Record<string, Record<string, any>> | undefined;
774
774
  type: "text";
775
775
  text: string;
@@ -777,7 +777,7 @@ export declare const vUserMessage: VObject<{
777
777
  type: import("convex/values").VLiteral<"text", "required">;
778
778
  text: import("convex/values").VString<string, "required">;
779
779
  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>;
780
- }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, VObject<{
780
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{
781
781
  providerOptions?: Record<string, Record<string, any>> | undefined;
782
782
  mimeType?: string | undefined;
783
783
  type: "image";
@@ -787,7 +787,7 @@ export declare const vUserMessage: VObject<{
787
787
  image: import("convex/values").VUnion<string | ArrayBuffer, [import("convex/values").VString<string, "required">, import("convex/values").VBytes<ArrayBuffer, "required">], "required", never>;
788
788
  mimeType: import("convex/values").VString<string | undefined, "optional">;
789
789
  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>;
790
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType">, VObject<{
790
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType">, import("convex/values").VObject<{
791
791
  providerOptions?: Record<string, Record<string, any>> | undefined;
792
792
  filename?: string | undefined;
793
793
  type: "file";
@@ -802,7 +802,7 @@ export declare const vUserMessage: VObject<{
802
802
  }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "image" | "mimeType" | "data" | "filename">, "required">], "required", never>;
803
803
  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>;
804
804
  }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">;
805
- export declare const vAssistantMessage: VObject<{
805
+ export declare const vAssistantMessage: import("convex/values").VObject<{
806
806
  providerOptions?: Record<string, Record<string, any>> | undefined;
807
807
  role: "assistant";
808
808
  content: string | ({
@@ -908,7 +908,7 @@ export declare const vAssistantMessage: VObject<{
908
908
  toolCallId: string;
909
909
  toolName: string;
910
910
  args: any;
911
- }, [VObject<{
911
+ }, [import("convex/values").VObject<{
912
912
  providerOptions?: Record<string, Record<string, any>> | undefined;
913
913
  type: "text";
914
914
  text: string;
@@ -916,7 +916,7 @@ export declare const vAssistantMessage: VObject<{
916
916
  type: import("convex/values").VLiteral<"text", "required">;
917
917
  text: import("convex/values").VString<string, "required">;
918
918
  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>;
919
- }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, VObject<{
919
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{
920
920
  providerOptions?: Record<string, Record<string, any>> | undefined;
921
921
  filename?: string | undefined;
922
922
  type: "file";
@@ -928,7 +928,7 @@ export declare const vAssistantMessage: VObject<{
928
928
  filename: import("convex/values").VString<string | undefined, "optional">;
929
929
  mimeType: import("convex/values").VString<string, "required">;
930
930
  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>;
931
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, VObject<{
931
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, import("convex/values").VObject<{
932
932
  providerOptions?: Record<string, Record<string, any>> | undefined;
933
933
  signature?: string | undefined;
934
934
  type: "reasoning";
@@ -938,7 +938,7 @@ export declare const vAssistantMessage: VObject<{
938
938
  text: import("convex/values").VString<string, "required">;
939
939
  signature: import("convex/values").VString<string | undefined, "optional">;
940
940
  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>;
941
- }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature">, VObject<{
941
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature">, import("convex/values").VObject<{
942
942
  providerOptions?: Record<string, Record<string, any>> | undefined;
943
943
  type: "redacted-reasoning";
944
944
  data: string;
@@ -946,7 +946,7 @@ export declare const vAssistantMessage: VObject<{
946
946
  type: import("convex/values").VLiteral<"redacted-reasoning", "required">;
947
947
  data: import("convex/values").VString<string, "required">;
948
948
  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>;
949
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "data">, VObject<{
949
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "data">, import("convex/values").VObject<{
950
950
  providerOptions?: Record<string, Record<string, any>> | undefined;
951
951
  type: "tool-call";
952
952
  toolCallId: string;
@@ -961,7 +961,7 @@ export declare const vAssistantMessage: VObject<{
961
961
  }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "args" | `args.${string}`>, "required">], "required", never>;
962
962
  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>;
963
963
  }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">;
964
- export declare const vToolMessage: VObject<{
964
+ export declare const vToolMessage: import("convex/values").VObject<{
965
965
  providerOptions?: Record<string, Record<string, any>> | undefined;
966
966
  role: "tool";
967
967
  content: {
@@ -999,7 +999,7 @@ export declare const vToolMessage: VObject<{
999
999
  toolCallId: string;
1000
1000
  toolName: string;
1001
1001
  result: any;
1002
- }[], VObject<{
1002
+ }[], import("convex/values").VObject<{
1003
1003
  providerOptions?: Record<string, Record<string, any>> | undefined;
1004
1004
  args?: any;
1005
1005
  experimental_content?: ({
@@ -1035,13 +1035,13 @@ export declare const vToolMessage: VObject<{
1035
1035
  mimeType?: string | undefined;
1036
1036
  type: "image";
1037
1037
  data: string;
1038
- }, [VObject<{
1038
+ }, [import("convex/values").VObject<{
1039
1039
  type: "text";
1040
1040
  text: string;
1041
1041
  }, {
1042
1042
  type: import("convex/values").VLiteral<"text", "required">;
1043
1043
  text: import("convex/values").VString<string, "required">;
1044
- }, "required", "type" | "text">, VObject<{
1044
+ }, "required", "type" | "text">, import("convex/values").VObject<{
1045
1045
  mimeType?: string | undefined;
1046
1046
  type: "image";
1047
1047
  data: string;
@@ -1055,7 +1055,7 @@ export declare const vToolMessage: VObject<{
1055
1055
  }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>, "required">;
1056
1056
  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>;
1057
1057
  }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">;
1058
- export declare const vSystemMessage: VObject<{
1058
+ export declare const vSystemMessage: import("convex/values").VObject<{
1059
1059
  providerOptions?: Record<string, Record<string, any>> | undefined;
1060
1060
  role: "system";
1061
1061
  content: string;
@@ -1136,7 +1136,7 @@ export declare const vMessage: import("convex/values").VUnion<{
1136
1136
  providerOptions?: Record<string, Record<string, any>> | undefined;
1137
1137
  role: "system";
1138
1138
  content: string;
1139
- }, [VObject<{
1139
+ }, [import("convex/values").VObject<{
1140
1140
  providerOptions?: Record<string, Record<string, any>> | undefined;
1141
1141
  role: "user";
1142
1142
  content: string | ({
@@ -1202,7 +1202,7 @@ export declare const vMessage: import("convex/values").VUnion<{
1202
1202
  type: "file";
1203
1203
  mimeType: string;
1204
1204
  data: string | ArrayBuffer;
1205
- }, [VObject<{
1205
+ }, [import("convex/values").VObject<{
1206
1206
  providerOptions?: Record<string, Record<string, any>> | undefined;
1207
1207
  type: "text";
1208
1208
  text: string;
@@ -1210,7 +1210,7 @@ export declare const vMessage: import("convex/values").VUnion<{
1210
1210
  type: import("convex/values").VLiteral<"text", "required">;
1211
1211
  text: import("convex/values").VString<string, "required">;
1212
1212
  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>;
1213
- }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, VObject<{
1213
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{
1214
1214
  providerOptions?: Record<string, Record<string, any>> | undefined;
1215
1215
  mimeType?: string | undefined;
1216
1216
  type: "image";
@@ -1220,7 +1220,7 @@ export declare const vMessage: import("convex/values").VUnion<{
1220
1220
  image: import("convex/values").VUnion<string | ArrayBuffer, [import("convex/values").VString<string, "required">, import("convex/values").VBytes<ArrayBuffer, "required">], "required", never>;
1221
1221
  mimeType: import("convex/values").VString<string | undefined, "optional">;
1222
1222
  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>;
1223
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType">, VObject<{
1223
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType">, import("convex/values").VObject<{
1224
1224
  providerOptions?: Record<string, Record<string, any>> | undefined;
1225
1225
  filename?: string | undefined;
1226
1226
  type: "file";
@@ -1234,7 +1234,7 @@ export declare const vMessage: import("convex/values").VUnion<{
1234
1234
  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>;
1235
1235
  }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "image" | "mimeType" | "data" | "filename">, "required">], "required", never>;
1236
1236
  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>;
1237
- }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, VObject<{
1237
+ }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
1238
1238
  providerOptions?: Record<string, Record<string, any>> | undefined;
1239
1239
  role: "assistant";
1240
1240
  content: string | ({
@@ -1340,7 +1340,7 @@ export declare const vMessage: import("convex/values").VUnion<{
1340
1340
  toolCallId: string;
1341
1341
  toolName: string;
1342
1342
  args: any;
1343
- }, [VObject<{
1343
+ }, [import("convex/values").VObject<{
1344
1344
  providerOptions?: Record<string, Record<string, any>> | undefined;
1345
1345
  type: "text";
1346
1346
  text: string;
@@ -1348,7 +1348,7 @@ export declare const vMessage: import("convex/values").VUnion<{
1348
1348
  type: import("convex/values").VLiteral<"text", "required">;
1349
1349
  text: import("convex/values").VString<string, "required">;
1350
1350
  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>;
1351
- }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, VObject<{
1351
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{
1352
1352
  providerOptions?: Record<string, Record<string, any>> | undefined;
1353
1353
  filename?: string | undefined;
1354
1354
  type: "file";
@@ -1360,7 +1360,7 @@ export declare const vMessage: import("convex/values").VUnion<{
1360
1360
  filename: import("convex/values").VString<string | undefined, "optional">;
1361
1361
  mimeType: import("convex/values").VString<string, "required">;
1362
1362
  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>;
1363
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, VObject<{
1363
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, import("convex/values").VObject<{
1364
1364
  providerOptions?: Record<string, Record<string, any>> | undefined;
1365
1365
  signature?: string | undefined;
1366
1366
  type: "reasoning";
@@ -1370,7 +1370,7 @@ export declare const vMessage: import("convex/values").VUnion<{
1370
1370
  text: import("convex/values").VString<string, "required">;
1371
1371
  signature: import("convex/values").VString<string | undefined, "optional">;
1372
1372
  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>;
1373
- }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature">, VObject<{
1373
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature">, import("convex/values").VObject<{
1374
1374
  providerOptions?: Record<string, Record<string, any>> | undefined;
1375
1375
  type: "redacted-reasoning";
1376
1376
  data: string;
@@ -1378,7 +1378,7 @@ export declare const vMessage: import("convex/values").VUnion<{
1378
1378
  type: import("convex/values").VLiteral<"redacted-reasoning", "required">;
1379
1379
  data: import("convex/values").VString<string, "required">;
1380
1380
  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>;
1381
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "data">, VObject<{
1381
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "data">, import("convex/values").VObject<{
1382
1382
  providerOptions?: Record<string, Record<string, any>> | undefined;
1383
1383
  type: "tool-call";
1384
1384
  toolCallId: string;
@@ -1392,7 +1392,7 @@ export declare const vMessage: import("convex/values").VUnion<{
1392
1392
  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>;
1393
1393
  }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "args" | `args.${string}`>, "required">], "required", never>;
1394
1394
  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>;
1395
- }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, VObject<{
1395
+ }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
1396
1396
  providerOptions?: Record<string, Record<string, any>> | undefined;
1397
1397
  role: "tool";
1398
1398
  content: {
@@ -1430,7 +1430,7 @@ export declare const vMessage: import("convex/values").VUnion<{
1430
1430
  toolCallId: string;
1431
1431
  toolName: string;
1432
1432
  result: any;
1433
- }[], VObject<{
1433
+ }[], import("convex/values").VObject<{
1434
1434
  providerOptions?: Record<string, Record<string, any>> | undefined;
1435
1435
  args?: any;
1436
1436
  experimental_content?: ({
@@ -1466,13 +1466,13 @@ export declare const vMessage: import("convex/values").VUnion<{
1466
1466
  mimeType?: string | undefined;
1467
1467
  type: "image";
1468
1468
  data: string;
1469
- }, [VObject<{
1469
+ }, [import("convex/values").VObject<{
1470
1470
  type: "text";
1471
1471
  text: string;
1472
1472
  }, {
1473
1473
  type: import("convex/values").VLiteral<"text", "required">;
1474
1474
  text: import("convex/values").VString<string, "required">;
1475
- }, "required", "type" | "text">, VObject<{
1475
+ }, "required", "type" | "text">, import("convex/values").VObject<{
1476
1476
  mimeType?: string | undefined;
1477
1477
  type: "image";
1478
1478
  data: string;
@@ -1485,7 +1485,7 @@ export declare const vMessage: import("convex/values").VUnion<{
1485
1485
  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>;
1486
1486
  }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>, "required">;
1487
1487
  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>;
1488
- }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, VObject<{
1488
+ }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
1489
1489
  providerOptions?: Record<string, Record<string, any>> | undefined;
1490
1490
  role: "system";
1491
1491
  content: string;
@@ -1495,7 +1495,7 @@ export declare const vMessage: import("convex/values").VUnion<{
1495
1495
  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>;
1496
1496
  }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">], "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">;
1497
1497
  export type Message = Infer<typeof vMessage>;
1498
- export declare const vSource: VObject<{
1498
+ export declare const vSource: import("convex/values").VObject<{
1499
1499
  title?: string | undefined;
1500
1500
  providerOptions?: Record<string, Record<string, any>> | undefined;
1501
1501
  id: string;
@@ -1508,7 +1508,7 @@ export declare const vSource: VObject<{
1508
1508
  title: import("convex/values").VString<string | undefined, "optional">;
1509
1509
  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>;
1510
1510
  }, "required", "id" | "title" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">;
1511
- export declare const vRequest: VObject<{
1511
+ export declare const vRequest: import("convex/values").VObject<{
1512
1512
  url?: string | undefined;
1513
1513
  body?: any;
1514
1514
  headers?: Record<string, string> | undefined;
@@ -1519,7 +1519,7 @@ export declare const vRequest: VObject<{
1519
1519
  method: import("convex/values").VString<string | undefined, "optional">;
1520
1520
  url: import("convex/values").VString<string | undefined, "optional">;
1521
1521
  }, "required", "url" | "body" | "headers" | "method" | `body.${string}` | `headers.${string}`>;
1522
- export declare const vResponse: VObject<{
1522
+ export declare const vResponse: import("convex/values").VObject<{
1523
1523
  body?: any;
1524
1524
  headers?: Record<string, string> | undefined;
1525
1525
  id: string;
@@ -1683,7 +1683,7 @@ export declare const vResponse: VObject<{
1683
1683
  role: "system";
1684
1684
  content: string;
1685
1685
  };
1686
- }[], VObject<{
1686
+ }[], import("convex/values").VObject<{
1687
1687
  id?: string | undefined;
1688
1688
  fileId?: import("convex/values").GenericId<"files"> | undefined;
1689
1689
  message: {
@@ -1833,7 +1833,7 @@ export declare const vResponse: VObject<{
1833
1833
  providerOptions?: Record<string, Record<string, any>> | undefined;
1834
1834
  role: "system";
1835
1835
  content: string;
1836
- }, [VObject<{
1836
+ }, [import("convex/values").VObject<{
1837
1837
  providerOptions?: Record<string, Record<string, any>> | undefined;
1838
1838
  role: "user";
1839
1839
  content: string | ({
@@ -1899,7 +1899,7 @@ export declare const vResponse: VObject<{
1899
1899
  type: "file";
1900
1900
  mimeType: string;
1901
1901
  data: string | ArrayBuffer;
1902
- }, [VObject<{
1902
+ }, [import("convex/values").VObject<{
1903
1903
  providerOptions?: Record<string, Record<string, any>> | undefined;
1904
1904
  type: "text";
1905
1905
  text: string;
@@ -1907,7 +1907,7 @@ export declare const vResponse: VObject<{
1907
1907
  type: import("convex/values").VLiteral<"text", "required">;
1908
1908
  text: import("convex/values").VString<string, "required">;
1909
1909
  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>;
1910
- }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, VObject<{
1910
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{
1911
1911
  providerOptions?: Record<string, Record<string, any>> | undefined;
1912
1912
  mimeType?: string | undefined;
1913
1913
  type: "image";
@@ -1917,7 +1917,7 @@ export declare const vResponse: VObject<{
1917
1917
  image: import("convex/values").VUnion<string | ArrayBuffer, [import("convex/values").VString<string, "required">, import("convex/values").VBytes<ArrayBuffer, "required">], "required", never>;
1918
1918
  mimeType: import("convex/values").VString<string | undefined, "optional">;
1919
1919
  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>;
1920
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType">, VObject<{
1920
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType">, import("convex/values").VObject<{
1921
1921
  providerOptions?: Record<string, Record<string, any>> | undefined;
1922
1922
  filename?: string | undefined;
1923
1923
  type: "file";
@@ -1931,7 +1931,7 @@ export declare const vResponse: VObject<{
1931
1931
  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>;
1932
1932
  }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "image" | "mimeType" | "data" | "filename">, "required">], "required", never>;
1933
1933
  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>;
1934
- }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, VObject<{
1934
+ }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
1935
1935
  providerOptions?: Record<string, Record<string, any>> | undefined;
1936
1936
  role: "assistant";
1937
1937
  content: string | ({
@@ -2037,7 +2037,7 @@ export declare const vResponse: VObject<{
2037
2037
  toolCallId: string;
2038
2038
  toolName: string;
2039
2039
  args: any;
2040
- }, [VObject<{
2040
+ }, [import("convex/values").VObject<{
2041
2041
  providerOptions?: Record<string, Record<string, any>> | undefined;
2042
2042
  type: "text";
2043
2043
  text: string;
@@ -2045,7 +2045,7 @@ export declare const vResponse: VObject<{
2045
2045
  type: import("convex/values").VLiteral<"text", "required">;
2046
2046
  text: import("convex/values").VString<string, "required">;
2047
2047
  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>;
2048
- }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, VObject<{
2048
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{
2049
2049
  providerOptions?: Record<string, Record<string, any>> | undefined;
2050
2050
  filename?: string | undefined;
2051
2051
  type: "file";
@@ -2057,7 +2057,7 @@ export declare const vResponse: VObject<{
2057
2057
  filename: import("convex/values").VString<string | undefined, "optional">;
2058
2058
  mimeType: import("convex/values").VString<string, "required">;
2059
2059
  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>;
2060
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, VObject<{
2060
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, import("convex/values").VObject<{
2061
2061
  providerOptions?: Record<string, Record<string, any>> | undefined;
2062
2062
  signature?: string | undefined;
2063
2063
  type: "reasoning";
@@ -2067,7 +2067,7 @@ export declare const vResponse: VObject<{
2067
2067
  text: import("convex/values").VString<string, "required">;
2068
2068
  signature: import("convex/values").VString<string | undefined, "optional">;
2069
2069
  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>;
2070
- }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature">, VObject<{
2070
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature">, import("convex/values").VObject<{
2071
2071
  providerOptions?: Record<string, Record<string, any>> | undefined;
2072
2072
  type: "redacted-reasoning";
2073
2073
  data: string;
@@ -2075,7 +2075,7 @@ export declare const vResponse: VObject<{
2075
2075
  type: import("convex/values").VLiteral<"redacted-reasoning", "required">;
2076
2076
  data: import("convex/values").VString<string, "required">;
2077
2077
  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>;
2078
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "data">, VObject<{
2078
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "data">, import("convex/values").VObject<{
2079
2079
  providerOptions?: Record<string, Record<string, any>> | undefined;
2080
2080
  type: "tool-call";
2081
2081
  toolCallId: string;
@@ -2089,7 +2089,7 @@ export declare const vResponse: VObject<{
2089
2089
  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>;
2090
2090
  }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "args" | `args.${string}`>, "required">], "required", never>;
2091
2091
  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>;
2092
- }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, VObject<{
2092
+ }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
2093
2093
  providerOptions?: Record<string, Record<string, any>> | undefined;
2094
2094
  role: "tool";
2095
2095
  content: {
@@ -2127,7 +2127,7 @@ export declare const vResponse: VObject<{
2127
2127
  toolCallId: string;
2128
2128
  toolName: string;
2129
2129
  result: any;
2130
- }[], VObject<{
2130
+ }[], import("convex/values").VObject<{
2131
2131
  providerOptions?: Record<string, Record<string, any>> | undefined;
2132
2132
  args?: any;
2133
2133
  experimental_content?: ({
@@ -2163,13 +2163,13 @@ export declare const vResponse: VObject<{
2163
2163
  mimeType?: string | undefined;
2164
2164
  type: "image";
2165
2165
  data: string;
2166
- }, [VObject<{
2166
+ }, [import("convex/values").VObject<{
2167
2167
  type: "text";
2168
2168
  text: string;
2169
2169
  }, {
2170
2170
  type: import("convex/values").VLiteral<"text", "required">;
2171
2171
  text: import("convex/values").VString<string, "required">;
2172
- }, "required", "type" | "text">, VObject<{
2172
+ }, "required", "type" | "text">, import("convex/values").VObject<{
2173
2173
  mimeType?: string | undefined;
2174
2174
  type: "image";
2175
2175
  data: string;
@@ -2182,7 +2182,7 @@ export declare const vResponse: VObject<{
2182
2182
  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>;
2183
2183
  }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>, "required">;
2184
2184
  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>;
2185
- }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, VObject<{
2185
+ }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
2186
2186
  providerOptions?: Record<string, Record<string, any>> | undefined;
2187
2187
  role: "system";
2188
2188
  content: string;
@@ -2195,7 +2195,7 @@ export declare const vResponse: VObject<{
2195
2195
  }, "required", "id" | "message" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "fileId">, "required">;
2196
2196
  body: import("convex/values").VAny<any, "optional", string>;
2197
2197
  }, "required", "id" | "messages" | "body" | "headers" | `body.${string}` | `headers.${string}` | "timestamp" | "modelId">;
2198
- export declare const vResponseWithoutMessages: VObject<{
2198
+ export declare const vResponseWithoutMessages: import("convex/values").VObject<{
2199
2199
  body?: any;
2200
2200
  headers?: Record<string, string> | undefined;
2201
2201
  id: string;
@@ -2209,7 +2209,7 @@ export declare const vResponseWithoutMessages: VObject<{
2209
2209
  body: import("convex/values").VAny<any, "optional", string>;
2210
2210
  }, "required", "id" | "body" | "headers" | `body.${string}` | `headers.${string}` | "timestamp" | "modelId">;
2211
2211
  export declare const vFinishReason: import("convex/values").VUnion<"length" | "error" | "other" | "stop" | "content-filter" | "tool-calls" | "unknown", [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">], "required", never>;
2212
- export declare const vUsage: VObject<{
2212
+ export declare const vUsage: import("convex/values").VObject<{
2213
2213
  promptTokens: number;
2214
2214
  completionTokens: number;
2215
2215
  totalTokens: number;
@@ -2230,7 +2230,7 @@ export declare const vLanguageModelV1CallWarning: import("convex/values").VUnion
2230
2230
  } | {
2231
2231
  type: "other";
2232
2232
  message: string;
2233
- }, [VObject<{
2233
+ }, [import("convex/values").VObject<{
2234
2234
  details?: string | undefined;
2235
2235
  type: "unsupported-setting";
2236
2236
  setting: string;
@@ -2238,7 +2238,7 @@ export declare const vLanguageModelV1CallWarning: import("convex/values").VUnion
2238
2238
  type: import("convex/values").VLiteral<"unsupported-setting", "required">;
2239
2239
  setting: import("convex/values").VString<string, "required">;
2240
2240
  details: import("convex/values").VString<string | undefined, "optional">;
2241
- }, "required", "type" | "setting" | "details">, VObject<{
2241
+ }, "required", "type" | "setting" | "details">, import("convex/values").VObject<{
2242
2242
  details?: string | undefined;
2243
2243
  type: "unsupported-tool";
2244
2244
  tool: any;
@@ -2246,14 +2246,14 @@ export declare const vLanguageModelV1CallWarning: import("convex/values").VUnion
2246
2246
  type: import("convex/values").VLiteral<"unsupported-tool", "required">;
2247
2247
  tool: import("convex/values").VAny<any, "required", string>;
2248
2248
  details: import("convex/values").VString<string | undefined, "optional">;
2249
- }, "required", "type" | "tool" | "details" | `tool.${string}`>, VObject<{
2249
+ }, "required", "type" | "tool" | "details" | `tool.${string}`>, import("convex/values").VObject<{
2250
2250
  type: "other";
2251
2251
  message: string;
2252
2252
  }, {
2253
2253
  type: import("convex/values").VLiteral<"other", "required">;
2254
2254
  message: import("convex/values").VString<string, "required">;
2255
2255
  }, "required", "type" | "message">], "required", "type" | "message" | "tool" | "setting" | "details" | `tool.${string}`>;
2256
- export declare const vMessageWithMetadataInternal: VObject<{
2256
+ export declare const vMessageWithMetadataInternal: import("convex/values").VObject<{
2257
2257
  id?: string | undefined;
2258
2258
  fileIds?: import("convex/values").GenericId<"files">[] | undefined;
2259
2259
  error?: string | undefined;
@@ -2442,7 +2442,7 @@ export declare const vMessageWithMetadataInternal: VObject<{
2442
2442
  providerOptions?: Record<string, Record<string, any>> | undefined;
2443
2443
  role: "system";
2444
2444
  content: string;
2445
- }, [VObject<{
2445
+ }, [import("convex/values").VObject<{
2446
2446
  providerOptions?: Record<string, Record<string, any>> | undefined;
2447
2447
  role: "user";
2448
2448
  content: string | ({
@@ -2508,7 +2508,7 @@ export declare const vMessageWithMetadataInternal: VObject<{
2508
2508
  type: "file";
2509
2509
  mimeType: string;
2510
2510
  data: string | ArrayBuffer;
2511
- }, [VObject<{
2511
+ }, [import("convex/values").VObject<{
2512
2512
  providerOptions?: Record<string, Record<string, any>> | undefined;
2513
2513
  type: "text";
2514
2514
  text: string;
@@ -2516,7 +2516,7 @@ export declare const vMessageWithMetadataInternal: VObject<{
2516
2516
  type: import("convex/values").VLiteral<"text", "required">;
2517
2517
  text: import("convex/values").VString<string, "required">;
2518
2518
  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>;
2519
- }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, VObject<{
2519
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{
2520
2520
  providerOptions?: Record<string, Record<string, any>> | undefined;
2521
2521
  mimeType?: string | undefined;
2522
2522
  type: "image";
@@ -2526,7 +2526,7 @@ export declare const vMessageWithMetadataInternal: VObject<{
2526
2526
  image: import("convex/values").VUnion<string | ArrayBuffer, [import("convex/values").VString<string, "required">, import("convex/values").VBytes<ArrayBuffer, "required">], "required", never>;
2527
2527
  mimeType: import("convex/values").VString<string | undefined, "optional">;
2528
2528
  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>;
2529
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType">, VObject<{
2529
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType">, import("convex/values").VObject<{
2530
2530
  providerOptions?: Record<string, Record<string, any>> | undefined;
2531
2531
  filename?: string | undefined;
2532
2532
  type: "file";
@@ -2540,7 +2540,7 @@ export declare const vMessageWithMetadataInternal: VObject<{
2540
2540
  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>;
2541
2541
  }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "image" | "mimeType" | "data" | "filename">, "required">], "required", never>;
2542
2542
  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>;
2543
- }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, VObject<{
2543
+ }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
2544
2544
  providerOptions?: Record<string, Record<string, any>> | undefined;
2545
2545
  role: "assistant";
2546
2546
  content: string | ({
@@ -2646,7 +2646,7 @@ export declare const vMessageWithMetadataInternal: VObject<{
2646
2646
  toolCallId: string;
2647
2647
  toolName: string;
2648
2648
  args: any;
2649
- }, [VObject<{
2649
+ }, [import("convex/values").VObject<{
2650
2650
  providerOptions?: Record<string, Record<string, any>> | undefined;
2651
2651
  type: "text";
2652
2652
  text: string;
@@ -2654,7 +2654,7 @@ export declare const vMessageWithMetadataInternal: VObject<{
2654
2654
  type: import("convex/values").VLiteral<"text", "required">;
2655
2655
  text: import("convex/values").VString<string, "required">;
2656
2656
  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>;
2657
- }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, VObject<{
2657
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{
2658
2658
  providerOptions?: Record<string, Record<string, any>> | undefined;
2659
2659
  filename?: string | undefined;
2660
2660
  type: "file";
@@ -2666,7 +2666,7 @@ export declare const vMessageWithMetadataInternal: VObject<{
2666
2666
  filename: import("convex/values").VString<string | undefined, "optional">;
2667
2667
  mimeType: import("convex/values").VString<string, "required">;
2668
2668
  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>;
2669
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, VObject<{
2669
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, import("convex/values").VObject<{
2670
2670
  providerOptions?: Record<string, Record<string, any>> | undefined;
2671
2671
  signature?: string | undefined;
2672
2672
  type: "reasoning";
@@ -2676,7 +2676,7 @@ export declare const vMessageWithMetadataInternal: VObject<{
2676
2676
  text: import("convex/values").VString<string, "required">;
2677
2677
  signature: import("convex/values").VString<string | undefined, "optional">;
2678
2678
  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>;
2679
- }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature">, VObject<{
2679
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature">, import("convex/values").VObject<{
2680
2680
  providerOptions?: Record<string, Record<string, any>> | undefined;
2681
2681
  type: "redacted-reasoning";
2682
2682
  data: string;
@@ -2684,7 +2684,7 @@ export declare const vMessageWithMetadataInternal: VObject<{
2684
2684
  type: import("convex/values").VLiteral<"redacted-reasoning", "required">;
2685
2685
  data: import("convex/values").VString<string, "required">;
2686
2686
  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>;
2687
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "data">, VObject<{
2687
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "data">, import("convex/values").VObject<{
2688
2688
  providerOptions?: Record<string, Record<string, any>> | undefined;
2689
2689
  type: "tool-call";
2690
2690
  toolCallId: string;
@@ -2698,7 +2698,7 @@ export declare const vMessageWithMetadataInternal: VObject<{
2698
2698
  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>;
2699
2699
  }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "args" | `args.${string}`>, "required">], "required", never>;
2700
2700
  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>;
2701
- }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, VObject<{
2701
+ }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
2702
2702
  providerOptions?: Record<string, Record<string, any>> | undefined;
2703
2703
  role: "tool";
2704
2704
  content: {
@@ -2736,7 +2736,7 @@ export declare const vMessageWithMetadataInternal: VObject<{
2736
2736
  toolCallId: string;
2737
2737
  toolName: string;
2738
2738
  result: any;
2739
- }[], VObject<{
2739
+ }[], import("convex/values").VObject<{
2740
2740
  providerOptions?: Record<string, Record<string, any>> | undefined;
2741
2741
  args?: any;
2742
2742
  experimental_content?: ({
@@ -2772,13 +2772,13 @@ export declare const vMessageWithMetadataInternal: VObject<{
2772
2772
  mimeType?: string | undefined;
2773
2773
  type: "image";
2774
2774
  data: string;
2775
- }, [VObject<{
2775
+ }, [import("convex/values").VObject<{
2776
2776
  type: "text";
2777
2777
  text: string;
2778
2778
  }, {
2779
2779
  type: import("convex/values").VLiteral<"text", "required">;
2780
2780
  text: import("convex/values").VString<string, "required">;
2781
- }, "required", "type" | "text">, VObject<{
2781
+ }, "required", "type" | "text">, import("convex/values").VObject<{
2782
2782
  mimeType?: string | undefined;
2783
2783
  type: "image";
2784
2784
  data: string;
@@ -2791,7 +2791,7 @@ export declare const vMessageWithMetadataInternal: VObject<{
2791
2791
  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>;
2792
2792
  }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>, "required">;
2793
2793
  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>;
2794
- }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, VObject<{
2794
+ }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
2795
2795
  providerOptions?: Record<string, Record<string, any>> | undefined;
2796
2796
  role: "system";
2797
2797
  content: string;
@@ -2812,7 +2812,7 @@ export declare const vMessageWithMetadataInternal: VObject<{
2812
2812
  id: string;
2813
2813
  sourceType: "url";
2814
2814
  url: string;
2815
- }[] | undefined, VObject<{
2815
+ }[] | undefined, import("convex/values").VObject<{
2816
2816
  title?: string | undefined;
2817
2817
  providerOptions?: Record<string, Record<string, any>> | undefined;
2818
2818
  id: string;
@@ -2840,7 +2840,7 @@ export declare const vMessageWithMetadataInternal: VObject<{
2840
2840
  } | {
2841
2841
  type: "redacted";
2842
2842
  data: string;
2843
- }, [VObject<{
2843
+ }, [import("convex/values").VObject<{
2844
2844
  signature?: string | undefined;
2845
2845
  type: "text";
2846
2846
  text: string;
@@ -2848,14 +2848,14 @@ export declare const vMessageWithMetadataInternal: VObject<{
2848
2848
  type: import("convex/values").VLiteral<"text", "required">;
2849
2849
  text: import("convex/values").VString<string, "required">;
2850
2850
  signature: import("convex/values").VString<string | undefined, "optional">;
2851
- }, "required", "type" | "text" | "signature">, VObject<{
2851
+ }, "required", "type" | "text" | "signature">, import("convex/values").VObject<{
2852
2852
  type: "redacted";
2853
2853
  data: string;
2854
2854
  }, {
2855
2855
  type: import("convex/values").VLiteral<"redacted", "required">;
2856
2856
  data: import("convex/values").VString<string, "required">;
2857
2857
  }, "required", "type" | "data">], "required", "type" | "text" | "data" | "signature">, "optional">;
2858
- usage: VObject<{
2858
+ usage: import("convex/values").VObject<{
2859
2859
  promptTokens: number;
2860
2860
  completionTokens: number;
2861
2861
  totalTokens: number;
@@ -2886,7 +2886,7 @@ export declare const vMessageWithMetadataInternal: VObject<{
2886
2886
  } | {
2887
2887
  type: "other";
2888
2888
  message: string;
2889
- }, [VObject<{
2889
+ }, [import("convex/values").VObject<{
2890
2890
  details?: string | undefined;
2891
2891
  type: "unsupported-setting";
2892
2892
  setting: string;
@@ -2894,7 +2894,7 @@ export declare const vMessageWithMetadataInternal: VObject<{
2894
2894
  type: import("convex/values").VLiteral<"unsupported-setting", "required">;
2895
2895
  setting: import("convex/values").VString<string, "required">;
2896
2896
  details: import("convex/values").VString<string | undefined, "optional">;
2897
- }, "required", "type" | "setting" | "details">, VObject<{
2897
+ }, "required", "type" | "setting" | "details">, import("convex/values").VObject<{
2898
2898
  details?: string | undefined;
2899
2899
  type: "unsupported-tool";
2900
2900
  tool: any;
@@ -2902,7 +2902,7 @@ export declare const vMessageWithMetadataInternal: VObject<{
2902
2902
  type: import("convex/values").VLiteral<"unsupported-tool", "required">;
2903
2903
  tool: import("convex/values").VAny<any, "required", string>;
2904
2904
  details: import("convex/values").VString<string | undefined, "optional">;
2905
- }, "required", "type" | "tool" | "details" | `tool.${string}`>, VObject<{
2905
+ }, "required", "type" | "tool" | "details" | `tool.${string}`>, import("convex/values").VObject<{
2906
2906
  type: "other";
2907
2907
  message: string;
2908
2908
  }, {
@@ -2911,7 +2911,7 @@ export declare const vMessageWithMetadataInternal: VObject<{
2911
2911
  }, "required", "type" | "message">], "required", "type" | "message" | "tool" | "setting" | "details" | `tool.${string}`>, "optional">;
2912
2912
  error: import("convex/values").VString<string | undefined, "optional">;
2913
2913
  }, "required", "id" | "fileIds" | "error" | "model" | "provider" | "message" | "text" | "reasoning" | "usage" | "providerMetadata" | "sources" | "reasoningDetails" | "warnings" | "finishReason" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | `providerMetadata.${string}`>;
2914
- export declare const vMessageWithMetadata: VObject<{
2914
+ export declare const vMessageWithMetadata: import("convex/values").VObject<{
2915
2915
  id?: string | undefined;
2916
2916
  fileIds?: string[] | undefined;
2917
2917
  error?: string | undefined;
@@ -3101,7 +3101,7 @@ export declare const vMessageWithMetadata: VObject<{
3101
3101
  providerOptions?: Record<string, Record<string, any>> | undefined;
3102
3102
  role: "system";
3103
3103
  content: string;
3104
- }, [VObject<{
3104
+ }, [import("convex/values").VObject<{
3105
3105
  providerOptions?: Record<string, Record<string, any>> | undefined;
3106
3106
  role: "user";
3107
3107
  content: string | ({
@@ -3167,7 +3167,7 @@ export declare const vMessageWithMetadata: VObject<{
3167
3167
  type: "file";
3168
3168
  mimeType: string;
3169
3169
  data: string | ArrayBuffer;
3170
- }, [VObject<{
3170
+ }, [import("convex/values").VObject<{
3171
3171
  providerOptions?: Record<string, Record<string, any>> | undefined;
3172
3172
  type: "text";
3173
3173
  text: string;
@@ -3175,7 +3175,7 @@ export declare const vMessageWithMetadata: VObject<{
3175
3175
  type: import("convex/values").VLiteral<"text", "required">;
3176
3176
  text: import("convex/values").VString<string, "required">;
3177
3177
  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>;
3178
- }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, VObject<{
3178
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{
3179
3179
  providerOptions?: Record<string, Record<string, any>> | undefined;
3180
3180
  mimeType?: string | undefined;
3181
3181
  type: "image";
@@ -3185,7 +3185,7 @@ export declare const vMessageWithMetadata: VObject<{
3185
3185
  image: import("convex/values").VUnion<string | ArrayBuffer, [import("convex/values").VString<string, "required">, import("convex/values").VBytes<ArrayBuffer, "required">], "required", never>;
3186
3186
  mimeType: import("convex/values").VString<string | undefined, "optional">;
3187
3187
  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>;
3188
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType">, VObject<{
3188
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType">, import("convex/values").VObject<{
3189
3189
  providerOptions?: Record<string, Record<string, any>> | undefined;
3190
3190
  filename?: string | undefined;
3191
3191
  type: "file";
@@ -3199,7 +3199,7 @@ export declare const vMessageWithMetadata: VObject<{
3199
3199
  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>;
3200
3200
  }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "image" | "mimeType" | "data" | "filename">, "required">], "required", never>;
3201
3201
  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>;
3202
- }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, VObject<{
3202
+ }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
3203
3203
  providerOptions?: Record<string, Record<string, any>> | undefined;
3204
3204
  role: "assistant";
3205
3205
  content: string | ({
@@ -3305,7 +3305,7 @@ export declare const vMessageWithMetadata: VObject<{
3305
3305
  toolCallId: string;
3306
3306
  toolName: string;
3307
3307
  args: any;
3308
- }, [VObject<{
3308
+ }, [import("convex/values").VObject<{
3309
3309
  providerOptions?: Record<string, Record<string, any>> | undefined;
3310
3310
  type: "text";
3311
3311
  text: string;
@@ -3313,7 +3313,7 @@ export declare const vMessageWithMetadata: VObject<{
3313
3313
  type: import("convex/values").VLiteral<"text", "required">;
3314
3314
  text: import("convex/values").VString<string, "required">;
3315
3315
  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>;
3316
- }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, VObject<{
3316
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{
3317
3317
  providerOptions?: Record<string, Record<string, any>> | undefined;
3318
3318
  filename?: string | undefined;
3319
3319
  type: "file";
@@ -3325,7 +3325,7 @@ export declare const vMessageWithMetadata: VObject<{
3325
3325
  filename: import("convex/values").VString<string | undefined, "optional">;
3326
3326
  mimeType: import("convex/values").VString<string, "required">;
3327
3327
  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>;
3328
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, VObject<{
3328
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, import("convex/values").VObject<{
3329
3329
  providerOptions?: Record<string, Record<string, any>> | undefined;
3330
3330
  signature?: string | undefined;
3331
3331
  type: "reasoning";
@@ -3335,7 +3335,7 @@ export declare const vMessageWithMetadata: VObject<{
3335
3335
  text: import("convex/values").VString<string, "required">;
3336
3336
  signature: import("convex/values").VString<string | undefined, "optional">;
3337
3337
  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>;
3338
- }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature">, VObject<{
3338
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature">, import("convex/values").VObject<{
3339
3339
  providerOptions?: Record<string, Record<string, any>> | undefined;
3340
3340
  type: "redacted-reasoning";
3341
3341
  data: string;
@@ -3343,7 +3343,7 @@ export declare const vMessageWithMetadata: VObject<{
3343
3343
  type: import("convex/values").VLiteral<"redacted-reasoning", "required">;
3344
3344
  data: import("convex/values").VString<string, "required">;
3345
3345
  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>;
3346
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "data">, VObject<{
3346
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "data">, import("convex/values").VObject<{
3347
3347
  providerOptions?: Record<string, Record<string, any>> | undefined;
3348
3348
  type: "tool-call";
3349
3349
  toolCallId: string;
@@ -3357,7 +3357,7 @@ export declare const vMessageWithMetadata: VObject<{
3357
3357
  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>;
3358
3358
  }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "args" | `args.${string}`>, "required">], "required", never>;
3359
3359
  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>;
3360
- }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, VObject<{
3360
+ }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
3361
3361
  providerOptions?: Record<string, Record<string, any>> | undefined;
3362
3362
  role: "tool";
3363
3363
  content: {
@@ -3395,7 +3395,7 @@ export declare const vMessageWithMetadata: VObject<{
3395
3395
  toolCallId: string;
3396
3396
  toolName: string;
3397
3397
  result: any;
3398
- }[], VObject<{
3398
+ }[], import("convex/values").VObject<{
3399
3399
  providerOptions?: Record<string, Record<string, any>> | undefined;
3400
3400
  args?: any;
3401
3401
  experimental_content?: ({
@@ -3431,13 +3431,13 @@ export declare const vMessageWithMetadata: VObject<{
3431
3431
  mimeType?: string | undefined;
3432
3432
  type: "image";
3433
3433
  data: string;
3434
- }, [VObject<{
3434
+ }, [import("convex/values").VObject<{
3435
3435
  type: "text";
3436
3436
  text: string;
3437
3437
  }, {
3438
3438
  type: import("convex/values").VLiteral<"text", "required">;
3439
3439
  text: import("convex/values").VString<string, "required">;
3440
- }, "required", "type" | "text">, VObject<{
3440
+ }, "required", "type" | "text">, import("convex/values").VObject<{
3441
3441
  mimeType?: string | undefined;
3442
3442
  type: "image";
3443
3443
  data: string;
@@ -3450,7 +3450,7 @@ export declare const vMessageWithMetadata: VObject<{
3450
3450
  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>;
3451
3451
  }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>, "required">;
3452
3452
  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>;
3453
- }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, VObject<{
3453
+ }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
3454
3454
  providerOptions?: Record<string, Record<string, any>> | undefined;
3455
3455
  role: "system";
3456
3456
  content: string;
@@ -3470,7 +3470,7 @@ export declare const vMessageWithMetadata: VObject<{
3470
3470
  id: string;
3471
3471
  sourceType: "url";
3472
3472
  url: string;
3473
- }[] | undefined, VObject<{
3473
+ }[] | undefined, import("convex/values").VObject<{
3474
3474
  title?: string | undefined;
3475
3475
  providerOptions?: Record<string, Record<string, any>> | undefined;
3476
3476
  id: string;
@@ -3498,7 +3498,7 @@ export declare const vMessageWithMetadata: VObject<{
3498
3498
  } | {
3499
3499
  type: "redacted";
3500
3500
  data: string;
3501
- }, [VObject<{
3501
+ }, [import("convex/values").VObject<{
3502
3502
  signature?: string | undefined;
3503
3503
  type: "text";
3504
3504
  text: string;
@@ -3506,14 +3506,14 @@ export declare const vMessageWithMetadata: VObject<{
3506
3506
  type: import("convex/values").VLiteral<"text", "required">;
3507
3507
  text: import("convex/values").VString<string, "required">;
3508
3508
  signature: import("convex/values").VString<string | undefined, "optional">;
3509
- }, "required", "type" | "text" | "signature">, VObject<{
3509
+ }, "required", "type" | "text" | "signature">, import("convex/values").VObject<{
3510
3510
  type: "redacted";
3511
3511
  data: string;
3512
3512
  }, {
3513
3513
  type: import("convex/values").VLiteral<"redacted", "required">;
3514
3514
  data: import("convex/values").VString<string, "required">;
3515
3515
  }, "required", "type" | "data">], "required", "type" | "text" | "data" | "signature">, "optional">;
3516
- usage: VObject<{
3516
+ usage: import("convex/values").VObject<{
3517
3517
  promptTokens: number;
3518
3518
  completionTokens: number;
3519
3519
  totalTokens: number;
@@ -3544,7 +3544,7 @@ export declare const vMessageWithMetadata: VObject<{
3544
3544
  } | {
3545
3545
  type: "other";
3546
3546
  message: string;
3547
- }, [VObject<{
3547
+ }, [import("convex/values").VObject<{
3548
3548
  details?: string | undefined;
3549
3549
  type: "unsupported-setting";
3550
3550
  setting: string;
@@ -3552,7 +3552,7 @@ export declare const vMessageWithMetadata: VObject<{
3552
3552
  type: import("convex/values").VLiteral<"unsupported-setting", "required">;
3553
3553
  setting: import("convex/values").VString<string, "required">;
3554
3554
  details: import("convex/values").VString<string | undefined, "optional">;
3555
- }, "required", "type" | "setting" | "details">, VObject<{
3555
+ }, "required", "type" | "setting" | "details">, import("convex/values").VObject<{
3556
3556
  details?: string | undefined;
3557
3557
  type: "unsupported-tool";
3558
3558
  tool: any;
@@ -3560,7 +3560,7 @@ export declare const vMessageWithMetadata: VObject<{
3560
3560
  type: import("convex/values").VLiteral<"unsupported-tool", "required">;
3561
3561
  tool: import("convex/values").VAny<any, "required", string>;
3562
3562
  details: import("convex/values").VString<string | undefined, "optional">;
3563
- }, "required", "type" | "tool" | "details" | `tool.${string}`>, VObject<{
3563
+ }, "required", "type" | "tool" | "details" | `tool.${string}`>, import("convex/values").VObject<{
3564
3564
  type: "other";
3565
3565
  message: string;
3566
3566
  }, {
@@ -3570,7 +3570,7 @@ export declare const vMessageWithMetadata: VObject<{
3570
3570
  error: import("convex/values").VString<string | undefined, "optional">;
3571
3571
  }, "required", "id" | "fileIds" | "error" | "model" | "provider" | "message" | "text" | "reasoning" | "usage" | "providerMetadata" | "sources" | "reasoningDetails" | "warnings" | "finishReason" | "message.providerOptions" | "message.role" | `message.providerOptions.${string}` | "message.content" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | `providerMetadata.${string}`>;
3572
3572
  export type MessageWithMetadata = Infer<typeof vMessageWithMetadata>;
3573
- export declare const vMessageEmbeddings: VObject<{
3573
+ export declare const vMessageEmbeddings: import("convex/values").VObject<{
3574
3574
  model: string;
3575
3575
  dimension: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
3576
3576
  vectors: (number[] | null)[];
@@ -3580,7 +3580,7 @@ export declare const vMessageEmbeddings: VObject<{
3580
3580
  vectors: import("convex/values").VArray<(number[] | null)[], import("convex/values").VUnion<number[] | null, [import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">, import("convex/values").VNull<null, "required">], "required", never>, "required">;
3581
3581
  }, "required", "model" | "dimension" | "vectors">;
3582
3582
  export type MessageEmbeddings = Infer<typeof vMessageEmbeddings>;
3583
- export declare const vObjectResult: VObject<{
3583
+ export declare const vObjectResult: import("convex/values").VObject<{
3584
3584
  error?: string | undefined;
3585
3585
  usage?: any;
3586
3586
  providerMetadata?: Record<string, Record<string, any>> | undefined;
@@ -3612,7 +3612,7 @@ export declare const vObjectResult: VObject<{
3612
3612
  modelId: string;
3613
3613
  };
3614
3614
  }, {
3615
- request: VObject<{
3615
+ request: import("convex/values").VObject<{
3616
3616
  url?: string | undefined;
3617
3617
  body?: any;
3618
3618
  headers?: Record<string, string> | undefined;
@@ -3623,7 +3623,7 @@ export declare const vObjectResult: VObject<{
3623
3623
  method: import("convex/values").VString<string | undefined, "optional">;
3624
3624
  url: import("convex/values").VString<string | undefined, "optional">;
3625
3625
  }, "required", "url" | "body" | "headers" | "method" | `body.${string}` | `headers.${string}`>;
3626
- response: VObject<{
3626
+ response: import("convex/values").VObject<{
3627
3627
  body?: any;
3628
3628
  headers?: Record<string, string> | undefined;
3629
3629
  id: string;
@@ -3662,7 +3662,7 @@ export declare const vObjectResult: VObject<{
3662
3662
  } | {
3663
3663
  type: "other";
3664
3664
  message: string;
3665
- }, [VObject<{
3665
+ }, [import("convex/values").VObject<{
3666
3666
  details?: string | undefined;
3667
3667
  type: "unsupported-setting";
3668
3668
  setting: string;
@@ -3670,7 +3670,7 @@ export declare const vObjectResult: VObject<{
3670
3670
  type: import("convex/values").VLiteral<"unsupported-setting", "required">;
3671
3671
  setting: import("convex/values").VString<string, "required">;
3672
3672
  details: import("convex/values").VString<string | undefined, "optional">;
3673
- }, "required", "type" | "setting" | "details">, VObject<{
3673
+ }, "required", "type" | "setting" | "details">, import("convex/values").VObject<{
3674
3674
  details?: string | undefined;
3675
3675
  type: "unsupported-tool";
3676
3676
  tool: any;
@@ -3678,7 +3678,7 @@ export declare const vObjectResult: VObject<{
3678
3678
  type: import("convex/values").VLiteral<"unsupported-tool", "required">;
3679
3679
  tool: import("convex/values").VAny<any, "required", string>;
3680
3680
  details: import("convex/values").VString<string | undefined, "optional">;
3681
- }, "required", "type" | "tool" | "details" | `tool.${string}`>, VObject<{
3681
+ }, "required", "type" | "tool" | "details" | `tool.${string}`>, import("convex/values").VObject<{
3682
3682
  type: "other";
3683
3683
  message: string;
3684
3684
  }, {
@@ -3688,7 +3688,7 @@ export declare const vObjectResult: VObject<{
3688
3688
  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>;
3689
3689
  }, "required", "object" | "error" | "usage" | "providerMetadata" | "warnings" | "finishReason" | `providerMetadata.${string}` | "request" | "response" | `object.${string}` | `usage.${string}` | "request.url" | "request.body" | "request.headers" | "request.method" | `request.body.${string}` | `request.headers.${string}` | "response.id" | "response.body" | "response.headers" | `response.body.${string}` | `response.headers.${string}` | "response.timestamp" | "response.modelId">;
3690
3690
  export type ObjectResult = Infer<typeof vObjectResult>;
3691
- export declare const vContextOptionsSearchOptions: VObject<{
3691
+ export declare const vContextOptionsSearchOptions: import("convex/values").VObject<{
3692
3692
  textSearch?: boolean | undefined;
3693
3693
  vectorSearch?: boolean | undefined;
3694
3694
  vectorScoreThreshold?: number | undefined;
@@ -3702,7 +3702,7 @@ export declare const vContextOptionsSearchOptions: VObject<{
3702
3702
  textSearch: import("convex/values").VBoolean<boolean | undefined, "optional">;
3703
3703
  vectorSearch: import("convex/values").VBoolean<boolean | undefined, "optional">;
3704
3704
  vectorScoreThreshold: import("convex/values").VFloat64<number | undefined, "optional">;
3705
- messageRange: VObject<{
3705
+ messageRange: import("convex/values").VObject<{
3706
3706
  before: number;
3707
3707
  after: number;
3708
3708
  } | undefined, {
@@ -3710,7 +3710,7 @@ export declare const vContextOptionsSearchOptions: VObject<{
3710
3710
  after: import("convex/values").VFloat64<number, "required">;
3711
3711
  }, "optional", "before" | "after">;
3712
3712
  }, "required", "limit" | "textSearch" | "vectorSearch" | "vectorScoreThreshold" | "messageRange" | "messageRange.before" | "messageRange.after">;
3713
- export declare const vContextOptions: VObject<{
3713
+ export declare const vContextOptions: import("convex/values").VObject<{
3714
3714
  excludeToolMessages?: boolean | undefined;
3715
3715
  recentMessages?: number | undefined;
3716
3716
  searchOptions?: {
@@ -3727,7 +3727,7 @@ export declare const vContextOptions: VObject<{
3727
3727
  }, {
3728
3728
  excludeToolMessages: import("convex/values").VBoolean<boolean | undefined, "optional">;
3729
3729
  recentMessages: import("convex/values").VFloat64<number | undefined, "optional">;
3730
- searchOptions: VObject<{
3730
+ searchOptions: import("convex/values").VObject<{
3731
3731
  textSearch?: boolean | undefined;
3732
3732
  vectorSearch?: boolean | undefined;
3733
3733
  vectorScoreThreshold?: number | undefined;
@@ -3741,7 +3741,7 @@ export declare const vContextOptions: VObject<{
3741
3741
  textSearch: import("convex/values").VBoolean<boolean | undefined, "optional">;
3742
3742
  vectorSearch: import("convex/values").VBoolean<boolean | undefined, "optional">;
3743
3743
  vectorScoreThreshold: import("convex/values").VFloat64<number | undefined, "optional">;
3744
- messageRange: VObject<{
3744
+ messageRange: import("convex/values").VObject<{
3745
3745
  before: number;
3746
3746
  after: number;
3747
3747
  } | undefined, {
@@ -3751,7 +3751,7 @@ export declare const vContextOptions: VObject<{
3751
3751
  }, "optional", "limit" | "textSearch" | "vectorSearch" | "vectorScoreThreshold" | "messageRange" | "messageRange.before" | "messageRange.after">;
3752
3752
  searchOtherThreads: import("convex/values").VBoolean<boolean | undefined, "optional">;
3753
3753
  }, "required", "excludeToolMessages" | "recentMessages" | "searchOptions" | "searchOtherThreads" | "searchOptions.limit" | "searchOptions.textSearch" | "searchOptions.vectorSearch" | "searchOptions.vectorScoreThreshold" | "searchOptions.messageRange" | "searchOptions.messageRange.before" | "searchOptions.messageRange.after">;
3754
- export declare const vStorageOptions: VObject<{
3754
+ export declare const vStorageOptions: import("convex/values").VObject<{
3755
3755
  saveMessages?: "all" | "none" | "promptAndOutput" | undefined;
3756
3756
  }, {
3757
3757
  saveMessages: import("convex/values").VUnion<"all" | "none" | "promptAndOutput" | undefined, [import("convex/values").VLiteral<"all", "required">, import("convex/values").VLiteral<"none", "required">, import("convex/values").VLiteral<"promptAndOutput", "required">], "optional", never>;
@@ -3768,7 +3768,7 @@ export declare const vCallSettingsFields: {
3768
3768
  headers: import("convex/values").VRecord<Record<string, string> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "optional", string>;
3769
3769
  };
3770
3770
  export type CallSettings = ObjectType<typeof vCallSettingsFields>;
3771
- export declare const vTextArgs: VObject<{
3771
+ export declare const vTextArgs: import("convex/values").VObject<{
3772
3772
  userId?: string | undefined;
3773
3773
  threadId?: string | undefined;
3774
3774
  providerOptions?: Record<string, Record<string, any>> | undefined;
@@ -3880,26 +3880,14 @@ export declare const vTextArgs: VObject<{
3880
3880
  searchOtherThreads?: boolean | undefined;
3881
3881
  } | undefined;
3882
3882
  storageOptions?: {
3883
- saveMessages?: "all" | "none" | "promptAndOutput";
3884
- /**
3885
- * @deprecated Use saveMessages instead.
3886
- */
3887
- saveAllInputMessages?: boolean;
3888
- /**
3889
- * @deprecated Use saveMessages instead.
3890
- */
3891
- saveAnyInputMessages?: boolean;
3892
- /**
3893
- * @deprecated Use saveMessages instead.
3894
- */
3895
- saveOutputMessages?: boolean;
3883
+ saveMessages?: "all" | "none" | "promptAndOutput" | undefined;
3896
3884
  } | undefined;
3897
3885
  }, {
3898
3886
  stream: import("convex/values").VBoolean<boolean | undefined, "optional">;
3899
3887
  toolChoice: import("convex/values").VUnion<"required" | "none" | "auto" | {
3900
3888
  type: "tool";
3901
3889
  toolName: string;
3902
- } | undefined, [import("convex/values").VLiteral<"auto", "required">, import("convex/values").VLiteral<"none", "required">, import("convex/values").VLiteral<"required", "required">, VObject<{
3890
+ } | undefined, [import("convex/values").VLiteral<"auto", "required">, import("convex/values").VLiteral<"none", "required">, import("convex/values").VLiteral<"required", "required">, import("convex/values").VObject<{
3903
3891
  type: "tool";
3904
3892
  toolName: string;
3905
3893
  }, {
@@ -4054,7 +4042,7 @@ export declare const vTextArgs: VObject<{
4054
4042
  providerOptions?: Record<string, Record<string, any>> | undefined;
4055
4043
  role: "system";
4056
4044
  content: string;
4057
- }, [VObject<{
4045
+ }, [import("convex/values").VObject<{
4058
4046
  providerOptions?: Record<string, Record<string, any>> | undefined;
4059
4047
  role: "user";
4060
4048
  content: string | ({
@@ -4120,7 +4108,7 @@ export declare const vTextArgs: VObject<{
4120
4108
  type: "file";
4121
4109
  mimeType: string;
4122
4110
  data: string | ArrayBuffer;
4123
- }, [VObject<{
4111
+ }, [import("convex/values").VObject<{
4124
4112
  providerOptions?: Record<string, Record<string, any>> | undefined;
4125
4113
  type: "text";
4126
4114
  text: string;
@@ -4128,7 +4116,7 @@ export declare const vTextArgs: VObject<{
4128
4116
  type: import("convex/values").VLiteral<"text", "required">;
4129
4117
  text: import("convex/values").VString<string, "required">;
4130
4118
  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>;
4131
- }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, VObject<{
4119
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{
4132
4120
  providerOptions?: Record<string, Record<string, any>> | undefined;
4133
4121
  mimeType?: string | undefined;
4134
4122
  type: "image";
@@ -4138,7 +4126,7 @@ export declare const vTextArgs: VObject<{
4138
4126
  image: import("convex/values").VUnion<string | ArrayBuffer, [import("convex/values").VString<string, "required">, import("convex/values").VBytes<ArrayBuffer, "required">], "required", never>;
4139
4127
  mimeType: import("convex/values").VString<string | undefined, "optional">;
4140
4128
  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>;
4141
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType">, VObject<{
4129
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType">, import("convex/values").VObject<{
4142
4130
  providerOptions?: Record<string, Record<string, any>> | undefined;
4143
4131
  filename?: string | undefined;
4144
4132
  type: "file";
@@ -4152,7 +4140,7 @@ export declare const vTextArgs: VObject<{
4152
4140
  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>;
4153
4141
  }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "image" | "mimeType" | "data" | "filename">, "required">], "required", never>;
4154
4142
  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>;
4155
- }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, VObject<{
4143
+ }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
4156
4144
  providerOptions?: Record<string, Record<string, any>> | undefined;
4157
4145
  role: "assistant";
4158
4146
  content: string | ({
@@ -4258,7 +4246,7 @@ export declare const vTextArgs: VObject<{
4258
4246
  toolCallId: string;
4259
4247
  toolName: string;
4260
4248
  args: any;
4261
- }, [VObject<{
4249
+ }, [import("convex/values").VObject<{
4262
4250
  providerOptions?: Record<string, Record<string, any>> | undefined;
4263
4251
  type: "text";
4264
4252
  text: string;
@@ -4266,7 +4254,7 @@ export declare const vTextArgs: VObject<{
4266
4254
  type: import("convex/values").VLiteral<"text", "required">;
4267
4255
  text: import("convex/values").VString<string, "required">;
4268
4256
  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>;
4269
- }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, VObject<{
4257
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{
4270
4258
  providerOptions?: Record<string, Record<string, any>> | undefined;
4271
4259
  filename?: string | undefined;
4272
4260
  type: "file";
@@ -4278,7 +4266,7 @@ export declare const vTextArgs: VObject<{
4278
4266
  filename: import("convex/values").VString<string | undefined, "optional">;
4279
4267
  mimeType: import("convex/values").VString<string, "required">;
4280
4268
  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>;
4281
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, VObject<{
4269
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, import("convex/values").VObject<{
4282
4270
  providerOptions?: Record<string, Record<string, any>> | undefined;
4283
4271
  signature?: string | undefined;
4284
4272
  type: "reasoning";
@@ -4288,7 +4276,7 @@ export declare const vTextArgs: VObject<{
4288
4276
  text: import("convex/values").VString<string, "required">;
4289
4277
  signature: import("convex/values").VString<string | undefined, "optional">;
4290
4278
  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>;
4291
- }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature">, VObject<{
4279
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature">, import("convex/values").VObject<{
4292
4280
  providerOptions?: Record<string, Record<string, any>> | undefined;
4293
4281
  type: "redacted-reasoning";
4294
4282
  data: string;
@@ -4296,7 +4284,7 @@ export declare const vTextArgs: VObject<{
4296
4284
  type: import("convex/values").VLiteral<"redacted-reasoning", "required">;
4297
4285
  data: import("convex/values").VString<string, "required">;
4298
4286
  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>;
4299
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "data">, VObject<{
4287
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "data">, import("convex/values").VObject<{
4300
4288
  providerOptions?: Record<string, Record<string, any>> | undefined;
4301
4289
  type: "tool-call";
4302
4290
  toolCallId: string;
@@ -4310,7 +4298,7 @@ export declare const vTextArgs: VObject<{
4310
4298
  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>;
4311
4299
  }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "args" | `args.${string}`>, "required">], "required", never>;
4312
4300
  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>;
4313
- }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, VObject<{
4301
+ }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
4314
4302
  providerOptions?: Record<string, Record<string, any>> | undefined;
4315
4303
  role: "tool";
4316
4304
  content: {
@@ -4348,7 +4336,7 @@ export declare const vTextArgs: VObject<{
4348
4336
  toolCallId: string;
4349
4337
  toolName: string;
4350
4338
  result: any;
4351
- }[], VObject<{
4339
+ }[], import("convex/values").VObject<{
4352
4340
  providerOptions?: Record<string, Record<string, any>> | undefined;
4353
4341
  args?: any;
4354
4342
  experimental_content?: ({
@@ -4384,13 +4372,13 @@ export declare const vTextArgs: VObject<{
4384
4372
  mimeType?: string | undefined;
4385
4373
  type: "image";
4386
4374
  data: string;
4387
- }, [VObject<{
4375
+ }, [import("convex/values").VObject<{
4388
4376
  type: "text";
4389
4377
  text: string;
4390
4378
  }, {
4391
4379
  type: import("convex/values").VLiteral<"text", "required">;
4392
4380
  text: import("convex/values").VString<string, "required">;
4393
- }, "required", "type" | "text">, VObject<{
4381
+ }, "required", "type" | "text">, import("convex/values").VObject<{
4394
4382
  mimeType?: string | undefined;
4395
4383
  type: "image";
4396
4384
  data: string;
@@ -4403,7 +4391,7 @@ export declare const vTextArgs: VObject<{
4403
4391
  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>;
4404
4392
  }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>, "required">;
4405
4393
  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>;
4406
- }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, VObject<{
4394
+ }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
4407
4395
  providerOptions?: Record<string, Record<string, any>> | undefined;
4408
4396
  role: "system";
4409
4397
  content: string;
@@ -4424,7 +4412,7 @@ export declare const vTextArgs: VObject<{
4424
4412
  headers: import("convex/values").VRecord<Record<string, string> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "optional", string>;
4425
4413
  userId: import("convex/values").VString<string | undefined, "optional">;
4426
4414
  threadId: import("convex/values").VString<string | undefined, "optional">;
4427
- contextOptions: VObject<{
4415
+ contextOptions: import("convex/values").VObject<{
4428
4416
  excludeToolMessages?: boolean | undefined;
4429
4417
  recentMessages?: number | undefined;
4430
4418
  searchOptions?: {
@@ -4441,7 +4429,7 @@ export declare const vTextArgs: VObject<{
4441
4429
  } | undefined, {
4442
4430
  excludeToolMessages: import("convex/values").VBoolean<boolean | undefined, "optional">;
4443
4431
  recentMessages: import("convex/values").VFloat64<number | undefined, "optional">;
4444
- searchOptions: VObject<{
4432
+ searchOptions: import("convex/values").VObject<{
4445
4433
  textSearch?: boolean | undefined;
4446
4434
  vectorSearch?: boolean | undefined;
4447
4435
  vectorScoreThreshold?: number | undefined;
@@ -4455,7 +4443,7 @@ export declare const vTextArgs: VObject<{
4455
4443
  textSearch: import("convex/values").VBoolean<boolean | undefined, "optional">;
4456
4444
  vectorSearch: import("convex/values").VBoolean<boolean | undefined, "optional">;
4457
4445
  vectorScoreThreshold: import("convex/values").VFloat64<number | undefined, "optional">;
4458
- messageRange: VObject<{
4446
+ messageRange: import("convex/values").VObject<{
4459
4447
  before: number;
4460
4448
  after: number;
4461
4449
  } | undefined, {
@@ -4465,27 +4453,15 @@ export declare const vTextArgs: VObject<{
4465
4453
  }, "optional", "limit" | "textSearch" | "vectorSearch" | "vectorScoreThreshold" | "messageRange" | "messageRange.before" | "messageRange.after">;
4466
4454
  searchOtherThreads: import("convex/values").VBoolean<boolean | undefined, "optional">;
4467
4455
  }, "optional", "excludeToolMessages" | "recentMessages" | "searchOptions" | "searchOtherThreads" | "searchOptions.limit" | "searchOptions.textSearch" | "searchOptions.vectorSearch" | "searchOptions.vectorScoreThreshold" | "searchOptions.messageRange" | "searchOptions.messageRange.before" | "searchOptions.messageRange.after">;
4468
- storageOptions: VObject<{
4469
- saveMessages?: "all" | "none" | "promptAndOutput";
4470
- /**
4471
- * @deprecated Use saveMessages instead.
4472
- */
4473
- saveAllInputMessages?: boolean;
4474
- /**
4475
- * @deprecated Use saveMessages instead.
4476
- */
4477
- saveAnyInputMessages?: boolean;
4478
- /**
4479
- * @deprecated Use saveMessages instead.
4480
- */
4481
- saveOutputMessages?: boolean;
4456
+ storageOptions: import("convex/values").VObject<{
4457
+ saveMessages?: "all" | "none" | "promptAndOutput" | undefined;
4482
4458
  } | undefined, {
4483
4459
  saveMessages: import("convex/values").VUnion<"all" | "none" | "promptAndOutput" | undefined, [import("convex/values").VLiteral<"all", "required">, import("convex/values").VLiteral<"none", "required">, import("convex/values").VLiteral<"promptAndOutput", "required">], "optional", never>;
4484
4460
  }, "optional", "saveMessages">;
4485
4461
  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>;
4486
4462
  }, "required", "userId" | "threadId" | "providerOptions" | `providerOptions.${string}` | "system" | "messages" | "headers" | `headers.${string}` | "maxTokens" | "temperature" | "topP" | "topK" | "presencePenalty" | "frequencyPenalty" | "seed" | "maxRetries" | "stream" | "toolChoice" | "maxSteps" | "experimental_continueSteps" | "prompt" | "promptMessageId" | "contextOptions" | "storageOptions" | "toolChoice.type" | "toolChoice.toolName" | "contextOptions.excludeToolMessages" | "contextOptions.recentMessages" | "contextOptions.searchOptions" | "contextOptions.searchOtherThreads" | "contextOptions.searchOptions.limit" | "contextOptions.searchOptions.textSearch" | "contextOptions.searchOptions.vectorSearch" | "contextOptions.searchOptions.vectorScoreThreshold" | "contextOptions.searchOptions.messageRange" | "contextOptions.searchOptions.messageRange.before" | "contextOptions.searchOptions.messageRange.after" | "storageOptions.saveMessages">;
4487
4463
  export type TextArgs = Infer<typeof vTextArgs>;
4488
- export declare const vSafeObjectArgs: VObject<{
4464
+ export declare const vSafeObjectArgs: import("convex/values").VObject<{
4489
4465
  userId?: string | undefined;
4490
4466
  threadId?: string | undefined;
4491
4467
  providerOptions?: Record<string, Record<string, any>> | undefined;
@@ -4590,19 +4566,7 @@ export declare const vSafeObjectArgs: VObject<{
4590
4566
  searchOtherThreads?: boolean | undefined;
4591
4567
  } | undefined;
4592
4568
  storageOptions?: {
4593
- saveMessages?: "all" | "none" | "promptAndOutput";
4594
- /**
4595
- * @deprecated Use saveMessages instead.
4596
- */
4597
- saveAllInputMessages?: boolean;
4598
- /**
4599
- * @deprecated Use saveMessages instead.
4600
- */
4601
- saveAnyInputMessages?: boolean;
4602
- /**
4603
- * @deprecated Use saveMessages instead.
4604
- */
4605
- saveOutputMessages?: boolean;
4569
+ saveMessages?: "all" | "none" | "promptAndOutput" | undefined;
4606
4570
  } | undefined;
4607
4571
  }, {
4608
4572
  system: import("convex/values").VString<string | undefined, "optional">;
@@ -4751,7 +4715,7 @@ export declare const vSafeObjectArgs: VObject<{
4751
4715
  providerOptions?: Record<string, Record<string, any>> | undefined;
4752
4716
  role: "system";
4753
4717
  content: string;
4754
- }, [VObject<{
4718
+ }, [import("convex/values").VObject<{
4755
4719
  providerOptions?: Record<string, Record<string, any>> | undefined;
4756
4720
  role: "user";
4757
4721
  content: string | ({
@@ -4817,7 +4781,7 @@ export declare const vSafeObjectArgs: VObject<{
4817
4781
  type: "file";
4818
4782
  mimeType: string;
4819
4783
  data: string | ArrayBuffer;
4820
- }, [VObject<{
4784
+ }, [import("convex/values").VObject<{
4821
4785
  providerOptions?: Record<string, Record<string, any>> | undefined;
4822
4786
  type: "text";
4823
4787
  text: string;
@@ -4825,7 +4789,7 @@ export declare const vSafeObjectArgs: VObject<{
4825
4789
  type: import("convex/values").VLiteral<"text", "required">;
4826
4790
  text: import("convex/values").VString<string, "required">;
4827
4791
  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>;
4828
- }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, VObject<{
4792
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{
4829
4793
  providerOptions?: Record<string, Record<string, any>> | undefined;
4830
4794
  mimeType?: string | undefined;
4831
4795
  type: "image";
@@ -4835,7 +4799,7 @@ export declare const vSafeObjectArgs: VObject<{
4835
4799
  image: import("convex/values").VUnion<string | ArrayBuffer, [import("convex/values").VString<string, "required">, import("convex/values").VBytes<ArrayBuffer, "required">], "required", never>;
4836
4800
  mimeType: import("convex/values").VString<string | undefined, "optional">;
4837
4801
  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>;
4838
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType">, VObject<{
4802
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "image" | "mimeType">, import("convex/values").VObject<{
4839
4803
  providerOptions?: Record<string, Record<string, any>> | undefined;
4840
4804
  filename?: string | undefined;
4841
4805
  type: "file";
@@ -4849,7 +4813,7 @@ export declare const vSafeObjectArgs: VObject<{
4849
4813
  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>;
4850
4814
  }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "image" | "mimeType" | "data" | "filename">, "required">], "required", never>;
4851
4815
  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>;
4852
- }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, VObject<{
4816
+ }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
4853
4817
  providerOptions?: Record<string, Record<string, any>> | undefined;
4854
4818
  role: "assistant";
4855
4819
  content: string | ({
@@ -4955,7 +4919,7 @@ export declare const vSafeObjectArgs: VObject<{
4955
4919
  toolCallId: string;
4956
4920
  toolName: string;
4957
4921
  args: any;
4958
- }, [VObject<{
4922
+ }, [import("convex/values").VObject<{
4959
4923
  providerOptions?: Record<string, Record<string, any>> | undefined;
4960
4924
  type: "text";
4961
4925
  text: string;
@@ -4963,7 +4927,7 @@ export declare const vSafeObjectArgs: VObject<{
4963
4927
  type: import("convex/values").VLiteral<"text", "required">;
4964
4928
  text: import("convex/values").VString<string, "required">;
4965
4929
  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>;
4966
- }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, VObject<{
4930
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}`>, import("convex/values").VObject<{
4967
4931
  providerOptions?: Record<string, Record<string, any>> | undefined;
4968
4932
  filename?: string | undefined;
4969
4933
  type: "file";
@@ -4975,7 +4939,7 @@ export declare const vSafeObjectArgs: VObject<{
4975
4939
  filename: import("convex/values").VString<string | undefined, "optional">;
4976
4940
  mimeType: import("convex/values").VString<string, "required">;
4977
4941
  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>;
4978
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, VObject<{
4942
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "mimeType" | "data" | "filename">, import("convex/values").VObject<{
4979
4943
  providerOptions?: Record<string, Record<string, any>> | undefined;
4980
4944
  signature?: string | undefined;
4981
4945
  type: "reasoning";
@@ -4985,7 +4949,7 @@ export declare const vSafeObjectArgs: VObject<{
4985
4949
  text: import("convex/values").VString<string, "required">;
4986
4950
  signature: import("convex/values").VString<string | undefined, "optional">;
4987
4951
  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>;
4988
- }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature">, VObject<{
4952
+ }, "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "signature">, import("convex/values").VObject<{
4989
4953
  providerOptions?: Record<string, Record<string, any>> | undefined;
4990
4954
  type: "redacted-reasoning";
4991
4955
  data: string;
@@ -4993,7 +4957,7 @@ export declare const vSafeObjectArgs: VObject<{
4993
4957
  type: import("convex/values").VLiteral<"redacted-reasoning", "required">;
4994
4958
  data: import("convex/values").VString<string, "required">;
4995
4959
  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>;
4996
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "data">, VObject<{
4960
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "data">, import("convex/values").VObject<{
4997
4961
  providerOptions?: Record<string, Record<string, any>> | undefined;
4998
4962
  type: "tool-call";
4999
4963
  toolCallId: string;
@@ -5007,7 +4971,7 @@ export declare const vSafeObjectArgs: VObject<{
5007
4971
  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>;
5008
4972
  }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>], "required", "type" | "providerOptions" | "text" | `providerOptions.${string}` | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "args" | `args.${string}`>, "required">], "required", never>;
5009
4973
  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>;
5010
- }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, VObject<{
4974
+ }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
5011
4975
  providerOptions?: Record<string, Record<string, any>> | undefined;
5012
4976
  role: "tool";
5013
4977
  content: {
@@ -5045,7 +5009,7 @@ export declare const vSafeObjectArgs: VObject<{
5045
5009
  toolCallId: string;
5046
5010
  toolName: string;
5047
5011
  result: any;
5048
- }[], VObject<{
5012
+ }[], import("convex/values").VObject<{
5049
5013
  providerOptions?: Record<string, Record<string, any>> | undefined;
5050
5014
  args?: any;
5051
5015
  experimental_content?: ({
@@ -5081,13 +5045,13 @@ export declare const vSafeObjectArgs: VObject<{
5081
5045
  mimeType?: string | undefined;
5082
5046
  type: "image";
5083
5047
  data: string;
5084
- }, [VObject<{
5048
+ }, [import("convex/values").VObject<{
5085
5049
  type: "text";
5086
5050
  text: string;
5087
5051
  }, {
5088
5052
  type: import("convex/values").VLiteral<"text", "required">;
5089
5053
  text: import("convex/values").VString<string, "required">;
5090
- }, "required", "type" | "text">, VObject<{
5054
+ }, "required", "type" | "text">, import("convex/values").VObject<{
5091
5055
  mimeType?: string | undefined;
5092
5056
  type: "image";
5093
5057
  data: string;
@@ -5100,7 +5064,7 @@ export declare const vSafeObjectArgs: VObject<{
5100
5064
  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>;
5101
5065
  }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>, "required">;
5102
5066
  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>;
5103
- }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, VObject<{
5067
+ }, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
5104
5068
  providerOptions?: Record<string, Record<string, any>> | undefined;
5105
5069
  role: "system";
5106
5070
  content: string;
@@ -5121,7 +5085,7 @@ export declare const vSafeObjectArgs: VObject<{
5121
5085
  headers: import("convex/values").VRecord<Record<string, string> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VString<string, "required">, "optional", string>;
5122
5086
  userId: import("convex/values").VString<string | undefined, "optional">;
5123
5087
  threadId: import("convex/values").VString<string | undefined, "optional">;
5124
- contextOptions: VObject<{
5088
+ contextOptions: import("convex/values").VObject<{
5125
5089
  excludeToolMessages?: boolean | undefined;
5126
5090
  recentMessages?: number | undefined;
5127
5091
  searchOptions?: {
@@ -5138,7 +5102,7 @@ export declare const vSafeObjectArgs: VObject<{
5138
5102
  } | undefined, {
5139
5103
  excludeToolMessages: import("convex/values").VBoolean<boolean | undefined, "optional">;
5140
5104
  recentMessages: import("convex/values").VFloat64<number | undefined, "optional">;
5141
- searchOptions: VObject<{
5105
+ searchOptions: import("convex/values").VObject<{
5142
5106
  textSearch?: boolean | undefined;
5143
5107
  vectorSearch?: boolean | undefined;
5144
5108
  vectorScoreThreshold?: number | undefined;
@@ -5152,7 +5116,7 @@ export declare const vSafeObjectArgs: VObject<{
5152
5116
  textSearch: import("convex/values").VBoolean<boolean | undefined, "optional">;
5153
5117
  vectorSearch: import("convex/values").VBoolean<boolean | undefined, "optional">;
5154
5118
  vectorScoreThreshold: import("convex/values").VFloat64<number | undefined, "optional">;
5155
- messageRange: VObject<{
5119
+ messageRange: import("convex/values").VObject<{
5156
5120
  before: number;
5157
5121
  after: number;
5158
5122
  } | undefined, {
@@ -5162,27 +5126,15 @@ export declare const vSafeObjectArgs: VObject<{
5162
5126
  }, "optional", "limit" | "textSearch" | "vectorSearch" | "vectorScoreThreshold" | "messageRange" | "messageRange.before" | "messageRange.after">;
5163
5127
  searchOtherThreads: import("convex/values").VBoolean<boolean | undefined, "optional">;
5164
5128
  }, "optional", "excludeToolMessages" | "recentMessages" | "searchOptions" | "searchOtherThreads" | "searchOptions.limit" | "searchOptions.textSearch" | "searchOptions.vectorSearch" | "searchOptions.vectorScoreThreshold" | "searchOptions.messageRange" | "searchOptions.messageRange.before" | "searchOptions.messageRange.after">;
5165
- storageOptions: VObject<{
5166
- saveMessages?: "all" | "none" | "promptAndOutput";
5167
- /**
5168
- * @deprecated Use saveMessages instead.
5169
- */
5170
- saveAllInputMessages?: boolean;
5171
- /**
5172
- * @deprecated Use saveMessages instead.
5173
- */
5174
- saveAnyInputMessages?: boolean;
5175
- /**
5176
- * @deprecated Use saveMessages instead.
5177
- */
5178
- saveOutputMessages?: boolean;
5129
+ storageOptions: import("convex/values").VObject<{
5130
+ saveMessages?: "all" | "none" | "promptAndOutput" | undefined;
5179
5131
  } | undefined, {
5180
5132
  saveMessages: import("convex/values").VUnion<"all" | "none" | "promptAndOutput" | undefined, [import("convex/values").VLiteral<"all", "required">, import("convex/values").VLiteral<"none", "required">, import("convex/values").VLiteral<"promptAndOutput", "required">], "optional", never>;
5181
5133
  }, "optional", "saveMessages">;
5182
5134
  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>;
5183
5135
  }, "required", "userId" | "threadId" | "providerOptions" | `providerOptions.${string}` | "system" | "messages" | "headers" | `headers.${string}` | "maxTokens" | "temperature" | "topP" | "topK" | "presencePenalty" | "frequencyPenalty" | "seed" | "maxRetries" | "prompt" | "promptMessageId" | "contextOptions" | "storageOptions" | "contextOptions.excludeToolMessages" | "contextOptions.recentMessages" | "contextOptions.searchOptions" | "contextOptions.searchOtherThreads" | "contextOptions.searchOptions.limit" | "contextOptions.searchOptions.textSearch" | "contextOptions.searchOptions.vectorSearch" | "contextOptions.searchOptions.vectorScoreThreshold" | "contextOptions.searchOptions.messageRange" | "contextOptions.searchOptions.messageRange.before" | "contextOptions.searchOptions.messageRange.after" | "storageOptions.saveMessages">;
5184
5136
  export type SafeObjectArgs = Infer<typeof vSafeObjectArgs>;
5185
- export declare const vEmbeddingsWithMetadata: VObject<{
5137
+ export declare const vEmbeddingsWithMetadata: import("convex/values").VObject<{
5186
5138
  model: string;
5187
5139
  dimension: 128 | 256 | 512 | 768 | 1024 | 1408 | 1536 | 2048 | 3072 | 4096;
5188
5140
  vectors: (number[] | null)[];
@@ -5192,7 +5144,7 @@ export declare const vEmbeddingsWithMetadata: VObject<{
5192
5144
  model: import("convex/values").VString<string, "required">;
5193
5145
  }, "required", "model" | "dimension" | "vectors">;
5194
5146
  export type EmbeddingsWithMetadata = Infer<typeof vEmbeddingsWithMetadata>;
5195
- export declare function vPaginationResult<T extends Validator<Value, "required", string>>(itemValidator: T): VObject<{
5147
+ export declare function vPaginationResult<T extends Validator<Value, "required", string>>(itemValidator: T): import("convex/values").VObject<{
5196
5148
  splitCursor?: string | null | undefined;
5197
5149
  pageStatus?: "SplitRecommended" | "SplitRequired" | null | undefined;
5198
5150
  page: T["type"][];
@@ -5251,19 +5203,19 @@ export declare const vTextStreamPart: import("convex/values").VUnion<{
5251
5203
  toolCallId: string;
5252
5204
  toolName: string;
5253
5205
  argsTextDelta: string;
5254
- }, [VObject<{
5206
+ }, [import("convex/values").VObject<{
5255
5207
  type: "text-delta";
5256
5208
  textDelta: string;
5257
5209
  }, {
5258
5210
  type: import("convex/values").VLiteral<"text-delta", "required">;
5259
5211
  textDelta: import("convex/values").VString<string, "required">;
5260
- }, "required", "type" | "textDelta">, VObject<{
5212
+ }, "required", "type" | "textDelta">, import("convex/values").VObject<{
5261
5213
  type: "reasoning";
5262
5214
  textDelta: string;
5263
5215
  }, {
5264
5216
  type: import("convex/values").VLiteral<"reasoning", "required">;
5265
5217
  textDelta: import("convex/values").VString<string, "required">;
5266
- }, "required", "type" | "textDelta">, VObject<{
5218
+ }, "required", "type" | "textDelta">, import("convex/values").VObject<{
5267
5219
  type: "source";
5268
5220
  source: {
5269
5221
  title?: string | undefined;
@@ -5274,7 +5226,7 @@ export declare const vTextStreamPart: import("convex/values").VUnion<{
5274
5226
  };
5275
5227
  }, {
5276
5228
  type: import("convex/values").VLiteral<"source", "required">;
5277
- source: VObject<{
5229
+ source: import("convex/values").VObject<{
5278
5230
  title?: string | undefined;
5279
5231
  providerOptions?: Record<string, Record<string, any>> | undefined;
5280
5232
  id: string;
@@ -5287,7 +5239,7 @@ export declare const vTextStreamPart: import("convex/values").VUnion<{
5287
5239
  title: import("convex/values").VString<string | undefined, "optional">;
5288
5240
  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>;
5289
5241
  }, "required", "id" | "title" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">;
5290
- }, "required", "type" | "source" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url">, VObject<{
5242
+ }, "required", "type" | "source" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url">, import("convex/values").VObject<{
5291
5243
  providerOptions?: Record<string, Record<string, any>> | undefined;
5292
5244
  type: "tool-call";
5293
5245
  toolCallId: string;
@@ -5299,7 +5251,7 @@ export declare const vTextStreamPart: import("convex/values").VUnion<{
5299
5251
  toolName: import("convex/values").VString<string, "required">;
5300
5252
  args: import("convex/values").VAny<any, "required", string>;
5301
5253
  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>;
5302
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>, VObject<{
5254
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>, import("convex/values").VObject<{
5303
5255
  type: "tool-call-streaming-start";
5304
5256
  toolCallId: string;
5305
5257
  toolName: string;
@@ -5307,7 +5259,7 @@ export declare const vTextStreamPart: import("convex/values").VUnion<{
5307
5259
  type: import("convex/values").VLiteral<"tool-call-streaming-start", "required">;
5308
5260
  toolCallId: import("convex/values").VString<string, "required">;
5309
5261
  toolName: import("convex/values").VString<string, "required">;
5310
- }, "required", "type" | "toolCallId" | "toolName">, VObject<{
5262
+ }, "required", "type" | "toolCallId" | "toolName">, import("convex/values").VObject<{
5311
5263
  type: "tool-call-delta";
5312
5264
  toolCallId: string;
5313
5265
  toolName: string;
@@ -5317,7 +5269,7 @@ export declare const vTextStreamPart: import("convex/values").VUnion<{
5317
5269
  toolCallId: import("convex/values").VString<string, "required">;
5318
5270
  toolName: import("convex/values").VString<string, "required">;
5319
5271
  argsTextDelta: import("convex/values").VString<string, "required">;
5320
- }, "required", "type" | "toolCallId" | "toolName" | "argsTextDelta">, VObject<{
5272
+ }, "required", "type" | "toolCallId" | "toolName" | "argsTextDelta">, import("convex/values").VObject<{
5321
5273
  providerOptions?: Record<string, Record<string, any>> | undefined;
5322
5274
  args?: any;
5323
5275
  experimental_content?: ({
@@ -5353,13 +5305,13 @@ export declare const vTextStreamPart: import("convex/values").VUnion<{
5353
5305
  mimeType?: string | undefined;
5354
5306
  type: "image";
5355
5307
  data: string;
5356
- }, [VObject<{
5308
+ }, [import("convex/values").VObject<{
5357
5309
  type: "text";
5358
5310
  text: string;
5359
5311
  }, {
5360
5312
  type: import("convex/values").VLiteral<"text", "required">;
5361
5313
  text: import("convex/values").VString<string, "required">;
5362
- }, "required", "type" | "text">, VObject<{
5314
+ }, "required", "type" | "text">, import("convex/values").VObject<{
5363
5315
  mimeType?: string | undefined;
5364
5316
  type: "image";
5365
5317
  data: string;
@@ -5372,7 +5324,7 @@ export declare const vTextStreamPart: import("convex/values").VUnion<{
5372
5324
  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>;
5373
5325
  }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}`>], "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}` | "result" | "experimental_content" | "isError" | `result.${string}` | "textDelta" | "source" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url" | "argsTextDelta">;
5374
5326
  export type TextStreamPart = Infer<typeof vTextStreamPart>;
5375
- export declare const vStreamCursor: VObject<{
5327
+ export declare const vStreamCursor: import("convex/values").VObject<{
5376
5328
  streamId: string;
5377
5329
  cursor: number;
5378
5330
  }, {
@@ -5389,13 +5341,13 @@ export declare const vStreamArgs: import("convex/values").VUnion<{
5389
5341
  streamId: string;
5390
5342
  cursor: number;
5391
5343
  }[];
5392
- } | undefined, [VObject<{
5344
+ } | undefined, [import("convex/values").VObject<{
5393
5345
  startOrder?: number | undefined;
5394
5346
  kind: "list";
5395
5347
  }, {
5396
5348
  kind: import("convex/values").VLiteral<"list", "required">;
5397
5349
  startOrder: import("convex/values").VFloat64<number | undefined, "optional">;
5398
- }, "required", "kind" | "startOrder">, VObject<{
5350
+ }, "required", "kind" | "startOrder">, import("convex/values").VObject<{
5399
5351
  kind: "deltas";
5400
5352
  cursors: {
5401
5353
  streamId: string;
@@ -5406,7 +5358,7 @@ export declare const vStreamArgs: import("convex/values").VUnion<{
5406
5358
  cursors: import("convex/values").VArray<{
5407
5359
  streamId: string;
5408
5360
  cursor: number;
5409
- }[], VObject<{
5361
+ }[], import("convex/values").VObject<{
5410
5362
  streamId: string;
5411
5363
  cursor: number;
5412
5364
  }, {
@@ -5415,7 +5367,7 @@ export declare const vStreamArgs: import("convex/values").VUnion<{
5415
5367
  }, "required", "streamId" | "cursor">, "required">;
5416
5368
  }, "required", "kind" | "cursors">], "optional", "kind" | "startOrder" | "cursors">;
5417
5369
  export type StreamArgs = Infer<typeof vStreamArgs>;
5418
- export declare const vStreamMessage: VObject<{
5370
+ export declare const vStreamMessage: import("convex/values").VObject<{
5419
5371
  userId?: string | undefined;
5420
5372
  agentName?: string | undefined;
5421
5373
  model?: string | undefined;
@@ -5437,7 +5389,7 @@ export declare const vStreamMessage: VObject<{
5437
5389
  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>;
5438
5390
  }, "required", "status" | "userId" | "order" | "stepOrder" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "streamId">;
5439
5391
  export type StreamMessage = Infer<typeof vStreamMessage>;
5440
- export declare const vStreamDelta: VObject<{
5392
+ export declare const vStreamDelta: import("convex/values").VObject<{
5441
5393
  streamId: string;
5442
5394
  start: number;
5443
5395
  end: number;
@@ -5584,19 +5536,19 @@ export declare const vStreamDelta: VObject<{
5584
5536
  toolCallId: string;
5585
5537
  toolName: string;
5586
5538
  argsTextDelta: string;
5587
- }, [VObject<{
5539
+ }, [import("convex/values").VObject<{
5588
5540
  type: "text-delta";
5589
5541
  textDelta: string;
5590
5542
  }, {
5591
5543
  type: import("convex/values").VLiteral<"text-delta", "required">;
5592
5544
  textDelta: import("convex/values").VString<string, "required">;
5593
- }, "required", "type" | "textDelta">, VObject<{
5545
+ }, "required", "type" | "textDelta">, import("convex/values").VObject<{
5594
5546
  type: "reasoning";
5595
5547
  textDelta: string;
5596
5548
  }, {
5597
5549
  type: import("convex/values").VLiteral<"reasoning", "required">;
5598
5550
  textDelta: import("convex/values").VString<string, "required">;
5599
- }, "required", "type" | "textDelta">, VObject<{
5551
+ }, "required", "type" | "textDelta">, import("convex/values").VObject<{
5600
5552
  type: "source";
5601
5553
  source: {
5602
5554
  title?: string | undefined;
@@ -5607,7 +5559,7 @@ export declare const vStreamDelta: VObject<{
5607
5559
  };
5608
5560
  }, {
5609
5561
  type: import("convex/values").VLiteral<"source", "required">;
5610
- source: VObject<{
5562
+ source: import("convex/values").VObject<{
5611
5563
  title?: string | undefined;
5612
5564
  providerOptions?: Record<string, Record<string, any>> | undefined;
5613
5565
  id: string;
@@ -5620,7 +5572,7 @@ export declare const vStreamDelta: VObject<{
5620
5572
  title: import("convex/values").VString<string | undefined, "optional">;
5621
5573
  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>;
5622
5574
  }, "required", "id" | "title" | "providerOptions" | `providerOptions.${string}` | "sourceType" | "url">;
5623
- }, "required", "type" | "source" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url">, VObject<{
5575
+ }, "required", "type" | "source" | "source.id" | "source.title" | "source.providerOptions" | `source.providerOptions.${string}` | "source.sourceType" | "source.url">, import("convex/values").VObject<{
5624
5576
  providerOptions?: Record<string, Record<string, any>> | undefined;
5625
5577
  type: "tool-call";
5626
5578
  toolCallId: string;
@@ -5632,7 +5584,7 @@ export declare const vStreamDelta: VObject<{
5632
5584
  toolName: import("convex/values").VString<string, "required">;
5633
5585
  args: import("convex/values").VAny<any, "required", string>;
5634
5586
  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>;
5635
- }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>, VObject<{
5587
+ }, "required", "type" | "providerOptions" | `providerOptions.${string}` | "toolCallId" | "toolName" | "args" | `args.${string}`>, import("convex/values").VObject<{
5636
5588
  type: "tool-call-streaming-start";
5637
5589
  toolCallId: string;
5638
5590
  toolName: string;
@@ -5640,7 +5592,7 @@ export declare const vStreamDelta: VObject<{
5640
5592
  type: import("convex/values").VLiteral<"tool-call-streaming-start", "required">;
5641
5593
  toolCallId: import("convex/values").VString<string, "required">;
5642
5594
  toolName: import("convex/values").VString<string, "required">;
5643
- }, "required", "type" | "toolCallId" | "toolName">, VObject<{
5595
+ }, "required", "type" | "toolCallId" | "toolName">, import("convex/values").VObject<{
5644
5596
  type: "tool-call-delta";
5645
5597
  toolCallId: string;
5646
5598
  toolName: string;
@@ -5650,7 +5602,7 @@ export declare const vStreamDelta: VObject<{
5650
5602
  toolCallId: import("convex/values").VString<string, "required">;
5651
5603
  toolName: import("convex/values").VString<string, "required">;
5652
5604
  argsTextDelta: import("convex/values").VString<string, "required">;
5653
- }, "required", "type" | "toolCallId" | "toolName" | "argsTextDelta">, VObject<{
5605
+ }, "required", "type" | "toolCallId" | "toolName" | "argsTextDelta">, import("convex/values").VObject<{
5654
5606
  providerOptions?: Record<string, Record<string, any>> | undefined;
5655
5607
  args?: any;
5656
5608
  experimental_content?: ({
@@ -5686,13 +5638,13 @@ export declare const vStreamDelta: VObject<{
5686
5638
  mimeType?: string | undefined;
5687
5639
  type: "image";
5688
5640
  data: string;
5689
- }, [VObject<{
5641
+ }, [import("convex/values").VObject<{
5690
5642
  type: "text";
5691
5643
  text: string;
5692
5644
  }, {
5693
5645
  type: import("convex/values").VLiteral<"text", "required">;
5694
5646
  text: import("convex/values").VString<string, "required">;
5695
- }, "required", "type" | "text">, VObject<{
5647
+ }, "required", "type" | "text">, import("convex/values").VObject<{
5696
5648
  mimeType?: string | undefined;
5697
5649
  type: "image";
5698
5650
  data: string;