@just-every/ensemble 0.1.34 → 0.2.2

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 (205) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +62 -190
  3. package/dist/config/tool_execution.d.ts +11 -0
  4. package/dist/config/tool_execution.d.ts.map +1 -0
  5. package/dist/config/tool_execution.js +31 -0
  6. package/dist/config/tool_execution.js.map +1 -0
  7. package/dist/core/ensemble_embed.d.ts +3 -0
  8. package/dist/core/ensemble_embed.d.ts.map +1 -0
  9. package/dist/core/ensemble_embed.js +24 -0
  10. package/dist/core/ensemble_embed.js.map +1 -0
  11. package/dist/core/ensemble_image.d.ts +3 -0
  12. package/dist/core/ensemble_image.d.ts.map +1 -0
  13. package/dist/core/ensemble_image.js +10 -0
  14. package/dist/core/ensemble_image.js.map +1 -0
  15. package/dist/core/ensemble_request.d.ts +4 -0
  16. package/dist/core/ensemble_request.d.ts.map +1 -0
  17. package/dist/core/ensemble_request.js +240 -0
  18. package/dist/core/ensemble_request.js.map +1 -0
  19. package/dist/{model_data.d.ts → data/model_data.d.ts} +2 -2
  20. package/dist/data/model_data.d.ts.map +1 -0
  21. package/dist/{model_data.js → data/model_data.js} +52 -3
  22. package/dist/data/model_data.js.map +1 -0
  23. package/dist/index.d.ts +18 -35
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/index.js +18 -56
  26. package/dist/index.js.map +1 -1
  27. package/dist/model_providers/base_provider.d.ts +3 -29
  28. package/dist/model_providers/base_provider.d.ts.map +1 -1
  29. package/dist/model_providers/base_provider.js +1 -114
  30. package/dist/model_providers/base_provider.js.map +1 -1
  31. package/dist/model_providers/claude.d.ts +2 -2
  32. package/dist/model_providers/claude.d.ts.map +1 -1
  33. package/dist/model_providers/claude.js +10 -4
  34. package/dist/model_providers/claude.js.map +1 -1
  35. package/dist/model_providers/deepseek.d.ts.map +1 -1
  36. package/dist/model_providers/deepseek.js.map +1 -1
  37. package/dist/model_providers/gemini.d.ts +4 -4
  38. package/dist/model_providers/gemini.d.ts.map +1 -1
  39. package/dist/model_providers/gemini.js +31 -32
  40. package/dist/model_providers/gemini.js.map +1 -1
  41. package/dist/model_providers/grok.d.ts.map +1 -1
  42. package/dist/model_providers/grok.js.map +1 -1
  43. package/dist/model_providers/model_provider.d.ts +3 -4
  44. package/dist/model_providers/model_provider.d.ts.map +1 -1
  45. package/dist/model_providers/model_provider.js +11 -5
  46. package/dist/model_providers/model_provider.js.map +1 -1
  47. package/dist/model_providers/openai.d.ts +4 -4
  48. package/dist/model_providers/openai.d.ts.map +1 -1
  49. package/dist/model_providers/openai.js +24 -26
  50. package/dist/model_providers/openai.js.map +1 -1
  51. package/dist/model_providers/openai_chat.d.ts +3 -3
  52. package/dist/model_providers/openai_chat.d.ts.map +1 -1
  53. package/dist/model_providers/openai_chat.js +2 -2
  54. package/dist/model_providers/openai_chat.js.map +1 -1
  55. package/dist/model_providers/openrouter.d.ts.map +1 -1
  56. package/dist/model_providers/openrouter.js +3 -3
  57. package/dist/model_providers/openrouter.js.map +1 -1
  58. package/dist/model_providers/test_provider.d.ts +3 -5
  59. package/dist/model_providers/test_provider.d.ts.map +1 -1
  60. package/dist/model_providers/test_provider.js +9 -17
  61. package/dist/model_providers/test_provider.js.map +1 -1
  62. package/dist/tsconfig.tsbuildinfo +1 -1
  63. package/dist/types/api_types.d.ts +1 -1
  64. package/dist/types/api_types.d.ts.map +1 -1
  65. package/dist/types/tool_types.d.ts +1 -99
  66. package/dist/types/tool_types.d.ts.map +1 -1
  67. package/dist/types/tool_types.js +1 -10
  68. package/dist/types/tool_types.js.map +1 -1
  69. package/dist/{types.d.ts → types/types.d.ts} +82 -32
  70. package/dist/types/types.d.ts.map +1 -0
  71. package/dist/types/types.js.map +1 -0
  72. package/dist/utils/agent.d.ts +41 -0
  73. package/dist/utils/agent.d.ts.map +1 -0
  74. package/dist/utils/agent.js +342 -0
  75. package/dist/utils/agent.js.map +1 -0
  76. package/dist/utils/communication.d.ts +0 -1
  77. package/dist/utils/communication.d.ts.map +1 -1
  78. package/dist/utils/communication.js +1 -4
  79. package/dist/utils/communication.js.map +1 -1
  80. package/dist/utils/cost_tracker.d.ts +1 -1
  81. package/dist/utils/cost_tracker.d.ts.map +1 -1
  82. package/dist/utils/cost_tracker.js +1 -1
  83. package/dist/utils/cost_tracker.js.map +1 -1
  84. package/dist/utils/create_tool_function.d.ts +1 -23
  85. package/dist/utils/create_tool_function.d.ts.map +1 -1
  86. package/dist/utils/create_tool_function.js +14 -3
  87. package/dist/utils/create_tool_function.js.map +1 -1
  88. package/dist/{external_models.d.ts → utils/external_models.d.ts} +1 -2
  89. package/dist/utils/external_models.d.ts.map +1 -0
  90. package/dist/{external_models.js → utils/external_models.js} +0 -3
  91. package/dist/utils/external_models.js.map +1 -0
  92. package/dist/utils/image_to_text.d.ts.map +1 -1
  93. package/dist/utils/image_to_text.js +3 -2
  94. package/dist/utils/image_to_text.js.map +1 -1
  95. package/dist/utils/image_utils.d.ts +1 -4
  96. package/dist/utils/image_utils.d.ts.map +1 -1
  97. package/dist/utils/image_utils.js +2 -10
  98. package/dist/utils/image_utils.js.map +1 -1
  99. package/dist/utils/llm_logger.d.ts +1 -1
  100. package/dist/utils/llm_logger.d.ts.map +1 -1
  101. package/dist/utils/llm_logger.js.map +1 -1
  102. package/dist/utils/message_history.d.ts +4 -4
  103. package/dist/utils/message_history.d.ts.map +1 -1
  104. package/dist/utils/message_history.js +18 -18
  105. package/dist/utils/message_history.js.map +1 -1
  106. package/dist/utils/quota_tracker.d.ts +1 -1
  107. package/dist/utils/quota_tracker.d.ts.map +1 -1
  108. package/dist/utils/quota_tracker.js +0 -1
  109. package/dist/utils/quota_tracker.js.map +1 -1
  110. package/dist/utils/running_tool_tracker.d.ts +42 -0
  111. package/dist/utils/running_tool_tracker.d.ts.map +1 -0
  112. package/dist/utils/running_tool_tracker.js +129 -0
  113. package/dist/utils/running_tool_tracker.js.map +1 -0
  114. package/dist/utils/sequential_queue.d.ts +13 -0
  115. package/dist/utils/sequential_queue.d.ts.map +1 -0
  116. package/dist/utils/sequential_queue.js +68 -0
  117. package/dist/utils/sequential_queue.js.map +1 -0
  118. package/dist/utils/state_manager.d.ts.map +1 -1
  119. package/dist/utils/state_manager.js.map +1 -1
  120. package/dist/utils/stream_converter.d.ts +2 -13
  121. package/dist/utils/stream_converter.d.ts.map +1 -1
  122. package/dist/utils/stream_converter.js +15 -37
  123. package/dist/utils/stream_converter.js.map +1 -1
  124. package/dist/utils/test_utils.d.ts +4 -4
  125. package/dist/utils/test_utils.d.ts.map +1 -1
  126. package/dist/utils/test_utils.js +17 -17
  127. package/dist/utils/test_utils.js.map +1 -1
  128. package/dist/utils/tool_execution_manager.d.ts +7 -0
  129. package/dist/utils/tool_execution_manager.d.ts.map +1 -0
  130. package/dist/utils/tool_execution_manager.js +145 -0
  131. package/dist/utils/tool_execution_manager.js.map +1 -0
  132. package/dist/utils/tool_parameter_utils.d.ts +2 -2
  133. package/dist/utils/tool_parameter_utils.d.ts.map +1 -1
  134. package/dist/utils/tool_parameter_utils.js +8 -4
  135. package/dist/utils/tool_parameter_utils.js.map +1 -1
  136. package/dist/utils/tool_result_processor.d.ts +6 -0
  137. package/dist/utils/tool_result_processor.d.ts.map +1 -0
  138. package/dist/utils/tool_result_processor.js +69 -0
  139. package/dist/utils/tool_result_processor.js.map +1 -0
  140. package/dist/utils/verification.d.ts +7 -0
  141. package/dist/utils/verification.d.ts.map +1 -0
  142. package/dist/utils/verification.js +43 -0
  143. package/dist/utils/verification.js.map +1 -0
  144. package/package.json +11 -10
  145. package/dist/cost_tracker.d.ts +0 -2
  146. package/dist/cost_tracker.d.ts.map +0 -1
  147. package/dist/cost_tracker.js +0 -2
  148. package/dist/cost_tracker.js.map +0 -1
  149. package/dist/errors.d.ts +0 -55
  150. package/dist/errors.d.ts.map +0 -1
  151. package/dist/errors.js +0 -134
  152. package/dist/errors.js.map +0 -1
  153. package/dist/external_models.d.ts.map +0 -1
  154. package/dist/external_models.js.map +0 -1
  155. package/dist/model_data.d.ts.map +0 -1
  156. package/dist/model_data.js.map +0 -1
  157. package/dist/model_providers/refactored_openai.d.ts +0 -22
  158. package/dist/model_providers/refactored_openai.d.ts.map +0 -1
  159. package/dist/model_providers/refactored_openai.js +0 -310
  160. package/dist/model_providers/refactored_openai.js.map +0 -1
  161. package/dist/openai-compat.d.ts +0 -79
  162. package/dist/openai-compat.d.ts.map +0 -1
  163. package/dist/openai-compat.js +0 -581
  164. package/dist/openai-compat.js.map +0 -1
  165. package/dist/test.d.ts +0 -5
  166. package/dist/test.d.ts.map +0 -1
  167. package/dist/test.js +0 -2
  168. package/dist/test.js.map +0 -1
  169. package/dist/types/extended_types.d.ts +0 -43
  170. package/dist/types/extended_types.d.ts.map +0 -1
  171. package/dist/types/extended_types.js +0 -2
  172. package/dist/types/extended_types.js.map +0 -1
  173. package/dist/types.d.ts.map +0 -1
  174. package/dist/types.js.map +0 -1
  175. package/dist/unified_request.d.ts +0 -19
  176. package/dist/unified_request.d.ts.map +0 -1
  177. package/dist/unified_request.js +0 -261
  178. package/dist/unified_request.js.map +0 -1
  179. package/dist/utils/async_queue.d.ts +0 -14
  180. package/dist/utils/async_queue.d.ts.map +0 -1
  181. package/dist/utils/async_queue.js +0 -68
  182. package/dist/utils/async_queue.js.map +0 -1
  183. package/dist/utils/cache.d.ts +0 -60
  184. package/dist/utils/cache.d.ts.map +0 -1
  185. package/dist/utils/cache.js +0 -205
  186. package/dist/utils/cache.js.map +0 -1
  187. package/dist/utils/error_handler.d.ts +0 -33
  188. package/dist/utils/error_handler.d.ts.map +0 -1
  189. package/dist/utils/error_handler.js +0 -84
  190. package/dist/utils/error_handler.js.map +0 -1
  191. package/dist/utils/tool_builder.d.ts +0 -51
  192. package/dist/utils/tool_builder.d.ts.map +0 -1
  193. package/dist/utils/tool_builder.js +0 -167
  194. package/dist/utils/tool_builder.js.map +0 -1
  195. package/dist/utils/tool_utils.d.ts +0 -13
  196. package/dist/utils/tool_utils.d.ts.map +0 -1
  197. package/dist/utils/tool_utils.js +0 -52
  198. package/dist/utils/tool_utils.js.map +0 -1
  199. package/dist/validation.d.ts +0 -1789
  200. package/dist/validation.d.ts.map +0 -1
  201. package/dist/validation.js +0 -289
  202. package/dist/validation.js.map +0 -1
  203. package/test.d.ts +0 -3
  204. package/test.js +0 -4
  205. /package/dist/{types.js → types/types.js} +0 -0
