@just-every/ensemble 0.1.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 (127) hide show
  1. package/README.md +245 -0
  2. package/dist/cost_tracker.d.ts +2 -0
  3. package/dist/cost_tracker.d.ts.map +1 -0
  4. package/dist/cost_tracker.js +2 -0
  5. package/dist/cost_tracker.js.map +1 -0
  6. package/dist/errors.d.ts +55 -0
  7. package/dist/errors.d.ts.map +1 -0
  8. package/dist/errors.js +134 -0
  9. package/dist/errors.js.map +1 -0
  10. package/dist/external_models.d.ts +10 -0
  11. package/dist/external_models.d.ts.map +1 -0
  12. package/dist/external_models.js +36 -0
  13. package/dist/external_models.js.map +1 -0
  14. package/dist/index.d.ts +31 -0
  15. package/dist/index.d.ts.map +1 -0
  16. package/dist/index.js +47 -0
  17. package/dist/index.js.map +1 -0
  18. package/dist/model_data.d.ts +63 -0
  19. package/dist/model_data.d.ts.map +1 -0
  20. package/dist/model_data.js +1070 -0
  21. package/dist/model_data.js.map +1 -0
  22. package/dist/model_providers/base_provider.d.ts +37 -0
  23. package/dist/model_providers/base_provider.d.ts.map +1 -0
  24. package/dist/model_providers/base_provider.js +146 -0
  25. package/dist/model_providers/base_provider.js.map +1 -0
  26. package/dist/model_providers/claude.d.ts +11 -0
  27. package/dist/model_providers/claude.d.ts.map +1 -0
  28. package/dist/model_providers/claude.js +788 -0
  29. package/dist/model_providers/claude.js.map +1 -0
  30. package/dist/model_providers/deepseek.d.ts +8 -0
  31. package/dist/model_providers/deepseek.d.ts.map +1 -0
  32. package/dist/model_providers/deepseek.js +136 -0
  33. package/dist/model_providers/deepseek.js.map +1 -0
  34. package/dist/model_providers/gemini.d.ts +11 -0
  35. package/dist/model_providers/gemini.d.ts.map +1 -0
  36. package/dist/model_providers/gemini.js +711 -0
  37. package/dist/model_providers/gemini.js.map +1 -0
  38. package/dist/model_providers/grok.d.ts +8 -0
  39. package/dist/model_providers/grok.d.ts.map +1 -0
  40. package/dist/model_providers/grok.js +22 -0
  41. package/dist/model_providers/grok.js.map +1 -0
  42. package/dist/model_providers/model_provider.d.ts +11 -0
  43. package/dist/model_providers/model_provider.d.ts.map +1 -0
  44. package/dist/model_providers/model_provider.js +170 -0
  45. package/dist/model_providers/model_provider.js.map +1 -0
  46. package/dist/model_providers/openai.d.ts +13 -0
  47. package/dist/model_providers/openai.d.ts.map +1 -0
  48. package/dist/model_providers/openai.js +822 -0
  49. package/dist/model_providers/openai.js.map +1 -0
  50. package/dist/model_providers/openai_chat.d.ts +14 -0
  51. package/dist/model_providers/openai_chat.d.ts.map +1 -0
  52. package/dist/model_providers/openai_chat.js +719 -0
  53. package/dist/model_providers/openai_chat.js.map +1 -0
  54. package/dist/model_providers/openrouter.d.ts +6 -0
  55. package/dist/model_providers/openrouter.d.ts.map +1 -0
  56. package/dist/model_providers/openrouter.js +18 -0
  57. package/dist/model_providers/openrouter.js.map +1 -0
  58. package/dist/model_providers/refactored_openai.d.ts +22 -0
  59. package/dist/model_providers/refactored_openai.d.ts.map +1 -0
  60. package/dist/model_providers/refactored_openai.js +310 -0
  61. package/dist/model_providers/refactored_openai.js.map +1 -0
  62. package/dist/model_providers/test_provider.d.ts +27 -0
  63. package/dist/model_providers/test_provider.d.ts.map +1 -0
  64. package/dist/model_providers/test_provider.js +185 -0
  65. package/dist/model_providers/test_provider.js.map +1 -0
  66. package/dist/tsconfig.tsbuildinfo +1 -0
  67. package/dist/types/api_types.d.ts +249 -0
  68. package/dist/types/api_types.d.ts.map +1 -0
  69. package/dist/types/api_types.js +2 -0
  70. package/dist/types/api_types.js.map +1 -0
  71. package/dist/types/extended_types.d.ts +43 -0
  72. package/dist/types/extended_types.d.ts.map +1 -0
  73. package/dist/types/extended_types.js +2 -0
  74. package/dist/types/extended_types.js.map +1 -0
  75. package/dist/types.d.ts +301 -0
  76. package/dist/types.d.ts.map +1 -0
  77. package/dist/types.js +2 -0
  78. package/dist/types.js.map +1 -0
  79. package/dist/utils/async_queue.d.ts +14 -0
  80. package/dist/utils/async_queue.d.ts.map +1 -0
  81. package/dist/utils/async_queue.js +68 -0
  82. package/dist/utils/async_queue.js.map +1 -0
  83. package/dist/utils/cache.d.ts +60 -0
  84. package/dist/utils/cache.d.ts.map +1 -0
  85. package/dist/utils/cache.js +205 -0
  86. package/dist/utils/cache.js.map +1 -0
  87. package/dist/utils/communication.d.ts +3 -0
  88. package/dist/utils/communication.d.ts.map +1 -0
  89. package/dist/utils/communication.js +8 -0
  90. package/dist/utils/communication.js.map +1 -0
  91. package/dist/utils/cost_tracker.d.ts +26 -0
  92. package/dist/utils/cost_tracker.d.ts.map +1 -0
  93. package/dist/utils/cost_tracker.js +177 -0
  94. package/dist/utils/cost_tracker.js.map +1 -0
  95. package/dist/utils/delta_buffer.d.ts +14 -0
  96. package/dist/utils/delta_buffer.d.ts.map +1 -0
  97. package/dist/utils/delta_buffer.js +60 -0
  98. package/dist/utils/delta_buffer.js.map +1 -0
  99. package/dist/utils/image_to_text.d.ts +3 -0
  100. package/dist/utils/image_to_text.d.ts.map +1 -0
  101. package/dist/utils/image_to_text.js +81 -0
  102. package/dist/utils/image_to_text.js.map +1 -0
  103. package/dist/utils/image_utils.d.ts +18 -0
  104. package/dist/utils/image_utils.d.ts.map +1 -0
  105. package/dist/utils/image_utils.js +132 -0
  106. package/dist/utils/image_utils.js.map +1 -0
  107. package/dist/utils/llm_logger.d.ts +8 -0
  108. package/dist/utils/llm_logger.d.ts.map +1 -0
  109. package/dist/utils/llm_logger.js +24 -0
  110. package/dist/utils/llm_logger.js.map +1 -0
  111. package/dist/utils/quota_tracker.d.ts +22 -0
  112. package/dist/utils/quota_tracker.d.ts.map +1 -0
  113. package/dist/utils/quota_tracker.js +338 -0
  114. package/dist/utils/quota_tracker.js.map +1 -0
  115. package/dist/utils/stream_converter.d.ts +19 -0
  116. package/dist/utils/stream_converter.d.ts.map +1 -0
  117. package/dist/utils/stream_converter.js +172 -0
  118. package/dist/utils/stream_converter.js.map +1 -0
  119. package/dist/validation.d.ts +1789 -0
  120. package/dist/validation.d.ts.map +1 -0
  121. package/dist/validation.js +289 -0
  122. package/dist/validation.js.map +1 -0
  123. package/dist/vitest.config.d.ts +3 -0
  124. package/dist/vitest.config.d.ts.map +1 -0
  125. package/dist/vitest.config.js +34 -0
  126. package/dist/vitest.config.js.map +1 -0
  127. package/package.json +86 -0
