@o-zakstam/voltagent-convex 1.1.2 → 1.1.4

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 (95) hide show
  1. package/dist/client/{index.d.cts → defineVoltAgentAPI.d.ts} +59 -92
  2. package/dist/client/defineVoltAgentAPI.d.ts.map +1 -0
  3. package/dist/client/defineVoltAgentAPI.js +318 -0
  4. package/dist/client/defineVoltAgentAPI.js.map +1 -0
  5. package/dist/client/index.d.ts +6 -221
  6. package/dist/client/index.d.ts.map +1 -0
  7. package/dist/client/index.js +8 -285
  8. package/dist/client/index.js.map +1 -1
  9. package/dist/client/types.d.ts +13 -0
  10. package/dist/client/types.d.ts.map +1 -0
  11. package/dist/client/types.js +8 -0
  12. package/dist/client/types.js.map +1 -0
  13. package/dist/component/_generated/api.d.ts +44 -0
  14. package/dist/component/_generated/api.d.ts.map +1 -0
  15. package/dist/component/_generated/api.js +31 -0
  16. package/dist/component/_generated/api.js.map +1 -0
  17. package/dist/component/_generated/component.d.ts +352 -0
  18. package/dist/component/_generated/component.d.ts.map +1 -0
  19. package/dist/component/_generated/component.js +11 -0
  20. package/dist/component/_generated/component.js.map +1 -0
  21. package/dist/component/_generated/dataModel.d.ts +46 -0
  22. package/dist/component/_generated/dataModel.d.ts.map +1 -0
  23. package/dist/component/_generated/dataModel.js +11 -0
  24. package/dist/component/_generated/dataModel.js.map +1 -0
  25. package/dist/component/_generated/server.d.ts +121 -0
  26. package/dist/component/_generated/server.d.ts.map +1 -0
  27. package/dist/component/_generated/server.js +78 -0
  28. package/dist/component/_generated/server.js.map +1 -0
  29. package/dist/component/conversations.d.ts +108 -0
  30. package/dist/component/conversations.d.ts.map +1 -0
  31. package/dist/component/conversations.js +278 -0
  32. package/dist/component/conversations.js.map +1 -0
  33. package/dist/component/convex.config.d.ts +13 -0
  34. package/dist/component/convex.config.d.ts.map +1 -0
  35. package/dist/component/convex.config.js +21 -0
  36. package/dist/component/convex.config.js.map +1 -0
  37. package/dist/component/messages.d.ts +235 -0
  38. package/dist/component/messages.d.ts.map +1 -0
  39. package/dist/component/messages.js +186 -0
  40. package/dist/component/messages.js.map +1 -0
  41. package/dist/component/schema.d.ts +535 -0
  42. package/dist/component/schema.d.ts.map +1 -0
  43. package/dist/component/schema.js +113 -0
  44. package/dist/component/schema.js.map +1 -0
  45. package/dist/component/steps.d.ts +65 -0
  46. package/dist/component/steps.d.ts.map +1 -0
  47. package/dist/component/steps.js +120 -0
  48. package/dist/component/steps.js.map +1 -0
  49. package/dist/component/validators.d.ts +633 -0
  50. package/dist/component/validators.d.ts.map +1 -0
  51. package/dist/component/validators.js +124 -0
  52. package/dist/component/validators.js.map +1 -0
  53. package/dist/component/workflows.d.ts +234 -0
  54. package/dist/component/workflows.d.ts.map +1 -0
  55. package/dist/component/workflows.js +229 -0
  56. package/dist/component/workflows.js.map +1 -0
  57. package/dist/component/workingMemory.d.ts +30 -0
  58. package/dist/component/workingMemory.d.ts.map +1 -0
  59. package/dist/component/workingMemory.js +131 -0
  60. package/dist/component/workingMemory.js.map +1 -0
  61. package/dist/index.d.ts +7 -318
  62. package/dist/index.d.ts.map +1 -0
  63. package/dist/index.js +10 -434
  64. package/dist/index.js.map +1 -1
  65. package/dist/memory-adapter.d.ts +153 -0
  66. package/dist/memory-adapter.d.ts.map +1 -0
  67. package/dist/memory-adapter.js +462 -0
  68. package/dist/memory-adapter.js.map +1 -0
  69. package/dist/types.d.ts +167 -0
  70. package/dist/types.d.ts.map +1 -0
  71. package/dist/types.js +5 -0
  72. package/dist/types.js.map +1 -0
  73. package/package.json +25 -26
  74. package/src/client/defineVoltAgentAPI.ts +365 -0
  75. package/src/client/index.ts +8 -0
  76. package/src/client/types.ts +14 -0
  77. package/src/component/_generated/api.ts +60 -0
  78. package/src/component/_generated/component.ts +466 -0
  79. package/src/component/_generated/dataModel.ts +60 -0
  80. package/src/component/_generated/server.ts +156 -0
  81. package/src/index.ts +24 -0
  82. package/{dist/index.cjs → src/memory-adapter.ts} +345 -106
  83. package/src/types.ts +178 -0
  84. package/dist/client/index.cjs +0 -288
  85. package/dist/client/index.cjs.map +0 -1
  86. package/dist/index.cjs.map +0 -1
  87. package/dist/index.d.cts +0 -322
  88. /package/{convex → src/component}/conversations.ts +0 -0
  89. /package/{convex → src/component}/convex.config.ts +0 -0
  90. /package/{convex → src/component}/messages.ts +0 -0
  91. /package/{convex → src/component}/schema.ts +0 -0
  92. /package/{convex → src/component}/steps.ts +0 -0
  93. /package/{convex → src/component}/validators.ts +0 -0
  94. /package/{convex → src/component}/workflows.ts +0 -0
  95. /package/{convex → src/component}/workingMemory.ts +0 -0