@@ -1,1789 +0,0 @@
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
- required?: string[];
15
- type?: "object";
16
- properties?: Record<string, any>;
17
- }, {
18
- required?: string[];
19
- type?: "object";
20
- properties?: Record<string, any>;
21
- }>;
22
- }, "strip", z.ZodTypeAny, {
23
- parameters?: {
24
- required?: string[];
25
- type?: "object";
26
- properties?: Record<string, any>;
27
- };
28
- name?: string;
29
- description?: string;
30
- }, {
31
- parameters?: {
32
- required?: string[];
33
- type?: "object";
34
- properties?: Record<string, any>;
35
- };
36
- name?: string;
37
- description?: string;
38
- }>;
39
- }, "strip", z.ZodTypeAny, {
40
- function?: {
41
- parameters?: {
42
- required?: string[];
43
- type?: "object";
44
- properties?: Record<string, any>;
45
- };
46
- name?: string;
47
- description?: string;
48
- };
49
- type?: "function";
50
- }, {
51
- function?: {
52
- parameters?: {
53
- required?: string[];
54
- type?: "object";
55
- properties?: Record<string, any>;
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
- text?: string;
67
- type?: "input_text";
68
- }, {
69
- text?: string;
70
- type?: "input_text";
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" | "high" | "low";
81
- file_id?: string;
82
- }, {
83
- type?: "input_image";
84
- image_url?: string;
85
- detail?: "auto" | "high" | "low";
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
- text?: string;
109
- type?: "input_text";
110
- }, {
111
- text?: string;
112
- type?: "input_text";
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" | "high" | "low";
122
- file_id?: string;
123
- }, {
124
- type?: "input_image";
125
- image_url?: string;
126
- detail?: "auto" | "high" | "low";
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
- text?: string;
152
- type?: "input_text";
153
- }, {
154
- text?: string;
155
- type?: "input_text";
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" | "high" | "low";
165
- file_id?: string;
166
- }, {
167
- type?: "input_image";
168
- image_url?: string;
169
- detail?: "auto" | "high" | "low";
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
- type?: "message";
194
- name?: string;
195
- role?: "user" | "system" | "developer";
196
- content?: string | ({
197
- text?: string;
198
- type?: "input_text";
199
- } | {
200
- type?: "input_image";
201
- image_url?: string;
202
- detail?: "auto" | "high" | "low";
203
- file_id?: string;
204
- } | {
205
- type?: "input_file";
206
- file_id?: string;
207
- file_data?: string;
208
- filename?: string;
209
- })[];
210
- status?: "in_progress" | "completed" | "incomplete";
211
- timestamp?: number;
212
- }, {
213
- model?: string;
214
- type?: "message";
215
- name?: string;
216
- role?: "user" | "system" | "developer";
217
- content?: string | ({
218
- text?: string;
219
- type?: "input_text";
220
- } | {
221
- type?: "input_image";
222
- image_url?: string;
223
- detail?: "auto" | "high" | "low";
224
- file_id?: string;
225
- } | {
226
- type?: "input_file";
227
- file_id?: string;
228
- file_data?: string;
229
- filename?: string;
230
- })[];
231
- status?: "in_progress" | "completed" | "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
- text?: string;
241
- type?: "input_text";
242
- }, {
243
- text?: string;
244
- type?: "input_text";
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" | "high" | "low";
254
- file_id?: string;
255
- }, {
256
- type?: "input_image";
257
- image_url?: string;
258
- detail?: "auto" | "high" | "low";
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
- text?: string;
281
- type?: "input_text";
282
- }, {
283
- text?: string;
284
- type?: "input_text";
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" | "high" | "low";
294
- file_id?: string;
295
- }, {
296
- type?: "input_image";
297
- image_url?: string;
298
- detail?: "auto" | "high" | "low";
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
- type?: "thinking";
324
- role?: "assistant";
325
- content?: string | ({
326
- text?: string;
327
- type?: "input_text";
328
- } | {
329
- type?: "input_image";
330
- image_url?: string;
331
- detail?: "auto" | "high" | "low";
332
- file_id?: string;
333
- } | {
334
- type?: "input_file";
335
- file_id?: string;
336
- file_data?: string;
337
- filename?: string;
338
- })[];
339
- thinking_id?: string;
340
- status?: "in_progress" | "completed" | "incomplete";
341
- timestamp?: number;
342
- signature?: string | ({
343
- text?: string;
344
- type?: "input_text";
345
- } | {
346
- type?: "input_image";
347
- image_url?: string;
348
- detail?: "auto" | "high" | "low";
349
- file_id?: string;
350
- } | {
351
- type?: "input_file";
352
- file_id?: string;
353
- file_data?: string;
354
- filename?: string;
355
- })[];
356
- }, {
357
- model?: string;
358
- type?: "thinking";
359
- role?: "assistant";
360
- content?: string | ({
361
- text?: string;
362
- type?: "input_text";
363
- } | {
364
- type?: "input_image";
365
- image_url?: string;
366
- detail?: "auto" | "high" | "low";
367
- file_id?: string;
368
- } | {
369
- type?: "input_file";
370
- file_id?: string;
371
- file_data?: string;
372
- filename?: string;
373
- })[];
374
- thinking_id?: string;
375
- status?: "in_progress" | "completed" | "incomplete";
376
- timestamp?: number;
377
- signature?: string | ({
378
- text?: string;
379
- type?: "input_text";
380
- } | {
381
- type?: "input_image";
382
- image_url?: string;
383
- detail?: "auto" | "high" | "low";
384
- file_id?: string;
385
- } | {
386
- type?: "input_file";
387
- file_id?: string;
388
- file_data?: string;
389
- filename?: string;
390
- })[];
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
- text?: string;
400
- type?: "input_text";
401
- }, {
402
- text?: string;
403
- type?: "input_text";
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" | "high" | "low";
413
- file_id?: string;
414
- }, {
415
- type?: "input_image";
416
- image_url?: string;
417
- detail?: "auto" | "high" | "low";
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
- id?: string;
442
- type?: "message";
443
- role?: "assistant";
444
- content?: string | ({
445
- text?: string;
446
- type?: "input_text";
447
- } | {
448
- type?: "input_image";
449
- image_url?: string;
450
- detail?: "auto" | "high" | "low";
451
- file_id?: string;
452
- } | {
453
- type?: "input_file";
454
- file_id?: string;
455
- file_data?: string;
456
- filename?: string;
457
- })[];
458
- status?: "in_progress" | "completed" | "incomplete";
459
- timestamp?: number;
460
- }, {
461
- model?: string;
462
- id?: string;
463
- type?: "message";
464
- role?: "assistant";
465
- content?: string | ({
466
- text?: string;
467
- type?: "input_text";
468
- } | {
469
- type?: "input_image";
470
- image_url?: string;
471
- detail?: "auto" | "high" | "low";
472
- file_id?: string;
473
- } | {
474
- type?: "input_file";
475
- file_id?: string;
476
- file_data?: string;
477
- filename?: string;
478
- })[];
479
- status?: "in_progress" | "completed" | "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
- call_id?: string;
497
- arguments?: string;
498
- status?: "in_progress" | "completed" | "incomplete";
499
- timestamp?: number;
500
- }, {
501
- model?: string;
502
- id?: string;
503
- type?: "function_call";
504
- name?: string;
505
- call_id?: string;
506
- arguments?: string;
507
- status?: "in_progress" | "completed" | "incomplete";
508
- timestamp?: number;
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
- call_id?: string;
525
- status?: "in_progress" | "completed" | "incomplete";
526
- timestamp?: number;
527
- output?: string;
528
- }, {
529
- model?: string;
530
- id?: string;
531
- type?: "function_call_output";
532
- name?: string;
533
- call_id?: string;
534
- status?: "in_progress" | "completed" | "incomplete";
535
- timestamp?: number;
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
- text?: string;
546
- type?: "input_text";
547
- }, {
548
- text?: string;
549
- type?: "input_text";
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" | "high" | "low";
559
- file_id?: string;
560
- }, {
561
- type?: "input_image";
562
- image_url?: string;
563
- detail?: "auto" | "high" | "low";
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
- type?: "message";
588
- name?: string;
589
- role?: "user" | "system" | "developer";
590
- content?: string | ({
591
- text?: string;
592
- type?: "input_text";
593
- } | {
594
- type?: "input_image";
595
- image_url?: string;
596
- detail?: "auto" | "high" | "low";
597
- file_id?: string;
598
- } | {
599
- type?: "input_file";
600
- file_id?: string;
601
- file_data?: string;
602
- filename?: string;
603
- })[];
604
- status?: "in_progress" | "completed" | "incomplete";
605
- timestamp?: number;
606
- }, {
607
- model?: string;
608
- type?: "message";
609
- name?: string;
610
- role?: "user" | "system" | "developer";
611
- content?: string | ({
612
- text?: string;
613
- type?: "input_text";
614
- } | {
615
- type?: "input_image";
616
- image_url?: string;
617
- detail?: "auto" | "high" | "low";
618
- file_id?: string;
619
- } | {
620
- type?: "input_file";
621
- file_id?: string;
622
- file_data?: string;
623
- filename?: string;
624
- })[];
625
- status?: "in_progress" | "completed" | "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
- text?: string;
634
- type?: "input_text";
635
- }, {
636
- text?: string;
637
- type?: "input_text";
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" | "high" | "low";
647
- file_id?: string;
648
- }, {
649
- type?: "input_image";
650
- image_url?: string;
651
- detail?: "auto" | "high" | "low";
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
- text?: string;
674
- type?: "input_text";
675
- }, {
676
- text?: string;
677
- type?: "input_text";
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" | "high" | "low";
687
- file_id?: string;
688
- }, {
689
- type?: "input_image";
690
- image_url?: string;
691
- detail?: "auto" | "high" | "low";
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
- type?: "thinking";
717
- role?: "assistant";
718
- content?: string | ({
719
- text?: string;
720
- type?: "input_text";
721
- } | {
722
- type?: "input_image";
723
- image_url?: string;
724
- detail?: "auto" | "high" | "low";
725
- file_id?: string;
726
- } | {
727
- type?: "input_file";
728
- file_id?: string;
729
- file_data?: string;
730
- filename?: string;
731
- })[];
732
- thinking_id?: string;
733
- status?: "in_progress" | "completed" | "incomplete";
734
- timestamp?: number;
735
- signature?: string | ({
736
- text?: string;
737
- type?: "input_text";
738
- } | {
739
- type?: "input_image";
740
- image_url?: string;
741
- detail?: "auto" | "high" | "low";
742
- file_id?: string;
743
- } | {
744
- type?: "input_file";
745
- file_id?: string;
746
- file_data?: string;
747
- filename?: string;
748
- })[];
749
- }, {
750
- model?: string;
751
- type?: "thinking";
752
- role?: "assistant";
753
- content?: string | ({
754
- text?: string;
755
- type?: "input_text";
756
- } | {
757
- type?: "input_image";
758
- image_url?: string;
759
- detail?: "auto" | "high" | "low";
760
- file_id?: string;
761
- } | {
762
- type?: "input_file";
763
- file_id?: string;
764
- file_data?: string;
765
- filename?: string;
766
- })[];
767
- thinking_id?: string;
768
- status?: "in_progress" | "completed" | "incomplete";
769
- timestamp?: number;
770
- signature?: string | ({
771
- text?: string;
772
- type?: "input_text";
773
- } | {
774
- type?: "input_image";
775
- image_url?: string;
776
- detail?: "auto" | "high" | "low";
777
- file_id?: string;
778
- } | {
779
- type?: "input_file";
780
- file_id?: string;
781
- file_data?: string;
782
- filename?: string;
783
- })[];
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
- text?: string;
792
- type?: "input_text";
793
- }, {
794
- text?: string;
795
- type?: "input_text";
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" | "high" | "low";
805
- file_id?: string;
806
- }, {
807
- type?: "input_image";
808
- image_url?: string;
809
- detail?: "auto" | "high" | "low";
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
- id?: string;
834
- type?: "message";
835
- role?: "assistant";
836
- content?: string | ({
837
- text?: string;
838
- type?: "input_text";
839
- } | {
840
- type?: "input_image";
841
- image_url?: string;
842
- detail?: "auto" | "high" | "low";
843
- file_id?: string;
844
- } | {
845
- type?: "input_file";
846
- file_id?: string;
847
- file_data?: string;
848
- filename?: string;
849
- })[];
850
- status?: "in_progress" | "completed" | "incomplete";
851
- timestamp?: number;
852
- }, {
853
- model?: string;
854
- id?: string;
855
- type?: "message";
856
- role?: "assistant";
857
- content?: string | ({
858
- text?: string;
859
- type?: "input_text";
860
- } | {
861
- type?: "input_image";
862
- image_url?: string;
863
- detail?: "auto" | "high" | "low";
864
- file_id?: string;
865
- } | {
866
- type?: "input_file";
867
- file_id?: string;
868
- file_data?: string;
869
- filename?: string;
870
- })[];
871
- status?: "in_progress" | "completed" | "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
- call_id?: string;
888
- arguments?: string;
889
- status?: "in_progress" | "completed" | "incomplete";
890
- timestamp?: number;
891
- }, {
892
- model?: string;
893
- id?: string;
894
- type?: "function_call";
895
- name?: string;
896
- call_id?: string;
897
- arguments?: string;
898
- status?: "in_progress" | "completed" | "incomplete";
899
- timestamp?: number;
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
- call_id?: string;
915
- status?: "in_progress" | "completed" | "incomplete";
916
- timestamp?: number;
917
- output?: string;
918
- }, {
919
- model?: string;
920
- id?: string;
921
- type?: "function_call_output";
922
- name?: string;
923
- call_id?: string;
924
- status?: "in_progress" | "completed" | "incomplete";
925
- timestamp?: number;
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
- strict?: boolean;
976
- schema?: Record<string, unknown>;
977
- }, {
978
- type?: "json_schema";
979
- name?: string;
980
- description?: string;
981
- strict?: boolean;
982
- schema?: Record<string, unknown>;
983
- }>>;
984
- force_json: z.ZodOptional<z.ZodBoolean>;
985
- }, "strip", z.ZodTypeAny, {
986
- json_schema?: {
987
- type?: "json_schema";
988
- name?: string;
989
- description?: string;
990
- strict?: boolean;
991
- schema?: Record<string, unknown>;
992
- };
993
- text?: {
994
- format?: string;
995
- };
996
- stop_sequence?: string;
997
- temperature?: number;
998
- tool_choice?: "auto" | "none" | "required" | {
999
- function?: {
1000
- name?: string;
1001
- };
1002
- type?: string;
1003
- };
1004
- max_tokens?: number;
1005
- top_p?: number;
1006
- seed?: number;
1007
- top_k?: number;
1008
- sequential_tools?: boolean;
1009
- force_json?: boolean;
1010
- }, {
1011
- json_schema?: {
1012
- type?: "json_schema";
1013
- name?: string;
1014
- description?: string;
1015
- strict?: boolean;
1016
- schema?: Record<string, unknown>;
1017
- };
1018
- text?: {
1019
- format?: string;
1020
- };
1021
- stop_sequence?: string;
1022
- temperature?: number;
1023
- tool_choice?: "auto" | "none" | "required" | {
1024
- function?: {
1025
- name?: string;
1026
- };
1027
- type?: string;
1028
- };
1029
- max_tokens?: number;
1030
- top_p?: number;
1031
- seed?: number;
1032
- top_k?: number;
1033
- sequential_tools?: boolean;
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
- text?: string;
1046
- type?: "input_text";
1047
- }, {
1048
- text?: string;
1049
- type?: "input_text";
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" | "high" | "low";
1059
- file_id?: string;
1060
- }, {
1061
- type?: "input_image";
1062
- image_url?: string;
1063
- detail?: "auto" | "high" | "low";
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
- type?: "message";
1088
- name?: string;
1089
- role?: "user" | "system" | "developer";
1090
- content?: string | ({
1091
- text?: string;
1092
- type?: "input_text";
1093
- } | {
1094
- type?: "input_image";
1095
- image_url?: string;
1096
- detail?: "auto" | "high" | "low";
1097
- file_id?: string;
1098
- } | {
1099
- type?: "input_file";
1100
- file_id?: string;
1101
- file_data?: string;
1102
- filename?: string;
1103
- })[];
1104
- status?: "in_progress" | "completed" | "incomplete";
1105
- timestamp?: number;
1106
- }, {
1107
- model?: string;
1108
- type?: "message";
1109
- name?: string;
1110
- role?: "user" | "system" | "developer";
1111
- content?: string | ({
1112
- text?: string;
1113
- type?: "input_text";
1114
- } | {
1115
- type?: "input_image";
1116
- image_url?: string;
1117
- detail?: "auto" | "high" | "low";
1118
- file_id?: string;
1119
- } | {
1120
- type?: "input_file";
1121
- file_id?: string;
1122
- file_data?: string;
1123
- filename?: string;
1124
- })[];
1125
- status?: "in_progress" | "completed" | "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
- text?: string;
1134
- type?: "input_text";
1135
- }, {
1136
- text?: string;
1137
- type?: "input_text";
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" | "high" | "low";
1147
- file_id?: string;
1148
- }, {
1149
- type?: "input_image";
1150
- image_url?: string;
1151
- detail?: "auto" | "high" | "low";
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
- text?: string;
1174
- type?: "input_text";
1175
- }, {
1176
- text?: string;
1177
- type?: "input_text";
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" | "high" | "low";
1187
- file_id?: string;
1188
- }, {
1189
- type?: "input_image";
1190
- image_url?: string;
1191
- detail?: "auto" | "high" | "low";
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
- type?: "thinking";
1217
- role?: "assistant";
1218
- content?: string | ({
1219
- text?: string;
1220
- type?: "input_text";
1221
- } | {
1222
- type?: "input_image";
1223
- image_url?: string;
1224
- detail?: "auto" | "high" | "low";
1225
- file_id?: string;
1226
- } | {
1227
- type?: "input_file";
1228
- file_id?: string;
1229
- file_data?: string;
1230
- filename?: string;
1231
- })[];
1232
- thinking_id?: string;
1233
- status?: "in_progress" | "completed" | "incomplete";
1234
- timestamp?: number;
1235
- signature?: string | ({
1236
- text?: string;
1237
- type?: "input_text";
1238
- } | {
1239
- type?: "input_image";
1240
- image_url?: string;
1241
- detail?: "auto" | "high" | "low";
1242
- file_id?: string;
1243
- } | {
1244
- type?: "input_file";
1245
- file_id?: string;
1246
- file_data?: string;
1247
- filename?: string;
1248
- })[];
1249
- }, {
1250
- model?: string;
1251
- type?: "thinking";
1252
- role?: "assistant";
1253
- content?: string | ({
1254
- text?: string;
1255
- type?: "input_text";
1256
- } | {
1257
- type?: "input_image";
1258
- image_url?: string;
1259
- detail?: "auto" | "high" | "low";
1260
- file_id?: string;
1261
- } | {
1262
- type?: "input_file";
1263
- file_id?: string;
1264
- file_data?: string;
1265
- filename?: string;
1266
- })[];
1267
- thinking_id?: string;
1268
- status?: "in_progress" | "completed" | "incomplete";
1269
- timestamp?: number;
1270
- signature?: string | ({
1271
- text?: string;
1272
- type?: "input_text";
1273
- } | {
1274
- type?: "input_image";
1275
- image_url?: string;
1276
- detail?: "auto" | "high" | "low";
1277
- file_id?: string;
1278
- } | {
1279
- type?: "input_file";
1280
- file_id?: string;
1281
- file_data?: string;
1282
- filename?: string;
1283
- })[];
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
- text?: string;
1292
- type?: "input_text";
1293
- }, {
1294
- text?: string;
1295
- type?: "input_text";
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" | "high" | "low";
1305
- file_id?: string;
1306
- }, {
1307
- type?: "input_image";
1308
- image_url?: string;
1309
- detail?: "auto" | "high" | "low";
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
- id?: string;
1334
- type?: "message";
1335
- role?: "assistant";
1336
- content?: string | ({
1337
- text?: string;
1338
- type?: "input_text";
1339
- } | {
1340
- type?: "input_image";
1341
- image_url?: string;
1342
- detail?: "auto" | "high" | "low";
1343
- file_id?: string;
1344
- } | {
1345
- type?: "input_file";
1346
- file_id?: string;
1347
- file_data?: string;
1348
- filename?: string;
1349
- })[];
1350
- status?: "in_progress" | "completed" | "incomplete";
1351
- timestamp?: number;
1352
- }, {
1353
- model?: string;
1354
- id?: string;
1355
- type?: "message";
1356
- role?: "assistant";
1357
- content?: string | ({
1358
- text?: string;
1359
- type?: "input_text";
1360
- } | {
1361
- type?: "input_image";
1362
- image_url?: string;
1363
- detail?: "auto" | "high" | "low";
1364
- file_id?: string;
1365
- } | {
1366
- type?: "input_file";
1367
- file_id?: string;
1368
- file_data?: string;
1369
- filename?: string;
1370
- })[];
1371
- status?: "in_progress" | "completed" | "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
- call_id?: string;
1388
- arguments?: string;
1389
- status?: "in_progress" | "completed" | "incomplete";
1390
- timestamp?: number;
1391
- }, {
1392
- model?: string;
1393
- id?: string;
1394
- type?: "function_call";
1395
- name?: string;
1396
- call_id?: string;
1397
- arguments?: string;
1398
- status?: "in_progress" | "completed" | "incomplete";
1399
- timestamp?: number;
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
- call_id?: string;
1415
- status?: "in_progress" | "completed" | "incomplete";
1416
- timestamp?: number;
1417
- output?: string;
1418
- }, {
1419
- model?: string;
1420
- id?: string;
1421
- type?: "function_call_output";
1422
- name?: string;
1423
- call_id?: string;
1424
- status?: "in_progress" | "completed" | "incomplete";
1425
- timestamp?: number;
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
- required?: string[];
1443
- type?: "object";
1444
- properties?: Record<string, any>;
1445
- }, {
1446
- required?: string[];
1447
- type?: "object";
1448
- properties?: Record<string, any>;
1449
- }>;
1450
- }, "strip", z.ZodTypeAny, {
1451
- parameters?: {
1452
- required?: string[];
1453
- type?: "object";
1454
- properties?: Record<string, any>;
1455
- };
1456
- name?: string;
1457
- description?: string;
1458
- }, {
1459
- parameters?: {
1460
- required?: string[];
1461
- type?: "object";
1462
- properties?: Record<string, any>;
1463
- };
1464
- name?: string;
1465
- description?: string;
1466
- }>;
1467
- }, "strip", z.ZodTypeAny, {
1468
- function?: {
1469
- parameters?: {
1470
- required?: string[];
1471
- type?: "object";
1472
- properties?: Record<string, any>;
1473
- };
1474
- name?: string;
1475
- description?: string;
1476
- };
1477
- type?: "function";
1478
- }, {
1479
- function?: {
1480
- parameters?: {
1481
- required?: string[];
1482
- type?: "object";
1483
- properties?: Record<string, any>;
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
- temperature?: number;
1513
- tool_choice?: "auto" | "none" | "required" | {
1514
- function?: {
1515
- name?: string;
1516
- };
1517
- type?: "function";
1518
- };
1519
- messages?: ({
1520
- model?: string;
1521
- type?: "message";
1522
- name?: string;
1523
- role?: "user" | "system" | "developer";
1524
- content?: string | ({
1525
- text?: string;
1526
- type?: "input_text";
1527
- } | {
1528
- type?: "input_image";
1529
- image_url?: string;
1530
- detail?: "auto" | "high" | "low";
1531
- file_id?: string;
1532
- } | {
1533
- type?: "input_file";
1534
- file_id?: string;
1535
- file_data?: string;
1536
- filename?: string;
1537
- })[];
1538
- status?: "in_progress" | "completed" | "incomplete";
1539
- timestamp?: number;
1540
- } | {
1541
- model?: string;
1542
- type?: "thinking";
1543
- role?: "assistant";
1544
- content?: string | ({
1545
- text?: string;
1546
- type?: "input_text";
1547
- } | {
1548
- type?: "input_image";
1549
- image_url?: string;
1550
- detail?: "auto" | "high" | "low";
1551
- file_id?: string;
1552
- } | {
1553
- type?: "input_file";
1554
- file_id?: string;
1555
- file_data?: string;
1556
- filename?: string;
1557
- })[];
1558
- thinking_id?: string;
1559
- status?: "in_progress" | "completed" | "incomplete";
1560
- timestamp?: number;
1561
- signature?: string | ({
1562
- text?: string;
1563
- type?: "input_text";
1564
- } | {
1565
- type?: "input_image";
1566
- image_url?: string;
1567
- detail?: "auto" | "high" | "low";
1568
- file_id?: string;
1569
- } | {
1570
- type?: "input_file";
1571
- file_id?: string;
1572
- file_data?: string;
1573
- filename?: string;
1574
- })[];
1575
- } | {
1576
- model?: string;
1577
- id?: string;
1578
- type?: "message";
1579
- role?: "assistant";
1580
- content?: string | ({
1581
- text?: string;
1582
- type?: "input_text";
1583
- } | {
1584
- type?: "input_image";
1585
- image_url?: string;
1586
- detail?: "auto" | "high" | "low";
1587
- file_id?: string;
1588
- } | {
1589
- type?: "input_file";
1590
- file_id?: string;
1591
- file_data?: string;
1592
- filename?: string;
1593
- })[];
1594
- status?: "in_progress" | "completed" | "incomplete";
1595
- timestamp?: number;
1596
- } | {
1597
- model?: string;
1598
- id?: string;
1599
- type?: "function_call";
1600
- name?: string;
1601
- call_id?: string;
1602
- arguments?: string;
1603
- status?: "in_progress" | "completed" | "incomplete";
1604
- timestamp?: number;
1605
- } | {
1606
- model?: string;
1607
- id?: string;
1608
- type?: "function_call_output";
1609
- name?: string;
1610
- call_id?: string;
1611
- status?: "in_progress" | "completed" | "incomplete";
1612
- timestamp?: number;
1613
- output?: string;
1614
- })[];
1615
- tools?: {
1616
- function?: {
1617
- parameters?: {
1618
- required?: string[];
1619
- type?: "object";
1620
- properties?: Record<string, any>;
1621
- };
1622
- name?: string;
1623
- description?: string;
1624
- };
1625
- type?: "function";
1626
- }[];
1627
- max_tokens?: number;
1628
- top_p?: number;
1629
- stream?: boolean;
1630
- }, {
1631
- model?: string;
1632
- temperature?: number;
1633
- tool_choice?: "auto" | "none" | "required" | {
1634
- function?: {
1635
- name?: string;
1636
- };
1637
- type?: "function";
1638
- };
1639
- messages?: ({
1640
- model?: string;
1641
- type?: "message";
1642
- name?: string;
1643
- role?: "user" | "system" | "developer";
1644
- content?: string | ({
1645
- text?: string;
1646
- type?: "input_text";
1647
- } | {
1648
- type?: "input_image";
1649
- image_url?: string;
1650
- detail?: "auto" | "high" | "low";
1651
- file_id?: string;
1652
- } | {
1653
- type?: "input_file";
1654
- file_id?: string;
1655
- file_data?: string;
1656
- filename?: string;
1657
- })[];
1658
- status?: "in_progress" | "completed" | "incomplete";
1659
- timestamp?: number;
1660
- } | {
1661
- model?: string;
1662
- type?: "thinking";
1663
- role?: "assistant";
1664
- content?: string | ({
1665
- text?: string;
1666
- type?: "input_text";
1667
- } | {
1668
- type?: "input_image";
1669
- image_url?: string;
1670
- detail?: "auto" | "high" | "low";
1671
- file_id?: string;
1672
- } | {
1673
- type?: "input_file";
1674
- file_id?: string;
1675
- file_data?: string;
1676
- filename?: string;
1677
- })[];
1678
- thinking_id?: string;
1679
- status?: "in_progress" | "completed" | "incomplete";
1680
- timestamp?: number;
1681
- signature?: string | ({
1682
- text?: string;
1683
- type?: "input_text";
1684
- } | {
1685
- type?: "input_image";
1686
- image_url?: string;
1687
- detail?: "auto" | "high" | "low";
1688
- file_id?: string;
1689
- } | {
1690
- type?: "input_file";
1691
- file_id?: string;
1692
- file_data?: string;
1693
- filename?: string;
1694
- })[];
1695
- } | {
1696
- model?: string;
1697
- id?: string;
1698
- type?: "message";
1699
- role?: "assistant";
1700
- content?: string | ({
1701
- text?: string;
1702
- type?: "input_text";
1703
- } | {
1704
- type?: "input_image";
1705
- image_url?: string;
1706
- detail?: "auto" | "high" | "low";
1707
- file_id?: string;
1708
- } | {
1709
- type?: "input_file";
1710
- file_id?: string;
1711
- file_data?: string;
1712
- filename?: string;
1713
- })[];
1714
- status?: "in_progress" | "completed" | "incomplete";
1715
- timestamp?: number;
1716
- } | {
1717
- model?: string;
1718
- id?: string;
1719
- type?: "function_call";
1720
- name?: string;
1721
- call_id?: string;
1722
- arguments?: string;
1723
- status?: "in_progress" | "completed" | "incomplete";
1724
- timestamp?: number;
1725
- } | {
1726
- model?: string;
1727
- id?: string;
1728
- type?: "function_call_output";
1729
- name?: string;
1730
- call_id?: string;
1731
- status?: "in_progress" | "completed" | "incomplete";
1732
- timestamp?: number;
1733
- output?: string;
1734
- })[];
1735
- tools?: {
1736
- function?: {
1737
- parameters?: {
1738
- required?: string[];
1739
- type?: "object";
1740
- properties?: Record<string, any>;
1741
- };
1742
- name?: string;
1743
- description?: string;
1744
- };
1745
- type?: "function";
1746
- }[];
1747
- max_tokens?: number;
1748
- top_p?: number;
1749
- stream?: boolean;
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
- model?: string;
1765
- cost?: number;
1766
- timestamp?: Date;
1767
- metadata?: Record<string, unknown>;
1768
- input_tokens?: number;
1769
- output_tokens?: number;
1770
- cached_tokens?: number;
1771
- image_count?: number;
1772
- isFreeTierUsage?: boolean;
1773
- }, {
1774
- model?: string;
1775
- cost?: number;
1776
- timestamp?: Date;
1777
- metadata?: Record<string, unknown>;
1778
- input_tokens?: number;
1779
- output_tokens?: number;
1780
- cached_tokens?: number;
1781
- image_count?: number;
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