@@ -0,0 +1,1789 @@
1
+ import { z } from 'zod';
2
+ export declare const ToolParameterTypeSchema: z.ZodEnum<["string", "number", "boolean", "object", "array", "null"]>;
3
+ export declare const ToolParameterSchema: z.ZodType<any>;
4
+ export declare const ToolDefinitionSchema: z.ZodObject<{
5
+ type: z.ZodLiteral<"function">;
6
+ function: z.ZodObject<{
7
+ name: z.ZodString;
8
+ description: z.ZodString;
9
+ parameters: z.ZodObject<{
10
+ type: z.ZodLiteral<"object">;
11
+ properties: z.ZodRecord<z.ZodString, z.ZodType<any, z.ZodTypeDef, any>>;
12
+ required: z.ZodArray<z.ZodString, "many">;
13
+ }, "strip", z.ZodTypeAny, {
14
+ type?: "object";
15
+ properties?: Record<string, any>;
16
+ required?: string[];
17
+ }, {
18
+ type?: "object";
19
+ properties?: Record<string, any>;
20
+ required?: string[];
21
+ }>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ parameters?: {
24
+ type?: "object";
25
+ properties?: Record<string, any>;
26
+ required?: string[];
27
+ };
28
+ name?: string;
29
+ description?: string;
30
+ }, {
31
+ parameters?: {
32
+ type?: "object";
33
+ properties?: Record<string, any>;
34
+ required?: string[];
35
+ };
36
+ name?: string;
37
+ description?: string;
38
+ }>;
39
+ }, "strip", z.ZodTypeAny, {
40
+ function?: {
41
+ parameters?: {
42
+ type?: "object";
43
+ properties?: Record<string, any>;
44
+ required?: string[];
45
+ };
46
+ name?: string;
47
+ description?: string;
48
+ };
49
+ type?: "function";
50
+ }, {
51
+ function?: {
52
+ parameters?: {
53
+ type?: "object";
54
+ properties?: Record<string, any>;
55
+ required?: string[];
56
+ };
57
+ name?: string;
58
+ description?: string;
59
+ };
60
+ type?: "function";
61
+ }>;
62
+ export declare const ResponseContentTextSchema: z.ZodObject<{
63
+ type: z.ZodLiteral<"input_text">;
64
+ text: z.ZodString;
65
+ }, "strip", z.ZodTypeAny, {
66
+ type?: "input_text";
67
+ text?: string;
68
+ }, {
69
+ type?: "input_text";
70
+ text?: string;
71
+ }>;
72
+ export declare const ResponseContentImageSchema: z.ZodObject<{
73
+ type: z.ZodLiteral<"input_image">;
74
+ detail: z.ZodEnum<["high", "low", "auto"]>;
75
+ file_id: z.ZodOptional<z.ZodString>;
76
+ image_url: z.ZodOptional<z.ZodString>;
77
+ }, "strip", z.ZodTypeAny, {
78
+ type?: "input_image";
79
+ image_url?: string;
80
+ detail?: "auto" | "low" | "high";
81
+ file_id?: string;
82
+ }, {
83
+ type?: "input_image";
84
+ image_url?: string;
85
+ detail?: "auto" | "low" | "high";
86
+ file_id?: string;
87
+ }>;
88
+ export declare const ResponseContentFileInputSchema: z.ZodObject<{
89
+ type: z.ZodLiteral<"input_file">;
90
+ file_data: z.ZodOptional<z.ZodString>;
91
+ file_id: z.ZodOptional<z.ZodString>;
92
+ filename: z.ZodOptional<z.ZodString>;
93
+ }, "strip", z.ZodTypeAny, {
94
+ type?: "input_file";
95
+ file_id?: string;
96
+ file_data?: string;
97
+ filename?: string;
98
+ }, {
99
+ type?: "input_file";
100
+ file_id?: string;
101
+ file_data?: string;
102
+ filename?: string;
103
+ }>;
104
+ export declare const ResponseContentSchema: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
105
+ type: z.ZodLiteral<"input_text">;
106
+ text: z.ZodString;
107
+ }, "strip", z.ZodTypeAny, {
108
+ type?: "input_text";
109
+ text?: string;
110
+ }, {
111
+ type?: "input_text";
112
+ text?: string;
113
+ }>, z.ZodObject<{
114
+ type: z.ZodLiteral<"input_image">;
115
+ detail: z.ZodEnum<["high", "low", "auto"]>;
116
+ file_id: z.ZodOptional<z.ZodString>;
117
+ image_url: z.ZodOptional<z.ZodString>;
118
+ }, "strip", z.ZodTypeAny, {
119
+ type?: "input_image";
120
+ image_url?: string;
121
+ detail?: "auto" | "low" | "high";
122
+ file_id?: string;
123
+ }, {
124
+ type?: "input_image";
125
+ image_url?: string;
126
+ detail?: "auto" | "low" | "high";
127
+ file_id?: string;
128
+ }>, z.ZodObject<{
129
+ type: z.ZodLiteral<"input_file">;
130
+ file_data: z.ZodOptional<z.ZodString>;
131
+ file_id: z.ZodOptional<z.ZodString>;
132
+ filename: z.ZodOptional<z.ZodString>;
133
+ }, "strip", z.ZodTypeAny, {
134
+ type?: "input_file";
135
+ file_id?: string;
136
+ file_data?: string;
137
+ filename?: string;
138
+ }, {
139
+ type?: "input_file";
140
+ file_id?: string;
141
+ file_data?: string;
142
+ filename?: string;
143
+ }>]>, "many">]>;
144
+ export declare const ResponseInputMessageSchema: z.ZodObject<{
145
+ type: z.ZodLiteral<"message">;
146
+ name: z.ZodOptional<z.ZodString>;
147
+ content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
148
+ type: z.ZodLiteral<"input_text">;
149
+ text: z.ZodString;
150
+ }, "strip", z.ZodTypeAny, {
151
+ type?: "input_text";
152
+ text?: string;
153
+ }, {
154
+ type?: "input_text";
155
+ text?: string;
156
+ }>, z.ZodObject<{
157
+ type: z.ZodLiteral<"input_image">;
158
+ detail: z.ZodEnum<["high", "low", "auto"]>;
159
+ file_id: z.ZodOptional<z.ZodString>;
160
+ image_url: z.ZodOptional<z.ZodString>;
161
+ }, "strip", z.ZodTypeAny, {
162
+ type?: "input_image";
163
+ image_url?: string;
164
+ detail?: "auto" | "low" | "high";
165
+ file_id?: string;
166
+ }, {
167
+ type?: "input_image";
168
+ image_url?: string;
169
+ detail?: "auto" | "low" | "high";
170
+ file_id?: string;
171
+ }>, z.ZodObject<{
172
+ type: z.ZodLiteral<"input_file">;
173
+ file_data: z.ZodOptional<z.ZodString>;
174
+ file_id: z.ZodOptional<z.ZodString>;
175
+ filename: z.ZodOptional<z.ZodString>;
176
+ }, "strip", z.ZodTypeAny, {
177
+ type?: "input_file";
178
+ file_id?: string;
179
+ file_data?: string;
180
+ filename?: string;
181
+ }, {
182
+ type?: "input_file";
183
+ file_id?: string;
184
+ file_data?: string;
185
+ filename?: string;
186
+ }>]>, "many">]>;
187
+ role: z.ZodEnum<["user", "system", "developer"]>;
188
+ status: z.ZodOptional<z.ZodEnum<["in_progress", "completed", "incomplete"]>>;
189
+ model: z.ZodOptional<z.ZodString>;
190
+ timestamp: z.ZodOptional<z.ZodNumber>;
191
+ }, "strip", z.ZodTypeAny, {
192
+ model?: string;
193
+ content?: string | ({
194
+ type?: "input_text";
195
+ text?: string;
196
+ } | {
197
+ type?: "input_image";
198
+ image_url?: string;
199
+ detail?: "auto" | "low" | "high";
200
+ file_id?: string;
201
+ } | {
202
+ type?: "input_file";
203
+ file_id?: string;
204
+ file_data?: string;
205
+ filename?: string;
206
+ })[];
207
+ role?: "system" | "user" | "developer";
208
+ type?: "message";
209
+ name?: string;
210
+ status?: "completed" | "in_progress" | "incomplete";
211
+ timestamp?: number;
212
+ }, {
213
+ model?: string;
214
+ content?: string | ({
215
+ type?: "input_text";
216
+ text?: string;
217
+ } | {
218
+ type?: "input_image";
219
+ image_url?: string;
220
+ detail?: "auto" | "low" | "high";
221
+ file_id?: string;
222
+ } | {
223
+ type?: "input_file";
224
+ file_id?: string;
225
+ file_data?: string;
226
+ filename?: string;
227
+ })[];
228
+ role?: "system" | "user" | "developer";
229
+ type?: "message";
230
+ name?: string;
231
+ status?: "completed" | "in_progress" | "incomplete";
232
+ timestamp?: number;
233
+ }>;
234
+ export declare const ResponseThinkingMessageSchema: z.ZodObject<{
235
+ type: z.ZodLiteral<"thinking">;
236
+ content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
237
+ type: z.ZodLiteral<"input_text">;
238
+ text: z.ZodString;
239
+ }, "strip", z.ZodTypeAny, {
240
+ type?: "input_text";
241
+ text?: string;
242
+ }, {
243
+ type?: "input_text";
244
+ text?: string;
245
+ }>, z.ZodObject<{
246
+ type: z.ZodLiteral<"input_image">;
247
+ detail: z.ZodEnum<["high", "low", "auto"]>;
248
+ file_id: z.ZodOptional<z.ZodString>;
249
+ image_url: z.ZodOptional<z.ZodString>;
250
+ }, "strip", z.ZodTypeAny, {
251
+ type?: "input_image";
252
+ image_url?: string;
253
+ detail?: "auto" | "low" | "high";
254
+ file_id?: string;
255
+ }, {
256
+ type?: "input_image";
257
+ image_url?: string;
258
+ detail?: "auto" | "low" | "high";
259
+ file_id?: string;
260
+ }>, z.ZodObject<{
261
+ type: z.ZodLiteral<"input_file">;
262
+ file_data: z.ZodOptional<z.ZodString>;
263
+ file_id: z.ZodOptional<z.ZodString>;
264
+ filename: z.ZodOptional<z.ZodString>;
265
+ }, "strip", z.ZodTypeAny, {
266
+ type?: "input_file";
267
+ file_id?: string;
268
+ file_data?: string;
269
+ filename?: string;
270
+ }, {
271
+ type?: "input_file";
272
+ file_id?: string;
273
+ file_data?: string;
274
+ filename?: string;
275
+ }>]>, "many">]>;
276
+ signature: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
277
+ type: z.ZodLiteral<"input_text">;
278
+ text: z.ZodString;
279
+ }, "strip", z.ZodTypeAny, {
280
+ type?: "input_text";
281
+ text?: string;
282
+ }, {
283
+ type?: "input_text";
284
+ text?: string;
285
+ }>, z.ZodObject<{
286
+ type: z.ZodLiteral<"input_image">;
287
+ detail: z.ZodEnum<["high", "low", "auto"]>;
288
+ file_id: z.ZodOptional<z.ZodString>;
289
+ image_url: z.ZodOptional<z.ZodString>;
290
+ }, "strip", z.ZodTypeAny, {
291
+ type?: "input_image";
292
+ image_url?: string;
293
+ detail?: "auto" | "low" | "high";
294
+ file_id?: string;
295
+ }, {
296
+ type?: "input_image";
297
+ image_url?: string;
298
+ detail?: "auto" | "low" | "high";
299
+ file_id?: string;
300
+ }>, z.ZodObject<{
301
+ type: z.ZodLiteral<"input_file">;
302
+ file_data: z.ZodOptional<z.ZodString>;
303
+ file_id: z.ZodOptional<z.ZodString>;
304
+ filename: z.ZodOptional<z.ZodString>;
305
+ }, "strip", z.ZodTypeAny, {
306
+ type?: "input_file";
307
+ file_id?: string;
308
+ file_data?: string;
309
+ filename?: string;
310
+ }, {
311
+ type?: "input_file";
312
+ file_id?: string;
313
+ file_data?: string;
314
+ filename?: string;
315
+ }>]>, "many">]>>;
316
+ thinking_id: z.ZodOptional<z.ZodString>;
317
+ role: z.ZodLiteral<"assistant">;
318
+ status: z.ZodOptional<z.ZodEnum<["in_progress", "completed", "incomplete"]>>;
319
+ model: z.ZodOptional<z.ZodString>;
320
+ timestamp: z.ZodOptional<z.ZodNumber>;
321
+ }, "strip", z.ZodTypeAny, {
322
+ model?: string;
323
+ content?: string | ({
324
+ type?: "input_text";
325
+ text?: string;
326
+ } | {
327
+ type?: "input_image";
328
+ image_url?: string;
329
+ detail?: "auto" | "low" | "high";
330
+ file_id?: string;
331
+ } | {
332
+ type?: "input_file";
333
+ file_id?: string;
334
+ file_data?: string;
335
+ filename?: string;
336
+ })[];
337
+ role?: "assistant";
338
+ type?: "thinking";
339
+ status?: "completed" | "in_progress" | "incomplete";
340
+ timestamp?: number;
341
+ signature?: string | ({
342
+ type?: "input_text";
343
+ text?: string;
344
+ } | {
345
+ type?: "input_image";
346
+ image_url?: string;
347
+ detail?: "auto" | "low" | "high";
348
+ file_id?: string;
349
+ } | {
350
+ type?: "input_file";
351
+ file_id?: string;
352
+ file_data?: string;
353
+ filename?: string;
354
+ })[];
355
+ thinking_id?: string;
356
+ }, {
357
+ model?: string;
358
+ content?: string | ({
359
+ type?: "input_text";
360
+ text?: string;
361
+ } | {
362
+ type?: "input_image";
363
+ image_url?: string;
364
+ detail?: "auto" | "low" | "high";
365
+ file_id?: string;
366
+ } | {
367
+ type?: "input_file";
368
+ file_id?: string;
369
+ file_data?: string;
370
+ filename?: string;
371
+ })[];
372
+ role?: "assistant";
373
+ type?: "thinking";
374
+ status?: "completed" | "in_progress" | "incomplete";
375
+ timestamp?: number;
376
+ signature?: string | ({
377
+ type?: "input_text";
378
+ text?: string;
379
+ } | {
380
+ type?: "input_image";
381
+ image_url?: string;
382
+ detail?: "auto" | "low" | "high";
383
+ file_id?: string;
384
+ } | {
385
+ type?: "input_file";
386
+ file_id?: string;
387
+ file_data?: string;
388
+ filename?: string;
389
+ })[];
390
+ thinking_id?: string;
391
+ }>;
392
+ export declare const ResponseOutputMessageSchema: z.ZodObject<{
393
+ id: z.ZodOptional<z.ZodString>;
394
+ type: z.ZodLiteral<"message">;
395
+ content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
396
+ type: z.ZodLiteral<"input_text">;
397
+ text: z.ZodString;
398
+ }, "strip", z.ZodTypeAny, {
399
+ type?: "input_text";
400
+ text?: string;
401
+ }, {
402
+ type?: "input_text";
403
+ text?: string;
404
+ }>, z.ZodObject<{
405
+ type: z.ZodLiteral<"input_image">;
406
+ detail: z.ZodEnum<["high", "low", "auto"]>;
407
+ file_id: z.ZodOptional<z.ZodString>;
408
+ image_url: z.ZodOptional<z.ZodString>;
409
+ }, "strip", z.ZodTypeAny, {
410
+ type?: "input_image";
411
+ image_url?: string;
412
+ detail?: "auto" | "low" | "high";
413
+ file_id?: string;
414
+ }, {
415
+ type?: "input_image";
416
+ image_url?: string;
417
+ detail?: "auto" | "low" | "high";
418
+ file_id?: string;
419
+ }>, z.ZodObject<{
420
+ type: z.ZodLiteral<"input_file">;
421
+ file_data: z.ZodOptional<z.ZodString>;
422
+ file_id: z.ZodOptional<z.ZodString>;
423
+ filename: z.ZodOptional<z.ZodString>;
424
+ }, "strip", z.ZodTypeAny, {
425
+ type?: "input_file";
426
+ file_id?: string;
427
+ file_data?: string;
428
+ filename?: string;
429
+ }, {
430
+ type?: "input_file";
431
+ file_id?: string;
432
+ file_data?: string;
433
+ filename?: string;
434
+ }>]>, "many">]>;
435
+ role: z.ZodLiteral<"assistant">;
436
+ status: z.ZodEnum<["in_progress", "completed", "incomplete"]>;
437
+ model: z.ZodOptional<z.ZodString>;
438
+ timestamp: z.ZodOptional<z.ZodNumber>;
439
+ }, "strip", z.ZodTypeAny, {
440
+ model?: string;
441
+ content?: string | ({
442
+ type?: "input_text";
443
+ text?: string;
444
+ } | {
445
+ type?: "input_image";
446
+ image_url?: string;
447
+ detail?: "auto" | "low" | "high";
448
+ file_id?: string;
449
+ } | {
450
+ type?: "input_file";
451
+ file_id?: string;
452
+ file_data?: string;
453
+ filename?: string;
454
+ })[];
455
+ role?: "assistant";
456
+ id?: string;
457
+ type?: "message";
458
+ status?: "completed" | "in_progress" | "incomplete";
459
+ timestamp?: number;
460
+ }, {
461
+ model?: string;
462
+ content?: string | ({
463
+ type?: "input_text";
464
+ text?: string;
465
+ } | {
466
+ type?: "input_image";
467
+ image_url?: string;
468
+ detail?: "auto" | "low" | "high";
469
+ file_id?: string;
470
+ } | {
471
+ type?: "input_file";
472
+ file_id?: string;
473
+ file_data?: string;
474
+ filename?: string;
475
+ })[];
476
+ role?: "assistant";
477
+ id?: string;
478
+ type?: "message";
479
+ status?: "completed" | "in_progress" | "incomplete";
480
+ timestamp?: number;
481
+ }>;
482
+ export declare const ResponseInputFunctionCallSchema: z.ZodObject<{
483
+ type: z.ZodLiteral<"function_call">;
484
+ call_id: z.ZodString;
485
+ name: z.ZodString;
486
+ arguments: z.ZodString;
487
+ id: z.ZodOptional<z.ZodString>;
488
+ status: z.ZodOptional<z.ZodEnum<["in_progress", "completed", "incomplete"]>>;
489
+ model: z.ZodOptional<z.ZodString>;
490
+ timestamp: z.ZodOptional<z.ZodNumber>;
491
+ }, "strip", z.ZodTypeAny, {
492
+ model?: string;
493
+ id?: string;
494
+ type?: "function_call";
495
+ name?: string;
496
+ status?: "completed" | "in_progress" | "incomplete";
497
+ timestamp?: number;
498
+ call_id?: string;
499
+ arguments?: string;
500
+ }, {
501
+ model?: string;
502
+ id?: string;
503
+ type?: "function_call";
504
+ name?: string;
505
+ status?: "completed" | "in_progress" | "incomplete";
506
+ timestamp?: number;
507
+ call_id?: string;
508
+ arguments?: string;
509
+ }>;
510
+ export declare const ResponseInputFunctionCallOutputSchema: z.ZodObject<{
511
+ type: z.ZodLiteral<"function_call_output">;
512
+ call_id: z.ZodString;
513
+ name: z.ZodOptional<z.ZodString>;
514
+ output: z.ZodString;
515
+ id: z.ZodOptional<z.ZodString>;
516
+ status: z.ZodOptional<z.ZodEnum<["in_progress", "completed", "incomplete"]>>;
517
+ model: z.ZodOptional<z.ZodString>;
518
+ timestamp: z.ZodOptional<z.ZodNumber>;
519
+ }, "strip", z.ZodTypeAny, {
520
+ model?: string;
521
+ id?: string;
522
+ type?: "function_call_output";
523
+ name?: string;
524
+ status?: "completed" | "in_progress" | "incomplete";
525
+ timestamp?: number;
526
+ call_id?: string;
527
+ output?: string;
528
+ }, {
529
+ model?: string;
530
+ id?: string;
531
+ type?: "function_call_output";
532
+ name?: string;
533
+ status?: "completed" | "in_progress" | "incomplete";
534
+ timestamp?: number;
535
+ call_id?: string;
536
+ output?: string;
537
+ }>;
538
+ export declare const ResponseInputSchema: z.ZodArray<z.ZodUnion<[z.ZodObject<{
539
+ type: z.ZodLiteral<"message">;
540
+ name: z.ZodOptional<z.ZodString>;
541
+ content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
542
+ type: z.ZodLiteral<"input_text">;
543
+ text: z.ZodString;
544
+ }, "strip", z.ZodTypeAny, {
545
+ type?: "input_text";
546
+ text?: string;
547
+ }, {
548
+ type?: "input_text";
549
+ text?: string;
550
+ }>, z.ZodObject<{
551
+ type: z.ZodLiteral<"input_image">;
552
+ detail: z.ZodEnum<["high", "low", "auto"]>;
553
+ file_id: z.ZodOptional<z.ZodString>;
554
+ image_url: z.ZodOptional<z.ZodString>;
555
+ }, "strip", z.ZodTypeAny, {
556
+ type?: "input_image";
557
+ image_url?: string;
558
+ detail?: "auto" | "low" | "high";
559
+ file_id?: string;
560
+ }, {
561
+ type?: "input_image";
562
+ image_url?: string;
563
+ detail?: "auto" | "low" | "high";
564
+ file_id?: string;
565
+ }>, z.ZodObject<{
566
+ type: z.ZodLiteral<"input_file">;
567
+ file_data: z.ZodOptional<z.ZodString>;
568
+ file_id: z.ZodOptional<z.ZodString>;
569
+ filename: z.ZodOptional<z.ZodString>;
570
+ }, "strip", z.ZodTypeAny, {
571
+ type?: "input_file";
572
+ file_id?: string;
573
+ file_data?: string;
574
+ filename?: string;
575
+ }, {
576
+ type?: "input_file";
577
+ file_id?: string;
578
+ file_data?: string;
579
+ filename?: string;
580
+ }>]>, "many">]>;
581
+ role: z.ZodEnum<["user", "system", "developer"]>;
582
+ status: z.ZodOptional<z.ZodEnum<["in_progress", "completed", "incomplete"]>>;
583
+ model: z.ZodOptional<z.ZodString>;
584
+ timestamp: z.ZodOptional<z.ZodNumber>;
585
+ }, "strip", z.ZodTypeAny, {
586
+ model?: string;
587
+ content?: string | ({
588
+ type?: "input_text";
589
+ text?: string;
590
+ } | {
591
+ type?: "input_image";
592
+ image_url?: string;
593
+ detail?: "auto" | "low" | "high";
594
+ file_id?: string;
595
+ } | {
596
+ type?: "input_file";
597
+ file_id?: string;
598
+ file_data?: string;
599
+ filename?: string;
600
+ })[];
601
+ role?: "system" | "user" | "developer";
602
+ type?: "message";
603
+ name?: string;
604
+ status?: "completed" | "in_progress" | "incomplete";
605
+ timestamp?: number;
606
+ }, {
607
+ model?: string;
608
+ content?: string | ({
609
+ type?: "input_text";
610
+ text?: string;
611
+ } | {
612
+ type?: "input_image";
613
+ image_url?: string;
614
+ detail?: "auto" | "low" | "high";
615
+ file_id?: string;
616
+ } | {
617
+ type?: "input_file";
618
+ file_id?: string;
619
+ file_data?: string;
620
+ filename?: string;
621
+ })[];
622
+ role?: "system" | "user" | "developer";
623
+ type?: "message";
624
+ name?: string;
625
+ status?: "completed" | "in_progress" | "incomplete";
626
+ timestamp?: number;
627
+ }>, z.ZodObject<{
628
+ type: z.ZodLiteral<"thinking">;
629
+ content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
630
+ type: z.ZodLiteral<"input_text">;
631
+ text: z.ZodString;
632
+ }, "strip", z.ZodTypeAny, {
633
+ type?: "input_text";
634
+ text?: string;
635
+ }, {
636
+ type?: "input_text";
637
+ text?: string;
638
+ }>, z.ZodObject<{
639
+ type: z.ZodLiteral<"input_image">;
640
+ detail: z.ZodEnum<["high", "low", "auto"]>;
641
+ file_id: z.ZodOptional<z.ZodString>;
642
+ image_url: z.ZodOptional<z.ZodString>;
643
+ }, "strip", z.ZodTypeAny, {
644
+ type?: "input_image";
645
+ image_url?: string;
646
+ detail?: "auto" | "low" | "high";
647
+ file_id?: string;
648
+ }, {
649
+ type?: "input_image";
650
+ image_url?: string;
651
+ detail?: "auto" | "low" | "high";
652
+ file_id?: string;
653
+ }>, z.ZodObject<{
654
+ type: z.ZodLiteral<"input_file">;
655
+ file_data: z.ZodOptional<z.ZodString>;
656
+ file_id: z.ZodOptional<z.ZodString>;
657
+ filename: z.ZodOptional<z.ZodString>;
658
+ }, "strip", z.ZodTypeAny, {
659
+ type?: "input_file";
660
+ file_id?: string;
661
+ file_data?: string;
662
+ filename?: string;
663
+ }, {
664
+ type?: "input_file";
665
+ file_id?: string;
666
+ file_data?: string;
667
+ filename?: string;
668
+ }>]>, "many">]>;
669
+ signature: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
670
+ type: z.ZodLiteral<"input_text">;
671
+ text: z.ZodString;
672
+ }, "strip", z.ZodTypeAny, {
673
+ type?: "input_text";
674
+ text?: string;
675
+ }, {
676
+ type?: "input_text";
677
+ text?: string;
678
+ }>, z.ZodObject<{
679
+ type: z.ZodLiteral<"input_image">;
680
+ detail: z.ZodEnum<["high", "low", "auto"]>;
681
+ file_id: z.ZodOptional<z.ZodString>;
682
+ image_url: z.ZodOptional<z.ZodString>;
683
+ }, "strip", z.ZodTypeAny, {
684
+ type?: "input_image";
685
+ image_url?: string;
686
+ detail?: "auto" | "low" | "high";
687
+ file_id?: string;
688
+ }, {
689
+ type?: "input_image";
690
+ image_url?: string;
691
+ detail?: "auto" | "low" | "high";
692
+ file_id?: string;
693
+ }>, z.ZodObject<{
694
+ type: z.ZodLiteral<"input_file">;
695
+ file_data: z.ZodOptional<z.ZodString>;
696
+ file_id: z.ZodOptional<z.ZodString>;
697
+ filename: z.ZodOptional<z.ZodString>;
698
+ }, "strip", z.ZodTypeAny, {
699
+ type?: "input_file";
700
+ file_id?: string;
701
+ file_data?: string;
702
+ filename?: string;
703
+ }, {
704
+ type?: "input_file";
705
+ file_id?: string;
706
+ file_data?: string;
707
+ filename?: string;
708
+ }>]>, "many">]>>;
709
+ thinking_id: z.ZodOptional<z.ZodString>;
710
+ role: z.ZodLiteral<"assistant">;
711
+ status: z.ZodOptional<z.ZodEnum<["in_progress", "completed", "incomplete"]>>;
712
+ model: z.ZodOptional<z.ZodString>;
713
+ timestamp: z.ZodOptional<z.ZodNumber>;
714
+ }, "strip", z.ZodTypeAny, {
715
+ model?: string;
716
+ content?: string | ({
717
+ type?: "input_text";
718
+ text?: string;
719
+ } | {
720
+ type?: "input_image";
721
+ image_url?: string;
722
+ detail?: "auto" | "low" | "high";
723
+ file_id?: string;
724
+ } | {
725
+ type?: "input_file";
726
+ file_id?: string;
727
+ file_data?: string;
728
+ filename?: string;
729
+ })[];
730
+ role?: "assistant";
731
+ type?: "thinking";
732
+ status?: "completed" | "in_progress" | "incomplete";
733
+ timestamp?: number;
734
+ signature?: string | ({
735
+ type?: "input_text";
736
+ text?: string;
737
+ } | {
738
+ type?: "input_image";
739
+ image_url?: string;
740
+ detail?: "auto" | "low" | "high";
741
+ file_id?: string;
742
+ } | {
743
+ type?: "input_file";
744
+ file_id?: string;
745
+ file_data?: string;
746
+ filename?: string;
747
+ })[];
748
+ thinking_id?: string;
749
+ }, {
750
+ model?: string;
751
+ content?: string | ({
752
+ type?: "input_text";
753
+ text?: string;
754
+ } | {
755
+ type?: "input_image";
756
+ image_url?: string;
757
+ detail?: "auto" | "low" | "high";
758
+ file_id?: string;
759
+ } | {
760
+ type?: "input_file";
761
+ file_id?: string;
762
+ file_data?: string;
763
+ filename?: string;
764
+ })[];
765
+ role?: "assistant";
766
+ type?: "thinking";
767
+ status?: "completed" | "in_progress" | "incomplete";
768
+ timestamp?: number;
769
+ signature?: string | ({
770
+ type?: "input_text";
771
+ text?: string;
772
+ } | {
773
+ type?: "input_image";
774
+ image_url?: string;
775
+ detail?: "auto" | "low" | "high";
776
+ file_id?: string;
777
+ } | {
778
+ type?: "input_file";
779
+ file_id?: string;
780
+ file_data?: string;
781
+ filename?: string;
782
+ })[];
783
+ thinking_id?: string;
784
+ }>, z.ZodObject<{
785
+ id: z.ZodOptional<z.ZodString>;
786
+ type: z.ZodLiteral<"message">;
787
+ content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
788
+ type: z.ZodLiteral<"input_text">;
789
+ text: z.ZodString;
790
+ }, "strip", z.ZodTypeAny, {
791
+ type?: "input_text";
792
+ text?: string;
793
+ }, {
794
+ type?: "input_text";
795
+ text?: string;
796
+ }>, z.ZodObject<{
797
+ type: z.ZodLiteral<"input_image">;
798
+ detail: z.ZodEnum<["high", "low", "auto"]>;
799
+ file_id: z.ZodOptional<z.ZodString>;
800
+ image_url: z.ZodOptional<z.ZodString>;
801
+ }, "strip", z.ZodTypeAny, {
802
+ type?: "input_image";
803
+ image_url?: string;
804
+ detail?: "auto" | "low" | "high";
805
+ file_id?: string;
806
+ }, {
807
+ type?: "input_image";
808
+ image_url?: string;
809
+ detail?: "auto" | "low" | "high";
810
+ file_id?: string;
811
+ }>, z.ZodObject<{
812
+ type: z.ZodLiteral<"input_file">;
813
+ file_data: z.ZodOptional<z.ZodString>;
814
+ file_id: z.ZodOptional<z.ZodString>;
815
+ filename: z.ZodOptional<z.ZodString>;
816
+ }, "strip", z.ZodTypeAny, {
817
+ type?: "input_file";
818
+ file_id?: string;
819
+ file_data?: string;
820
+ filename?: string;
821
+ }, {
822
+ type?: "input_file";
823
+ file_id?: string;
824
+ file_data?: string;
825
+ filename?: string;
826
+ }>]>, "many">]>;
827
+ role: z.ZodLiteral<"assistant">;
828
+ status: z.ZodEnum<["in_progress", "completed", "incomplete"]>;
829
+ model: z.ZodOptional<z.ZodString>;
830
+ timestamp: z.ZodOptional<z.ZodNumber>;
831
+ }, "strip", z.ZodTypeAny, {
832
+ model?: string;
833
+ content?: string | ({
834
+ type?: "input_text";
835
+ text?: string;
836
+ } | {
837
+ type?: "input_image";
838
+ image_url?: string;
839
+ detail?: "auto" | "low" | "high";
840
+ file_id?: string;
841
+ } | {
842
+ type?: "input_file";
843
+ file_id?: string;
844
+ file_data?: string;
845
+ filename?: string;
846
+ })[];
847
+ role?: "assistant";
848
+ id?: string;
849
+ type?: "message";
850
+ status?: "completed" | "in_progress" | "incomplete";
851
+ timestamp?: number;
852
+ }, {
853
+ model?: string;
854
+ content?: string | ({
855
+ type?: "input_text";
856
+ text?: string;
857
+ } | {
858
+ type?: "input_image";
859
+ image_url?: string;
860
+ detail?: "auto" | "low" | "high";
861
+ file_id?: string;
862
+ } | {
863
+ type?: "input_file";
864
+ file_id?: string;
865
+ file_data?: string;
866
+ filename?: string;
867
+ })[];
868
+ role?: "assistant";
869
+ id?: string;
870
+ type?: "message";
871
+ status?: "completed" | "in_progress" | "incomplete";
872
+ timestamp?: number;
873
+ }>, z.ZodObject<{
874
+ type: z.ZodLiteral<"function_call">;
875
+ call_id: z.ZodString;
876
+ name: z.ZodString;
877
+ arguments: z.ZodString;
878
+ id: z.ZodOptional<z.ZodString>;
879
+ status: z.ZodOptional<z.ZodEnum<["in_progress", "completed", "incomplete"]>>;
880
+ model: z.ZodOptional<z.ZodString>;
881
+ timestamp: z.ZodOptional<z.ZodNumber>;
882
+ }, "strip", z.ZodTypeAny, {
883
+ model?: string;
884
+ id?: string;
885
+ type?: "function_call";
886
+ name?: string;
887
+ status?: "completed" | "in_progress" | "incomplete";
888
+ timestamp?: number;
889
+ call_id?: string;
890
+ arguments?: string;
891
+ }, {
892
+ model?: string;
893
+ id?: string;
894
+ type?: "function_call";
895
+ name?: string;
896
+ status?: "completed" | "in_progress" | "incomplete";
897
+ timestamp?: number;
898
+ call_id?: string;
899
+ arguments?: string;
900
+ }>, z.ZodObject<{
901
+ type: z.ZodLiteral<"function_call_output">;
902
+ call_id: z.ZodString;
903
+ name: z.ZodOptional<z.ZodString>;
904
+ output: z.ZodString;
905
+ id: z.ZodOptional<z.ZodString>;
906
+ status: z.ZodOptional<z.ZodEnum<["in_progress", "completed", "incomplete"]>>;
907
+ model: z.ZodOptional<z.ZodString>;
908
+ timestamp: z.ZodOptional<z.ZodNumber>;
909
+ }, "strip", z.ZodTypeAny, {
910
+ model?: string;
911
+ id?: string;
912
+ type?: "function_call_output";
913
+ name?: string;
914
+ status?: "completed" | "in_progress" | "incomplete";
915
+ timestamp?: number;
916
+ call_id?: string;
917
+ output?: string;
918
+ }, {
919
+ model?: string;
920
+ id?: string;
921
+ type?: "function_call_output";
922
+ name?: string;
923
+ status?: "completed" | "in_progress" | "incomplete";
924
+ timestamp?: number;
925
+ call_id?: string;
926
+ output?: string;
927
+ }>]>, "many">;
928
+ export declare const ModelProviderIDSchema: z.ZodEnum<["openai", "anthropic", "google", "xai", "deepseek", "openrouter", "test"]>;
929
+ export declare const ModelClassIDSchema: z.ZodEnum<["standard", "mini", "reasoning", "reasoning_mini", "monologue", "metacognition", "code", "writing", "summary", "vision", "vision_mini", "search", "image_generation", "embedding"]>;
930
+ export declare const ModelSettingsSchema: z.ZodObject<{
931
+ temperature: z.ZodOptional<z.ZodNumber>;
932
+ top_p: z.ZodOptional<z.ZodNumber>;
933
+ top_k: z.ZodOptional<z.ZodNumber>;
934
+ max_tokens: z.ZodOptional<z.ZodNumber>;
935
+ stop_sequence: z.ZodOptional<z.ZodString>;
936
+ seed: z.ZodOptional<z.ZodNumber>;
937
+ text: z.ZodOptional<z.ZodObject<{
938
+ format: z.ZodString;
939
+ }, "strip", z.ZodTypeAny, {
940
+ format?: string;
941
+ }, {
942
+ format?: string;
943
+ }>>;
944
+ tool_choice: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"none">, z.ZodLiteral<"required">, z.ZodObject<{
945
+ type: z.ZodString;
946
+ function: z.ZodObject<{
947
+ name: z.ZodString;
948
+ }, "strip", z.ZodTypeAny, {
949
+ name?: string;
950
+ }, {
951
+ name?: string;
952
+ }>;
953
+ }, "strip", z.ZodTypeAny, {
954
+ function?: {
955
+ name?: string;
956
+ };
957
+ type?: string;
958
+ }, {
959
+ function?: {
960
+ name?: string;
961
+ };
962
+ type?: string;
963
+ }>]>>;
964
+ sequential_tools: z.ZodOptional<z.ZodBoolean>;
965
+ json_schema: z.ZodOptional<z.ZodObject<{
966
+ name: z.ZodString;
967
+ schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
968
+ type: z.ZodLiteral<"json_schema">;
969
+ description: z.ZodOptional<z.ZodString>;
970
+ strict: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
971
+ }, "strip", z.ZodTypeAny, {
972
+ type?: "json_schema";
973
+ name?: string;
974
+ description?: string;
975
+ schema?: Record<string, unknown>;
976
+ strict?: boolean;
977
+ }, {
978
+ type?: "json_schema";
979
+ name?: string;
980
+ description?: string;
981
+ schema?: Record<string, unknown>;
982
+ strict?: boolean;
983
+ }>>;
984
+ force_json: z.ZodOptional<z.ZodBoolean>;
985
+ }, "strip", z.ZodTypeAny, {
986
+ text?: {
987
+ format?: string;
988
+ };
989
+ temperature?: number;
990
+ max_tokens?: number;
991
+ top_p?: number;
992
+ seed?: number;
993
+ tool_choice?: "required" | "auto" | "none" | {
994
+ function?: {
995
+ name?: string;
996
+ };
997
+ type?: string;
998
+ };
999
+ top_k?: number;
1000
+ stop_sequence?: string;
1001
+ sequential_tools?: boolean;
1002
+ json_schema?: {
1003
+ type?: "json_schema";
1004
+ name?: string;
1005
+ description?: string;
1006
+ schema?: Record<string, unknown>;
1007
+ strict?: boolean;
1008
+ };
1009
+ force_json?: boolean;
1010
+ }, {
1011
+ text?: {
1012
+ format?: string;
1013
+ };
1014
+ temperature?: number;
1015
+ max_tokens?: number;
1016
+ top_p?: number;
1017
+ seed?: number;
1018
+ tool_choice?: "required" | "auto" | "none" | {
1019
+ function?: {
1020
+ name?: string;
1021
+ };
1022
+ type?: string;
1023
+ };
1024
+ top_k?: number;
1025
+ stop_sequence?: string;
1026
+ sequential_tools?: boolean;
1027
+ json_schema?: {
1028
+ type?: "json_schema";
1029
+ name?: string;
1030
+ description?: string;
1031
+ schema?: Record<string, unknown>;
1032
+ strict?: boolean;
1033
+ };
1034
+ force_json?: boolean;
1035
+ }>;
1036
+ export declare const RequestOptionsSchema: z.ZodObject<{
1037
+ model: z.ZodString;
1038
+ messages: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1039
+ type: z.ZodLiteral<"message">;
1040
+ name: z.ZodOptional<z.ZodString>;
1041
+ content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
1042
+ type: z.ZodLiteral<"input_text">;
1043
+ text: z.ZodString;
1044
+ }, "strip", z.ZodTypeAny, {
1045
+ type?: "input_text";
1046
+ text?: string;
1047
+ }, {
1048
+ type?: "input_text";
1049
+ text?: string;
1050
+ }>, z.ZodObject<{
1051
+ type: z.ZodLiteral<"input_image">;
1052
+ detail: z.ZodEnum<["high", "low", "auto"]>;
1053
+ file_id: z.ZodOptional<z.ZodString>;
1054
+ image_url: z.ZodOptional<z.ZodString>;
1055
+ }, "strip", z.ZodTypeAny, {
1056
+ type?: "input_image";
1057
+ image_url?: string;
1058
+ detail?: "auto" | "low" | "high";
1059
+ file_id?: string;
1060
+ }, {
1061
+ type?: "input_image";
1062
+ image_url?: string;
1063
+ detail?: "auto" | "low" | "high";
1064
+ file_id?: string;
1065
+ }>, z.ZodObject<{
1066
+ type: z.ZodLiteral<"input_file">;
1067
+ file_data: z.ZodOptional<z.ZodString>;
1068
+ file_id: z.ZodOptional<z.ZodString>;
1069
+ filename: z.ZodOptional<z.ZodString>;
1070
+ }, "strip", z.ZodTypeAny, {
1071
+ type?: "input_file";
1072
+ file_id?: string;
1073
+ file_data?: string;
1074
+ filename?: string;
1075
+ }, {
1076
+ type?: "input_file";
1077
+ file_id?: string;
1078
+ file_data?: string;
1079
+ filename?: string;
1080
+ }>]>, "many">]>;
1081
+ role: z.ZodEnum<["user", "system", "developer"]>;
1082
+ status: z.ZodOptional<z.ZodEnum<["in_progress", "completed", "incomplete"]>>;
1083
+ model: z.ZodOptional<z.ZodString>;
1084
+ timestamp: z.ZodOptional<z.ZodNumber>;
1085
+ }, "strip", z.ZodTypeAny, {
1086
+ model?: string;
1087
+ content?: string | ({
1088
+ type?: "input_text";
1089
+ text?: string;
1090
+ } | {
1091
+ type?: "input_image";
1092
+ image_url?: string;
1093
+ detail?: "auto" | "low" | "high";
1094
+ file_id?: string;
1095
+ } | {
1096
+ type?: "input_file";
1097
+ file_id?: string;
1098
+ file_data?: string;
1099
+ filename?: string;
1100
+ })[];
1101
+ role?: "system" | "user" | "developer";
1102
+ type?: "message";
1103
+ name?: string;
1104
+ status?: "completed" | "in_progress" | "incomplete";
1105
+ timestamp?: number;
1106
+ }, {
1107
+ model?: string;
1108
+ content?: string | ({
1109
+ type?: "input_text";
1110
+ text?: string;
1111
+ } | {
1112
+ type?: "input_image";
1113
+ image_url?: string;
1114
+ detail?: "auto" | "low" | "high";
1115
+ file_id?: string;
1116
+ } | {
1117
+ type?: "input_file";
1118
+ file_id?: string;
1119
+ file_data?: string;
1120
+ filename?: string;
1121
+ })[];
1122
+ role?: "system" | "user" | "developer";
1123
+ type?: "message";
1124
+ name?: string;
1125
+ status?: "completed" | "in_progress" | "incomplete";
1126
+ timestamp?: number;
1127
+ }>, z.ZodObject<{
1128
+ type: z.ZodLiteral<"thinking">;
1129
+ content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
1130
+ type: z.ZodLiteral<"input_text">;
1131
+ text: z.ZodString;
1132
+ }, "strip", z.ZodTypeAny, {
1133
+ type?: "input_text";
1134
+ text?: string;
1135
+ }, {
1136
+ type?: "input_text";
1137
+ text?: string;
1138
+ }>, z.ZodObject<{
1139
+ type: z.ZodLiteral<"input_image">;
1140
+ detail: z.ZodEnum<["high", "low", "auto"]>;
1141
+ file_id: z.ZodOptional<z.ZodString>;
1142
+ image_url: z.ZodOptional<z.ZodString>;
1143
+ }, "strip", z.ZodTypeAny, {
1144
+ type?: "input_image";
1145
+ image_url?: string;
1146
+ detail?: "auto" | "low" | "high";
1147
+ file_id?: string;
1148
+ }, {
1149
+ type?: "input_image";
1150
+ image_url?: string;
1151
+ detail?: "auto" | "low" | "high";
1152
+ file_id?: string;
1153
+ }>, z.ZodObject<{
1154
+ type: z.ZodLiteral<"input_file">;
1155
+ file_data: z.ZodOptional<z.ZodString>;
1156
+ file_id: z.ZodOptional<z.ZodString>;
1157
+ filename: z.ZodOptional<z.ZodString>;
1158
+ }, "strip", z.ZodTypeAny, {
1159
+ type?: "input_file";
1160
+ file_id?: string;
1161
+ file_data?: string;
1162
+ filename?: string;
1163
+ }, {
1164
+ type?: "input_file";
1165
+ file_id?: string;
1166
+ file_data?: string;
1167
+ filename?: string;
1168
+ }>]>, "many">]>;
1169
+ signature: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
1170
+ type: z.ZodLiteral<"input_text">;
1171
+ text: z.ZodString;
1172
+ }, "strip", z.ZodTypeAny, {
1173
+ type?: "input_text";
1174
+ text?: string;
1175
+ }, {
1176
+ type?: "input_text";
1177
+ text?: string;
1178
+ }>, z.ZodObject<{
1179
+ type: z.ZodLiteral<"input_image">;
1180
+ detail: z.ZodEnum<["high", "low", "auto"]>;
1181
+ file_id: z.ZodOptional<z.ZodString>;
1182
+ image_url: z.ZodOptional<z.ZodString>;
1183
+ }, "strip", z.ZodTypeAny, {
1184
+ type?: "input_image";
1185
+ image_url?: string;
1186
+ detail?: "auto" | "low" | "high";
1187
+ file_id?: string;
1188
+ }, {
1189
+ type?: "input_image";
1190
+ image_url?: string;
1191
+ detail?: "auto" | "low" | "high";
1192
+ file_id?: string;
1193
+ }>, z.ZodObject<{
1194
+ type: z.ZodLiteral<"input_file">;
1195
+ file_data: z.ZodOptional<z.ZodString>;
1196
+ file_id: z.ZodOptional<z.ZodString>;
1197
+ filename: z.ZodOptional<z.ZodString>;
1198
+ }, "strip", z.ZodTypeAny, {
1199
+ type?: "input_file";
1200
+ file_id?: string;
1201
+ file_data?: string;
1202
+ filename?: string;
1203
+ }, {
1204
+ type?: "input_file";
1205
+ file_id?: string;
1206
+ file_data?: string;
1207
+ filename?: string;
1208
+ }>]>, "many">]>>;
1209
+ thinking_id: z.ZodOptional<z.ZodString>;
1210
+ role: z.ZodLiteral<"assistant">;
1211
+ status: z.ZodOptional<z.ZodEnum<["in_progress", "completed", "incomplete"]>>;
1212
+ model: z.ZodOptional<z.ZodString>;
1213
+ timestamp: z.ZodOptional<z.ZodNumber>;
1214
+ }, "strip", z.ZodTypeAny, {
1215
+ model?: string;
1216
+ content?: string | ({
1217
+ type?: "input_text";
1218
+ text?: string;
1219
+ } | {
1220
+ type?: "input_image";
1221
+ image_url?: string;
1222
+ detail?: "auto" | "low" | "high";
1223
+ file_id?: string;
1224
+ } | {
1225
+ type?: "input_file";
1226
+ file_id?: string;
1227
+ file_data?: string;
1228
+ filename?: string;
1229
+ })[];
1230
+ role?: "assistant";
1231
+ type?: "thinking";
1232
+ status?: "completed" | "in_progress" | "incomplete";
1233
+ timestamp?: number;
1234
+ signature?: string | ({
1235
+ type?: "input_text";
1236
+ text?: string;
1237
+ } | {
1238
+ type?: "input_image";
1239
+ image_url?: string;
1240
+ detail?: "auto" | "low" | "high";
1241
+ file_id?: string;
1242
+ } | {
1243
+ type?: "input_file";
1244
+ file_id?: string;
1245
+ file_data?: string;
1246
+ filename?: string;
1247
+ })[];
1248
+ thinking_id?: string;
1249
+ }, {
1250
+ model?: string;
1251
+ content?: string | ({
1252
+ type?: "input_text";
1253
+ text?: string;
1254
+ } | {
1255
+ type?: "input_image";
1256
+ image_url?: string;
1257
+ detail?: "auto" | "low" | "high";
1258
+ file_id?: string;
1259
+ } | {
1260
+ type?: "input_file";
1261
+ file_id?: string;
1262
+ file_data?: string;
1263
+ filename?: string;
1264
+ })[];
1265
+ role?: "assistant";
1266
+ type?: "thinking";
1267
+ status?: "completed" | "in_progress" | "incomplete";
1268
+ timestamp?: number;
1269
+ signature?: string | ({
1270
+ type?: "input_text";
1271
+ text?: string;
1272
+ } | {
1273
+ type?: "input_image";
1274
+ image_url?: string;
1275
+ detail?: "auto" | "low" | "high";
1276
+ file_id?: string;
1277
+ } | {
1278
+ type?: "input_file";
1279
+ file_id?: string;
1280
+ file_data?: string;
1281
+ filename?: string;
1282
+ })[];
1283
+ thinking_id?: string;
1284
+ }>, z.ZodObject<{
1285
+ id: z.ZodOptional<z.ZodString>;
1286
+ type: z.ZodLiteral<"message">;
1287
+ content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
1288
+ type: z.ZodLiteral<"input_text">;
1289
+ text: z.ZodString;
1290
+ }, "strip", z.ZodTypeAny, {
1291
+ type?: "input_text";
1292
+ text?: string;
1293
+ }, {
1294
+ type?: "input_text";
1295
+ text?: string;
1296
+ }>, z.ZodObject<{
1297
+ type: z.ZodLiteral<"input_image">;
1298
+ detail: z.ZodEnum<["high", "low", "auto"]>;
1299
+ file_id: z.ZodOptional<z.ZodString>;
1300
+ image_url: z.ZodOptional<z.ZodString>;
1301
+ }, "strip", z.ZodTypeAny, {
1302
+ type?: "input_image";
1303
+ image_url?: string;
1304
+ detail?: "auto" | "low" | "high";
1305
+ file_id?: string;
1306
+ }, {
1307
+ type?: "input_image";
1308
+ image_url?: string;
1309
+ detail?: "auto" | "low" | "high";
1310
+ file_id?: string;
1311
+ }>, z.ZodObject<{
1312
+ type: z.ZodLiteral<"input_file">;
1313
+ file_data: z.ZodOptional<z.ZodString>;
1314
+ file_id: z.ZodOptional<z.ZodString>;
1315
+ filename: z.ZodOptional<z.ZodString>;
1316
+ }, "strip", z.ZodTypeAny, {
1317
+ type?: "input_file";
1318
+ file_id?: string;
1319
+ file_data?: string;
1320
+ filename?: string;
1321
+ }, {
1322
+ type?: "input_file";
1323
+ file_id?: string;
1324
+ file_data?: string;
1325
+ filename?: string;
1326
+ }>]>, "many">]>;
1327
+ role: z.ZodLiteral<"assistant">;
1328
+ status: z.ZodEnum<["in_progress", "completed", "incomplete"]>;
1329
+ model: z.ZodOptional<z.ZodString>;
1330
+ timestamp: z.ZodOptional<z.ZodNumber>;
1331
+ }, "strip", z.ZodTypeAny, {
1332
+ model?: string;
1333
+ content?: string | ({
1334
+ type?: "input_text";
1335
+ text?: string;
1336
+ } | {
1337
+ type?: "input_image";
1338
+ image_url?: string;
1339
+ detail?: "auto" | "low" | "high";
1340
+ file_id?: string;
1341
+ } | {
1342
+ type?: "input_file";
1343
+ file_id?: string;
1344
+ file_data?: string;
1345
+ filename?: string;
1346
+ })[];
1347
+ role?: "assistant";
1348
+ id?: string;
1349
+ type?: "message";
1350
+ status?: "completed" | "in_progress" | "incomplete";
1351
+ timestamp?: number;
1352
+ }, {
1353
+ model?: string;
1354
+ content?: string | ({
1355
+ type?: "input_text";
1356
+ text?: string;
1357
+ } | {
1358
+ type?: "input_image";
1359
+ image_url?: string;
1360
+ detail?: "auto" | "low" | "high";
1361
+ file_id?: string;
1362
+ } | {
1363
+ type?: "input_file";
1364
+ file_id?: string;
1365
+ file_data?: string;
1366
+ filename?: string;
1367
+ })[];
1368
+ role?: "assistant";
1369
+ id?: string;
1370
+ type?: "message";
1371
+ status?: "completed" | "in_progress" | "incomplete";
1372
+ timestamp?: number;
1373
+ }>, z.ZodObject<{
1374
+ type: z.ZodLiteral<"function_call">;
1375
+ call_id: z.ZodString;
1376
+ name: z.ZodString;
1377
+ arguments: z.ZodString;
1378
+ id: z.ZodOptional<z.ZodString>;
1379
+ status: z.ZodOptional<z.ZodEnum<["in_progress", "completed", "incomplete"]>>;
1380
+ model: z.ZodOptional<z.ZodString>;
1381
+ timestamp: z.ZodOptional<z.ZodNumber>;
1382
+ }, "strip", z.ZodTypeAny, {
1383
+ model?: string;
1384
+ id?: string;
1385
+ type?: "function_call";
1386
+ name?: string;
1387
+ status?: "completed" | "in_progress" | "incomplete";
1388
+ timestamp?: number;
1389
+ call_id?: string;
1390
+ arguments?: string;
1391
+ }, {
1392
+ model?: string;
1393
+ id?: string;
1394
+ type?: "function_call";
1395
+ name?: string;
1396
+ status?: "completed" | "in_progress" | "incomplete";
1397
+ timestamp?: number;
1398
+ call_id?: string;
1399
+ arguments?: string;
1400
+ }>, z.ZodObject<{
1401
+ type: z.ZodLiteral<"function_call_output">;
1402
+ call_id: z.ZodString;
1403
+ name: z.ZodOptional<z.ZodString>;
1404
+ output: z.ZodString;
1405
+ id: z.ZodOptional<z.ZodString>;
1406
+ status: z.ZodOptional<z.ZodEnum<["in_progress", "completed", "incomplete"]>>;
1407
+ model: z.ZodOptional<z.ZodString>;
1408
+ timestamp: z.ZodOptional<z.ZodNumber>;
1409
+ }, "strip", z.ZodTypeAny, {
1410
+ model?: string;
1411
+ id?: string;
1412
+ type?: "function_call_output";
1413
+ name?: string;
1414
+ status?: "completed" | "in_progress" | "incomplete";
1415
+ timestamp?: number;
1416
+ call_id?: string;
1417
+ output?: string;
1418
+ }, {
1419
+ model?: string;
1420
+ id?: string;
1421
+ type?: "function_call_output";
1422
+ name?: string;
1423
+ status?: "completed" | "in_progress" | "incomplete";
1424
+ timestamp?: number;
1425
+ call_id?: string;
1426
+ output?: string;
1427
+ }>]>, "many">;
1428
+ temperature: z.ZodOptional<z.ZodNumber>;
1429
+ max_tokens: z.ZodOptional<z.ZodNumber>;
1430
+ top_p: z.ZodOptional<z.ZodNumber>;
1431
+ stream: z.ZodOptional<z.ZodBoolean>;
1432
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
1433
+ type: z.ZodLiteral<"function">;
1434
+ function: z.ZodObject<{
1435
+ name: z.ZodString;
1436
+ description: z.ZodString;
1437
+ parameters: z.ZodObject<{
1438
+ type: z.ZodLiteral<"object">;
1439
+ properties: z.ZodRecord<z.ZodString, z.ZodType<any, z.ZodTypeDef, any>>;
1440
+ required: z.ZodArray<z.ZodString, "many">;
1441
+ }, "strip", z.ZodTypeAny, {
1442
+ type?: "object";
1443
+ properties?: Record<string, any>;
1444
+ required?: string[];
1445
+ }, {
1446
+ type?: "object";
1447
+ properties?: Record<string, any>;
1448
+ required?: string[];
1449
+ }>;
1450
+ }, "strip", z.ZodTypeAny, {
1451
+ parameters?: {
1452
+ type?: "object";
1453
+ properties?: Record<string, any>;
1454
+ required?: string[];
1455
+ };
1456
+ name?: string;
1457
+ description?: string;
1458
+ }, {
1459
+ parameters?: {
1460
+ type?: "object";
1461
+ properties?: Record<string, any>;
1462
+ required?: string[];
1463
+ };
1464
+ name?: string;
1465
+ description?: string;
1466
+ }>;
1467
+ }, "strip", z.ZodTypeAny, {
1468
+ function?: {
1469
+ parameters?: {
1470
+ type?: "object";
1471
+ properties?: Record<string, any>;
1472
+ required?: string[];
1473
+ };
1474
+ name?: string;
1475
+ description?: string;
1476
+ };
1477
+ type?: "function";
1478
+ }, {
1479
+ function?: {
1480
+ parameters?: {
1481
+ type?: "object";
1482
+ properties?: Record<string, any>;
1483
+ required?: string[];
1484
+ };
1485
+ name?: string;
1486
+ description?: string;
1487
+ };
1488
+ type?: "function";
1489
+ }>, "many">>;
1490
+ tool_choice: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"none">, z.ZodLiteral<"required">, z.ZodObject<{
1491
+ type: z.ZodLiteral<"function">;
1492
+ function: z.ZodObject<{
1493
+ name: z.ZodString;
1494
+ }, "strip", z.ZodTypeAny, {
1495
+ name?: string;
1496
+ }, {
1497
+ name?: string;
1498
+ }>;
1499
+ }, "strip", z.ZodTypeAny, {
1500
+ function?: {
1501
+ name?: string;
1502
+ };
1503
+ type?: "function";
1504
+ }, {
1505
+ function?: {
1506
+ name?: string;
1507
+ };
1508
+ type?: "function";
1509
+ }>]>>;
1510
+ }, "strip", z.ZodTypeAny, {
1511
+ model?: string;
1512
+ messages?: ({
1513
+ model?: string;
1514
+ content?: string | ({
1515
+ type?: "input_text";
1516
+ text?: string;
1517
+ } | {
1518
+ type?: "input_image";
1519
+ image_url?: string;
1520
+ detail?: "auto" | "low" | "high";
1521
+ file_id?: string;
1522
+ } | {
1523
+ type?: "input_file";
1524
+ file_id?: string;
1525
+ file_data?: string;
1526
+ filename?: string;
1527
+ })[];
1528
+ role?: "system" | "user" | "developer";
1529
+ type?: "message";
1530
+ name?: string;
1531
+ status?: "completed" | "in_progress" | "incomplete";
1532
+ timestamp?: number;
1533
+ } | {
1534
+ model?: string;
1535
+ content?: string | ({
1536
+ type?: "input_text";
1537
+ text?: string;
1538
+ } | {
1539
+ type?: "input_image";
1540
+ image_url?: string;
1541
+ detail?: "auto" | "low" | "high";
1542
+ file_id?: string;
1543
+ } | {
1544
+ type?: "input_file";
1545
+ file_id?: string;
1546
+ file_data?: string;
1547
+ filename?: string;
1548
+ })[];
1549
+ role?: "assistant";
1550
+ type?: "thinking";
1551
+ status?: "completed" | "in_progress" | "incomplete";
1552
+ timestamp?: number;
1553
+ signature?: string | ({
1554
+ type?: "input_text";
1555
+ text?: string;
1556
+ } | {
1557
+ type?: "input_image";
1558
+ image_url?: string;
1559
+ detail?: "auto" | "low" | "high";
1560
+ file_id?: string;
1561
+ } | {
1562
+ type?: "input_file";
1563
+ file_id?: string;
1564
+ file_data?: string;
1565
+ filename?: string;
1566
+ })[];
1567
+ thinking_id?: string;
1568
+ } | {
1569
+ model?: string;
1570
+ content?: string | ({
1571
+ type?: "input_text";
1572
+ text?: string;
1573
+ } | {
1574
+ type?: "input_image";
1575
+ image_url?: string;
1576
+ detail?: "auto" | "low" | "high";
1577
+ file_id?: string;
1578
+ } | {
1579
+ type?: "input_file";
1580
+ file_id?: string;
1581
+ file_data?: string;
1582
+ filename?: string;
1583
+ })[];
1584
+ role?: "assistant";
1585
+ id?: string;
1586
+ type?: "message";
1587
+ status?: "completed" | "in_progress" | "incomplete";
1588
+ timestamp?: number;
1589
+ } | {
1590
+ model?: string;
1591
+ id?: string;
1592
+ type?: "function_call";
1593
+ name?: string;
1594
+ status?: "completed" | "in_progress" | "incomplete";
1595
+ timestamp?: number;
1596
+ call_id?: string;
1597
+ arguments?: string;
1598
+ } | {
1599
+ model?: string;
1600
+ id?: string;
1601
+ type?: "function_call_output";
1602
+ name?: string;
1603
+ status?: "completed" | "in_progress" | "incomplete";
1604
+ timestamp?: number;
1605
+ call_id?: string;
1606
+ output?: string;
1607
+ })[];
1608
+ stream?: boolean;
1609
+ temperature?: number;
1610
+ max_tokens?: number;
1611
+ top_p?: number;
1612
+ tool_choice?: "required" | "auto" | "none" | {
1613
+ function?: {
1614
+ name?: string;
1615
+ };
1616
+ type?: "function";
1617
+ };
1618
+ tools?: {
1619
+ function?: {
1620
+ parameters?: {
1621
+ type?: "object";
1622
+ properties?: Record<string, any>;
1623
+ required?: string[];
1624
+ };
1625
+ name?: string;
1626
+ description?: string;
1627
+ };
1628
+ type?: "function";
1629
+ }[];
1630
+ }, {
1631
+ model?: string;
1632
+ messages?: ({
1633
+ model?: string;
1634
+ content?: string | ({
1635
+ type?: "input_text";
1636
+ text?: string;
1637
+ } | {
1638
+ type?: "input_image";
1639
+ image_url?: string;
1640
+ detail?: "auto" | "low" | "high";
1641
+ file_id?: string;
1642
+ } | {
1643
+ type?: "input_file";
1644
+ file_id?: string;
1645
+ file_data?: string;
1646
+ filename?: string;
1647
+ })[];
1648
+ role?: "system" | "user" | "developer";
1649
+ type?: "message";
1650
+ name?: string;
1651
+ status?: "completed" | "in_progress" | "incomplete";
1652
+ timestamp?: number;
1653
+ } | {
1654
+ model?: string;
1655
+ content?: string | ({
1656
+ type?: "input_text";
1657
+ text?: string;
1658
+ } | {
1659
+ type?: "input_image";
1660
+ image_url?: string;
1661
+ detail?: "auto" | "low" | "high";
1662
+ file_id?: string;
1663
+ } | {
1664
+ type?: "input_file";
1665
+ file_id?: string;
1666
+ file_data?: string;
1667
+ filename?: string;
1668
+ })[];
1669
+ role?: "assistant";
1670
+ type?: "thinking";
1671
+ status?: "completed" | "in_progress" | "incomplete";
1672
+ timestamp?: number;
1673
+ signature?: string | ({
1674
+ type?: "input_text";
1675
+ text?: string;
1676
+ } | {
1677
+ type?: "input_image";
1678
+ image_url?: string;
1679
+ detail?: "auto" | "low" | "high";
1680
+ file_id?: string;
1681
+ } | {
1682
+ type?: "input_file";
1683
+ file_id?: string;
1684
+ file_data?: string;
1685
+ filename?: string;
1686
+ })[];
1687
+ thinking_id?: string;
1688
+ } | {
1689
+ model?: string;
1690
+ content?: string | ({
1691
+ type?: "input_text";
1692
+ text?: string;
1693
+ } | {
1694
+ type?: "input_image";
1695
+ image_url?: string;
1696
+ detail?: "auto" | "low" | "high";
1697
+ file_id?: string;
1698
+ } | {
1699
+ type?: "input_file";
1700
+ file_id?: string;
1701
+ file_data?: string;
1702
+ filename?: string;
1703
+ })[];
1704
+ role?: "assistant";
1705
+ id?: string;
1706
+ type?: "message";
1707
+ status?: "completed" | "in_progress" | "incomplete";
1708
+ timestamp?: number;
1709
+ } | {
1710
+ model?: string;
1711
+ id?: string;
1712
+ type?: "function_call";
1713
+ name?: string;
1714
+ status?: "completed" | "in_progress" | "incomplete";
1715
+ timestamp?: number;
1716
+ call_id?: string;
1717
+ arguments?: string;
1718
+ } | {
1719
+ model?: string;
1720
+ id?: string;
1721
+ type?: "function_call_output";
1722
+ name?: string;
1723
+ status?: "completed" | "in_progress" | "incomplete";
1724
+ timestamp?: number;
1725
+ call_id?: string;
1726
+ output?: string;
1727
+ })[];
1728
+ stream?: boolean;
1729
+ temperature?: number;
1730
+ max_tokens?: number;
1731
+ top_p?: number;
1732
+ tool_choice?: "required" | "auto" | "none" | {
1733
+ function?: {
1734
+ name?: string;
1735
+ };
1736
+ type?: "function";
1737
+ };
1738
+ tools?: {
1739
+ function?: {
1740
+ parameters?: {
1741
+ type?: "object";
1742
+ properties?: Record<string, any>;
1743
+ required?: string[];
1744
+ };
1745
+ name?: string;
1746
+ description?: string;
1747
+ };
1748
+ type?: "function";
1749
+ }[];
1750
+ }>;
1751
+ export declare const validateAPIResponse: <T>(schema: z.ZodSchema<T>, data: unknown, context: string) => T;
1752
+ export declare const StreamEventTypeSchema: z.ZodEnum<["connected", "command_start", "command_done", "project_create", "project_update", "process_start", "process_running", "process_updated", "process_done", "process_failed", "process_waiting", "process_terminated", "agent_start", "agent_updated", "agent_done", "agent_status", "message_start", "message_delta", "message_complete", "talk_start", "talk_delta", "talk_complete", "audio_stream", "tool_start", "tool_delta", "tool_done", "file_start", "file_delta", "file_complete", "cost_update", "system_status", "system_update", "quota_update", "screenshot", "design_grid", "console", "error", "tool_wait_start", "tool_waiting", "tool_wait_complete", "task_wait_start", "task_waiting", "task_wait_complete", "git_pull_request", "stream_end"]>;
1753
+ export declare const ModelUsageSchema: z.ZodObject<{
1754
+ model: z.ZodString;
1755
+ cost: z.ZodOptional<z.ZodNumber>;
1756
+ input_tokens: z.ZodOptional<z.ZodNumber>;
1757
+ output_tokens: z.ZodOptional<z.ZodNumber>;
1758
+ cached_tokens: z.ZodOptional<z.ZodNumber>;
1759
+ image_count: z.ZodOptional<z.ZodNumber>;
1760
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1761
+ timestamp: z.ZodOptional<z.ZodDate>;
1762
+ isFreeTierUsage: z.ZodOptional<z.ZodBoolean>;
1763
+ }, "strip", z.ZodTypeAny, {
1764
+ cost?: number;
1765
+ model?: string;
1766
+ timestamp?: Date;
1767
+ input_tokens?: number;
1768
+ output_tokens?: number;
1769
+ cached_tokens?: number;
1770
+ image_count?: number;
1771
+ metadata?: Record<string, unknown>;
1772
+ isFreeTierUsage?: boolean;
1773
+ }, {
1774
+ cost?: number;
1775
+ model?: string;
1776
+ timestamp?: Date;
1777
+ input_tokens?: number;
1778
+ output_tokens?: number;
1779
+ cached_tokens?: number;
1780
+ image_count?: number;
1781
+ metadata?: Record<string, unknown>;
1782
+ isFreeTierUsage?: boolean;
1783
+ }>;
1784
+ export declare const validateModel: (model: string) => string;
1785
+ export declare const validateMessages: (messages: unknown) => unknown;
1786
+ export declare const validateTools: (tools: unknown) => unknown;
1787
+ export declare const validateTemperature: (temperature?: number) => number | undefined;
1788
+ export declare const validateMaxTokens: (maxTokens?: number) => number | undefined;
1789
+ //# sourceMappingURL=validation.d.ts.map