@@ -0,0 +1,633 @@
1
+ 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>;
2
+ export declare const vTextPart: import("convex/values").VObject<{
3
+ providerOptions?: Record<string, Record<string, any>> | undefined;
4
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
5
+ text: string;
6
+ type: "text";
7
+ }, {
8
+ type: import("convex/values").VLiteral<"text", "required">;
9
+ text: import("convex/values").VString<string, "required">;
10
+ 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>;
11
+ 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>;
12
+ }, "required", "text" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}`>;
13
+ export declare const vImagePart: import("convex/values").VObject<{
14
+ providerOptions?: Record<string, Record<string, any>> | undefined;
15
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
16
+ mimeType?: string | undefined;
17
+ type: "image";
18
+ image: string;
19
+ }, {
20
+ type: import("convex/values").VLiteral<"image", "required">;
21
+ image: import("convex/values").VString<string, "required">;
22
+ mimeType: import("convex/values").VString<string | undefined, "optional">;
23
+ 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>;
24
+ 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>;
25
+ }, "required", "type" | "providerOptions" | "image" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mimeType">;
26
+ export declare const vFilePart: import("convex/values").VObject<{
27
+ providerOptions?: Record<string, Record<string, any>> | undefined;
28
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
29
+ filename?: string | undefined;
30
+ data: string;
31
+ type: "file";
32
+ mimeType: string;
33
+ }, {
34
+ type: import("convex/values").VLiteral<"file", "required">;
35
+ data: import("convex/values").VString<string, "required">;
36
+ filename: import("convex/values").VString<string | undefined, "optional">;
37
+ mimeType: import("convex/values").VString<string, "required">;
38
+ 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>;
39
+ 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>;
40
+ }, "required", "data" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mimeType" | "filename">;
41
+ export declare const vToolCallPart: import("convex/values").VObject<{
42
+ providerExecuted?: boolean | undefined;
43
+ state?: "partial-call" | "call" | undefined;
44
+ providerOptions?: Record<string, Record<string, any>> | undefined;
45
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
46
+ toolCallId: string;
47
+ type: "tool-call";
48
+ args: Record<string, any>;
49
+ toolName: string;
50
+ }, {
51
+ type: import("convex/values").VLiteral<"tool-call", "required">;
52
+ toolCallId: import("convex/values").VString<string, "required">;
53
+ toolName: import("convex/values").VString<string, "required">;
54
+ args: import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>;
55
+ state: import("convex/values").VUnion<"partial-call" | "call" | undefined, [import("convex/values").VLiteral<"partial-call", "required">, import("convex/values").VLiteral<"call", "required">], "optional", never>;
56
+ providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
57
+ 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>;
58
+ 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>;
59
+ }, "required", "toolCallId" | "providerExecuted" | "state" | "type" | "providerOptions" | "args" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolName" | `args.${string}`>;
60
+ export declare const vToolResultPart: import("convex/values").VObject<{
61
+ providerExecuted?: boolean | undefined;
62
+ providerOptions?: Record<string, Record<string, any>> | undefined;
63
+ result?: any;
64
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
65
+ isError?: boolean | undefined;
66
+ toolCallId: string;
67
+ type: "tool-result";
68
+ toolName: string;
69
+ }, {
70
+ type: import("convex/values").VLiteral<"tool-result", "required">;
71
+ toolCallId: import("convex/values").VString<string, "required">;
72
+ toolName: import("convex/values").VString<string, "required">;
73
+ result: import("convex/values").VAny<any, "optional", string>;
74
+ isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
75
+ providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
76
+ 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>;
77
+ 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>;
78
+ }, "required", "toolCallId" | "providerExecuted" | "type" | "providerOptions" | "result" | `result.${string}` | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolName" | "isError">;
79
+ export declare const vReasoningPart: import("convex/values").VObject<{
80
+ providerOptions?: Record<string, Record<string, any>> | undefined;
81
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
82
+ signature?: string | undefined;
83
+ text: string;
84
+ type: "reasoning";
85
+ }, {
86
+ type: import("convex/values").VLiteral<"reasoning", "required">;
87
+ text: import("convex/values").VString<string, "required">;
88
+ signature: import("convex/values").VString<string | undefined, "optional">;
89
+ 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>;
90
+ 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>;
91
+ }, "required", "text" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "signature">;
92
+ export declare const vRedactedReasoningPart: import("convex/values").VObject<{
93
+ providerOptions?: Record<string, Record<string, any>> | undefined;
94
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
95
+ data: string;
96
+ type: "redacted-reasoning";
97
+ }, {
98
+ type: import("convex/values").VLiteral<"redacted-reasoning", "required">;
99
+ data: import("convex/values").VString<string, "required">;
100
+ 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>;
101
+ 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>;
102
+ }, "required", "data" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}`>;
103
+ export declare const vSourcePart: import("convex/values").VObject<{
104
+ title?: string | undefined;
105
+ providerOptions?: Record<string, Record<string, any>> | undefined;
106
+ url?: string | undefined;
107
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
108
+ filename?: string | undefined;
109
+ mediaType?: string | undefined;
110
+ id: string;
111
+ type: "source";
112
+ sourceType: "url" | "document";
113
+ }, {
114
+ type: import("convex/values").VLiteral<"source", "required">;
115
+ sourceType: import("convex/values").VUnion<"url" | "document", [import("convex/values").VLiteral<"url", "required">, import("convex/values").VLiteral<"document", "required">], "required", never>;
116
+ id: import("convex/values").VString<string, "required">;
117
+ url: import("convex/values").VString<string | undefined, "optional">;
118
+ title: import("convex/values").VString<string | undefined, "optional">;
119
+ mediaType: import("convex/values").VString<string | undefined, "optional">;
120
+ filename: import("convex/values").VString<string | undefined, "optional">;
121
+ 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>;
122
+ 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>;
123
+ }, "required", "id" | "title" | "type" | "providerOptions" | "url" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "filename" | "sourceType" | "mediaType">;
124
+ export declare const vMessagePart: import("convex/values").VUnion<{
125
+ providerOptions?: Record<string, Record<string, any>> | undefined;
126
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
127
+ text: string;
128
+ type: "text";
129
+ } | {
130
+ providerOptions?: Record<string, Record<string, any>> | undefined;
131
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
132
+ mimeType?: string | undefined;
133
+ type: "image";
134
+ image: string;
135
+ } | {
136
+ providerOptions?: Record<string, Record<string, any>> | undefined;
137
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
138
+ filename?: string | undefined;
139
+ data: string;
140
+ type: "file";
141
+ mimeType: string;
142
+ } | {
143
+ providerExecuted?: boolean | undefined;
144
+ state?: "partial-call" | "call" | undefined;
145
+ providerOptions?: Record<string, Record<string, any>> | undefined;
146
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
147
+ toolCallId: string;
148
+ type: "tool-call";
149
+ args: Record<string, any>;
150
+ toolName: string;
151
+ } | {
152
+ providerExecuted?: boolean | undefined;
153
+ providerOptions?: Record<string, Record<string, any>> | undefined;
154
+ result?: any;
155
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
156
+ isError?: boolean | undefined;
157
+ toolCallId: string;
158
+ type: "tool-result";
159
+ toolName: string;
160
+ } | {
161
+ providerOptions?: Record<string, Record<string, any>> | undefined;
162
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
163
+ signature?: string | undefined;
164
+ text: string;
165
+ type: "reasoning";
166
+ } | {
167
+ providerOptions?: Record<string, Record<string, any>> | undefined;
168
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
169
+ data: string;
170
+ type: "redacted-reasoning";
171
+ } | {
172
+ title?: string | undefined;
173
+ providerOptions?: Record<string, Record<string, any>> | undefined;
174
+ url?: string | undefined;
175
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
176
+ filename?: string | undefined;
177
+ mediaType?: string | undefined;
178
+ id: string;
179
+ type: "source";
180
+ sourceType: "url" | "document";
181
+ }, [import("convex/values").VObject<{
182
+ providerOptions?: Record<string, Record<string, any>> | undefined;
183
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
184
+ text: string;
185
+ type: "text";
186
+ }, {
187
+ type: import("convex/values").VLiteral<"text", "required">;
188
+ text: import("convex/values").VString<string, "required">;
189
+ 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>;
190
+ 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>;
191
+ }, "required", "text" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}`>, import("convex/values").VObject<{
192
+ providerOptions?: Record<string, Record<string, any>> | undefined;
193
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
194
+ mimeType?: string | undefined;
195
+ type: "image";
196
+ image: string;
197
+ }, {
198
+ type: import("convex/values").VLiteral<"image", "required">;
199
+ image: import("convex/values").VString<string, "required">;
200
+ mimeType: import("convex/values").VString<string | undefined, "optional">;
201
+ 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>;
202
+ 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>;
203
+ }, "required", "type" | "providerOptions" | "image" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mimeType">, import("convex/values").VObject<{
204
+ providerOptions?: Record<string, Record<string, any>> | undefined;
205
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
206
+ filename?: string | undefined;
207
+ data: string;
208
+ type: "file";
209
+ mimeType: string;
210
+ }, {
211
+ type: import("convex/values").VLiteral<"file", "required">;
212
+ data: import("convex/values").VString<string, "required">;
213
+ filename: import("convex/values").VString<string | undefined, "optional">;
214
+ mimeType: import("convex/values").VString<string, "required">;
215
+ 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>;
216
+ 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>;
217
+ }, "required", "data" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mimeType" | "filename">, import("convex/values").VObject<{
218
+ providerExecuted?: boolean | undefined;
219
+ state?: "partial-call" | "call" | undefined;
220
+ providerOptions?: Record<string, Record<string, any>> | undefined;
221
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
222
+ toolCallId: string;
223
+ type: "tool-call";
224
+ args: Record<string, any>;
225
+ toolName: string;
226
+ }, {
227
+ type: import("convex/values").VLiteral<"tool-call", "required">;
228
+ toolCallId: import("convex/values").VString<string, "required">;
229
+ toolName: import("convex/values").VString<string, "required">;
230
+ args: import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>;
231
+ state: import("convex/values").VUnion<"partial-call" | "call" | undefined, [import("convex/values").VLiteral<"partial-call", "required">, import("convex/values").VLiteral<"call", "required">], "optional", never>;
232
+ providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
233
+ 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>;
234
+ 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>;
235
+ }, "required", "toolCallId" | "providerExecuted" | "state" | "type" | "providerOptions" | "args" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolName" | `args.${string}`>, import("convex/values").VObject<{
236
+ providerExecuted?: boolean | undefined;
237
+ providerOptions?: Record<string, Record<string, any>> | undefined;
238
+ result?: any;
239
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
240
+ isError?: boolean | undefined;
241
+ toolCallId: string;
242
+ type: "tool-result";
243
+ toolName: string;
244
+ }, {
245
+ type: import("convex/values").VLiteral<"tool-result", "required">;
246
+ toolCallId: import("convex/values").VString<string, "required">;
247
+ toolName: import("convex/values").VString<string, "required">;
248
+ result: import("convex/values").VAny<any, "optional", string>;
249
+ isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
250
+ providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
251
+ 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>;
252
+ 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>;
253
+ }, "required", "toolCallId" | "providerExecuted" | "type" | "providerOptions" | "result" | `result.${string}` | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolName" | "isError">, import("convex/values").VObject<{
254
+ providerOptions?: Record<string, Record<string, any>> | undefined;
255
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
256
+ signature?: string | undefined;
257
+ text: string;
258
+ type: "reasoning";
259
+ }, {
260
+ type: import("convex/values").VLiteral<"reasoning", "required">;
261
+ text: import("convex/values").VString<string, "required">;
262
+ signature: import("convex/values").VString<string | undefined, "optional">;
263
+ 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>;
264
+ 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>;
265
+ }, "required", "text" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "signature">, import("convex/values").VObject<{
266
+ providerOptions?: Record<string, Record<string, any>> | undefined;
267
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
268
+ data: string;
269
+ type: "redacted-reasoning";
270
+ }, {
271
+ type: import("convex/values").VLiteral<"redacted-reasoning", "required">;
272
+ data: import("convex/values").VString<string, "required">;
273
+ 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>;
274
+ 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>;
275
+ }, "required", "data" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}`>, import("convex/values").VObject<{
276
+ title?: string | undefined;
277
+ providerOptions?: Record<string, Record<string, any>> | undefined;
278
+ url?: string | undefined;
279
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
280
+ filename?: string | undefined;
281
+ mediaType?: string | undefined;
282
+ id: string;
283
+ type: "source";
284
+ sourceType: "url" | "document";
285
+ }, {
286
+ type: import("convex/values").VLiteral<"source", "required">;
287
+ sourceType: import("convex/values").VUnion<"url" | "document", [import("convex/values").VLiteral<"url", "required">, import("convex/values").VLiteral<"document", "required">], "required", never>;
288
+ id: import("convex/values").VString<string, "required">;
289
+ url: import("convex/values").VString<string | undefined, "optional">;
290
+ title: import("convex/values").VString<string | undefined, "optional">;
291
+ mediaType: import("convex/values").VString<string | undefined, "optional">;
292
+ filename: import("convex/values").VString<string | undefined, "optional">;
293
+ 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>;
294
+ 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>;
295
+ }, "required", "id" | "title" | "type" | "providerOptions" | "url" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "filename" | "sourceType" | "mediaType">], "required", "id" | "data" | "text" | "toolCallId" | "title" | "providerExecuted" | "state" | "type" | "providerOptions" | "args" | "image" | "url" | "result" | `result.${string}` | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mimeType" | "filename" | "toolName" | `args.${string}` | "isError" | "signature" | "sourceType" | "mediaType">;
296
+ export declare const vMessageParts: import("convex/values").VArray<({
297
+ providerOptions?: Record<string, Record<string, any>> | undefined;
298
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
299
+ text: string;
300
+ type: "text";
301
+ } | {
302
+ providerOptions?: Record<string, Record<string, any>> | undefined;
303
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
304
+ mimeType?: string | undefined;
305
+ type: "image";
306
+ image: string;
307
+ } | {
308
+ providerOptions?: Record<string, Record<string, any>> | undefined;
309
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
310
+ filename?: string | undefined;
311
+ data: string;
312
+ type: "file";
313
+ mimeType: string;
314
+ } | {
315
+ providerExecuted?: boolean | undefined;
316
+ state?: "partial-call" | "call" | undefined;
317
+ providerOptions?: Record<string, Record<string, any>> | undefined;
318
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
319
+ toolCallId: string;
320
+ type: "tool-call";
321
+ args: Record<string, any>;
322
+ toolName: string;
323
+ } | {
324
+ providerExecuted?: boolean | undefined;
325
+ providerOptions?: Record<string, Record<string, any>> | undefined;
326
+ result?: any;
327
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
328
+ isError?: boolean | undefined;
329
+ toolCallId: string;
330
+ type: "tool-result";
331
+ toolName: string;
332
+ } | {
333
+ providerOptions?: Record<string, Record<string, any>> | undefined;
334
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
335
+ signature?: string | undefined;
336
+ text: string;
337
+ type: "reasoning";
338
+ } | {
339
+ providerOptions?: Record<string, Record<string, any>> | undefined;
340
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
341
+ data: string;
342
+ type: "redacted-reasoning";
343
+ } | {
344
+ title?: string | undefined;
345
+ providerOptions?: Record<string, Record<string, any>> | undefined;
346
+ url?: string | undefined;
347
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
348
+ filename?: string | undefined;
349
+ mediaType?: string | undefined;
350
+ id: string;
351
+ type: "source";
352
+ sourceType: "url" | "document";
353
+ })[], import("convex/values").VUnion<{
354
+ providerOptions?: Record<string, Record<string, any>> | undefined;
355
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
356
+ text: string;
357
+ type: "text";
358
+ } | {
359
+ providerOptions?: Record<string, Record<string, any>> | undefined;
360
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
361
+ mimeType?: string | undefined;
362
+ type: "image";
363
+ image: string;
364
+ } | {
365
+ providerOptions?: Record<string, Record<string, any>> | undefined;
366
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
367
+ filename?: string | undefined;
368
+ data: string;
369
+ type: "file";
370
+ mimeType: string;
371
+ } | {
372
+ providerExecuted?: boolean | undefined;
373
+ state?: "partial-call" | "call" | undefined;
374
+ providerOptions?: Record<string, Record<string, any>> | undefined;
375
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
376
+ toolCallId: string;
377
+ type: "tool-call";
378
+ args: Record<string, any>;
379
+ toolName: string;
380
+ } | {
381
+ providerExecuted?: boolean | undefined;
382
+ providerOptions?: Record<string, Record<string, any>> | undefined;
383
+ result?: any;
384
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
385
+ isError?: boolean | undefined;
386
+ toolCallId: string;
387
+ type: "tool-result";
388
+ toolName: string;
389
+ } | {
390
+ providerOptions?: Record<string, Record<string, any>> | undefined;
391
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
392
+ signature?: string | undefined;
393
+ text: string;
394
+ type: "reasoning";
395
+ } | {
396
+ providerOptions?: Record<string, Record<string, any>> | undefined;
397
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
398
+ data: string;
399
+ type: "redacted-reasoning";
400
+ } | {
401
+ title?: string | undefined;
402
+ providerOptions?: Record<string, Record<string, any>> | undefined;
403
+ url?: string | undefined;
404
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
405
+ filename?: string | undefined;
406
+ mediaType?: string | undefined;
407
+ id: string;
408
+ type: "source";
409
+ sourceType: "url" | "document";
410
+ }, [import("convex/values").VObject<{
411
+ providerOptions?: Record<string, Record<string, any>> | undefined;
412
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
413
+ text: string;
414
+ type: "text";
415
+ }, {
416
+ type: import("convex/values").VLiteral<"text", "required">;
417
+ text: import("convex/values").VString<string, "required">;
418
+ 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>;
419
+ 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>;
420
+ }, "required", "text" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}`>, import("convex/values").VObject<{
421
+ providerOptions?: Record<string, Record<string, any>> | undefined;
422
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
423
+ mimeType?: string | undefined;
424
+ type: "image";
425
+ image: string;
426
+ }, {
427
+ type: import("convex/values").VLiteral<"image", "required">;
428
+ image: import("convex/values").VString<string, "required">;
429
+ mimeType: import("convex/values").VString<string | undefined, "optional">;
430
+ 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>;
431
+ 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>;
432
+ }, "required", "type" | "providerOptions" | "image" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mimeType">, import("convex/values").VObject<{
433
+ providerOptions?: Record<string, Record<string, any>> | undefined;
434
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
435
+ filename?: string | undefined;
436
+ data: string;
437
+ type: "file";
438
+ mimeType: string;
439
+ }, {
440
+ type: import("convex/values").VLiteral<"file", "required">;
441
+ data: import("convex/values").VString<string, "required">;
442
+ filename: import("convex/values").VString<string | undefined, "optional">;
443
+ mimeType: import("convex/values").VString<string, "required">;
444
+ 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>;
445
+ 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>;
446
+ }, "required", "data" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mimeType" | "filename">, import("convex/values").VObject<{
447
+ providerExecuted?: boolean | undefined;
448
+ state?: "partial-call" | "call" | undefined;
449
+ providerOptions?: Record<string, Record<string, any>> | undefined;
450
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
451
+ toolCallId: string;
452
+ type: "tool-call";
453
+ args: Record<string, any>;
454
+ toolName: string;
455
+ }, {
456
+ type: import("convex/values").VLiteral<"tool-call", "required">;
457
+ toolCallId: import("convex/values").VString<string, "required">;
458
+ toolName: import("convex/values").VString<string, "required">;
459
+ args: import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>;
460
+ state: import("convex/values").VUnion<"partial-call" | "call" | undefined, [import("convex/values").VLiteral<"partial-call", "required">, import("convex/values").VLiteral<"call", "required">], "optional", never>;
461
+ providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
462
+ 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>;
463
+ 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>;
464
+ }, "required", "toolCallId" | "providerExecuted" | "state" | "type" | "providerOptions" | "args" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolName" | `args.${string}`>, import("convex/values").VObject<{
465
+ providerExecuted?: boolean | undefined;
466
+ providerOptions?: Record<string, Record<string, any>> | undefined;
467
+ result?: any;
468
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
469
+ isError?: boolean | undefined;
470
+ toolCallId: string;
471
+ type: "tool-result";
472
+ toolName: string;
473
+ }, {
474
+ type: import("convex/values").VLiteral<"tool-result", "required">;
475
+ toolCallId: import("convex/values").VString<string, "required">;
476
+ toolName: import("convex/values").VString<string, "required">;
477
+ result: import("convex/values").VAny<any, "optional", string>;
478
+ isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
479
+ providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
480
+ 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>;
481
+ 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>;
482
+ }, "required", "toolCallId" | "providerExecuted" | "type" | "providerOptions" | "result" | `result.${string}` | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolName" | "isError">, import("convex/values").VObject<{
483
+ providerOptions?: Record<string, Record<string, any>> | undefined;
484
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
485
+ signature?: string | undefined;
486
+ text: string;
487
+ type: "reasoning";
488
+ }, {
489
+ type: import("convex/values").VLiteral<"reasoning", "required">;
490
+ text: import("convex/values").VString<string, "required">;
491
+ signature: import("convex/values").VString<string | undefined, "optional">;
492
+ 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>;
493
+ 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>;
494
+ }, "required", "text" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "signature">, import("convex/values").VObject<{
495
+ providerOptions?: Record<string, Record<string, any>> | undefined;
496
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
497
+ data: string;
498
+ type: "redacted-reasoning";
499
+ }, {
500
+ type: import("convex/values").VLiteral<"redacted-reasoning", "required">;
501
+ data: import("convex/values").VString<string, "required">;
502
+ 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>;
503
+ 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>;
504
+ }, "required", "data" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}`>, import("convex/values").VObject<{
505
+ title?: string | undefined;
506
+ providerOptions?: Record<string, Record<string, any>> | undefined;
507
+ url?: string | undefined;
508
+ providerMetadata?: Record<string, Record<string, any>> | undefined;
509
+ filename?: string | undefined;
510
+ mediaType?: string | undefined;
511
+ id: string;
512
+ type: "source";
513
+ sourceType: "url" | "document";
514
+ }, {
515
+ type: import("convex/values").VLiteral<"source", "required">;
516
+ sourceType: import("convex/values").VUnion<"url" | "document", [import("convex/values").VLiteral<"url", "required">, import("convex/values").VLiteral<"document", "required">], "required", never>;
517
+ id: import("convex/values").VString<string, "required">;
518
+ url: import("convex/values").VString<string | undefined, "optional">;
519
+ title: import("convex/values").VString<string | undefined, "optional">;
520
+ mediaType: import("convex/values").VString<string | undefined, "optional">;
521
+ filename: import("convex/values").VString<string | undefined, "optional">;
522
+ 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>;
523
+ 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>;
524
+ }, "required", "id" | "title" | "type" | "providerOptions" | "url" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "filename" | "sourceType" | "mediaType">], "required", "id" | "data" | "text" | "toolCallId" | "title" | "providerExecuted" | "state" | "type" | "providerOptions" | "args" | "image" | "url" | "result" | `result.${string}` | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mimeType" | "filename" | "toolName" | `args.${string}` | "isError" | "signature" | "sourceType" | "mediaType">, "required">;
525
+ export declare const vMetadata: import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>;
526
+ export declare const vUsage: import("convex/values").VObject<{
527
+ promptTokens?: number | undefined;
528
+ completionTokens?: number | undefined;
529
+ totalTokens?: number | undefined;
530
+ reasoningTokens?: number | undefined;
531
+ cachedInputTokens?: number | undefined;
532
+ }, {
533
+ promptTokens: import("convex/values").VFloat64<number | undefined, "optional">;
534
+ completionTokens: import("convex/values").VFloat64<number | undefined, "optional">;
535
+ totalTokens: import("convex/values").VFloat64<number | undefined, "optional">;
536
+ reasoningTokens: import("convex/values").VFloat64<number | undefined, "optional">;
537
+ cachedInputTokens: import("convex/values").VFloat64<number | undefined, "optional">;
538
+ }, "required", "promptTokens" | "completionTokens" | "totalTokens" | "reasoningTokens" | "cachedInputTokens">;
539
+ export declare const vSuspension: import("convex/values").VObject<{
540
+ reason?: string | undefined;
541
+ suspendedStepIndex?: number | undefined;
542
+ lastEventSequence?: number | undefined;
543
+ suspendData?: any;
544
+ checkpoint?: {
545
+ stepExecutionState?: any;
546
+ completedStepsData?: any[] | undefined;
547
+ } | undefined;
548
+ suspendedAt: string;
549
+ }, {
550
+ suspendedAt: import("convex/values").VString<string, "required">;
551
+ reason: import("convex/values").VString<string | undefined, "optional">;
552
+ suspendedStepIndex: import("convex/values").VFloat64<number | undefined, "optional">;
553
+ lastEventSequence: import("convex/values").VFloat64<number | undefined, "optional">;
554
+ suspendData: import("convex/values").VAny<any, "optional", string>;
555
+ checkpoint: import("convex/values").VObject<{
556
+ stepExecutionState?: any;
557
+ completedStepsData?: any[] | undefined;
558
+ } | undefined, {
559
+ stepExecutionState: import("convex/values").VAny<any, "optional", string>;
560
+ completedStepsData: import("convex/values").VArray<any[] | undefined, import("convex/values").VAny<any, "required", string>, "optional">;
561
+ }, "optional", "stepExecutionState" | "completedStepsData" | `stepExecutionState.${string}`>;
562
+ }, "required", "suspendedAt" | "reason" | "suspendedStepIndex" | "lastEventSequence" | "suspendData" | "checkpoint" | `suspendData.${string}` | "checkpoint.stepExecutionState" | "checkpoint.completedStepsData" | `checkpoint.stepExecutionState.${string}`>;
563
+ export declare const vCancellation: import("convex/values").VObject<{
564
+ reason?: string | undefined;
565
+ cancelledAt: string;
566
+ }, {
567
+ cancelledAt: import("convex/values").VString<string, "required">;
568
+ reason: import("convex/values").VString<string | undefined, "optional">;
569
+ }, "required", "reason" | "cancelledAt">;
570
+ export declare const vWorkflowEvent: import("convex/values").VObject<{
571
+ input?: any;
572
+ output?: any;
573
+ status?: string | undefined;
574
+ metadata?: Record<string, any> | undefined;
575
+ context?: Record<string, any> | undefined;
576
+ from?: string | undefined;
577
+ name?: string | undefined;
578
+ endTime?: string | undefined;
579
+ id: string;
580
+ type: string;
581
+ startTime: string;
582
+ }, {
583
+ id: import("convex/values").VString<string, "required">;
584
+ type: import("convex/values").VString<string, "required">;
585
+ name: import("convex/values").VString<string | undefined, "optional">;
586
+ from: import("convex/values").VString<string | undefined, "optional">;
587
+ startTime: import("convex/values").VString<string, "required">;
588
+ endTime: import("convex/values").VString<string | undefined, "optional">;
589
+ status: import("convex/values").VString<string | undefined, "optional">;
590
+ input: import("convex/values").VAny<any, "optional", string>;
591
+ output: import("convex/values").VAny<any, "optional", string>;
592
+ metadata: import("convex/values").VRecord<Record<string, any> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "optional", string>;
593
+ context: import("convex/values").VRecord<Record<string, any> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "optional", string>;
594
+ }, "required", "id" | "input" | "output" | "type" | "status" | "metadata" | "context" | "from" | `metadata.${string}` | "name" | "startTime" | "endTime" | `input.${string}` | `output.${string}` | `context.${string}`>;
595
+ export declare const vWorkflowEvents: import("convex/values").VArray<{
596
+ input?: any;
597
+ output?: any;
598
+ status?: string | undefined;
599
+ metadata?: Record<string, any> | undefined;
600
+ context?: Record<string, any> | undefined;
601
+ from?: string | undefined;
602
+ name?: string | undefined;
603
+ endTime?: string | undefined;
604
+ id: string;
605
+ type: string;
606
+ startTime: string;
607
+ }[], import("convex/values").VObject<{
608
+ input?: any;
609
+ output?: any;
610
+ status?: string | undefined;
611
+ metadata?: Record<string, any> | undefined;
612
+ context?: Record<string, any> | undefined;
613
+ from?: string | undefined;
614
+ name?: string | undefined;
615
+ endTime?: string | undefined;
616
+ id: string;
617
+ type: string;
618
+ startTime: string;
619
+ }, {
620
+ id: import("convex/values").VString<string, "required">;
621
+ type: import("convex/values").VString<string, "required">;
622
+ name: import("convex/values").VString<string | undefined, "optional">;
623
+ from: import("convex/values").VString<string | undefined, "optional">;
624
+ startTime: import("convex/values").VString<string, "required">;
625
+ endTime: import("convex/values").VString<string | undefined, "optional">;
626
+ status: import("convex/values").VString<string | undefined, "optional">;
627
+ input: import("convex/values").VAny<any, "optional", string>;
628
+ output: import("convex/values").VAny<any, "optional", string>;
629
+ metadata: import("convex/values").VRecord<Record<string, any> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "optional", string>;
630
+ context: import("convex/values").VRecord<Record<string, any> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "optional", string>;
631
+ }, "required", "id" | "input" | "output" | "type" | "status" | "metadata" | "context" | "from" | `metadata.${string}` | "name" | "startTime" | "endTime" | `input.${string}` | `output.${string}` | `context.${string}`>, "required">;
632
+ export declare const vWorkflowContext: import("convex/values").VArray<any[][], import("convex/values").VArray<any[], import("convex/values").VAny<any, "required", string>, "required">, "required">;
633
+ //# sourceMappingURL=validators.d.ts.map