openai-mcp-test 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1367) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +487 -0
  3. package/api-promise.d.mts +2 -0
  4. package/api-promise.d.mts.map +1 -0
  5. package/api-promise.d.ts +2 -0
  6. package/api-promise.d.ts.map +1 -0
  7. package/api-promise.js +6 -0
  8. package/api-promise.js.map +1 -0
  9. package/api-promise.mjs +2 -0
  10. package/api-promise.mjs.map +1 -0
  11. package/bin/cli +46 -0
  12. package/bin/migration-config.json +1043 -0
  13. package/client.d.mts +293 -0
  14. package/client.d.mts.map +1 -0
  15. package/client.d.ts +293 -0
  16. package/client.d.ts.map +1 -0
  17. package/client.js +557 -0
  18. package/client.js.map +1 -0
  19. package/client.mjs +553 -0
  20. package/client.mjs.map +1 -0
  21. package/core/api-promise.d.mts +46 -0
  22. package/core/api-promise.d.mts.map +1 -0
  23. package/core/api-promise.d.ts +46 -0
  24. package/core/api-promise.d.ts.map +1 -0
  25. package/core/api-promise.js +74 -0
  26. package/core/api-promise.js.map +1 -0
  27. package/core/api-promise.mjs +70 -0
  28. package/core/api-promise.mjs.map +1 -0
  29. package/core/error.d.mts +50 -0
  30. package/core/error.d.mts.map +1 -0
  31. package/core/error.d.ts +50 -0
  32. package/core/error.d.ts.map +1 -0
  33. package/core/error.js +118 -0
  34. package/core/error.js.map +1 -0
  35. package/core/error.mjs +102 -0
  36. package/core/error.mjs.map +1 -0
  37. package/core/pagination.d.mts +89 -0
  38. package/core/pagination.d.mts.map +1 -0
  39. package/core/pagination.d.ts +89 -0
  40. package/core/pagination.d.ts.map +1 -0
  41. package/core/pagination.js +156 -0
  42. package/core/pagination.js.map +1 -0
  43. package/core/pagination.mjs +148 -0
  44. package/core/pagination.mjs.map +1 -0
  45. package/core/resource.d.mts +6 -0
  46. package/core/resource.d.mts.map +1 -0
  47. package/core/resource.d.ts +6 -0
  48. package/core/resource.d.ts.map +1 -0
  49. package/core/resource.js +11 -0
  50. package/core/resource.js.map +1 -0
  51. package/core/resource.mjs +7 -0
  52. package/core/resource.mjs.map +1 -0
  53. package/core/streaming.d.mts +33 -0
  54. package/core/streaming.d.mts.map +1 -0
  55. package/core/streaming.d.ts +33 -0
  56. package/core/streaming.d.ts.map +1 -0
  57. package/core/streaming.js +277 -0
  58. package/core/streaming.js.map +1 -0
  59. package/core/streaming.mjs +272 -0
  60. package/core/streaming.mjs.map +1 -0
  61. package/core/uploads.d.mts +3 -0
  62. package/core/uploads.d.mts.map +1 -0
  63. package/core/uploads.d.ts +3 -0
  64. package/core/uploads.d.ts.map +1 -0
  65. package/core/uploads.js +6 -0
  66. package/core/uploads.js.map +1 -0
  67. package/core/uploads.mjs +2 -0
  68. package/core/uploads.mjs.map +1 -0
  69. package/error.d.mts +2 -0
  70. package/error.d.mts.map +1 -0
  71. package/error.d.ts +2 -0
  72. package/error.d.ts.map +1 -0
  73. package/error.js +6 -0
  74. package/error.js.map +1 -0
  75. package/error.mjs +2 -0
  76. package/error.mjs.map +1 -0
  77. package/index.d.mts +7 -0
  78. package/index.d.mts.map +1 -0
  79. package/index.d.ts +7 -0
  80. package/index.d.ts.map +1 -0
  81. package/index.js +32 -0
  82. package/index.js.map +1 -0
  83. package/index.mjs +8 -0
  84. package/index.mjs.map +1 -0
  85. package/internal/builtin-types.d.mts +73 -0
  86. package/internal/builtin-types.d.mts.map +1 -0
  87. package/internal/builtin-types.d.ts +73 -0
  88. package/internal/builtin-types.d.ts.map +1 -0
  89. package/internal/builtin-types.js +4 -0
  90. package/internal/builtin-types.js.map +1 -0
  91. package/internal/builtin-types.mjs +3 -0
  92. package/internal/builtin-types.mjs.map +1 -0
  93. package/internal/decoders/line.d.mts +17 -0
  94. package/internal/decoders/line.d.mts.map +1 -0
  95. package/internal/decoders/line.d.ts +17 -0
  96. package/internal/decoders/line.d.ts.map +1 -0
  97. package/internal/decoders/line.js +113 -0
  98. package/internal/decoders/line.js.map +1 -0
  99. package/internal/decoders/line.mjs +108 -0
  100. package/internal/decoders/line.mjs.map +1 -0
  101. package/internal/detect-platform.d.mts +15 -0
  102. package/internal/detect-platform.d.mts.map +1 -0
  103. package/internal/detect-platform.d.ts +15 -0
  104. package/internal/detect-platform.d.ts.map +1 -0
  105. package/internal/detect-platform.js +162 -0
  106. package/internal/detect-platform.js.map +1 -0
  107. package/internal/detect-platform.mjs +157 -0
  108. package/internal/detect-platform.mjs.map +1 -0
  109. package/internal/errors.d.mts +3 -0
  110. package/internal/errors.d.mts.map +1 -0
  111. package/internal/errors.d.ts +3 -0
  112. package/internal/errors.d.ts.map +1 -0
  113. package/internal/errors.js +41 -0
  114. package/internal/errors.js.map +1 -0
  115. package/internal/errors.mjs +36 -0
  116. package/internal/errors.mjs.map +1 -0
  117. package/internal/headers.d.mts +20 -0
  118. package/internal/headers.d.mts.map +1 -0
  119. package/internal/headers.d.ts +20 -0
  120. package/internal/headers.d.ts.map +1 -0
  121. package/internal/headers.js +79 -0
  122. package/internal/headers.js.map +1 -0
  123. package/internal/headers.mjs +74 -0
  124. package/internal/headers.mjs.map +1 -0
  125. package/internal/parse.d.mts +12 -0
  126. package/internal/parse.d.mts.map +1 -0
  127. package/internal/parse.d.ts +12 -0
  128. package/internal/parse.d.ts.map +1 -0
  129. package/internal/parse.js +50 -0
  130. package/internal/parse.js.map +1 -0
  131. package/internal/parse.mjs +47 -0
  132. package/internal/parse.mjs.map +1 -0
  133. package/internal/qs/formats.d.mts +7 -0
  134. package/internal/qs/formats.d.mts.map +1 -0
  135. package/internal/qs/formats.d.ts +7 -0
  136. package/internal/qs/formats.d.ts.map +1 -0
  137. package/internal/qs/formats.js +13 -0
  138. package/internal/qs/formats.js.map +1 -0
  139. package/internal/qs/formats.mjs +9 -0
  140. package/internal/qs/formats.mjs.map +1 -0
  141. package/internal/qs/index.d.mts +10 -0
  142. package/internal/qs/index.d.mts.map +1 -0
  143. package/internal/qs/index.d.ts +10 -0
  144. package/internal/qs/index.d.ts.map +1 -0
  145. package/internal/qs/index.js +14 -0
  146. package/internal/qs/index.js.map +1 -0
  147. package/internal/qs/index.mjs +10 -0
  148. package/internal/qs/index.mjs.map +1 -0
  149. package/internal/qs/stringify.d.mts +3 -0
  150. package/internal/qs/stringify.d.mts.map +1 -0
  151. package/internal/qs/stringify.d.ts +3 -0
  152. package/internal/qs/stringify.d.ts.map +1 -0
  153. package/internal/qs/stringify.js +277 -0
  154. package/internal/qs/stringify.js.map +1 -0
  155. package/internal/qs/stringify.mjs +274 -0
  156. package/internal/qs/stringify.mjs.map +1 -0
  157. package/internal/qs/types.d.mts +57 -0
  158. package/internal/qs/types.d.mts.map +1 -0
  159. package/internal/qs/types.d.ts +57 -0
  160. package/internal/qs/types.d.ts.map +1 -0
  161. package/internal/qs/types.js +3 -0
  162. package/internal/qs/types.js.map +1 -0
  163. package/internal/qs/types.mjs +2 -0
  164. package/internal/qs/types.mjs.map +1 -0
  165. package/internal/qs/utils.d.mts +15 -0
  166. package/internal/qs/utils.d.mts.map +1 -0
  167. package/internal/qs/utils.d.ts +15 -0
  168. package/internal/qs/utils.d.ts.map +1 -0
  169. package/internal/qs/utils.js +230 -0
  170. package/internal/qs/utils.js.map +1 -0
  171. package/internal/qs/utils.mjs +217 -0
  172. package/internal/qs/utils.mjs.map +1 -0
  173. package/internal/request-options.d.mts +77 -0
  174. package/internal/request-options.d.mts.map +1 -0
  175. package/internal/request-options.d.ts +77 -0
  176. package/internal/request-options.d.ts.map +1 -0
  177. package/internal/request-options.js +14 -0
  178. package/internal/request-options.js.map +1 -0
  179. package/internal/request-options.mjs +10 -0
  180. package/internal/request-options.mjs.map +1 -0
  181. package/internal/shim-types.d.mts +17 -0
  182. package/internal/shim-types.d.mts.map +1 -0
  183. package/internal/shim-types.d.ts +17 -0
  184. package/internal/shim-types.d.ts.map +1 -0
  185. package/internal/shim-types.js +4 -0
  186. package/internal/shim-types.js.map +1 -0
  187. package/internal/shim-types.mjs +3 -0
  188. package/internal/shim-types.mjs.map +1 -0
  189. package/internal/shims.d.mts +20 -0
  190. package/internal/shims.d.mts.map +1 -0
  191. package/internal/shims.d.ts +20 -0
  192. package/internal/shims.d.ts.map +1 -0
  193. package/internal/shims.js +92 -0
  194. package/internal/shims.js.map +1 -0
  195. package/internal/shims.mjs +85 -0
  196. package/internal/shims.mjs.map +1 -0
  197. package/internal/to-file.d.mts +45 -0
  198. package/internal/to-file.d.mts.map +1 -0
  199. package/internal/to-file.d.ts +45 -0
  200. package/internal/to-file.d.ts.map +1 -0
  201. package/internal/to-file.js +91 -0
  202. package/internal/to-file.js.map +1 -0
  203. package/internal/to-file.mjs +88 -0
  204. package/internal/to-file.mjs.map +1 -0
  205. package/internal/tslib.js +81 -0
  206. package/internal/tslib.mjs +17 -0
  207. package/internal/types.d.mts +69 -0
  208. package/internal/types.d.mts.map +1 -0
  209. package/internal/types.d.ts +69 -0
  210. package/internal/types.d.ts.map +1 -0
  211. package/internal/types.js +4 -0
  212. package/internal/types.js.map +1 -0
  213. package/internal/types.mjs +3 -0
  214. package/internal/types.mjs.map +1 -0
  215. package/internal/uploads.d.mts +42 -0
  216. package/internal/uploads.d.mts.map +1 -0
  217. package/internal/uploads.d.ts +42 -0
  218. package/internal/uploads.d.ts.map +1 -0
  219. package/internal/uploads.js +141 -0
  220. package/internal/uploads.js.map +1 -0
  221. package/internal/uploads.mjs +131 -0
  222. package/internal/uploads.mjs.map +1 -0
  223. package/internal/utils/base64.d.mts +3 -0
  224. package/internal/utils/base64.d.mts.map +1 -0
  225. package/internal/utils/base64.d.ts +3 -0
  226. package/internal/utils/base64.d.ts.map +1 -0
  227. package/internal/utils/base64.js +38 -0
  228. package/internal/utils/base64.js.map +1 -0
  229. package/internal/utils/base64.mjs +33 -0
  230. package/internal/utils/base64.mjs.map +1 -0
  231. package/internal/utils/bytes.d.mts +4 -0
  232. package/internal/utils/bytes.d.mts.map +1 -0
  233. package/internal/utils/bytes.d.ts +4 -0
  234. package/internal/utils/bytes.d.ts.map +1 -0
  235. package/internal/utils/bytes.js +31 -0
  236. package/internal/utils/bytes.js.map +1 -0
  237. package/internal/utils/bytes.mjs +26 -0
  238. package/internal/utils/bytes.mjs.map +1 -0
  239. package/internal/utils/env.d.mts +9 -0
  240. package/internal/utils/env.d.mts.map +1 -0
  241. package/internal/utils/env.d.ts +9 -0
  242. package/internal/utils/env.d.ts.map +1 -0
  243. package/internal/utils/env.js +22 -0
  244. package/internal/utils/env.js.map +1 -0
  245. package/internal/utils/env.mjs +18 -0
  246. package/internal/utils/env.mjs.map +1 -0
  247. package/internal/utils/log.d.mts +37 -0
  248. package/internal/utils/log.d.mts.map +1 -0
  249. package/internal/utils/log.d.ts +37 -0
  250. package/internal/utils/log.d.ts.map +1 -0
  251. package/internal/utils/log.js +85 -0
  252. package/internal/utils/log.js.map +1 -0
  253. package/internal/utils/log.mjs +79 -0
  254. package/internal/utils/log.mjs.map +1 -0
  255. package/internal/utils/path.d.mts +15 -0
  256. package/internal/utils/path.d.mts.map +1 -0
  257. package/internal/utils/path.d.ts +15 -0
  258. package/internal/utils/path.d.ts.map +1 -0
  259. package/internal/utils/path.js +79 -0
  260. package/internal/utils/path.js.map +1 -0
  261. package/internal/utils/path.mjs +74 -0
  262. package/internal/utils/path.mjs.map +1 -0
  263. package/internal/utils/sleep.d.mts +2 -0
  264. package/internal/utils/sleep.d.mts.map +1 -0
  265. package/internal/utils/sleep.d.ts +2 -0
  266. package/internal/utils/sleep.d.ts.map +1 -0
  267. package/internal/utils/sleep.js +7 -0
  268. package/internal/utils/sleep.js.map +1 -0
  269. package/internal/utils/sleep.mjs +3 -0
  270. package/internal/utils/sleep.mjs.map +1 -0
  271. package/internal/utils/uuid.d.mts +5 -0
  272. package/internal/utils/uuid.d.mts.map +1 -0
  273. package/internal/utils/uuid.d.ts +5 -0
  274. package/internal/utils/uuid.d.ts.map +1 -0
  275. package/internal/utils/uuid.js +19 -0
  276. package/internal/utils/uuid.js.map +1 -0
  277. package/internal/utils/uuid.mjs +15 -0
  278. package/internal/utils/uuid.mjs.map +1 -0
  279. package/internal/utils/values.d.mts +18 -0
  280. package/internal/utils/values.d.mts.map +1 -0
  281. package/internal/utils/values.d.ts +18 -0
  282. package/internal/utils/values.d.ts.map +1 -0
  283. package/internal/utils/values.js +112 -0
  284. package/internal/utils/values.js.map +1 -0
  285. package/internal/utils/values.mjs +94 -0
  286. package/internal/utils/values.mjs.map +1 -0
  287. package/internal/utils.d.mts +7 -0
  288. package/internal/utils.d.mts.map +1 -0
  289. package/internal/utils.d.ts +7 -0
  290. package/internal/utils.d.ts.map +1 -0
  291. package/internal/utils.js +11 -0
  292. package/internal/utils.js.map +1 -0
  293. package/internal/utils.mjs +8 -0
  294. package/internal/utils.mjs.map +1 -0
  295. package/package.json +161 -0
  296. package/pagination.d.mts +2 -0
  297. package/pagination.d.mts.map +1 -0
  298. package/pagination.d.ts +2 -0
  299. package/pagination.d.ts.map +1 -0
  300. package/pagination.js +6 -0
  301. package/pagination.js.map +1 -0
  302. package/pagination.mjs +2 -0
  303. package/pagination.mjs.map +1 -0
  304. package/resource.d.mts +2 -0
  305. package/resource.d.mts.map +1 -0
  306. package/resource.d.ts +2 -0
  307. package/resource.d.ts.map +1 -0
  308. package/resource.js +6 -0
  309. package/resource.js.map +1 -0
  310. package/resource.mjs +2 -0
  311. package/resource.mjs.map +1 -0
  312. package/resources/audio/audio.d.mts +28 -0
  313. package/resources/audio/audio.d.mts.map +1 -0
  314. package/resources/audio/audio.d.ts +28 -0
  315. package/resources/audio/audio.d.ts.map +1 -0
  316. package/resources/audio/audio.js +25 -0
  317. package/resources/audio/audio.js.map +1 -0
  318. package/resources/audio/audio.mjs +20 -0
  319. package/resources/audio/audio.mjs.map +1 -0
  320. package/resources/audio/index.d.mts +5 -0
  321. package/resources/audio/index.d.mts.map +1 -0
  322. package/resources/audio/index.d.ts +5 -0
  323. package/resources/audio/index.d.ts.map +1 -0
  324. package/resources/audio/index.js +13 -0
  325. package/resources/audio/index.js.map +1 -0
  326. package/resources/audio/index.mjs +6 -0
  327. package/resources/audio/index.mjs.map +1 -0
  328. package/resources/audio/speech.d.mts +67 -0
  329. package/resources/audio/speech.d.mts.map +1 -0
  330. package/resources/audio/speech.d.ts +67 -0
  331. package/resources/audio/speech.d.ts.map +1 -0
  332. package/resources/audio/speech.js +35 -0
  333. package/resources/audio/speech.js.map +1 -0
  334. package/resources/audio/speech.mjs +31 -0
  335. package/resources/audio/speech.mjs.map +1 -0
  336. package/resources/audio/transcriptions.d.mts +656 -0
  337. package/resources/audio/transcriptions.d.mts.map +1 -0
  338. package/resources/audio/transcriptions.d.ts +656 -0
  339. package/resources/audio/transcriptions.d.ts.map +1 -0
  340. package/resources/audio/transcriptions.js +13 -0
  341. package/resources/audio/transcriptions.js.map +1 -0
  342. package/resources/audio/transcriptions.mjs +9 -0
  343. package/resources/audio/transcriptions.mjs.map +1 -0
  344. package/resources/audio/translations.d.mts +78 -0
  345. package/resources/audio/translations.d.mts.map +1 -0
  346. package/resources/audio/translations.d.ts +78 -0
  347. package/resources/audio/translations.d.ts.map +1 -0
  348. package/resources/audio/translations.js +24 -0
  349. package/resources/audio/translations.js.map +1 -0
  350. package/resources/audio/translations.mjs +20 -0
  351. package/resources/audio/translations.mjs.map +1 -0
  352. package/resources/audio.d.mts +2 -0
  353. package/resources/audio.d.mts.map +1 -0
  354. package/resources/audio.d.ts +2 -0
  355. package/resources/audio.d.ts.map +1 -0
  356. package/resources/audio.js +6 -0
  357. package/resources/audio.js.map +1 -0
  358. package/resources/audio.mjs +3 -0
  359. package/resources/audio.mjs.map +1 -0
  360. package/resources/batches.d.mts +280 -0
  361. package/resources/batches.d.mts.map +1 -0
  362. package/resources/batches.d.ts +280 -0
  363. package/resources/batches.d.ts.map +1 -0
  364. package/resources/batches.js +37 -0
  365. package/resources/batches.js.map +1 -0
  366. package/resources/batches.mjs +33 -0
  367. package/resources/batches.mjs.map +1 -0
  368. package/resources/beta/assistants.d.mts +1221 -0
  369. package/resources/beta/assistants.d.mts.map +1 -0
  370. package/resources/beta/assistants.d.ts +1221 -0
  371. package/resources/beta/assistants.d.ts.map +1 -0
  372. package/resources/beta/assistants.js +70 -0
  373. package/resources/beta/assistants.js.map +1 -0
  374. package/resources/beta/assistants.mjs +66 -0
  375. package/resources/beta/assistants.mjs.map +1 -0
  376. package/resources/beta/beta.d.mts +18 -0
  377. package/resources/beta/beta.d.mts.map +1 -0
  378. package/resources/beta/beta.d.ts +18 -0
  379. package/resources/beta/beta.d.ts.map +1 -0
  380. package/resources/beta/beta.js +25 -0
  381. package/resources/beta/beta.js.map +1 -0
  382. package/resources/beta/beta.mjs +20 -0
  383. package/resources/beta/beta.mjs.map +1 -0
  384. package/resources/beta/chatkit/chatkit.d.mts +51 -0
  385. package/resources/beta/chatkit/chatkit.d.mts.map +1 -0
  386. package/resources/beta/chatkit/chatkit.d.ts +51 -0
  387. package/resources/beta/chatkit/chatkit.d.ts.map +1 -0
  388. package/resources/beta/chatkit/chatkit.js +21 -0
  389. package/resources/beta/chatkit/chatkit.js.map +1 -0
  390. package/resources/beta/chatkit/chatkit.mjs +16 -0
  391. package/resources/beta/chatkit/chatkit.mjs.map +1 -0
  392. package/resources/beta/chatkit/index.d.mts +4 -0
  393. package/resources/beta/chatkit/index.d.mts.map +1 -0
  394. package/resources/beta/chatkit/index.d.ts +4 -0
  395. package/resources/beta/chatkit/index.d.ts.map +1 -0
  396. package/resources/beta/chatkit/index.js +11 -0
  397. package/resources/beta/chatkit/index.js.map +1 -0
  398. package/resources/beta/chatkit/index.mjs +5 -0
  399. package/resources/beta/chatkit/index.mjs.map +1 -0
  400. package/resources/beta/chatkit/sessions.d.mts +59 -0
  401. package/resources/beta/chatkit/sessions.d.mts.map +1 -0
  402. package/resources/beta/chatkit/sessions.d.ts +59 -0
  403. package/resources/beta/chatkit/sessions.d.ts.map +1 -0
  404. package/resources/beta/chatkit/sessions.js +47 -0
  405. package/resources/beta/chatkit/sessions.js.map +1 -0
  406. package/resources/beta/chatkit/sessions.mjs +43 -0
  407. package/resources/beta/chatkit/sessions.mjs.map +1 -0
  408. package/resources/beta/chatkit/threads.d.mts +811 -0
  409. package/resources/beta/chatkit/threads.d.mts.map +1 -0
  410. package/resources/beta/chatkit/threads.d.ts +811 -0
  411. package/resources/beta/chatkit/threads.d.ts.map +1 -0
  412. package/resources/beta/chatkit/threads.js +77 -0
  413. package/resources/beta/chatkit/threads.js.map +1 -0
  414. package/resources/beta/chatkit/threads.mjs +73 -0
  415. package/resources/beta/chatkit/threads.mjs.map +1 -0
  416. package/resources/beta/chatkit.d.mts +2 -0
  417. package/resources/beta/chatkit.d.mts.map +1 -0
  418. package/resources/beta/chatkit.d.ts +2 -0
  419. package/resources/beta/chatkit.d.ts.map +1 -0
  420. package/resources/beta/chatkit.js +6 -0
  421. package/resources/beta/chatkit.js.map +1 -0
  422. package/resources/beta/chatkit.mjs +3 -0
  423. package/resources/beta/chatkit.mjs.map +1 -0
  424. package/resources/beta/index.d.mts +5 -0
  425. package/resources/beta/index.d.mts.map +1 -0
  426. package/resources/beta/index.d.ts +5 -0
  427. package/resources/beta/index.d.ts.map +1 -0
  428. package/resources/beta/index.js +13 -0
  429. package/resources/beta/index.js.map +1 -0
  430. package/resources/beta/index.mjs +6 -0
  431. package/resources/beta/index.mjs.map +1 -0
  432. package/resources/beta/threads/index.d.mts +4 -0
  433. package/resources/beta/threads/index.d.mts.map +1 -0
  434. package/resources/beta/threads/index.d.ts +4 -0
  435. package/resources/beta/threads/index.d.ts.map +1 -0
  436. package/resources/beta/threads/index.js +11 -0
  437. package/resources/beta/threads/index.js.map +1 -0
  438. package/resources/beta/threads/index.mjs +5 -0
  439. package/resources/beta/threads/index.mjs.map +1 -0
  440. package/resources/beta/threads/messages.d.mts +594 -0
  441. package/resources/beta/threads/messages.d.mts.map +1 -0
  442. package/resources/beta/threads/messages.d.ts +594 -0
  443. package/resources/beta/threads/messages.d.ts.map +1 -0
  444. package/resources/beta/threads/messages.js +76 -0
  445. package/resources/beta/threads/messages.js.map +1 -0
  446. package/resources/beta/threads/messages.mjs +72 -0
  447. package/resources/beta/threads/messages.mjs.map +1 -0
  448. package/resources/beta/threads/runs/index.d.mts +3 -0
  449. package/resources/beta/threads/runs/index.d.mts.map +1 -0
  450. package/resources/beta/threads/runs/index.d.ts +3 -0
  451. package/resources/beta/threads/runs/index.d.ts.map +1 -0
  452. package/resources/beta/threads/runs/index.js +9 -0
  453. package/resources/beta/threads/runs/index.js.map +1 -0
  454. package/resources/beta/threads/runs/index.mjs +4 -0
  455. package/resources/beta/threads/runs/index.mjs.map +1 -0
  456. package/resources/beta/threads/runs/runs.d.mts +694 -0
  457. package/resources/beta/threads/runs/runs.d.mts.map +1 -0
  458. package/resources/beta/threads/runs/runs.d.ts +694 -0
  459. package/resources/beta/threads/runs/runs.d.ts.map +1 -0
  460. package/resources/beta/threads/runs/runs.js +91 -0
  461. package/resources/beta/threads/runs/runs.js.map +1 -0
  462. package/resources/beta/threads/runs/runs.mjs +86 -0
  463. package/resources/beta/threads/runs/runs.mjs.map +1 -0
  464. package/resources/beta/threads/runs/steps.d.mts +615 -0
  465. package/resources/beta/threads/runs/steps.d.mts.map +1 -0
  466. package/resources/beta/threads/runs/steps.d.ts +615 -0
  467. package/resources/beta/threads/runs/steps.d.ts.map +1 -0
  468. package/resources/beta/threads/runs/steps.js +41 -0
  469. package/resources/beta/threads/runs/steps.js.map +1 -0
  470. package/resources/beta/threads/runs/steps.mjs +37 -0
  471. package/resources/beta/threads/runs/steps.mjs.map +1 -0
  472. package/resources/beta/threads/runs.d.mts +2 -0
  473. package/resources/beta/threads/runs.d.mts.map +1 -0
  474. package/resources/beta/threads/runs.d.ts +2 -0
  475. package/resources/beta/threads/runs.d.ts.map +1 -0
  476. package/resources/beta/threads/runs.js +6 -0
  477. package/resources/beta/threads/runs.js.map +1 -0
  478. package/resources/beta/threads/runs.mjs +3 -0
  479. package/resources/beta/threads/runs.mjs.map +1 -0
  480. package/resources/beta/threads/threads.d.mts +757 -0
  481. package/resources/beta/threads/threads.d.mts.map +1 -0
  482. package/resources/beta/threads/threads.d.ts +757 -0
  483. package/resources/beta/threads/threads.d.ts.map +1 -0
  484. package/resources/beta/threads/threads.js +80 -0
  485. package/resources/beta/threads/threads.js.map +1 -0
  486. package/resources/beta/threads/threads.mjs +75 -0
  487. package/resources/beta/threads/threads.mjs.map +1 -0
  488. package/resources/beta/threads.d.mts +2 -0
  489. package/resources/beta/threads.d.mts.map +1 -0
  490. package/resources/beta/threads.d.ts +2 -0
  491. package/resources/beta/threads.d.ts.map +1 -0
  492. package/resources/beta/threads.js +6 -0
  493. package/resources/beta/threads.js.map +1 -0
  494. package/resources/beta/threads.mjs +3 -0
  495. package/resources/beta/threads.mjs.map +1 -0
  496. package/resources/beta.d.mts +2 -0
  497. package/resources/beta.d.mts.map +1 -0
  498. package/resources/beta.d.ts +2 -0
  499. package/resources/beta.d.ts.map +1 -0
  500. package/resources/beta.js +6 -0
  501. package/resources/beta.js.map +1 -0
  502. package/resources/beta.mjs +3 -0
  503. package/resources/beta.mjs.map +1 -0
  504. package/resources/chat/chat.d.mts +13 -0
  505. package/resources/chat/chat.d.mts.map +1 -0
  506. package/resources/chat/chat.d.ts +13 -0
  507. package/resources/chat/chat.d.ts.map +1 -0
  508. package/resources/chat/chat.js +17 -0
  509. package/resources/chat/chat.js.map +1 -0
  510. package/resources/chat/chat.mjs +12 -0
  511. package/resources/chat/chat.mjs.map +1 -0
  512. package/resources/chat/completions/completions.d.mts +1598 -0
  513. package/resources/chat/completions/completions.d.mts.map +1 -0
  514. package/resources/chat/completions/completions.d.ts +1598 -0
  515. package/resources/chat/completions/completions.d.ts.map +1 -0
  516. package/resources/chat/completions/completions.js +79 -0
  517. package/resources/chat/completions/completions.js.map +1 -0
  518. package/resources/chat/completions/completions.mjs +74 -0
  519. package/resources/chat/completions/completions.mjs.map +1 -0
  520. package/resources/chat/completions/index.d.mts +3 -0
  521. package/resources/chat/completions/index.d.mts.map +1 -0
  522. package/resources/chat/completions/index.d.ts +3 -0
  523. package/resources/chat/completions/index.d.ts.map +1 -0
  524. package/resources/chat/completions/index.js +9 -0
  525. package/resources/chat/completions/index.js.map +1 -0
  526. package/resources/chat/completions/index.mjs +4 -0
  527. package/resources/chat/completions/index.mjs.map +1 -0
  528. package/resources/chat/completions/messages.d.mts +34 -0
  529. package/resources/chat/completions/messages.d.mts.map +1 -0
  530. package/resources/chat/completions/messages.d.ts +34 -0
  531. package/resources/chat/completions/messages.d.ts.map +1 -0
  532. package/resources/chat/completions/messages.js +28 -0
  533. package/resources/chat/completions/messages.js.map +1 -0
  534. package/resources/chat/completions/messages.mjs +24 -0
  535. package/resources/chat/completions/messages.mjs.map +1 -0
  536. package/resources/chat/completions.d.mts +2 -0
  537. package/resources/chat/completions.d.mts.map +1 -0
  538. package/resources/chat/completions.d.ts +2 -0
  539. package/resources/chat/completions.d.ts.map +1 -0
  540. package/resources/chat/completions.js +6 -0
  541. package/resources/chat/completions.js.map +1 -0
  542. package/resources/chat/completions.mjs +3 -0
  543. package/resources/chat/completions.mjs.map +1 -0
  544. package/resources/chat/index.d.mts +3 -0
  545. package/resources/chat/index.d.mts.map +1 -0
  546. package/resources/chat/index.d.ts +3 -0
  547. package/resources/chat/index.d.ts.map +1 -0
  548. package/resources/chat/index.js +9 -0
  549. package/resources/chat/index.js.map +1 -0
  550. package/resources/chat/index.mjs +4 -0
  551. package/resources/chat/index.mjs.map +1 -0
  552. package/resources/chat.d.mts +2 -0
  553. package/resources/chat.d.mts.map +1 -0
  554. package/resources/chat.d.ts +2 -0
  555. package/resources/chat.d.ts.map +1 -0
  556. package/resources/chat.js +6 -0
  557. package/resources/chat.js.map +1 -0
  558. package/resources/chat.mjs +3 -0
  559. package/resources/chat.mjs.map +1 -0
  560. package/resources/completions.d.mts +332 -0
  561. package/resources/completions.d.mts.map +1 -0
  562. package/resources/completions.d.ts +332 -0
  563. package/resources/completions.d.ts.map +1 -0
  564. package/resources/completions.js +12 -0
  565. package/resources/completions.js.map +1 -0
  566. package/resources/completions.mjs +8 -0
  567. package/resources/completions.mjs.map +1 -0
  568. package/resources/containers/containers.d.mts +292 -0
  569. package/resources/containers/containers.d.mts.map +1 -0
  570. package/resources/containers/containers.d.ts +292 -0
  571. package/resources/containers/containers.d.ts.map +1 -0
  572. package/resources/containers/containers.js +47 -0
  573. package/resources/containers/containers.js.map +1 -0
  574. package/resources/containers/containers.mjs +42 -0
  575. package/resources/containers/containers.mjs.map +1 -0
  576. package/resources/containers/files/content.d.mts +16 -0
  577. package/resources/containers/files/content.d.mts.map +1 -0
  578. package/resources/containers/files/content.d.ts +16 -0
  579. package/resources/containers/files/content.d.ts.map +1 -0
  580. package/resources/containers/files/content.js +22 -0
  581. package/resources/containers/files/content.js.map +1 -0
  582. package/resources/containers/files/content.mjs +18 -0
  583. package/resources/containers/files/content.mjs.map +1 -0
  584. package/resources/containers/files/files.d.mts +148 -0
  585. package/resources/containers/files/files.d.mts.map +1 -0
  586. package/resources/containers/files/files.d.ts +148 -0
  587. package/resources/containers/files/files.d.ts.map +1 -0
  588. package/resources/containers/files/files.js +56 -0
  589. package/resources/containers/files/files.js.map +1 -0
  590. package/resources/containers/files/files.mjs +51 -0
  591. package/resources/containers/files/files.mjs.map +1 -0
  592. package/resources/containers/files/index.d.mts +3 -0
  593. package/resources/containers/files/index.d.mts.map +1 -0
  594. package/resources/containers/files/index.d.ts +3 -0
  595. package/resources/containers/files/index.d.ts.map +1 -0
  596. package/resources/containers/files/index.js +9 -0
  597. package/resources/containers/files/index.js.map +1 -0
  598. package/resources/containers/files/index.mjs +4 -0
  599. package/resources/containers/files/index.mjs.map +1 -0
  600. package/resources/containers/files.d.mts +2 -0
  601. package/resources/containers/files.d.mts.map +1 -0
  602. package/resources/containers/files.d.ts +2 -0
  603. package/resources/containers/files.d.ts.map +1 -0
  604. package/resources/containers/files.js +6 -0
  605. package/resources/containers/files.js.map +1 -0
  606. package/resources/containers/files.mjs +3 -0
  607. package/resources/containers/files.mjs.map +1 -0
  608. package/resources/containers/index.d.mts +3 -0
  609. package/resources/containers/index.d.mts.map +1 -0
  610. package/resources/containers/index.d.ts +3 -0
  611. package/resources/containers/index.d.ts.map +1 -0
  612. package/resources/containers/index.js +9 -0
  613. package/resources/containers/index.js.map +1 -0
  614. package/resources/containers/index.mjs +4 -0
  615. package/resources/containers/index.mjs.map +1 -0
  616. package/resources/containers.d.mts +2 -0
  617. package/resources/containers.d.mts.map +1 -0
  618. package/resources/containers.d.ts +2 -0
  619. package/resources/containers.d.ts.map +1 -0
  620. package/resources/containers.js +6 -0
  621. package/resources/containers.js.map +1 -0
  622. package/resources/containers.mjs +3 -0
  623. package/resources/containers.mjs.map +1 -0
  624. package/resources/conversations/conversations.d.mts +176 -0
  625. package/resources/conversations/conversations.d.mts.map +1 -0
  626. package/resources/conversations/conversations.d.ts +176 -0
  627. package/resources/conversations/conversations.d.ts.map +1 -0
  628. package/resources/conversations/conversations.js +42 -0
  629. package/resources/conversations/conversations.js.map +1 -0
  630. package/resources/conversations/conversations.mjs +37 -0
  631. package/resources/conversations/conversations.mjs.map +1 -0
  632. package/resources/conversations/index.d.mts +3 -0
  633. package/resources/conversations/index.d.mts.map +1 -0
  634. package/resources/conversations/index.d.ts +3 -0
  635. package/resources/conversations/index.d.ts.map +1 -0
  636. package/resources/conversations/index.js +9 -0
  637. package/resources/conversations/index.js.map +1 -0
  638. package/resources/conversations/index.mjs +4 -0
  639. package/resources/conversations/index.mjs.map +1 -0
  640. package/resources/conversations/items.d.mts +367 -0
  641. package/resources/conversations/items.d.mts.map +1 -0
  642. package/resources/conversations/items.d.ts +367 -0
  643. package/resources/conversations/items.d.ts.map +1 -0
  644. package/resources/conversations/items.js +42 -0
  645. package/resources/conversations/items.js.map +1 -0
  646. package/resources/conversations/items.mjs +38 -0
  647. package/resources/conversations/items.mjs.map +1 -0
  648. package/resources/conversations.d.mts +2 -0
  649. package/resources/conversations.d.mts.map +1 -0
  650. package/resources/conversations.d.ts +2 -0
  651. package/resources/conversations.d.ts.map +1 -0
  652. package/resources/conversations.js +6 -0
  653. package/resources/conversations.js.map +1 -0
  654. package/resources/conversations.mjs +3 -0
  655. package/resources/conversations.mjs.map +1 -0
  656. package/resources/embeddings.d.mts +113 -0
  657. package/resources/embeddings.d.mts.map +1 -0
  658. package/resources/embeddings.d.ts +113 -0
  659. package/resources/embeddings.d.ts.map +1 -0
  660. package/resources/embeddings.js +24 -0
  661. package/resources/embeddings.js.map +1 -0
  662. package/resources/embeddings.mjs +20 -0
  663. package/resources/embeddings.mjs.map +1 -0
  664. package/resources/evals/evals.d.mts +736 -0
  665. package/resources/evals/evals.d.mts.map +1 -0
  666. package/resources/evals/evals.d.ts +736 -0
  667. package/resources/evals/evals.d.ts.map +1 -0
  668. package/resources/evals/evals.js +54 -0
  669. package/resources/evals/evals.js.map +1 -0
  670. package/resources/evals/evals.mjs +49 -0
  671. package/resources/evals/evals.mjs.map +1 -0
  672. package/resources/evals/index.d.mts +3 -0
  673. package/resources/evals/index.d.mts.map +1 -0
  674. package/resources/evals/index.d.ts +3 -0
  675. package/resources/evals/index.d.ts.map +1 -0
  676. package/resources/evals/index.js +9 -0
  677. package/resources/evals/index.js.map +1 -0
  678. package/resources/evals/index.mjs +4 -0
  679. package/resources/evals/index.mjs.map +1 -0
  680. package/resources/evals/runs/index.d.mts +3 -0
  681. package/resources/evals/runs/index.d.mts.map +1 -0
  682. package/resources/evals/runs/index.d.ts +3 -0
  683. package/resources/evals/runs/index.d.ts.map +1 -0
  684. package/resources/evals/runs/index.js +9 -0
  685. package/resources/evals/runs/index.js.map +1 -0
  686. package/resources/evals/runs/index.mjs +4 -0
  687. package/resources/evals/runs/index.mjs.map +1 -0
  688. package/resources/evals/runs/output-items.d.mts +382 -0
  689. package/resources/evals/runs/output-items.d.mts.map +1 -0
  690. package/resources/evals/runs/output-items.d.ts +382 -0
  691. package/resources/evals/runs/output-items.d.ts.map +1 -0
  692. package/resources/evals/runs/output-items.js +25 -0
  693. package/resources/evals/runs/output-items.js.map +1 -0
  694. package/resources/evals/runs/output-items.mjs +21 -0
  695. package/resources/evals/runs/output-items.mjs.map +1 -0
  696. package/resources/evals/runs/runs.d.mts +2385 -0
  697. package/resources/evals/runs/runs.d.mts.map +1 -0
  698. package/resources/evals/runs/runs.d.ts +2385 -0
  699. package/resources/evals/runs/runs.d.ts.map +1 -0
  700. package/resources/evals/runs/runs.js +57 -0
  701. package/resources/evals/runs/runs.js.map +1 -0
  702. package/resources/evals/runs/runs.mjs +52 -0
  703. package/resources/evals/runs/runs.mjs.map +1 -0
  704. package/resources/evals/runs.d.mts +2 -0
  705. package/resources/evals/runs.d.mts.map +1 -0
  706. package/resources/evals/runs.d.ts +2 -0
  707. package/resources/evals/runs.d.ts.map +1 -0
  708. package/resources/evals/runs.js +6 -0
  709. package/resources/evals/runs.js.map +1 -0
  710. package/resources/evals/runs.mjs +3 -0
  711. package/resources/evals/runs.mjs.map +1 -0
  712. package/resources/evals.d.mts +2 -0
  713. package/resources/evals.d.mts.map +1 -0
  714. package/resources/evals.d.ts +2 -0
  715. package/resources/evals.d.ts.map +1 -0
  716. package/resources/evals.js +6 -0
  717. package/resources/evals.js.map +1 -0
  718. package/resources/evals.mjs +3 -0
  719. package/resources/evals.mjs.map +1 -0
  720. package/resources/files.d.mts +164 -0
  721. package/resources/files.d.mts.map +1 -0
  722. package/resources/files.d.ts +164 -0
  723. package/resources/files.d.ts.map +1 -0
  724. package/resources/files.js +66 -0
  725. package/resources/files.js.map +1 -0
  726. package/resources/files.mjs +62 -0
  727. package/resources/files.mjs.map +1 -0
  728. package/resources/fine-tuning/alpha/alpha.d.mts +10 -0
  729. package/resources/fine-tuning/alpha/alpha.d.mts.map +1 -0
  730. package/resources/fine-tuning/alpha/alpha.d.ts +10 -0
  731. package/resources/fine-tuning/alpha/alpha.d.ts.map +1 -0
  732. package/resources/fine-tuning/alpha/alpha.js +17 -0
  733. package/resources/fine-tuning/alpha/alpha.js.map +1 -0
  734. package/resources/fine-tuning/alpha/alpha.mjs +12 -0
  735. package/resources/fine-tuning/alpha/alpha.mjs.map +1 -0
  736. package/resources/fine-tuning/alpha/graders.d.mts +119 -0
  737. package/resources/fine-tuning/alpha/graders.d.mts.map +1 -0
  738. package/resources/fine-tuning/alpha/graders.d.ts +119 -0
  739. package/resources/fine-tuning/alpha/graders.d.ts.map +1 -0
  740. package/resources/fine-tuning/alpha/graders.js +49 -0
  741. package/resources/fine-tuning/alpha/graders.js.map +1 -0
  742. package/resources/fine-tuning/alpha/graders.mjs +45 -0
  743. package/resources/fine-tuning/alpha/graders.mjs.map +1 -0
  744. package/resources/fine-tuning/alpha/index.d.mts +3 -0
  745. package/resources/fine-tuning/alpha/index.d.mts.map +1 -0
  746. package/resources/fine-tuning/alpha/index.d.ts +3 -0
  747. package/resources/fine-tuning/alpha/index.d.ts.map +1 -0
  748. package/resources/fine-tuning/alpha/index.js +9 -0
  749. package/resources/fine-tuning/alpha/index.js.map +1 -0
  750. package/resources/fine-tuning/alpha/index.mjs +4 -0
  751. package/resources/fine-tuning/alpha/index.mjs.map +1 -0
  752. package/resources/fine-tuning/alpha.d.mts +2 -0
  753. package/resources/fine-tuning/alpha.d.mts.map +1 -0
  754. package/resources/fine-tuning/alpha.d.ts +2 -0
  755. package/resources/fine-tuning/alpha.d.ts.map +1 -0
  756. package/resources/fine-tuning/alpha.js +6 -0
  757. package/resources/fine-tuning/alpha.js.map +1 -0
  758. package/resources/fine-tuning/alpha.mjs +3 -0
  759. package/resources/fine-tuning/alpha.mjs.map +1 -0
  760. package/resources/fine-tuning/checkpoints/checkpoints.d.mts +10 -0
  761. package/resources/fine-tuning/checkpoints/checkpoints.d.mts.map +1 -0
  762. package/resources/fine-tuning/checkpoints/checkpoints.d.ts +10 -0
  763. package/resources/fine-tuning/checkpoints/checkpoints.d.ts.map +1 -0
  764. package/resources/fine-tuning/checkpoints/checkpoints.js +17 -0
  765. package/resources/fine-tuning/checkpoints/checkpoints.js.map +1 -0
  766. package/resources/fine-tuning/checkpoints/checkpoints.mjs +12 -0
  767. package/resources/fine-tuning/checkpoints/checkpoints.mjs.map +1 -0
  768. package/resources/fine-tuning/checkpoints/index.d.mts +3 -0
  769. package/resources/fine-tuning/checkpoints/index.d.mts.map +1 -0
  770. package/resources/fine-tuning/checkpoints/index.d.ts +3 -0
  771. package/resources/fine-tuning/checkpoints/index.d.ts.map +1 -0
  772. package/resources/fine-tuning/checkpoints/index.js +9 -0
  773. package/resources/fine-tuning/checkpoints/index.js.map +1 -0
  774. package/resources/fine-tuning/checkpoints/index.mjs +4 -0
  775. package/resources/fine-tuning/checkpoints/index.mjs.map +1 -0
  776. package/resources/fine-tuning/checkpoints/permissions.d.mts +160 -0
  777. package/resources/fine-tuning/checkpoints/permissions.d.mts.map +1 -0
  778. package/resources/fine-tuning/checkpoints/permissions.d.ts +160 -0
  779. package/resources/fine-tuning/checkpoints/permissions.d.ts.map +1 -0
  780. package/resources/fine-tuning/checkpoints/permissions.js +73 -0
  781. package/resources/fine-tuning/checkpoints/permissions.js.map +1 -0
  782. package/resources/fine-tuning/checkpoints/permissions.mjs +69 -0
  783. package/resources/fine-tuning/checkpoints/permissions.mjs.map +1 -0
  784. package/resources/fine-tuning/checkpoints.d.mts +2 -0
  785. package/resources/fine-tuning/checkpoints.d.mts.map +1 -0
  786. package/resources/fine-tuning/checkpoints.d.ts +2 -0
  787. package/resources/fine-tuning/checkpoints.d.ts.map +1 -0
  788. package/resources/fine-tuning/checkpoints.js +6 -0
  789. package/resources/fine-tuning/checkpoints.js.map +1 -0
  790. package/resources/fine-tuning/checkpoints.mjs +3 -0
  791. package/resources/fine-tuning/checkpoints.mjs.map +1 -0
  792. package/resources/fine-tuning/fine-tuning.d.mts +22 -0
  793. package/resources/fine-tuning/fine-tuning.d.mts.map +1 -0
  794. package/resources/fine-tuning/fine-tuning.d.ts +22 -0
  795. package/resources/fine-tuning/fine-tuning.d.ts.map +1 -0
  796. package/resources/fine-tuning/fine-tuning.js +29 -0
  797. package/resources/fine-tuning/fine-tuning.js.map +1 -0
  798. package/resources/fine-tuning/fine-tuning.mjs +24 -0
  799. package/resources/fine-tuning/fine-tuning.mjs.map +1 -0
  800. package/resources/fine-tuning/index.d.mts +6 -0
  801. package/resources/fine-tuning/index.d.mts.map +1 -0
  802. package/resources/fine-tuning/index.d.ts +6 -0
  803. package/resources/fine-tuning/index.d.ts.map +1 -0
  804. package/resources/fine-tuning/index.js +15 -0
  805. package/resources/fine-tuning/index.js.map +1 -0
  806. package/resources/fine-tuning/index.mjs +7 -0
  807. package/resources/fine-tuning/index.mjs.map +1 -0
  808. package/resources/fine-tuning/jobs/checkpoints.d.mts +74 -0
  809. package/resources/fine-tuning/jobs/checkpoints.d.mts.map +1 -0
  810. package/resources/fine-tuning/jobs/checkpoints.d.ts +74 -0
  811. package/resources/fine-tuning/jobs/checkpoints.d.ts.map +1 -0
  812. package/resources/fine-tuning/jobs/checkpoints.js +27 -0
  813. package/resources/fine-tuning/jobs/checkpoints.js.map +1 -0
  814. package/resources/fine-tuning/jobs/checkpoints.mjs +23 -0
  815. package/resources/fine-tuning/jobs/checkpoints.mjs.map +1 -0
  816. package/resources/fine-tuning/jobs/index.d.mts +3 -0
  817. package/resources/fine-tuning/jobs/index.d.mts.map +1 -0
  818. package/resources/fine-tuning/jobs/index.d.ts +3 -0
  819. package/resources/fine-tuning/jobs/index.d.ts.map +1 -0
  820. package/resources/fine-tuning/jobs/index.js +9 -0
  821. package/resources/fine-tuning/jobs/index.js.map +1 -0
  822. package/resources/fine-tuning/jobs/index.mjs +4 -0
  823. package/resources/fine-tuning/jobs/index.mjs.map +1 -0
  824. package/resources/fine-tuning/jobs/jobs.d.mts +528 -0
  825. package/resources/fine-tuning/jobs/jobs.d.mts.map +1 -0
  826. package/resources/fine-tuning/jobs/jobs.d.ts +528 -0
  827. package/resources/fine-tuning/jobs/jobs.d.ts.map +1 -0
  828. package/resources/fine-tuning/jobs/jobs.js +123 -0
  829. package/resources/fine-tuning/jobs/jobs.js.map +1 -0
  830. package/resources/fine-tuning/jobs/jobs.mjs +118 -0
  831. package/resources/fine-tuning/jobs/jobs.mjs.map +1 -0
  832. package/resources/fine-tuning/jobs.d.mts +2 -0
  833. package/resources/fine-tuning/jobs.d.mts.map +1 -0
  834. package/resources/fine-tuning/jobs.d.ts +2 -0
  835. package/resources/fine-tuning/jobs.d.ts.map +1 -0
  836. package/resources/fine-tuning/jobs.js +6 -0
  837. package/resources/fine-tuning/jobs.js.map +1 -0
  838. package/resources/fine-tuning/jobs.mjs +3 -0
  839. package/resources/fine-tuning/jobs.mjs.map +1 -0
  840. package/resources/fine-tuning/methods.d.mts +120 -0
  841. package/resources/fine-tuning/methods.d.mts.map +1 -0
  842. package/resources/fine-tuning/methods.d.ts +120 -0
  843. package/resources/fine-tuning/methods.d.ts.map +1 -0
  844. package/resources/fine-tuning/methods.js +9 -0
  845. package/resources/fine-tuning/methods.js.map +1 -0
  846. package/resources/fine-tuning/methods.mjs +5 -0
  847. package/resources/fine-tuning/methods.mjs.map +1 -0
  848. package/resources/fine-tuning.d.mts +2 -0
  849. package/resources/fine-tuning.d.mts.map +1 -0
  850. package/resources/fine-tuning.d.ts +2 -0
  851. package/resources/fine-tuning.d.ts.map +1 -0
  852. package/resources/fine-tuning.js +6 -0
  853. package/resources/fine-tuning.js.map +1 -0
  854. package/resources/fine-tuning.mjs +3 -0
  855. package/resources/fine-tuning.mjs.map +1 -0
  856. package/resources/graders/grader-models.d.mts +354 -0
  857. package/resources/graders/grader-models.d.mts.map +1 -0
  858. package/resources/graders/grader-models.d.ts +354 -0
  859. package/resources/graders/grader-models.d.ts.map +1 -0
  860. package/resources/graders/grader-models.js +9 -0
  861. package/resources/graders/grader-models.js.map +1 -0
  862. package/resources/graders/grader-models.mjs +5 -0
  863. package/resources/graders/grader-models.mjs.map +1 -0
  864. package/resources/graders/graders.d.mts +10 -0
  865. package/resources/graders/graders.d.mts.map +1 -0
  866. package/resources/graders/graders.d.ts +10 -0
  867. package/resources/graders/graders.d.ts.map +1 -0
  868. package/resources/graders/graders.js +17 -0
  869. package/resources/graders/graders.js.map +1 -0
  870. package/resources/graders/graders.mjs +12 -0
  871. package/resources/graders/graders.mjs.map +1 -0
  872. package/resources/graders/index.d.mts +3 -0
  873. package/resources/graders/index.d.mts.map +1 -0
  874. package/resources/graders/index.d.ts +3 -0
  875. package/resources/graders/index.d.ts.map +1 -0
  876. package/resources/graders/index.js +9 -0
  877. package/resources/graders/index.js.map +1 -0
  878. package/resources/graders/index.mjs +4 -0
  879. package/resources/graders/index.mjs.map +1 -0
  880. package/resources/graders.d.mts +2 -0
  881. package/resources/graders.d.mts.map +1 -0
  882. package/resources/graders.d.ts +2 -0
  883. package/resources/graders.d.ts.map +1 -0
  884. package/resources/graders.js +6 -0
  885. package/resources/graders.js.map +1 -0
  886. package/resources/graders.mjs +3 -0
  887. package/resources/graders.mjs.map +1 -0
  888. package/resources/images.d.mts +676 -0
  889. package/resources/images.d.mts.map +1 -0
  890. package/resources/images.d.ts +676 -0
  891. package/resources/images.d.ts.map +1 -0
  892. package/resources/images.js +29 -0
  893. package/resources/images.js.map +1 -0
  894. package/resources/images.mjs +25 -0
  895. package/resources/images.mjs.map +1 -0
  896. package/resources/index.d.mts +24 -0
  897. package/resources/index.d.mts.map +1 -0
  898. package/resources/index.d.ts +24 -0
  899. package/resources/index.d.ts.map +1 -0
  900. package/resources/index.js +50 -0
  901. package/resources/index.js.map +1 -0
  902. package/resources/index.mjs +25 -0
  903. package/resources/index.mjs.map +1 -0
  904. package/resources/models.d.mts +52 -0
  905. package/resources/models.d.mts.map +1 -0
  906. package/resources/models.d.ts +52 -0
  907. package/resources/models.d.ts.map +1 -0
  908. package/resources/models.js +32 -0
  909. package/resources/models.js.map +1 -0
  910. package/resources/models.mjs +28 -0
  911. package/resources/models.mjs.map +1 -0
  912. package/resources/moderations.d.mts +295 -0
  913. package/resources/moderations.d.mts.map +1 -0
  914. package/resources/moderations.d.ts +295 -0
  915. package/resources/moderations.d.ts.map +1 -0
  916. package/resources/moderations.js +16 -0
  917. package/resources/moderations.js.map +1 -0
  918. package/resources/moderations.mjs +12 -0
  919. package/resources/moderations.mjs.map +1 -0
  920. package/resources/realtime/calls.d.mts +158 -0
  921. package/resources/realtime/calls.d.mts.map +1 -0
  922. package/resources/realtime/calls.d.ts +158 -0
  923. package/resources/realtime/calls.d.ts.map +1 -0
  924. package/resources/realtime/calls.js +75 -0
  925. package/resources/realtime/calls.js.map +1 -0
  926. package/resources/realtime/calls.mjs +71 -0
  927. package/resources/realtime/calls.mjs.map +1 -0
  928. package/resources/realtime/client-secrets.d.mts +638 -0
  929. package/resources/realtime/client-secrets.d.mts.map +1 -0
  930. package/resources/realtime/client-secrets.d.ts +638 -0
  931. package/resources/realtime/client-secrets.d.ts.map +1 -0
  932. package/resources/realtime/client-secrets.js +35 -0
  933. package/resources/realtime/client-secrets.js.map +1 -0
  934. package/resources/realtime/client-secrets.mjs +31 -0
  935. package/resources/realtime/client-secrets.mjs.map +1 -0
  936. package/resources/realtime/index.d.mts +4 -0
  937. package/resources/realtime/index.d.mts.map +1 -0
  938. package/resources/realtime/index.d.ts +4 -0
  939. package/resources/realtime/index.d.ts.map +1 -0
  940. package/resources/realtime/index.js +11 -0
  941. package/resources/realtime/index.js.map +1 -0
  942. package/resources/realtime/index.mjs +5 -0
  943. package/resources/realtime/index.mjs.map +1 -0
  944. package/resources/realtime/realtime.d.mts +3941 -0
  945. package/resources/realtime/realtime.d.mts.map +1 -0
  946. package/resources/realtime/realtime.d.ts +3941 -0
  947. package/resources/realtime/realtime.d.ts.map +1 -0
  948. package/resources/realtime/realtime.js +21 -0
  949. package/resources/realtime/realtime.js.map +1 -0
  950. package/resources/realtime/realtime.mjs +16 -0
  951. package/resources/realtime/realtime.mjs.map +1 -0
  952. package/resources/realtime.d.mts +2 -0
  953. package/resources/realtime.d.mts.map +1 -0
  954. package/resources/realtime.d.ts +2 -0
  955. package/resources/realtime.d.ts.map +1 -0
  956. package/resources/realtime.js +6 -0
  957. package/resources/realtime.js.map +1 -0
  958. package/resources/realtime.mjs +3 -0
  959. package/resources/realtime.mjs.map +1 -0
  960. package/resources/responses/index.d.mts +4 -0
  961. package/resources/responses/index.d.mts.map +1 -0
  962. package/resources/responses/index.d.ts +4 -0
  963. package/resources/responses/index.d.ts.map +1 -0
  964. package/resources/responses/index.js +11 -0
  965. package/resources/responses/index.js.map +1 -0
  966. package/resources/responses/index.mjs +5 -0
  967. package/resources/responses/index.mjs.map +1 -0
  968. package/resources/responses/input-items.d.mts +65 -0
  969. package/resources/responses/input-items.d.mts.map +1 -0
  970. package/resources/responses/input-items.d.ts +65 -0
  971. package/resources/responses/input-items.d.ts.map +1 -0
  972. package/resources/responses/input-items.js +27 -0
  973. package/resources/responses/input-items.js.map +1 -0
  974. package/resources/responses/input-items.mjs +23 -0
  975. package/resources/responses/input-items.mjs.map +1 -0
  976. package/resources/responses/input-tokens.d.mts +129 -0
  977. package/resources/responses/input-tokens.d.mts.map +1 -0
  978. package/resources/responses/input-tokens.d.ts +129 -0
  979. package/resources/responses/input-tokens.d.ts.map +1 -0
  980. package/resources/responses/input-tokens.js +23 -0
  981. package/resources/responses/input-tokens.js.map +1 -0
  982. package/resources/responses/input-tokens.mjs +19 -0
  983. package/resources/responses/input-tokens.mjs.map +1 -0
  984. package/resources/responses/responses.d.mts +5561 -0
  985. package/resources/responses/responses.d.mts.map +1 -0
  986. package/resources/responses/responses.d.ts +5561 -0
  987. package/resources/responses/responses.d.ts.map +1 -0
  988. package/resources/responses/responses.js +82 -0
  989. package/resources/responses/responses.js.map +1 -0
  990. package/resources/responses/responses.mjs +77 -0
  991. package/resources/responses/responses.mjs.map +1 -0
  992. package/resources/responses.d.mts +2 -0
  993. package/resources/responses.d.mts.map +1 -0
  994. package/resources/responses.d.ts +2 -0
  995. package/resources/responses.d.ts.map +1 -0
  996. package/resources/responses.js +6 -0
  997. package/resources/responses.js.map +1 -0
  998. package/resources/responses.mjs +3 -0
  999. package/resources/responses.mjs.map +1 -0
  1000. package/resources/shared.d.mts +287 -0
  1001. package/resources/shared.d.mts.map +1 -0
  1002. package/resources/shared.d.ts +287 -0
  1003. package/resources/shared.d.ts.map +1 -0
  1004. package/resources/shared.js +4 -0
  1005. package/resources/shared.js.map +1 -0
  1006. package/resources/shared.mjs +3 -0
  1007. package/resources/shared.mjs.map +1 -0
  1008. package/resources/skills/content.d.mts +10 -0
  1009. package/resources/skills/content.d.mts.map +1 -0
  1010. package/resources/skills/content.d.ts +10 -0
  1011. package/resources/skills/content.d.ts.map +1 -0
  1012. package/resources/skills/content.js +21 -0
  1013. package/resources/skills/content.js.map +1 -0
  1014. package/resources/skills/content.mjs +17 -0
  1015. package/resources/skills/content.mjs.map +1 -0
  1016. package/resources/skills/index.d.mts +4 -0
  1017. package/resources/skills/index.d.mts.map +1 -0
  1018. package/resources/skills/index.d.ts +4 -0
  1019. package/resources/skills/index.d.ts.map +1 -0
  1020. package/resources/skills/index.js +11 -0
  1021. package/resources/skills/index.js.map +1 -0
  1022. package/resources/skills/index.mjs +5 -0
  1023. package/resources/skills/index.mjs.map +1 -0
  1024. package/resources/skills/skills.d.mts +116 -0
  1025. package/resources/skills/skills.d.mts.map +1 -0
  1026. package/resources/skills/skills.d.ts +116 -0
  1027. package/resources/skills/skills.d.ts.map +1 -0
  1028. package/resources/skills/skills.js +54 -0
  1029. package/resources/skills/skills.js.map +1 -0
  1030. package/resources/skills/skills.mjs +49 -0
  1031. package/resources/skills/skills.mjs.map +1 -0
  1032. package/resources/skills/versions/content.d.mts +19 -0
  1033. package/resources/skills/versions/content.d.mts.map +1 -0
  1034. package/resources/skills/versions/content.d.ts +19 -0
  1035. package/resources/skills/versions/content.d.ts.map +1 -0
  1036. package/resources/skills/versions/content.js +22 -0
  1037. package/resources/skills/versions/content.js.map +1 -0
  1038. package/resources/skills/versions/content.mjs +18 -0
  1039. package/resources/skills/versions/content.mjs.map +1 -0
  1040. package/resources/skills/versions/index.d.mts +3 -0
  1041. package/resources/skills/versions/index.d.mts.map +1 -0
  1042. package/resources/skills/versions/index.d.ts +3 -0
  1043. package/resources/skills/versions/index.d.ts.map +1 -0
  1044. package/resources/skills/versions/index.js +9 -0
  1045. package/resources/skills/versions/index.js.map +1 -0
  1046. package/resources/skills/versions/index.mjs +4 -0
  1047. package/resources/skills/versions/index.mjs.map +1 -0
  1048. package/resources/skills/versions/versions.d.mts +121 -0
  1049. package/resources/skills/versions/versions.d.mts.map +1 -0
  1050. package/resources/skills/versions/versions.d.ts +121 -0
  1051. package/resources/skills/versions/versions.d.ts.map +1 -0
  1052. package/resources/skills/versions/versions.js +49 -0
  1053. package/resources/skills/versions/versions.js.map +1 -0
  1054. package/resources/skills/versions/versions.mjs +44 -0
  1055. package/resources/skills/versions/versions.mjs.map +1 -0
  1056. package/resources/skills/versions.d.mts +2 -0
  1057. package/resources/skills/versions.d.mts.map +1 -0
  1058. package/resources/skills/versions.d.ts +2 -0
  1059. package/resources/skills/versions.d.ts.map +1 -0
  1060. package/resources/skills/versions.js +6 -0
  1061. package/resources/skills/versions.js.map +1 -0
  1062. package/resources/skills/versions.mjs +3 -0
  1063. package/resources/skills/versions.mjs.map +1 -0
  1064. package/resources/skills.d.mts +2 -0
  1065. package/resources/skills.d.mts.map +1 -0
  1066. package/resources/skills.d.ts +2 -0
  1067. package/resources/skills.d.ts.map +1 -0
  1068. package/resources/skills.js +6 -0
  1069. package/resources/skills.js.map +1 -0
  1070. package/resources/skills.mjs +3 -0
  1071. package/resources/skills.mjs.map +1 -0
  1072. package/resources/uploads/index.d.mts +3 -0
  1073. package/resources/uploads/index.d.mts.map +1 -0
  1074. package/resources/uploads/index.d.ts +3 -0
  1075. package/resources/uploads/index.d.ts.map +1 -0
  1076. package/resources/uploads/index.js +9 -0
  1077. package/resources/uploads/index.js.map +1 -0
  1078. package/resources/uploads/index.mjs +4 -0
  1079. package/resources/uploads/index.mjs.map +1 -0
  1080. package/resources/uploads/parts.d.mts +51 -0
  1081. package/resources/uploads/parts.d.mts.map +1 -0
  1082. package/resources/uploads/parts.d.ts +51 -0
  1083. package/resources/uploads/parts.d.ts.map +1 -0
  1084. package/resources/uploads/parts.js +27 -0
  1085. package/resources/uploads/parts.js.map +1 -0
  1086. package/resources/uploads/parts.mjs +23 -0
  1087. package/resources/uploads/parts.mjs.map +1 -0
  1088. package/resources/uploads/uploads.d.mts +163 -0
  1089. package/resources/uploads/uploads.d.mts.map +1 -0
  1090. package/resources/uploads/uploads.d.ts +163 -0
  1091. package/resources/uploads/uploads.d.ts.map +1 -0
  1092. package/resources/uploads/uploads.js +72 -0
  1093. package/resources/uploads/uploads.js.map +1 -0
  1094. package/resources/uploads/uploads.mjs +67 -0
  1095. package/resources/uploads/uploads.mjs.map +1 -0
  1096. package/resources/uploads.d.mts +2 -0
  1097. package/resources/uploads.d.mts.map +1 -0
  1098. package/resources/uploads.d.ts +2 -0
  1099. package/resources/uploads.d.ts.map +1 -0
  1100. package/resources/uploads.js +6 -0
  1101. package/resources/uploads.js.map +1 -0
  1102. package/resources/uploads.mjs +3 -0
  1103. package/resources/uploads.mjs.map +1 -0
  1104. package/resources/vector-stores/file-batches.d.mts +179 -0
  1105. package/resources/vector-stores/file-batches.d.mts.map +1 -0
  1106. package/resources/vector-stores/file-batches.d.ts +179 -0
  1107. package/resources/vector-stores/file-batches.d.ts.map +1 -0
  1108. package/resources/vector-stores/file-batches.js +50 -0
  1109. package/resources/vector-stores/file-batches.js.map +1 -0
  1110. package/resources/vector-stores/file-batches.mjs +46 -0
  1111. package/resources/vector-stores/file-batches.mjs.map +1 -0
  1112. package/resources/vector-stores/files.d.mts +202 -0
  1113. package/resources/vector-stores/files.d.mts.map +1 -0
  1114. package/resources/vector-stores/files.d.ts +202 -0
  1115. package/resources/vector-stores/files.d.ts.map +1 -0
  1116. package/resources/vector-stores/files.js +75 -0
  1117. package/resources/vector-stores/files.js.map +1 -0
  1118. package/resources/vector-stores/files.mjs +71 -0
  1119. package/resources/vector-stores/files.mjs.map +1 -0
  1120. package/resources/vector-stores/index.d.mts +4 -0
  1121. package/resources/vector-stores/index.d.mts.map +1 -0
  1122. package/resources/vector-stores/index.d.ts +4 -0
  1123. package/resources/vector-stores/index.d.ts.map +1 -0
  1124. package/resources/vector-stores/index.js +11 -0
  1125. package/resources/vector-stores/index.js.map +1 -0
  1126. package/resources/vector-stores/index.mjs +5 -0
  1127. package/resources/vector-stores/index.mjs.map +1 -0
  1128. package/resources/vector-stores/vector-stores.d.mts +378 -0
  1129. package/resources/vector-stores/vector-stores.d.mts.map +1 -0
  1130. package/resources/vector-stores/vector-stores.d.ts +378 -0
  1131. package/resources/vector-stores/vector-stores.d.ts.map +1 -0
  1132. package/resources/vector-stores/vector-stores.js +84 -0
  1133. package/resources/vector-stores/vector-stores.js.map +1 -0
  1134. package/resources/vector-stores/vector-stores.mjs +79 -0
  1135. package/resources/vector-stores/vector-stores.mjs.map +1 -0
  1136. package/resources/vector-stores.d.mts +2 -0
  1137. package/resources/vector-stores.d.mts.map +1 -0
  1138. package/resources/vector-stores.d.ts +2 -0
  1139. package/resources/vector-stores.d.ts.map +1 -0
  1140. package/resources/vector-stores.js +6 -0
  1141. package/resources/vector-stores.js.map +1 -0
  1142. package/resources/vector-stores.mjs +3 -0
  1143. package/resources/vector-stores.mjs.map +1 -0
  1144. package/resources/videos.d.mts +171 -0
  1145. package/resources/videos.d.mts.map +1 -0
  1146. package/resources/videos.d.ts +171 -0
  1147. package/resources/videos.d.ts.map +1 -0
  1148. package/resources/videos.js +56 -0
  1149. package/resources/videos.js.map +1 -0
  1150. package/resources/videos.mjs +52 -0
  1151. package/resources/videos.mjs.map +1 -0
  1152. package/resources/webhooks/index.d.mts +2 -0
  1153. package/resources/webhooks/index.d.mts.map +1 -0
  1154. package/resources/webhooks/index.d.ts +2 -0
  1155. package/resources/webhooks/index.d.ts.map +1 -0
  1156. package/resources/webhooks/index.js +7 -0
  1157. package/resources/webhooks/index.js.map +1 -0
  1158. package/resources/webhooks/index.mjs +3 -0
  1159. package/resources/webhooks/index.mjs.map +1 -0
  1160. package/resources/webhooks/webhooks.d.mts +571 -0
  1161. package/resources/webhooks/webhooks.d.mts.map +1 -0
  1162. package/resources/webhooks/webhooks.d.ts +571 -0
  1163. package/resources/webhooks/webhooks.d.ts.map +1 -0
  1164. package/resources/webhooks/webhooks.js +12 -0
  1165. package/resources/webhooks/webhooks.js.map +1 -0
  1166. package/resources/webhooks/webhooks.mjs +8 -0
  1167. package/resources/webhooks/webhooks.mjs.map +1 -0
  1168. package/resources/webhooks.d.mts +2 -0
  1169. package/resources/webhooks.d.mts.map +1 -0
  1170. package/resources/webhooks.d.ts +2 -0
  1171. package/resources/webhooks.d.ts.map +1 -0
  1172. package/resources/webhooks.js +6 -0
  1173. package/resources/webhooks.js.map +1 -0
  1174. package/resources/webhooks.mjs +3 -0
  1175. package/resources/webhooks.mjs.map +1 -0
  1176. package/resources.d.mts +2 -0
  1177. package/resources.d.mts.map +1 -0
  1178. package/resources.d.ts +2 -0
  1179. package/resources.d.ts.map +1 -0
  1180. package/resources.js +5 -0
  1181. package/resources.js.map +1 -0
  1182. package/resources.mjs +2 -0
  1183. package/resources.mjs.map +1 -0
  1184. package/src/api-promise.ts +2 -0
  1185. package/src/client.ts +1292 -0
  1186. package/src/core/README.md +3 -0
  1187. package/src/core/api-promise.ts +92 -0
  1188. package/src/core/error.ts +142 -0
  1189. package/src/core/pagination.ts +264 -0
  1190. package/src/core/resource.ts +11 -0
  1191. package/src/core/streaming.ts +332 -0
  1192. package/src/core/uploads.ts +2 -0
  1193. package/src/error.ts +2 -0
  1194. package/src/index.ts +23 -0
  1195. package/src/internal/README.md +3 -0
  1196. package/src/internal/builtin-types.ts +93 -0
  1197. package/src/internal/decoders/line.ts +135 -0
  1198. package/src/internal/detect-platform.ts +196 -0
  1199. package/src/internal/errors.ts +33 -0
  1200. package/src/internal/headers.ts +97 -0
  1201. package/src/internal/parse.ts +70 -0
  1202. package/src/internal/qs/LICENSE.md +13 -0
  1203. package/src/internal/qs/README.md +3 -0
  1204. package/src/internal/qs/formats.ts +10 -0
  1205. package/src/internal/qs/index.ts +13 -0
  1206. package/src/internal/qs/stringify.ts +385 -0
  1207. package/src/internal/qs/types.ts +71 -0
  1208. package/src/internal/qs/utils.ts +265 -0
  1209. package/src/internal/request-options.ts +93 -0
  1210. package/src/internal/shim-types.ts +26 -0
  1211. package/src/internal/shims.ts +107 -0
  1212. package/src/internal/to-file.ts +154 -0
  1213. package/src/internal/types.ts +95 -0
  1214. package/src/internal/uploads.ts +187 -0
  1215. package/src/internal/utils/base64.ts +40 -0
  1216. package/src/internal/utils/bytes.ts +32 -0
  1217. package/src/internal/utils/env.ts +18 -0
  1218. package/src/internal/utils/log.ts +126 -0
  1219. package/src/internal/utils/path.ts +88 -0
  1220. package/src/internal/utils/sleep.ts +3 -0
  1221. package/src/internal/utils/uuid.ts +17 -0
  1222. package/src/internal/utils/values.ts +105 -0
  1223. package/src/internal/utils.ts +8 -0
  1224. package/src/lib/.keep +4 -0
  1225. package/src/pagination.ts +2 -0
  1226. package/src/resource.ts +2 -0
  1227. package/src/resources/audio/audio.ts +91 -0
  1228. package/src/resources/audio/index.ts +29 -0
  1229. package/src/resources/audio/speech.ts +97 -0
  1230. package/src/resources/audio/transcriptions.ts +805 -0
  1231. package/src/resources/audio/translations.ts +103 -0
  1232. package/src/resources/audio.ts +3 -0
  1233. package/src/resources/batches.ts +367 -0
  1234. package/src/resources/beta/assistants.ts +1538 -0
  1235. package/src/resources/beta/beta.ts +87 -0
  1236. package/src/resources/beta/chatkit/chatkit.ts +112 -0
  1237. package/src/resources/beta/chatkit/index.ts +30 -0
  1238. package/src/resources/beta/chatkit/sessions.ts +81 -0
  1239. package/src/resources/beta/chatkit/threads.ts +1037 -0
  1240. package/src/resources/beta/chatkit.ts +3 -0
  1241. package/src/resources/beta/index.ts +36 -0
  1242. package/src/resources/beta/threads/index.ts +70 -0
  1243. package/src/resources/beta/threads/messages.ts +792 -0
  1244. package/src/resources/beta/threads/runs/index.ts +43 -0
  1245. package/src/resources/beta/threads/runs/runs.ts +947 -0
  1246. package/src/resources/beta/threads/runs/steps.ts +756 -0
  1247. package/src/resources/beta/threads/runs.ts +3 -0
  1248. package/src/resources/beta/threads/threads.ts +1028 -0
  1249. package/src/resources/beta/threads.ts +3 -0
  1250. package/src/resources/beta.ts +3 -0
  1251. package/src/resources/chat/chat.ts +110 -0
  1252. package/src/resources/chat/completions/completions.ts +1932 -0
  1253. package/src/resources/chat/completions/index.ts +49 -0
  1254. package/src/resources/chat/completions/messages.ts +50 -0
  1255. package/src/resources/chat/completions.ts +3 -0
  1256. package/src/resources/chat/index.ts +49 -0
  1257. package/src/resources/chat.ts +3 -0
  1258. package/src/resources/completions.ts +397 -0
  1259. package/src/resources/containers/containers.ts +395 -0
  1260. package/src/resources/containers/files/content.ts +29 -0
  1261. package/src/resources/containers/files/files.ts +228 -0
  1262. package/src/resources/containers/files/index.ts +14 -0
  1263. package/src/resources/containers/files.ts +3 -0
  1264. package/src/resources/containers/index.ts +22 -0
  1265. package/src/resources/containers.ts +3 -0
  1266. package/src/resources/conversations/api.md +37 -0
  1267. package/src/resources/conversations/conversations.ts +277 -0
  1268. package/src/resources/conversations/index.ts +13 -0
  1269. package/src/resources/conversations/items.ts +502 -0
  1270. package/src/resources/conversations.ts +3 -0
  1271. package/src/resources/embeddings.ts +138 -0
  1272. package/src/resources/evals/evals.ts +930 -0
  1273. package/src/resources/evals/index.ts +33 -0
  1274. package/src/resources/evals/runs/index.ts +27 -0
  1275. package/src/resources/evals/runs/output-items.ts +477 -0
  1276. package/src/resources/evals/runs/runs.ts +2869 -0
  1277. package/src/resources/evals/runs.ts +3 -0
  1278. package/src/resources/evals.ts +3 -0
  1279. package/src/resources/files.ts +229 -0
  1280. package/src/resources/fine-tuning/alpha/alpha.ts +27 -0
  1281. package/src/resources/fine-tuning/alpha/graders.ts +171 -0
  1282. package/src/resources/fine-tuning/alpha/index.ts +10 -0
  1283. package/src/resources/fine-tuning/alpha.ts +3 -0
  1284. package/src/resources/fine-tuning/checkpoints/checkpoints.ts +33 -0
  1285. package/src/resources/fine-tuning/checkpoints/index.ts +13 -0
  1286. package/src/resources/fine-tuning/checkpoints/permissions.ts +227 -0
  1287. package/src/resources/fine-tuning/checkpoints.ts +3 -0
  1288. package/src/resources/fine-tuning/fine-tuning.ts +73 -0
  1289. package/src/resources/fine-tuning/index.ts +27 -0
  1290. package/src/resources/fine-tuning/jobs/checkpoints.ts +107 -0
  1291. package/src/resources/fine-tuning/jobs/index.ts +21 -0
  1292. package/src/resources/fine-tuning/jobs/jobs.ts +654 -0
  1293. package/src/resources/fine-tuning/jobs.ts +3 -0
  1294. package/src/resources/fine-tuning/methods.ts +152 -0
  1295. package/src/resources/fine-tuning.ts +3 -0
  1296. package/src/resources/graders/grader-models.ts +450 -0
  1297. package/src/resources/graders/graders.ts +33 -0
  1298. package/src/resources/graders/index.ts +13 -0
  1299. package/src/resources/graders.ts +3 -0
  1300. package/src/resources/images.ts +848 -0
  1301. package/src/resources/index.ts +145 -0
  1302. package/src/resources/models.ts +73 -0
  1303. package/src/resources/moderations.ts +367 -0
  1304. package/src/resources/realtime/api.md +128 -0
  1305. package/src/resources/realtime/calls.ts +226 -0
  1306. package/src/resources/realtime/client-secrets.ts +761 -0
  1307. package/src/resources/realtime/index.ts +13 -0
  1308. package/src/resources/realtime/realtime.ts +4844 -0
  1309. package/src/resources/realtime.ts +3 -0
  1310. package/src/resources/responses/api.md +167 -0
  1311. package/src/resources/responses/index.ts +5 -0
  1312. package/src/resources/responses/input-items.ts +87 -0
  1313. package/src/resources/responses/input-tokens.ts +164 -0
  1314. package/src/resources/responses/responses.ts +7000 -0
  1315. package/src/resources/responses.ts +3 -0
  1316. package/src/resources/shared.ts +423 -0
  1317. package/src/resources/skills/content.ts +20 -0
  1318. package/src/resources/skills/index.ts +24 -0
  1319. package/src/resources/skills/skills.ts +191 -0
  1320. package/src/resources/skills/versions/content.ts +32 -0
  1321. package/src/resources/skills/versions/index.ts +14 -0
  1322. package/src/resources/skills/versions/versions.ts +196 -0
  1323. package/src/resources/skills/versions.ts +3 -0
  1324. package/src/resources/skills.ts +3 -0
  1325. package/src/resources/uploads/index.ts +4 -0
  1326. package/src/resources/uploads/parts.ts +66 -0
  1327. package/src/resources/uploads/uploads.ts +201 -0
  1328. package/src/resources/uploads.ts +3 -0
  1329. package/src/resources/vector-stores/file-batches.ts +255 -0
  1330. package/src/resources/vector-stores/files.ts +306 -0
  1331. package/src/resources/vector-stores/index.ts +43 -0
  1332. package/src/resources/vector-stores/vector-stores.ts +562 -0
  1333. package/src/resources/vector-stores.ts +3 -0
  1334. package/src/resources/videos.ts +257 -0
  1335. package/src/resources/webhooks/api.md +24 -0
  1336. package/src/resources/webhooks/index.ts +3 -0
  1337. package/src/resources/webhooks/webhooks.ts +702 -0
  1338. package/src/resources/webhooks.ts +3 -0
  1339. package/src/resources.ts +1 -0
  1340. package/src/streaming.ts +2 -0
  1341. package/src/tsconfig.json +11 -0
  1342. package/src/uploads.ts +2 -0
  1343. package/src/version.ts +1 -0
  1344. package/streaming.d.mts +2 -0
  1345. package/streaming.d.mts.map +1 -0
  1346. package/streaming.d.ts +2 -0
  1347. package/streaming.d.ts.map +1 -0
  1348. package/streaming.js +6 -0
  1349. package/streaming.js.map +1 -0
  1350. package/streaming.mjs +2 -0
  1351. package/streaming.mjs.map +1 -0
  1352. package/uploads.d.mts +2 -0
  1353. package/uploads.d.mts.map +1 -0
  1354. package/uploads.d.ts +2 -0
  1355. package/uploads.d.ts.map +1 -0
  1356. package/uploads.js +6 -0
  1357. package/uploads.js.map +1 -0
  1358. package/uploads.mjs +2 -0
  1359. package/uploads.mjs.map +1 -0
  1360. package/version.d.mts +2 -0
  1361. package/version.d.mts.map +1 -0
  1362. package/version.d.ts +2 -0
  1363. package/version.d.ts.map +1 -0
  1364. package/version.js +5 -0
  1365. package/version.js.map +1 -0
  1366. package/version.mjs +2 -0
  1367. package/version.mjs.map +1 -0
@@ -0,0 +1,2385 @@
1
+ import { APIResource } from "../../../core/resource.js";
2
+ import * as Shared from "../../shared.js";
3
+ import * as GraderModelsAPI from "../../graders/grader-models.js";
4
+ import * as ResponsesAPI from "../../responses/responses.js";
5
+ import * as CompletionsAPI from "../../chat/completions/completions.js";
6
+ import * as OutputItemsAPI from "./output-items.js";
7
+ import { OutputItemListParams, OutputItemListResponse, OutputItemListResponsesPage, OutputItemRetrieveParams, OutputItemRetrieveResponse, OutputItems } from "./output-items.js";
8
+ import { APIPromise } from "../../../core/api-promise.js";
9
+ import { CursorPage, type CursorPageParams, PagePromise } from "../../../core/pagination.js";
10
+ import { RequestOptions } from "../../../internal/request-options.js";
11
+ export declare class Runs extends APIResource {
12
+ outputItems: OutputItemsAPI.OutputItems;
13
+ /**
14
+ * Kicks off a new run for a given evaluation, specifying the data source, and what
15
+ * model configuration to use to test. The datasource will be validated against the
16
+ * schema specified in the config of the evaluation.
17
+ */
18
+ create(evalID: string, body: RunCreateParams, options?: RequestOptions): APIPromise<RunCreateResponse>;
19
+ /**
20
+ * Get an evaluation run by ID.
21
+ */
22
+ retrieve(runID: string, params: RunRetrieveParams, options?: RequestOptions): APIPromise<RunRetrieveResponse>;
23
+ /**
24
+ * Get a list of runs for an evaluation.
25
+ */
26
+ list(evalID: string, query?: RunListParams | null | undefined, options?: RequestOptions): PagePromise<RunListResponsesPage, RunListResponse>;
27
+ /**
28
+ * Delete an eval run.
29
+ */
30
+ delete(runID: string, params: RunDeleteParams, options?: RequestOptions): APIPromise<RunDeleteResponse>;
31
+ /**
32
+ * Cancel an ongoing evaluation run.
33
+ */
34
+ cancel(runID: string, params: RunCancelParams, options?: RequestOptions): APIPromise<RunCancelResponse>;
35
+ }
36
+ export type RunListResponsesPage = CursorPage<RunListResponse>;
37
+ /**
38
+ * A CompletionsRunDataSource object describing a model sampling configuration.
39
+ */
40
+ export interface CreateEvalCompletionsRunDataSource {
41
+ /**
42
+ * Determines what populates the `item` namespace in this run's data source.
43
+ */
44
+ source: CreateEvalCompletionsRunDataSource.FileContent | CreateEvalCompletionsRunDataSource.FileID | CreateEvalCompletionsRunDataSource.StoredCompletions;
45
+ /**
46
+ * The type of run data source. Always `completions`.
47
+ */
48
+ type: 'completions';
49
+ /**
50
+ * Used when sampling from a model. Dictates the structure of the messages passed
51
+ * into the model. Can either be a reference to a prebuilt trajectory (ie,
52
+ * `item.input_trajectory`), or a template with variable references to the `item`
53
+ * namespace.
54
+ */
55
+ input_messages?: CreateEvalCompletionsRunDataSource.Template | CreateEvalCompletionsRunDataSource.ItemReference;
56
+ /**
57
+ * The name of the model to use for generating completions (e.g. "o3-mini").
58
+ */
59
+ model?: string;
60
+ sampling_params?: CreateEvalCompletionsRunDataSource.SamplingParams;
61
+ }
62
+ export declare namespace CreateEvalCompletionsRunDataSource {
63
+ interface FileContent {
64
+ /**
65
+ * The content of the jsonl file.
66
+ */
67
+ content: Array<FileContent.Content>;
68
+ /**
69
+ * The type of jsonl source. Always `file_content`.
70
+ */
71
+ type: 'file_content';
72
+ }
73
+ namespace FileContent {
74
+ interface Content {
75
+ item: {
76
+ [key: string]: unknown;
77
+ };
78
+ sample?: {
79
+ [key: string]: unknown;
80
+ };
81
+ }
82
+ }
83
+ interface FileID {
84
+ /**
85
+ * The identifier of the file.
86
+ */
87
+ id: string;
88
+ /**
89
+ * The type of jsonl source. Always `file_id`.
90
+ */
91
+ type: 'file_id';
92
+ }
93
+ /**
94
+ * A StoredCompletionsRunDataSource configuration describing a set of filters
95
+ */
96
+ interface StoredCompletions {
97
+ /**
98
+ * The type of source. Always `stored_completions`.
99
+ */
100
+ type: 'stored_completions';
101
+ /**
102
+ * An optional Unix timestamp to filter items created after this time.
103
+ */
104
+ created_after?: number | null;
105
+ /**
106
+ * An optional Unix timestamp to filter items created before this time.
107
+ */
108
+ created_before?: number | null;
109
+ /**
110
+ * An optional maximum number of items to return.
111
+ */
112
+ limit?: number | null;
113
+ /**
114
+ * Set of 16 key-value pairs that can be attached to an object. This can be useful
115
+ * for storing additional information about the object in a structured format, and
116
+ * querying for objects via API or the dashboard.
117
+ *
118
+ * Keys are strings with a maximum length of 64 characters. Values are strings with
119
+ * a maximum length of 512 characters.
120
+ */
121
+ metadata?: Shared.Metadata | null;
122
+ /**
123
+ * An optional model to filter by (e.g., 'gpt-4o').
124
+ */
125
+ model?: string | null;
126
+ }
127
+ interface Template {
128
+ /**
129
+ * A list of chat messages forming the prompt or context. May include variable
130
+ * references to the `item` namespace, ie {{item.name}}.
131
+ */
132
+ template: Array<ResponsesAPI.EasyInputMessage | Template.EvalItem>;
133
+ /**
134
+ * The type of input messages. Always `template`.
135
+ */
136
+ type: 'template';
137
+ }
138
+ namespace Template {
139
+ /**
140
+ * A message input to the model with a role indicating instruction following
141
+ * hierarchy. Instructions given with the `developer` or `system` role take
142
+ * precedence over instructions given with the `user` role. Messages with the
143
+ * `assistant` role are presumed to have been generated by the model in previous
144
+ * interactions.
145
+ */
146
+ interface EvalItem {
147
+ /**
148
+ * Inputs to the model - can contain template strings. Supports text, output text,
149
+ * input images, and input audio, either as a single item or an array of items.
150
+ */
151
+ content: string | ResponsesAPI.ResponseInputText | EvalItem.OutputText | EvalItem.InputImage | ResponsesAPI.ResponseInputAudio | GraderModelsAPI.GraderInputs;
152
+ /**
153
+ * The role of the message input. One of `user`, `assistant`, `system`, or
154
+ * `developer`.
155
+ */
156
+ role: 'user' | 'assistant' | 'system' | 'developer';
157
+ /**
158
+ * The type of the message input. Always `message`.
159
+ */
160
+ type?: 'message';
161
+ }
162
+ namespace EvalItem {
163
+ /**
164
+ * A text output from the model.
165
+ */
166
+ interface OutputText {
167
+ /**
168
+ * The text output from the model.
169
+ */
170
+ text: string;
171
+ /**
172
+ * The type of the output text. Always `output_text`.
173
+ */
174
+ type: 'output_text';
175
+ }
176
+ /**
177
+ * An image input block used within EvalItem content arrays.
178
+ */
179
+ interface InputImage {
180
+ /**
181
+ * The URL of the image input.
182
+ */
183
+ image_url: string;
184
+ /**
185
+ * The type of the image input. Always `input_image`.
186
+ */
187
+ type: 'input_image';
188
+ /**
189
+ * The detail level of the image to be sent to the model. One of `high`, `low`, or
190
+ * `auto`. Defaults to `auto`.
191
+ */
192
+ detail?: string;
193
+ }
194
+ }
195
+ }
196
+ interface ItemReference {
197
+ /**
198
+ * A reference to a variable in the `item` namespace. Ie, "item.input_trajectory"
199
+ */
200
+ item_reference: string;
201
+ /**
202
+ * The type of input messages. Always `item_reference`.
203
+ */
204
+ type: 'item_reference';
205
+ }
206
+ interface SamplingParams {
207
+ /**
208
+ * The maximum number of tokens in the generated output.
209
+ */
210
+ max_completion_tokens?: number;
211
+ /**
212
+ * Constrains effort on reasoning for
213
+ * [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently
214
+ * supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`.
215
+ * Reducing reasoning effort can result in faster responses and fewer tokens used
216
+ * on reasoning in a response.
217
+ *
218
+ * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
219
+ * reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
220
+ * calls are supported for all reasoning values in gpt-5.1.
221
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
222
+ * support `none`.
223
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
224
+ * - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
225
+ */
226
+ reasoning_effort?: Shared.ReasoningEffort | null;
227
+ /**
228
+ * An object specifying the format that the model must output.
229
+ *
230
+ * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured
231
+ * Outputs which ensures the model will match your supplied JSON schema. Learn more
232
+ * in the
233
+ * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
234
+ *
235
+ * Setting to `{ "type": "json_object" }` enables the older JSON mode, which
236
+ * ensures the message the model generates is valid JSON. Using `json_schema` is
237
+ * preferred for models that support it.
238
+ */
239
+ response_format?: Shared.ResponseFormatText | Shared.ResponseFormatJSONSchema | Shared.ResponseFormatJSONObject;
240
+ /**
241
+ * A seed value to initialize the randomness, during sampling.
242
+ */
243
+ seed?: number;
244
+ /**
245
+ * A higher temperature increases randomness in the outputs.
246
+ */
247
+ temperature?: number;
248
+ /**
249
+ * A list of tools the model may call. Currently, only functions are supported as a
250
+ * tool. Use this to provide a list of functions the model may generate JSON inputs
251
+ * for. A max of 128 functions are supported.
252
+ */
253
+ tools?: Array<CompletionsAPI.ChatCompletionFunctionTool>;
254
+ /**
255
+ * An alternative to temperature for nucleus sampling; 1.0 includes all tokens.
256
+ */
257
+ top_p?: number;
258
+ }
259
+ }
260
+ /**
261
+ * A JsonlRunDataSource object with that specifies a JSONL file that matches the
262
+ * eval
263
+ */
264
+ export interface CreateEvalJSONLRunDataSource {
265
+ /**
266
+ * Determines what populates the `item` namespace in the data source.
267
+ */
268
+ source: CreateEvalJSONLRunDataSource.FileContent | CreateEvalJSONLRunDataSource.FileID;
269
+ /**
270
+ * The type of data source. Always `jsonl`.
271
+ */
272
+ type: 'jsonl';
273
+ }
274
+ export declare namespace CreateEvalJSONLRunDataSource {
275
+ interface FileContent {
276
+ /**
277
+ * The content of the jsonl file.
278
+ */
279
+ content: Array<FileContent.Content>;
280
+ /**
281
+ * The type of jsonl source. Always `file_content`.
282
+ */
283
+ type: 'file_content';
284
+ }
285
+ namespace FileContent {
286
+ interface Content {
287
+ item: {
288
+ [key: string]: unknown;
289
+ };
290
+ sample?: {
291
+ [key: string]: unknown;
292
+ };
293
+ }
294
+ }
295
+ interface FileID {
296
+ /**
297
+ * The identifier of the file.
298
+ */
299
+ id: string;
300
+ /**
301
+ * The type of jsonl source. Always `file_id`.
302
+ */
303
+ type: 'file_id';
304
+ }
305
+ }
306
+ /**
307
+ * An object representing an error response from the Eval API.
308
+ */
309
+ export interface EvalAPIError {
310
+ /**
311
+ * The error code.
312
+ */
313
+ code: string;
314
+ /**
315
+ * The error message.
316
+ */
317
+ message: string;
318
+ }
319
+ /**
320
+ * A schema representing an evaluation run.
321
+ */
322
+ export interface RunCreateResponse {
323
+ /**
324
+ * Unique identifier for the evaluation run.
325
+ */
326
+ id: string;
327
+ /**
328
+ * Unix timestamp (in seconds) when the evaluation run was created.
329
+ */
330
+ created_at: number;
331
+ /**
332
+ * Information about the run's data source.
333
+ */
334
+ data_source: CreateEvalJSONLRunDataSource | CreateEvalCompletionsRunDataSource | RunCreateResponse.Responses;
335
+ /**
336
+ * An object representing an error response from the Eval API.
337
+ */
338
+ error: EvalAPIError;
339
+ /**
340
+ * The identifier of the associated evaluation.
341
+ */
342
+ eval_id: string;
343
+ /**
344
+ * Set of 16 key-value pairs that can be attached to an object. This can be useful
345
+ * for storing additional information about the object in a structured format, and
346
+ * querying for objects via API or the dashboard.
347
+ *
348
+ * Keys are strings with a maximum length of 64 characters. Values are strings with
349
+ * a maximum length of 512 characters.
350
+ */
351
+ metadata: Shared.Metadata | null;
352
+ /**
353
+ * The model that is evaluated, if applicable.
354
+ */
355
+ model: string;
356
+ /**
357
+ * The name of the evaluation run.
358
+ */
359
+ name: string;
360
+ /**
361
+ * The type of the object. Always "eval.run".
362
+ */
363
+ object: 'eval.run';
364
+ /**
365
+ * Usage statistics for each model during the evaluation run.
366
+ */
367
+ per_model_usage: Array<RunCreateResponse.PerModelUsage>;
368
+ /**
369
+ * Results per testing criteria applied during the evaluation run.
370
+ */
371
+ per_testing_criteria_results: Array<RunCreateResponse.PerTestingCriteriaResult>;
372
+ /**
373
+ * The URL to the rendered evaluation run report on the UI dashboard.
374
+ */
375
+ report_url: string;
376
+ /**
377
+ * Counters summarizing the outcomes of the evaluation run.
378
+ */
379
+ result_counts: RunCreateResponse.ResultCounts;
380
+ /**
381
+ * The status of the evaluation run.
382
+ */
383
+ status: string;
384
+ }
385
+ export declare namespace RunCreateResponse {
386
+ /**
387
+ * A ResponsesRunDataSource object describing a model sampling configuration.
388
+ */
389
+ interface Responses {
390
+ /**
391
+ * Determines what populates the `item` namespace in this run's data source.
392
+ */
393
+ source: Responses.FileContent | Responses.FileID | Responses.Responses;
394
+ /**
395
+ * The type of run data source. Always `responses`.
396
+ */
397
+ type: 'responses';
398
+ /**
399
+ * Used when sampling from a model. Dictates the structure of the messages passed
400
+ * into the model. Can either be a reference to a prebuilt trajectory (ie,
401
+ * `item.input_trajectory`), or a template with variable references to the `item`
402
+ * namespace.
403
+ */
404
+ input_messages?: Responses.Template | Responses.ItemReference;
405
+ /**
406
+ * The name of the model to use for generating completions (e.g. "o3-mini").
407
+ */
408
+ model?: string;
409
+ sampling_params?: Responses.SamplingParams;
410
+ }
411
+ namespace Responses {
412
+ interface FileContent {
413
+ /**
414
+ * The content of the jsonl file.
415
+ */
416
+ content: Array<FileContent.Content>;
417
+ /**
418
+ * The type of jsonl source. Always `file_content`.
419
+ */
420
+ type: 'file_content';
421
+ }
422
+ namespace FileContent {
423
+ interface Content {
424
+ item: {
425
+ [key: string]: unknown;
426
+ };
427
+ sample?: {
428
+ [key: string]: unknown;
429
+ };
430
+ }
431
+ }
432
+ interface FileID {
433
+ /**
434
+ * The identifier of the file.
435
+ */
436
+ id: string;
437
+ /**
438
+ * The type of jsonl source. Always `file_id`.
439
+ */
440
+ type: 'file_id';
441
+ }
442
+ /**
443
+ * A EvalResponsesSource object describing a run data source configuration.
444
+ */
445
+ interface Responses {
446
+ /**
447
+ * The type of run data source. Always `responses`.
448
+ */
449
+ type: 'responses';
450
+ /**
451
+ * Only include items created after this timestamp (inclusive). This is a query
452
+ * parameter used to select responses.
453
+ */
454
+ created_after?: number | null;
455
+ /**
456
+ * Only include items created before this timestamp (inclusive). This is a query
457
+ * parameter used to select responses.
458
+ */
459
+ created_before?: number | null;
460
+ /**
461
+ * Optional string to search the 'instructions' field. This is a query parameter
462
+ * used to select responses.
463
+ */
464
+ instructions_search?: string | null;
465
+ /**
466
+ * Metadata filter for the responses. This is a query parameter used to select
467
+ * responses.
468
+ */
469
+ metadata?: unknown | null;
470
+ /**
471
+ * The name of the model to find responses for. This is a query parameter used to
472
+ * select responses.
473
+ */
474
+ model?: string | null;
475
+ /**
476
+ * Constrains effort on reasoning for
477
+ * [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently
478
+ * supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`.
479
+ * Reducing reasoning effort can result in faster responses and fewer tokens used
480
+ * on reasoning in a response.
481
+ *
482
+ * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
483
+ * reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
484
+ * calls are supported for all reasoning values in gpt-5.1.
485
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
486
+ * support `none`.
487
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
488
+ * - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
489
+ */
490
+ reasoning_effort?: Shared.ReasoningEffort | null;
491
+ /**
492
+ * Sampling temperature. This is a query parameter used to select responses.
493
+ */
494
+ temperature?: number | null;
495
+ /**
496
+ * List of tool names. This is a query parameter used to select responses.
497
+ */
498
+ tools?: Array<string> | null;
499
+ /**
500
+ * Nucleus sampling parameter. This is a query parameter used to select responses.
501
+ */
502
+ top_p?: number | null;
503
+ /**
504
+ * List of user identifiers. This is a query parameter used to select responses.
505
+ */
506
+ users?: Array<string> | null;
507
+ }
508
+ interface Template {
509
+ /**
510
+ * A list of chat messages forming the prompt or context. May include variable
511
+ * references to the `item` namespace, ie {{item.name}}.
512
+ */
513
+ template: Array<Template.ChatMessage | Template.EvalItem>;
514
+ /**
515
+ * The type of input messages. Always `template`.
516
+ */
517
+ type: 'template';
518
+ }
519
+ namespace Template {
520
+ interface ChatMessage {
521
+ /**
522
+ * The content of the message.
523
+ */
524
+ content: string;
525
+ /**
526
+ * The role of the message (e.g. "system", "assistant", "user").
527
+ */
528
+ role: string;
529
+ }
530
+ /**
531
+ * A message input to the model with a role indicating instruction following
532
+ * hierarchy. Instructions given with the `developer` or `system` role take
533
+ * precedence over instructions given with the `user` role. Messages with the
534
+ * `assistant` role are presumed to have been generated by the model in previous
535
+ * interactions.
536
+ */
537
+ interface EvalItem {
538
+ /**
539
+ * Inputs to the model - can contain template strings. Supports text, output text,
540
+ * input images, and input audio, either as a single item or an array of items.
541
+ */
542
+ content: string | ResponsesAPI.ResponseInputText | EvalItem.OutputText | EvalItem.InputImage | ResponsesAPI.ResponseInputAudio | GraderModelsAPI.GraderInputs;
543
+ /**
544
+ * The role of the message input. One of `user`, `assistant`, `system`, or
545
+ * `developer`.
546
+ */
547
+ role: 'user' | 'assistant' | 'system' | 'developer';
548
+ /**
549
+ * The type of the message input. Always `message`.
550
+ */
551
+ type?: 'message';
552
+ }
553
+ namespace EvalItem {
554
+ /**
555
+ * A text output from the model.
556
+ */
557
+ interface OutputText {
558
+ /**
559
+ * The text output from the model.
560
+ */
561
+ text: string;
562
+ /**
563
+ * The type of the output text. Always `output_text`.
564
+ */
565
+ type: 'output_text';
566
+ }
567
+ /**
568
+ * An image input block used within EvalItem content arrays.
569
+ */
570
+ interface InputImage {
571
+ /**
572
+ * The URL of the image input.
573
+ */
574
+ image_url: string;
575
+ /**
576
+ * The type of the image input. Always `input_image`.
577
+ */
578
+ type: 'input_image';
579
+ /**
580
+ * The detail level of the image to be sent to the model. One of `high`, `low`, or
581
+ * `auto`. Defaults to `auto`.
582
+ */
583
+ detail?: string;
584
+ }
585
+ }
586
+ }
587
+ interface ItemReference {
588
+ /**
589
+ * A reference to a variable in the `item` namespace. Ie, "item.name"
590
+ */
591
+ item_reference: string;
592
+ /**
593
+ * The type of input messages. Always `item_reference`.
594
+ */
595
+ type: 'item_reference';
596
+ }
597
+ interface SamplingParams {
598
+ /**
599
+ * The maximum number of tokens in the generated output.
600
+ */
601
+ max_completion_tokens?: number;
602
+ /**
603
+ * Constrains effort on reasoning for
604
+ * [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently
605
+ * supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`.
606
+ * Reducing reasoning effort can result in faster responses and fewer tokens used
607
+ * on reasoning in a response.
608
+ *
609
+ * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
610
+ * reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
611
+ * calls are supported for all reasoning values in gpt-5.1.
612
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
613
+ * support `none`.
614
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
615
+ * - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
616
+ */
617
+ reasoning_effort?: Shared.ReasoningEffort | null;
618
+ /**
619
+ * A seed value to initialize the randomness, during sampling.
620
+ */
621
+ seed?: number;
622
+ /**
623
+ * A higher temperature increases randomness in the outputs.
624
+ */
625
+ temperature?: number;
626
+ /**
627
+ * Configuration options for a text response from the model. Can be plain text or
628
+ * structured JSON data. Learn more:
629
+ *
630
+ * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
631
+ * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)
632
+ */
633
+ text?: SamplingParams.Text;
634
+ /**
635
+ * An array of tools the model may call while generating a response. You can
636
+ * specify which tool to use by setting the `tool_choice` parameter.
637
+ *
638
+ * The two categories of tools you can provide the model are:
639
+ *
640
+ * - **Built-in tools**: Tools that are provided by OpenAI that extend the model's
641
+ * capabilities, like
642
+ * [web search](https://platform.openai.com/docs/guides/tools-web-search) or
643
+ * [file search](https://platform.openai.com/docs/guides/tools-file-search).
644
+ * Learn more about
645
+ * [built-in tools](https://platform.openai.com/docs/guides/tools).
646
+ * - **Function calls (custom tools)**: Functions that are defined by you, enabling
647
+ * the model to call your own code. Learn more about
648
+ * [function calling](https://platform.openai.com/docs/guides/function-calling).
649
+ */
650
+ tools?: Array<ResponsesAPI.Tool>;
651
+ /**
652
+ * An alternative to temperature for nucleus sampling; 1.0 includes all tokens.
653
+ */
654
+ top_p?: number;
655
+ }
656
+ namespace SamplingParams {
657
+ /**
658
+ * Configuration options for a text response from the model. Can be plain text or
659
+ * structured JSON data. Learn more:
660
+ *
661
+ * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
662
+ * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)
663
+ */
664
+ interface Text {
665
+ /**
666
+ * An object specifying the format that the model must output.
667
+ *
668
+ * Configuring `{ "type": "json_schema" }` enables Structured Outputs, which
669
+ * ensures the model will match your supplied JSON schema. Learn more in the
670
+ * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
671
+ *
672
+ * The default format is `{ "type": "text" }` with no additional options.
673
+ *
674
+ * **Not recommended for gpt-4o and newer models:**
675
+ *
676
+ * Setting to `{ "type": "json_object" }` enables the older JSON mode, which
677
+ * ensures the message the model generates is valid JSON. Using `json_schema` is
678
+ * preferred for models that support it.
679
+ */
680
+ format?: ResponsesAPI.ResponseFormatTextConfig;
681
+ }
682
+ }
683
+ }
684
+ interface PerModelUsage {
685
+ /**
686
+ * The number of tokens retrieved from cache.
687
+ */
688
+ cached_tokens: number;
689
+ /**
690
+ * The number of completion tokens generated.
691
+ */
692
+ completion_tokens: number;
693
+ /**
694
+ * The number of invocations.
695
+ */
696
+ invocation_count: number;
697
+ /**
698
+ * The name of the model.
699
+ */
700
+ model_name: string;
701
+ /**
702
+ * The number of prompt tokens used.
703
+ */
704
+ prompt_tokens: number;
705
+ /**
706
+ * The total number of tokens used.
707
+ */
708
+ total_tokens: number;
709
+ }
710
+ interface PerTestingCriteriaResult {
711
+ /**
712
+ * Number of tests failed for this criteria.
713
+ */
714
+ failed: number;
715
+ /**
716
+ * Number of tests passed for this criteria.
717
+ */
718
+ passed: number;
719
+ /**
720
+ * A description of the testing criteria.
721
+ */
722
+ testing_criteria: string;
723
+ }
724
+ /**
725
+ * Counters summarizing the outcomes of the evaluation run.
726
+ */
727
+ interface ResultCounts {
728
+ /**
729
+ * Number of output items that resulted in an error.
730
+ */
731
+ errored: number;
732
+ /**
733
+ * Number of output items that failed to pass the evaluation.
734
+ */
735
+ failed: number;
736
+ /**
737
+ * Number of output items that passed the evaluation.
738
+ */
739
+ passed: number;
740
+ /**
741
+ * Total number of executed output items.
742
+ */
743
+ total: number;
744
+ }
745
+ }
746
+ /**
747
+ * A schema representing an evaluation run.
748
+ */
749
+ export interface RunRetrieveResponse {
750
+ /**
751
+ * Unique identifier for the evaluation run.
752
+ */
753
+ id: string;
754
+ /**
755
+ * Unix timestamp (in seconds) when the evaluation run was created.
756
+ */
757
+ created_at: number;
758
+ /**
759
+ * Information about the run's data source.
760
+ */
761
+ data_source: CreateEvalJSONLRunDataSource | CreateEvalCompletionsRunDataSource | RunRetrieveResponse.Responses;
762
+ /**
763
+ * An object representing an error response from the Eval API.
764
+ */
765
+ error: EvalAPIError;
766
+ /**
767
+ * The identifier of the associated evaluation.
768
+ */
769
+ eval_id: string;
770
+ /**
771
+ * Set of 16 key-value pairs that can be attached to an object. This can be useful
772
+ * for storing additional information about the object in a structured format, and
773
+ * querying for objects via API or the dashboard.
774
+ *
775
+ * Keys are strings with a maximum length of 64 characters. Values are strings with
776
+ * a maximum length of 512 characters.
777
+ */
778
+ metadata: Shared.Metadata | null;
779
+ /**
780
+ * The model that is evaluated, if applicable.
781
+ */
782
+ model: string;
783
+ /**
784
+ * The name of the evaluation run.
785
+ */
786
+ name: string;
787
+ /**
788
+ * The type of the object. Always "eval.run".
789
+ */
790
+ object: 'eval.run';
791
+ /**
792
+ * Usage statistics for each model during the evaluation run.
793
+ */
794
+ per_model_usage: Array<RunRetrieveResponse.PerModelUsage>;
795
+ /**
796
+ * Results per testing criteria applied during the evaluation run.
797
+ */
798
+ per_testing_criteria_results: Array<RunRetrieveResponse.PerTestingCriteriaResult>;
799
+ /**
800
+ * The URL to the rendered evaluation run report on the UI dashboard.
801
+ */
802
+ report_url: string;
803
+ /**
804
+ * Counters summarizing the outcomes of the evaluation run.
805
+ */
806
+ result_counts: RunRetrieveResponse.ResultCounts;
807
+ /**
808
+ * The status of the evaluation run.
809
+ */
810
+ status: string;
811
+ }
812
+ export declare namespace RunRetrieveResponse {
813
+ /**
814
+ * A ResponsesRunDataSource object describing a model sampling configuration.
815
+ */
816
+ interface Responses {
817
+ /**
818
+ * Determines what populates the `item` namespace in this run's data source.
819
+ */
820
+ source: Responses.FileContent | Responses.FileID | Responses.Responses;
821
+ /**
822
+ * The type of run data source. Always `responses`.
823
+ */
824
+ type: 'responses';
825
+ /**
826
+ * Used when sampling from a model. Dictates the structure of the messages passed
827
+ * into the model. Can either be a reference to a prebuilt trajectory (ie,
828
+ * `item.input_trajectory`), or a template with variable references to the `item`
829
+ * namespace.
830
+ */
831
+ input_messages?: Responses.Template | Responses.ItemReference;
832
+ /**
833
+ * The name of the model to use for generating completions (e.g. "o3-mini").
834
+ */
835
+ model?: string;
836
+ sampling_params?: Responses.SamplingParams;
837
+ }
838
+ namespace Responses {
839
+ interface FileContent {
840
+ /**
841
+ * The content of the jsonl file.
842
+ */
843
+ content: Array<FileContent.Content>;
844
+ /**
845
+ * The type of jsonl source. Always `file_content`.
846
+ */
847
+ type: 'file_content';
848
+ }
849
+ namespace FileContent {
850
+ interface Content {
851
+ item: {
852
+ [key: string]: unknown;
853
+ };
854
+ sample?: {
855
+ [key: string]: unknown;
856
+ };
857
+ }
858
+ }
859
+ interface FileID {
860
+ /**
861
+ * The identifier of the file.
862
+ */
863
+ id: string;
864
+ /**
865
+ * The type of jsonl source. Always `file_id`.
866
+ */
867
+ type: 'file_id';
868
+ }
869
+ /**
870
+ * A EvalResponsesSource object describing a run data source configuration.
871
+ */
872
+ interface Responses {
873
+ /**
874
+ * The type of run data source. Always `responses`.
875
+ */
876
+ type: 'responses';
877
+ /**
878
+ * Only include items created after this timestamp (inclusive). This is a query
879
+ * parameter used to select responses.
880
+ */
881
+ created_after?: number | null;
882
+ /**
883
+ * Only include items created before this timestamp (inclusive). This is a query
884
+ * parameter used to select responses.
885
+ */
886
+ created_before?: number | null;
887
+ /**
888
+ * Optional string to search the 'instructions' field. This is a query parameter
889
+ * used to select responses.
890
+ */
891
+ instructions_search?: string | null;
892
+ /**
893
+ * Metadata filter for the responses. This is a query parameter used to select
894
+ * responses.
895
+ */
896
+ metadata?: unknown | null;
897
+ /**
898
+ * The name of the model to find responses for. This is a query parameter used to
899
+ * select responses.
900
+ */
901
+ model?: string | null;
902
+ /**
903
+ * Constrains effort on reasoning for
904
+ * [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently
905
+ * supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`.
906
+ * Reducing reasoning effort can result in faster responses and fewer tokens used
907
+ * on reasoning in a response.
908
+ *
909
+ * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
910
+ * reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
911
+ * calls are supported for all reasoning values in gpt-5.1.
912
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
913
+ * support `none`.
914
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
915
+ * - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
916
+ */
917
+ reasoning_effort?: Shared.ReasoningEffort | null;
918
+ /**
919
+ * Sampling temperature. This is a query parameter used to select responses.
920
+ */
921
+ temperature?: number | null;
922
+ /**
923
+ * List of tool names. This is a query parameter used to select responses.
924
+ */
925
+ tools?: Array<string> | null;
926
+ /**
927
+ * Nucleus sampling parameter. This is a query parameter used to select responses.
928
+ */
929
+ top_p?: number | null;
930
+ /**
931
+ * List of user identifiers. This is a query parameter used to select responses.
932
+ */
933
+ users?: Array<string> | null;
934
+ }
935
+ interface Template {
936
+ /**
937
+ * A list of chat messages forming the prompt or context. May include variable
938
+ * references to the `item` namespace, ie {{item.name}}.
939
+ */
940
+ template: Array<Template.ChatMessage | Template.EvalItem>;
941
+ /**
942
+ * The type of input messages. Always `template`.
943
+ */
944
+ type: 'template';
945
+ }
946
+ namespace Template {
947
+ interface ChatMessage {
948
+ /**
949
+ * The content of the message.
950
+ */
951
+ content: string;
952
+ /**
953
+ * The role of the message (e.g. "system", "assistant", "user").
954
+ */
955
+ role: string;
956
+ }
957
+ /**
958
+ * A message input to the model with a role indicating instruction following
959
+ * hierarchy. Instructions given with the `developer` or `system` role take
960
+ * precedence over instructions given with the `user` role. Messages with the
961
+ * `assistant` role are presumed to have been generated by the model in previous
962
+ * interactions.
963
+ */
964
+ interface EvalItem {
965
+ /**
966
+ * Inputs to the model - can contain template strings. Supports text, output text,
967
+ * input images, and input audio, either as a single item or an array of items.
968
+ */
969
+ content: string | ResponsesAPI.ResponseInputText | EvalItem.OutputText | EvalItem.InputImage | ResponsesAPI.ResponseInputAudio | GraderModelsAPI.GraderInputs;
970
+ /**
971
+ * The role of the message input. One of `user`, `assistant`, `system`, or
972
+ * `developer`.
973
+ */
974
+ role: 'user' | 'assistant' | 'system' | 'developer';
975
+ /**
976
+ * The type of the message input. Always `message`.
977
+ */
978
+ type?: 'message';
979
+ }
980
+ namespace EvalItem {
981
+ /**
982
+ * A text output from the model.
983
+ */
984
+ interface OutputText {
985
+ /**
986
+ * The text output from the model.
987
+ */
988
+ text: string;
989
+ /**
990
+ * The type of the output text. Always `output_text`.
991
+ */
992
+ type: 'output_text';
993
+ }
994
+ /**
995
+ * An image input block used within EvalItem content arrays.
996
+ */
997
+ interface InputImage {
998
+ /**
999
+ * The URL of the image input.
1000
+ */
1001
+ image_url: string;
1002
+ /**
1003
+ * The type of the image input. Always `input_image`.
1004
+ */
1005
+ type: 'input_image';
1006
+ /**
1007
+ * The detail level of the image to be sent to the model. One of `high`, `low`, or
1008
+ * `auto`. Defaults to `auto`.
1009
+ */
1010
+ detail?: string;
1011
+ }
1012
+ }
1013
+ }
1014
+ interface ItemReference {
1015
+ /**
1016
+ * A reference to a variable in the `item` namespace. Ie, "item.name"
1017
+ */
1018
+ item_reference: string;
1019
+ /**
1020
+ * The type of input messages. Always `item_reference`.
1021
+ */
1022
+ type: 'item_reference';
1023
+ }
1024
+ interface SamplingParams {
1025
+ /**
1026
+ * The maximum number of tokens in the generated output.
1027
+ */
1028
+ max_completion_tokens?: number;
1029
+ /**
1030
+ * Constrains effort on reasoning for
1031
+ * [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently
1032
+ * supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`.
1033
+ * Reducing reasoning effort can result in faster responses and fewer tokens used
1034
+ * on reasoning in a response.
1035
+ *
1036
+ * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
1037
+ * reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
1038
+ * calls are supported for all reasoning values in gpt-5.1.
1039
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
1040
+ * support `none`.
1041
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
1042
+ * - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
1043
+ */
1044
+ reasoning_effort?: Shared.ReasoningEffort | null;
1045
+ /**
1046
+ * A seed value to initialize the randomness, during sampling.
1047
+ */
1048
+ seed?: number;
1049
+ /**
1050
+ * A higher temperature increases randomness in the outputs.
1051
+ */
1052
+ temperature?: number;
1053
+ /**
1054
+ * Configuration options for a text response from the model. Can be plain text or
1055
+ * structured JSON data. Learn more:
1056
+ *
1057
+ * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
1058
+ * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)
1059
+ */
1060
+ text?: SamplingParams.Text;
1061
+ /**
1062
+ * An array of tools the model may call while generating a response. You can
1063
+ * specify which tool to use by setting the `tool_choice` parameter.
1064
+ *
1065
+ * The two categories of tools you can provide the model are:
1066
+ *
1067
+ * - **Built-in tools**: Tools that are provided by OpenAI that extend the model's
1068
+ * capabilities, like
1069
+ * [web search](https://platform.openai.com/docs/guides/tools-web-search) or
1070
+ * [file search](https://platform.openai.com/docs/guides/tools-file-search).
1071
+ * Learn more about
1072
+ * [built-in tools](https://platform.openai.com/docs/guides/tools).
1073
+ * - **Function calls (custom tools)**: Functions that are defined by you, enabling
1074
+ * the model to call your own code. Learn more about
1075
+ * [function calling](https://platform.openai.com/docs/guides/function-calling).
1076
+ */
1077
+ tools?: Array<ResponsesAPI.Tool>;
1078
+ /**
1079
+ * An alternative to temperature for nucleus sampling; 1.0 includes all tokens.
1080
+ */
1081
+ top_p?: number;
1082
+ }
1083
+ namespace SamplingParams {
1084
+ /**
1085
+ * Configuration options for a text response from the model. Can be plain text or
1086
+ * structured JSON data. Learn more:
1087
+ *
1088
+ * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
1089
+ * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)
1090
+ */
1091
+ interface Text {
1092
+ /**
1093
+ * An object specifying the format that the model must output.
1094
+ *
1095
+ * Configuring `{ "type": "json_schema" }` enables Structured Outputs, which
1096
+ * ensures the model will match your supplied JSON schema. Learn more in the
1097
+ * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
1098
+ *
1099
+ * The default format is `{ "type": "text" }` with no additional options.
1100
+ *
1101
+ * **Not recommended for gpt-4o and newer models:**
1102
+ *
1103
+ * Setting to `{ "type": "json_object" }` enables the older JSON mode, which
1104
+ * ensures the message the model generates is valid JSON. Using `json_schema` is
1105
+ * preferred for models that support it.
1106
+ */
1107
+ format?: ResponsesAPI.ResponseFormatTextConfig;
1108
+ }
1109
+ }
1110
+ }
1111
+ interface PerModelUsage {
1112
+ /**
1113
+ * The number of tokens retrieved from cache.
1114
+ */
1115
+ cached_tokens: number;
1116
+ /**
1117
+ * The number of completion tokens generated.
1118
+ */
1119
+ completion_tokens: number;
1120
+ /**
1121
+ * The number of invocations.
1122
+ */
1123
+ invocation_count: number;
1124
+ /**
1125
+ * The name of the model.
1126
+ */
1127
+ model_name: string;
1128
+ /**
1129
+ * The number of prompt tokens used.
1130
+ */
1131
+ prompt_tokens: number;
1132
+ /**
1133
+ * The total number of tokens used.
1134
+ */
1135
+ total_tokens: number;
1136
+ }
1137
+ interface PerTestingCriteriaResult {
1138
+ /**
1139
+ * Number of tests failed for this criteria.
1140
+ */
1141
+ failed: number;
1142
+ /**
1143
+ * Number of tests passed for this criteria.
1144
+ */
1145
+ passed: number;
1146
+ /**
1147
+ * A description of the testing criteria.
1148
+ */
1149
+ testing_criteria: string;
1150
+ }
1151
+ /**
1152
+ * Counters summarizing the outcomes of the evaluation run.
1153
+ */
1154
+ interface ResultCounts {
1155
+ /**
1156
+ * Number of output items that resulted in an error.
1157
+ */
1158
+ errored: number;
1159
+ /**
1160
+ * Number of output items that failed to pass the evaluation.
1161
+ */
1162
+ failed: number;
1163
+ /**
1164
+ * Number of output items that passed the evaluation.
1165
+ */
1166
+ passed: number;
1167
+ /**
1168
+ * Total number of executed output items.
1169
+ */
1170
+ total: number;
1171
+ }
1172
+ }
1173
+ /**
1174
+ * A schema representing an evaluation run.
1175
+ */
1176
+ export interface RunListResponse {
1177
+ /**
1178
+ * Unique identifier for the evaluation run.
1179
+ */
1180
+ id: string;
1181
+ /**
1182
+ * Unix timestamp (in seconds) when the evaluation run was created.
1183
+ */
1184
+ created_at: number;
1185
+ /**
1186
+ * Information about the run's data source.
1187
+ */
1188
+ data_source: CreateEvalJSONLRunDataSource | CreateEvalCompletionsRunDataSource | RunListResponse.Responses;
1189
+ /**
1190
+ * An object representing an error response from the Eval API.
1191
+ */
1192
+ error: EvalAPIError;
1193
+ /**
1194
+ * The identifier of the associated evaluation.
1195
+ */
1196
+ eval_id: string;
1197
+ /**
1198
+ * Set of 16 key-value pairs that can be attached to an object. This can be useful
1199
+ * for storing additional information about the object in a structured format, and
1200
+ * querying for objects via API or the dashboard.
1201
+ *
1202
+ * Keys are strings with a maximum length of 64 characters. Values are strings with
1203
+ * a maximum length of 512 characters.
1204
+ */
1205
+ metadata: Shared.Metadata | null;
1206
+ /**
1207
+ * The model that is evaluated, if applicable.
1208
+ */
1209
+ model: string;
1210
+ /**
1211
+ * The name of the evaluation run.
1212
+ */
1213
+ name: string;
1214
+ /**
1215
+ * The type of the object. Always "eval.run".
1216
+ */
1217
+ object: 'eval.run';
1218
+ /**
1219
+ * Usage statistics for each model during the evaluation run.
1220
+ */
1221
+ per_model_usage: Array<RunListResponse.PerModelUsage>;
1222
+ /**
1223
+ * Results per testing criteria applied during the evaluation run.
1224
+ */
1225
+ per_testing_criteria_results: Array<RunListResponse.PerTestingCriteriaResult>;
1226
+ /**
1227
+ * The URL to the rendered evaluation run report on the UI dashboard.
1228
+ */
1229
+ report_url: string;
1230
+ /**
1231
+ * Counters summarizing the outcomes of the evaluation run.
1232
+ */
1233
+ result_counts: RunListResponse.ResultCounts;
1234
+ /**
1235
+ * The status of the evaluation run.
1236
+ */
1237
+ status: string;
1238
+ }
1239
+ export declare namespace RunListResponse {
1240
+ /**
1241
+ * A ResponsesRunDataSource object describing a model sampling configuration.
1242
+ */
1243
+ interface Responses {
1244
+ /**
1245
+ * Determines what populates the `item` namespace in this run's data source.
1246
+ */
1247
+ source: Responses.FileContent | Responses.FileID | Responses.Responses;
1248
+ /**
1249
+ * The type of run data source. Always `responses`.
1250
+ */
1251
+ type: 'responses';
1252
+ /**
1253
+ * Used when sampling from a model. Dictates the structure of the messages passed
1254
+ * into the model. Can either be a reference to a prebuilt trajectory (ie,
1255
+ * `item.input_trajectory`), or a template with variable references to the `item`
1256
+ * namespace.
1257
+ */
1258
+ input_messages?: Responses.Template | Responses.ItemReference;
1259
+ /**
1260
+ * The name of the model to use for generating completions (e.g. "o3-mini").
1261
+ */
1262
+ model?: string;
1263
+ sampling_params?: Responses.SamplingParams;
1264
+ }
1265
+ namespace Responses {
1266
+ interface FileContent {
1267
+ /**
1268
+ * The content of the jsonl file.
1269
+ */
1270
+ content: Array<FileContent.Content>;
1271
+ /**
1272
+ * The type of jsonl source. Always `file_content`.
1273
+ */
1274
+ type: 'file_content';
1275
+ }
1276
+ namespace FileContent {
1277
+ interface Content {
1278
+ item: {
1279
+ [key: string]: unknown;
1280
+ };
1281
+ sample?: {
1282
+ [key: string]: unknown;
1283
+ };
1284
+ }
1285
+ }
1286
+ interface FileID {
1287
+ /**
1288
+ * The identifier of the file.
1289
+ */
1290
+ id: string;
1291
+ /**
1292
+ * The type of jsonl source. Always `file_id`.
1293
+ */
1294
+ type: 'file_id';
1295
+ }
1296
+ /**
1297
+ * A EvalResponsesSource object describing a run data source configuration.
1298
+ */
1299
+ interface Responses {
1300
+ /**
1301
+ * The type of run data source. Always `responses`.
1302
+ */
1303
+ type: 'responses';
1304
+ /**
1305
+ * Only include items created after this timestamp (inclusive). This is a query
1306
+ * parameter used to select responses.
1307
+ */
1308
+ created_after?: number | null;
1309
+ /**
1310
+ * Only include items created before this timestamp (inclusive). This is a query
1311
+ * parameter used to select responses.
1312
+ */
1313
+ created_before?: number | null;
1314
+ /**
1315
+ * Optional string to search the 'instructions' field. This is a query parameter
1316
+ * used to select responses.
1317
+ */
1318
+ instructions_search?: string | null;
1319
+ /**
1320
+ * Metadata filter for the responses. This is a query parameter used to select
1321
+ * responses.
1322
+ */
1323
+ metadata?: unknown | null;
1324
+ /**
1325
+ * The name of the model to find responses for. This is a query parameter used to
1326
+ * select responses.
1327
+ */
1328
+ model?: string | null;
1329
+ /**
1330
+ * Constrains effort on reasoning for
1331
+ * [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently
1332
+ * supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`.
1333
+ * Reducing reasoning effort can result in faster responses and fewer tokens used
1334
+ * on reasoning in a response.
1335
+ *
1336
+ * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
1337
+ * reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
1338
+ * calls are supported for all reasoning values in gpt-5.1.
1339
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
1340
+ * support `none`.
1341
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
1342
+ * - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
1343
+ */
1344
+ reasoning_effort?: Shared.ReasoningEffort | null;
1345
+ /**
1346
+ * Sampling temperature. This is a query parameter used to select responses.
1347
+ */
1348
+ temperature?: number | null;
1349
+ /**
1350
+ * List of tool names. This is a query parameter used to select responses.
1351
+ */
1352
+ tools?: Array<string> | null;
1353
+ /**
1354
+ * Nucleus sampling parameter. This is a query parameter used to select responses.
1355
+ */
1356
+ top_p?: number | null;
1357
+ /**
1358
+ * List of user identifiers. This is a query parameter used to select responses.
1359
+ */
1360
+ users?: Array<string> | null;
1361
+ }
1362
+ interface Template {
1363
+ /**
1364
+ * A list of chat messages forming the prompt or context. May include variable
1365
+ * references to the `item` namespace, ie {{item.name}}.
1366
+ */
1367
+ template: Array<Template.ChatMessage | Template.EvalItem>;
1368
+ /**
1369
+ * The type of input messages. Always `template`.
1370
+ */
1371
+ type: 'template';
1372
+ }
1373
+ namespace Template {
1374
+ interface ChatMessage {
1375
+ /**
1376
+ * The content of the message.
1377
+ */
1378
+ content: string;
1379
+ /**
1380
+ * The role of the message (e.g. "system", "assistant", "user").
1381
+ */
1382
+ role: string;
1383
+ }
1384
+ /**
1385
+ * A message input to the model with a role indicating instruction following
1386
+ * hierarchy. Instructions given with the `developer` or `system` role take
1387
+ * precedence over instructions given with the `user` role. Messages with the
1388
+ * `assistant` role are presumed to have been generated by the model in previous
1389
+ * interactions.
1390
+ */
1391
+ interface EvalItem {
1392
+ /**
1393
+ * Inputs to the model - can contain template strings. Supports text, output text,
1394
+ * input images, and input audio, either as a single item or an array of items.
1395
+ */
1396
+ content: string | ResponsesAPI.ResponseInputText | EvalItem.OutputText | EvalItem.InputImage | ResponsesAPI.ResponseInputAudio | GraderModelsAPI.GraderInputs;
1397
+ /**
1398
+ * The role of the message input. One of `user`, `assistant`, `system`, or
1399
+ * `developer`.
1400
+ */
1401
+ role: 'user' | 'assistant' | 'system' | 'developer';
1402
+ /**
1403
+ * The type of the message input. Always `message`.
1404
+ */
1405
+ type?: 'message';
1406
+ }
1407
+ namespace EvalItem {
1408
+ /**
1409
+ * A text output from the model.
1410
+ */
1411
+ interface OutputText {
1412
+ /**
1413
+ * The text output from the model.
1414
+ */
1415
+ text: string;
1416
+ /**
1417
+ * The type of the output text. Always `output_text`.
1418
+ */
1419
+ type: 'output_text';
1420
+ }
1421
+ /**
1422
+ * An image input block used within EvalItem content arrays.
1423
+ */
1424
+ interface InputImage {
1425
+ /**
1426
+ * The URL of the image input.
1427
+ */
1428
+ image_url: string;
1429
+ /**
1430
+ * The type of the image input. Always `input_image`.
1431
+ */
1432
+ type: 'input_image';
1433
+ /**
1434
+ * The detail level of the image to be sent to the model. One of `high`, `low`, or
1435
+ * `auto`. Defaults to `auto`.
1436
+ */
1437
+ detail?: string;
1438
+ }
1439
+ }
1440
+ }
1441
+ interface ItemReference {
1442
+ /**
1443
+ * A reference to a variable in the `item` namespace. Ie, "item.name"
1444
+ */
1445
+ item_reference: string;
1446
+ /**
1447
+ * The type of input messages. Always `item_reference`.
1448
+ */
1449
+ type: 'item_reference';
1450
+ }
1451
+ interface SamplingParams {
1452
+ /**
1453
+ * The maximum number of tokens in the generated output.
1454
+ */
1455
+ max_completion_tokens?: number;
1456
+ /**
1457
+ * Constrains effort on reasoning for
1458
+ * [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently
1459
+ * supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`.
1460
+ * Reducing reasoning effort can result in faster responses and fewer tokens used
1461
+ * on reasoning in a response.
1462
+ *
1463
+ * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
1464
+ * reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
1465
+ * calls are supported for all reasoning values in gpt-5.1.
1466
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
1467
+ * support `none`.
1468
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
1469
+ * - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
1470
+ */
1471
+ reasoning_effort?: Shared.ReasoningEffort | null;
1472
+ /**
1473
+ * A seed value to initialize the randomness, during sampling.
1474
+ */
1475
+ seed?: number;
1476
+ /**
1477
+ * A higher temperature increases randomness in the outputs.
1478
+ */
1479
+ temperature?: number;
1480
+ /**
1481
+ * Configuration options for a text response from the model. Can be plain text or
1482
+ * structured JSON data. Learn more:
1483
+ *
1484
+ * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
1485
+ * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)
1486
+ */
1487
+ text?: SamplingParams.Text;
1488
+ /**
1489
+ * An array of tools the model may call while generating a response. You can
1490
+ * specify which tool to use by setting the `tool_choice` parameter.
1491
+ *
1492
+ * The two categories of tools you can provide the model are:
1493
+ *
1494
+ * - **Built-in tools**: Tools that are provided by OpenAI that extend the model's
1495
+ * capabilities, like
1496
+ * [web search](https://platform.openai.com/docs/guides/tools-web-search) or
1497
+ * [file search](https://platform.openai.com/docs/guides/tools-file-search).
1498
+ * Learn more about
1499
+ * [built-in tools](https://platform.openai.com/docs/guides/tools).
1500
+ * - **Function calls (custom tools)**: Functions that are defined by you, enabling
1501
+ * the model to call your own code. Learn more about
1502
+ * [function calling](https://platform.openai.com/docs/guides/function-calling).
1503
+ */
1504
+ tools?: Array<ResponsesAPI.Tool>;
1505
+ /**
1506
+ * An alternative to temperature for nucleus sampling; 1.0 includes all tokens.
1507
+ */
1508
+ top_p?: number;
1509
+ }
1510
+ namespace SamplingParams {
1511
+ /**
1512
+ * Configuration options for a text response from the model. Can be plain text or
1513
+ * structured JSON data. Learn more:
1514
+ *
1515
+ * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
1516
+ * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)
1517
+ */
1518
+ interface Text {
1519
+ /**
1520
+ * An object specifying the format that the model must output.
1521
+ *
1522
+ * Configuring `{ "type": "json_schema" }` enables Structured Outputs, which
1523
+ * ensures the model will match your supplied JSON schema. Learn more in the
1524
+ * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
1525
+ *
1526
+ * The default format is `{ "type": "text" }` with no additional options.
1527
+ *
1528
+ * **Not recommended for gpt-4o and newer models:**
1529
+ *
1530
+ * Setting to `{ "type": "json_object" }` enables the older JSON mode, which
1531
+ * ensures the message the model generates is valid JSON. Using `json_schema` is
1532
+ * preferred for models that support it.
1533
+ */
1534
+ format?: ResponsesAPI.ResponseFormatTextConfig;
1535
+ }
1536
+ }
1537
+ }
1538
+ interface PerModelUsage {
1539
+ /**
1540
+ * The number of tokens retrieved from cache.
1541
+ */
1542
+ cached_tokens: number;
1543
+ /**
1544
+ * The number of completion tokens generated.
1545
+ */
1546
+ completion_tokens: number;
1547
+ /**
1548
+ * The number of invocations.
1549
+ */
1550
+ invocation_count: number;
1551
+ /**
1552
+ * The name of the model.
1553
+ */
1554
+ model_name: string;
1555
+ /**
1556
+ * The number of prompt tokens used.
1557
+ */
1558
+ prompt_tokens: number;
1559
+ /**
1560
+ * The total number of tokens used.
1561
+ */
1562
+ total_tokens: number;
1563
+ }
1564
+ interface PerTestingCriteriaResult {
1565
+ /**
1566
+ * Number of tests failed for this criteria.
1567
+ */
1568
+ failed: number;
1569
+ /**
1570
+ * Number of tests passed for this criteria.
1571
+ */
1572
+ passed: number;
1573
+ /**
1574
+ * A description of the testing criteria.
1575
+ */
1576
+ testing_criteria: string;
1577
+ }
1578
+ /**
1579
+ * Counters summarizing the outcomes of the evaluation run.
1580
+ */
1581
+ interface ResultCounts {
1582
+ /**
1583
+ * Number of output items that resulted in an error.
1584
+ */
1585
+ errored: number;
1586
+ /**
1587
+ * Number of output items that failed to pass the evaluation.
1588
+ */
1589
+ failed: number;
1590
+ /**
1591
+ * Number of output items that passed the evaluation.
1592
+ */
1593
+ passed: number;
1594
+ /**
1595
+ * Total number of executed output items.
1596
+ */
1597
+ total: number;
1598
+ }
1599
+ }
1600
+ export interface RunDeleteResponse {
1601
+ deleted?: boolean;
1602
+ object?: string;
1603
+ run_id?: string;
1604
+ }
1605
+ /**
1606
+ * A schema representing an evaluation run.
1607
+ */
1608
+ export interface RunCancelResponse {
1609
+ /**
1610
+ * Unique identifier for the evaluation run.
1611
+ */
1612
+ id: string;
1613
+ /**
1614
+ * Unix timestamp (in seconds) when the evaluation run was created.
1615
+ */
1616
+ created_at: number;
1617
+ /**
1618
+ * Information about the run's data source.
1619
+ */
1620
+ data_source: CreateEvalJSONLRunDataSource | CreateEvalCompletionsRunDataSource | RunCancelResponse.Responses;
1621
+ /**
1622
+ * An object representing an error response from the Eval API.
1623
+ */
1624
+ error: EvalAPIError;
1625
+ /**
1626
+ * The identifier of the associated evaluation.
1627
+ */
1628
+ eval_id: string;
1629
+ /**
1630
+ * Set of 16 key-value pairs that can be attached to an object. This can be useful
1631
+ * for storing additional information about the object in a structured format, and
1632
+ * querying for objects via API or the dashboard.
1633
+ *
1634
+ * Keys are strings with a maximum length of 64 characters. Values are strings with
1635
+ * a maximum length of 512 characters.
1636
+ */
1637
+ metadata: Shared.Metadata | null;
1638
+ /**
1639
+ * The model that is evaluated, if applicable.
1640
+ */
1641
+ model: string;
1642
+ /**
1643
+ * The name of the evaluation run.
1644
+ */
1645
+ name: string;
1646
+ /**
1647
+ * The type of the object. Always "eval.run".
1648
+ */
1649
+ object: 'eval.run';
1650
+ /**
1651
+ * Usage statistics for each model during the evaluation run.
1652
+ */
1653
+ per_model_usage: Array<RunCancelResponse.PerModelUsage>;
1654
+ /**
1655
+ * Results per testing criteria applied during the evaluation run.
1656
+ */
1657
+ per_testing_criteria_results: Array<RunCancelResponse.PerTestingCriteriaResult>;
1658
+ /**
1659
+ * The URL to the rendered evaluation run report on the UI dashboard.
1660
+ */
1661
+ report_url: string;
1662
+ /**
1663
+ * Counters summarizing the outcomes of the evaluation run.
1664
+ */
1665
+ result_counts: RunCancelResponse.ResultCounts;
1666
+ /**
1667
+ * The status of the evaluation run.
1668
+ */
1669
+ status: string;
1670
+ }
1671
+ export declare namespace RunCancelResponse {
1672
+ /**
1673
+ * A ResponsesRunDataSource object describing a model sampling configuration.
1674
+ */
1675
+ interface Responses {
1676
+ /**
1677
+ * Determines what populates the `item` namespace in this run's data source.
1678
+ */
1679
+ source: Responses.FileContent | Responses.FileID | Responses.Responses;
1680
+ /**
1681
+ * The type of run data source. Always `responses`.
1682
+ */
1683
+ type: 'responses';
1684
+ /**
1685
+ * Used when sampling from a model. Dictates the structure of the messages passed
1686
+ * into the model. Can either be a reference to a prebuilt trajectory (ie,
1687
+ * `item.input_trajectory`), or a template with variable references to the `item`
1688
+ * namespace.
1689
+ */
1690
+ input_messages?: Responses.Template | Responses.ItemReference;
1691
+ /**
1692
+ * The name of the model to use for generating completions (e.g. "o3-mini").
1693
+ */
1694
+ model?: string;
1695
+ sampling_params?: Responses.SamplingParams;
1696
+ }
1697
+ namespace Responses {
1698
+ interface FileContent {
1699
+ /**
1700
+ * The content of the jsonl file.
1701
+ */
1702
+ content: Array<FileContent.Content>;
1703
+ /**
1704
+ * The type of jsonl source. Always `file_content`.
1705
+ */
1706
+ type: 'file_content';
1707
+ }
1708
+ namespace FileContent {
1709
+ interface Content {
1710
+ item: {
1711
+ [key: string]: unknown;
1712
+ };
1713
+ sample?: {
1714
+ [key: string]: unknown;
1715
+ };
1716
+ }
1717
+ }
1718
+ interface FileID {
1719
+ /**
1720
+ * The identifier of the file.
1721
+ */
1722
+ id: string;
1723
+ /**
1724
+ * The type of jsonl source. Always `file_id`.
1725
+ */
1726
+ type: 'file_id';
1727
+ }
1728
+ /**
1729
+ * A EvalResponsesSource object describing a run data source configuration.
1730
+ */
1731
+ interface Responses {
1732
+ /**
1733
+ * The type of run data source. Always `responses`.
1734
+ */
1735
+ type: 'responses';
1736
+ /**
1737
+ * Only include items created after this timestamp (inclusive). This is a query
1738
+ * parameter used to select responses.
1739
+ */
1740
+ created_after?: number | null;
1741
+ /**
1742
+ * Only include items created before this timestamp (inclusive). This is a query
1743
+ * parameter used to select responses.
1744
+ */
1745
+ created_before?: number | null;
1746
+ /**
1747
+ * Optional string to search the 'instructions' field. This is a query parameter
1748
+ * used to select responses.
1749
+ */
1750
+ instructions_search?: string | null;
1751
+ /**
1752
+ * Metadata filter for the responses. This is a query parameter used to select
1753
+ * responses.
1754
+ */
1755
+ metadata?: unknown | null;
1756
+ /**
1757
+ * The name of the model to find responses for. This is a query parameter used to
1758
+ * select responses.
1759
+ */
1760
+ model?: string | null;
1761
+ /**
1762
+ * Constrains effort on reasoning for
1763
+ * [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently
1764
+ * supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`.
1765
+ * Reducing reasoning effort can result in faster responses and fewer tokens used
1766
+ * on reasoning in a response.
1767
+ *
1768
+ * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
1769
+ * reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
1770
+ * calls are supported for all reasoning values in gpt-5.1.
1771
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
1772
+ * support `none`.
1773
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
1774
+ * - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
1775
+ */
1776
+ reasoning_effort?: Shared.ReasoningEffort | null;
1777
+ /**
1778
+ * Sampling temperature. This is a query parameter used to select responses.
1779
+ */
1780
+ temperature?: number | null;
1781
+ /**
1782
+ * List of tool names. This is a query parameter used to select responses.
1783
+ */
1784
+ tools?: Array<string> | null;
1785
+ /**
1786
+ * Nucleus sampling parameter. This is a query parameter used to select responses.
1787
+ */
1788
+ top_p?: number | null;
1789
+ /**
1790
+ * List of user identifiers. This is a query parameter used to select responses.
1791
+ */
1792
+ users?: Array<string> | null;
1793
+ }
1794
+ interface Template {
1795
+ /**
1796
+ * A list of chat messages forming the prompt or context. May include variable
1797
+ * references to the `item` namespace, ie {{item.name}}.
1798
+ */
1799
+ template: Array<Template.ChatMessage | Template.EvalItem>;
1800
+ /**
1801
+ * The type of input messages. Always `template`.
1802
+ */
1803
+ type: 'template';
1804
+ }
1805
+ namespace Template {
1806
+ interface ChatMessage {
1807
+ /**
1808
+ * The content of the message.
1809
+ */
1810
+ content: string;
1811
+ /**
1812
+ * The role of the message (e.g. "system", "assistant", "user").
1813
+ */
1814
+ role: string;
1815
+ }
1816
+ /**
1817
+ * A message input to the model with a role indicating instruction following
1818
+ * hierarchy. Instructions given with the `developer` or `system` role take
1819
+ * precedence over instructions given with the `user` role. Messages with the
1820
+ * `assistant` role are presumed to have been generated by the model in previous
1821
+ * interactions.
1822
+ */
1823
+ interface EvalItem {
1824
+ /**
1825
+ * Inputs to the model - can contain template strings. Supports text, output text,
1826
+ * input images, and input audio, either as a single item or an array of items.
1827
+ */
1828
+ content: string | ResponsesAPI.ResponseInputText | EvalItem.OutputText | EvalItem.InputImage | ResponsesAPI.ResponseInputAudio | GraderModelsAPI.GraderInputs;
1829
+ /**
1830
+ * The role of the message input. One of `user`, `assistant`, `system`, or
1831
+ * `developer`.
1832
+ */
1833
+ role: 'user' | 'assistant' | 'system' | 'developer';
1834
+ /**
1835
+ * The type of the message input. Always `message`.
1836
+ */
1837
+ type?: 'message';
1838
+ }
1839
+ namespace EvalItem {
1840
+ /**
1841
+ * A text output from the model.
1842
+ */
1843
+ interface OutputText {
1844
+ /**
1845
+ * The text output from the model.
1846
+ */
1847
+ text: string;
1848
+ /**
1849
+ * The type of the output text. Always `output_text`.
1850
+ */
1851
+ type: 'output_text';
1852
+ }
1853
+ /**
1854
+ * An image input block used within EvalItem content arrays.
1855
+ */
1856
+ interface InputImage {
1857
+ /**
1858
+ * The URL of the image input.
1859
+ */
1860
+ image_url: string;
1861
+ /**
1862
+ * The type of the image input. Always `input_image`.
1863
+ */
1864
+ type: 'input_image';
1865
+ /**
1866
+ * The detail level of the image to be sent to the model. One of `high`, `low`, or
1867
+ * `auto`. Defaults to `auto`.
1868
+ */
1869
+ detail?: string;
1870
+ }
1871
+ }
1872
+ }
1873
+ interface ItemReference {
1874
+ /**
1875
+ * A reference to a variable in the `item` namespace. Ie, "item.name"
1876
+ */
1877
+ item_reference: string;
1878
+ /**
1879
+ * The type of input messages. Always `item_reference`.
1880
+ */
1881
+ type: 'item_reference';
1882
+ }
1883
+ interface SamplingParams {
1884
+ /**
1885
+ * The maximum number of tokens in the generated output.
1886
+ */
1887
+ max_completion_tokens?: number;
1888
+ /**
1889
+ * Constrains effort on reasoning for
1890
+ * [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently
1891
+ * supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`.
1892
+ * Reducing reasoning effort can result in faster responses and fewer tokens used
1893
+ * on reasoning in a response.
1894
+ *
1895
+ * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
1896
+ * reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
1897
+ * calls are supported for all reasoning values in gpt-5.1.
1898
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
1899
+ * support `none`.
1900
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
1901
+ * - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
1902
+ */
1903
+ reasoning_effort?: Shared.ReasoningEffort | null;
1904
+ /**
1905
+ * A seed value to initialize the randomness, during sampling.
1906
+ */
1907
+ seed?: number;
1908
+ /**
1909
+ * A higher temperature increases randomness in the outputs.
1910
+ */
1911
+ temperature?: number;
1912
+ /**
1913
+ * Configuration options for a text response from the model. Can be plain text or
1914
+ * structured JSON data. Learn more:
1915
+ *
1916
+ * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
1917
+ * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)
1918
+ */
1919
+ text?: SamplingParams.Text;
1920
+ /**
1921
+ * An array of tools the model may call while generating a response. You can
1922
+ * specify which tool to use by setting the `tool_choice` parameter.
1923
+ *
1924
+ * The two categories of tools you can provide the model are:
1925
+ *
1926
+ * - **Built-in tools**: Tools that are provided by OpenAI that extend the model's
1927
+ * capabilities, like
1928
+ * [web search](https://platform.openai.com/docs/guides/tools-web-search) or
1929
+ * [file search](https://platform.openai.com/docs/guides/tools-file-search).
1930
+ * Learn more about
1931
+ * [built-in tools](https://platform.openai.com/docs/guides/tools).
1932
+ * - **Function calls (custom tools)**: Functions that are defined by you, enabling
1933
+ * the model to call your own code. Learn more about
1934
+ * [function calling](https://platform.openai.com/docs/guides/function-calling).
1935
+ */
1936
+ tools?: Array<ResponsesAPI.Tool>;
1937
+ /**
1938
+ * An alternative to temperature for nucleus sampling; 1.0 includes all tokens.
1939
+ */
1940
+ top_p?: number;
1941
+ }
1942
+ namespace SamplingParams {
1943
+ /**
1944
+ * Configuration options for a text response from the model. Can be plain text or
1945
+ * structured JSON data. Learn more:
1946
+ *
1947
+ * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
1948
+ * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)
1949
+ */
1950
+ interface Text {
1951
+ /**
1952
+ * An object specifying the format that the model must output.
1953
+ *
1954
+ * Configuring `{ "type": "json_schema" }` enables Structured Outputs, which
1955
+ * ensures the model will match your supplied JSON schema. Learn more in the
1956
+ * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
1957
+ *
1958
+ * The default format is `{ "type": "text" }` with no additional options.
1959
+ *
1960
+ * **Not recommended for gpt-4o and newer models:**
1961
+ *
1962
+ * Setting to `{ "type": "json_object" }` enables the older JSON mode, which
1963
+ * ensures the message the model generates is valid JSON. Using `json_schema` is
1964
+ * preferred for models that support it.
1965
+ */
1966
+ format?: ResponsesAPI.ResponseFormatTextConfig;
1967
+ }
1968
+ }
1969
+ }
1970
+ interface PerModelUsage {
1971
+ /**
1972
+ * The number of tokens retrieved from cache.
1973
+ */
1974
+ cached_tokens: number;
1975
+ /**
1976
+ * The number of completion tokens generated.
1977
+ */
1978
+ completion_tokens: number;
1979
+ /**
1980
+ * The number of invocations.
1981
+ */
1982
+ invocation_count: number;
1983
+ /**
1984
+ * The name of the model.
1985
+ */
1986
+ model_name: string;
1987
+ /**
1988
+ * The number of prompt tokens used.
1989
+ */
1990
+ prompt_tokens: number;
1991
+ /**
1992
+ * The total number of tokens used.
1993
+ */
1994
+ total_tokens: number;
1995
+ }
1996
+ interface PerTestingCriteriaResult {
1997
+ /**
1998
+ * Number of tests failed for this criteria.
1999
+ */
2000
+ failed: number;
2001
+ /**
2002
+ * Number of tests passed for this criteria.
2003
+ */
2004
+ passed: number;
2005
+ /**
2006
+ * A description of the testing criteria.
2007
+ */
2008
+ testing_criteria: string;
2009
+ }
2010
+ /**
2011
+ * Counters summarizing the outcomes of the evaluation run.
2012
+ */
2013
+ interface ResultCounts {
2014
+ /**
2015
+ * Number of output items that resulted in an error.
2016
+ */
2017
+ errored: number;
2018
+ /**
2019
+ * Number of output items that failed to pass the evaluation.
2020
+ */
2021
+ failed: number;
2022
+ /**
2023
+ * Number of output items that passed the evaluation.
2024
+ */
2025
+ passed: number;
2026
+ /**
2027
+ * Total number of executed output items.
2028
+ */
2029
+ total: number;
2030
+ }
2031
+ }
2032
+ export interface RunCreateParams {
2033
+ /**
2034
+ * Details about the run's data source.
2035
+ */
2036
+ data_source: CreateEvalJSONLRunDataSource | CreateEvalCompletionsRunDataSource | RunCreateParams.CreateEvalResponsesRunDataSource;
2037
+ /**
2038
+ * Set of 16 key-value pairs that can be attached to an object. This can be useful
2039
+ * for storing additional information about the object in a structured format, and
2040
+ * querying for objects via API or the dashboard.
2041
+ *
2042
+ * Keys are strings with a maximum length of 64 characters. Values are strings with
2043
+ * a maximum length of 512 characters.
2044
+ */
2045
+ metadata?: Shared.Metadata | null;
2046
+ /**
2047
+ * The name of the run.
2048
+ */
2049
+ name?: string;
2050
+ }
2051
+ export declare namespace RunCreateParams {
2052
+ /**
2053
+ * A ResponsesRunDataSource object describing a model sampling configuration.
2054
+ */
2055
+ interface CreateEvalResponsesRunDataSource {
2056
+ /**
2057
+ * Determines what populates the `item` namespace in this run's data source.
2058
+ */
2059
+ source: CreateEvalResponsesRunDataSource.FileContent | CreateEvalResponsesRunDataSource.FileID | CreateEvalResponsesRunDataSource.Responses;
2060
+ /**
2061
+ * The type of run data source. Always `responses`.
2062
+ */
2063
+ type: 'responses';
2064
+ /**
2065
+ * Used when sampling from a model. Dictates the structure of the messages passed
2066
+ * into the model. Can either be a reference to a prebuilt trajectory (ie,
2067
+ * `item.input_trajectory`), or a template with variable references to the `item`
2068
+ * namespace.
2069
+ */
2070
+ input_messages?: CreateEvalResponsesRunDataSource.Template | CreateEvalResponsesRunDataSource.ItemReference;
2071
+ /**
2072
+ * The name of the model to use for generating completions (e.g. "o3-mini").
2073
+ */
2074
+ model?: string;
2075
+ sampling_params?: CreateEvalResponsesRunDataSource.SamplingParams;
2076
+ }
2077
+ namespace CreateEvalResponsesRunDataSource {
2078
+ interface FileContent {
2079
+ /**
2080
+ * The content of the jsonl file.
2081
+ */
2082
+ content: Array<FileContent.Content>;
2083
+ /**
2084
+ * The type of jsonl source. Always `file_content`.
2085
+ */
2086
+ type: 'file_content';
2087
+ }
2088
+ namespace FileContent {
2089
+ interface Content {
2090
+ item: {
2091
+ [key: string]: unknown;
2092
+ };
2093
+ sample?: {
2094
+ [key: string]: unknown;
2095
+ };
2096
+ }
2097
+ }
2098
+ interface FileID {
2099
+ /**
2100
+ * The identifier of the file.
2101
+ */
2102
+ id: string;
2103
+ /**
2104
+ * The type of jsonl source. Always `file_id`.
2105
+ */
2106
+ type: 'file_id';
2107
+ }
2108
+ /**
2109
+ * A EvalResponsesSource object describing a run data source configuration.
2110
+ */
2111
+ interface Responses {
2112
+ /**
2113
+ * The type of run data source. Always `responses`.
2114
+ */
2115
+ type: 'responses';
2116
+ /**
2117
+ * Only include items created after this timestamp (inclusive). This is a query
2118
+ * parameter used to select responses.
2119
+ */
2120
+ created_after?: number | null;
2121
+ /**
2122
+ * Only include items created before this timestamp (inclusive). This is a query
2123
+ * parameter used to select responses.
2124
+ */
2125
+ created_before?: number | null;
2126
+ /**
2127
+ * Optional string to search the 'instructions' field. This is a query parameter
2128
+ * used to select responses.
2129
+ */
2130
+ instructions_search?: string | null;
2131
+ /**
2132
+ * Metadata filter for the responses. This is a query parameter used to select
2133
+ * responses.
2134
+ */
2135
+ metadata?: unknown | null;
2136
+ /**
2137
+ * The name of the model to find responses for. This is a query parameter used to
2138
+ * select responses.
2139
+ */
2140
+ model?: string | null;
2141
+ /**
2142
+ * Constrains effort on reasoning for
2143
+ * [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently
2144
+ * supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`.
2145
+ * Reducing reasoning effort can result in faster responses and fewer tokens used
2146
+ * on reasoning in a response.
2147
+ *
2148
+ * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
2149
+ * reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
2150
+ * calls are supported for all reasoning values in gpt-5.1.
2151
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
2152
+ * support `none`.
2153
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
2154
+ * - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
2155
+ */
2156
+ reasoning_effort?: Shared.ReasoningEffort | null;
2157
+ /**
2158
+ * Sampling temperature. This is a query parameter used to select responses.
2159
+ */
2160
+ temperature?: number | null;
2161
+ /**
2162
+ * List of tool names. This is a query parameter used to select responses.
2163
+ */
2164
+ tools?: Array<string> | null;
2165
+ /**
2166
+ * Nucleus sampling parameter. This is a query parameter used to select responses.
2167
+ */
2168
+ top_p?: number | null;
2169
+ /**
2170
+ * List of user identifiers. This is a query parameter used to select responses.
2171
+ */
2172
+ users?: Array<string> | null;
2173
+ }
2174
+ interface Template {
2175
+ /**
2176
+ * A list of chat messages forming the prompt or context. May include variable
2177
+ * references to the `item` namespace, ie {{item.name}}.
2178
+ */
2179
+ template: Array<Template.ChatMessage | Template.EvalItem>;
2180
+ /**
2181
+ * The type of input messages. Always `template`.
2182
+ */
2183
+ type: 'template';
2184
+ }
2185
+ namespace Template {
2186
+ interface ChatMessage {
2187
+ /**
2188
+ * The content of the message.
2189
+ */
2190
+ content: string;
2191
+ /**
2192
+ * The role of the message (e.g. "system", "assistant", "user").
2193
+ */
2194
+ role: string;
2195
+ }
2196
+ /**
2197
+ * A message input to the model with a role indicating instruction following
2198
+ * hierarchy. Instructions given with the `developer` or `system` role take
2199
+ * precedence over instructions given with the `user` role. Messages with the
2200
+ * `assistant` role are presumed to have been generated by the model in previous
2201
+ * interactions.
2202
+ */
2203
+ interface EvalItem {
2204
+ /**
2205
+ * Inputs to the model - can contain template strings. Supports text, output text,
2206
+ * input images, and input audio, either as a single item or an array of items.
2207
+ */
2208
+ content: string | ResponsesAPI.ResponseInputText | EvalItem.OutputText | EvalItem.InputImage | ResponsesAPI.ResponseInputAudio | GraderModelsAPI.GraderInputs;
2209
+ /**
2210
+ * The role of the message input. One of `user`, `assistant`, `system`, or
2211
+ * `developer`.
2212
+ */
2213
+ role: 'user' | 'assistant' | 'system' | 'developer';
2214
+ /**
2215
+ * The type of the message input. Always `message`.
2216
+ */
2217
+ type?: 'message';
2218
+ }
2219
+ namespace EvalItem {
2220
+ /**
2221
+ * A text output from the model.
2222
+ */
2223
+ interface OutputText {
2224
+ /**
2225
+ * The text output from the model.
2226
+ */
2227
+ text: string;
2228
+ /**
2229
+ * The type of the output text. Always `output_text`.
2230
+ */
2231
+ type: 'output_text';
2232
+ }
2233
+ /**
2234
+ * An image input block used within EvalItem content arrays.
2235
+ */
2236
+ interface InputImage {
2237
+ /**
2238
+ * The URL of the image input.
2239
+ */
2240
+ image_url: string;
2241
+ /**
2242
+ * The type of the image input. Always `input_image`.
2243
+ */
2244
+ type: 'input_image';
2245
+ /**
2246
+ * The detail level of the image to be sent to the model. One of `high`, `low`, or
2247
+ * `auto`. Defaults to `auto`.
2248
+ */
2249
+ detail?: string;
2250
+ }
2251
+ }
2252
+ }
2253
+ interface ItemReference {
2254
+ /**
2255
+ * A reference to a variable in the `item` namespace. Ie, "item.name"
2256
+ */
2257
+ item_reference: string;
2258
+ /**
2259
+ * The type of input messages. Always `item_reference`.
2260
+ */
2261
+ type: 'item_reference';
2262
+ }
2263
+ interface SamplingParams {
2264
+ /**
2265
+ * The maximum number of tokens in the generated output.
2266
+ */
2267
+ max_completion_tokens?: number;
2268
+ /**
2269
+ * Constrains effort on reasoning for
2270
+ * [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently
2271
+ * supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`.
2272
+ * Reducing reasoning effort can result in faster responses and fewer tokens used
2273
+ * on reasoning in a response.
2274
+ *
2275
+ * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported
2276
+ * reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool
2277
+ * calls are supported for all reasoning values in gpt-5.1.
2278
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not
2279
+ * support `none`.
2280
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
2281
+ * - `xhigh` is supported for all models after `gpt-5.1-codex-max`.
2282
+ */
2283
+ reasoning_effort?: Shared.ReasoningEffort | null;
2284
+ /**
2285
+ * A seed value to initialize the randomness, during sampling.
2286
+ */
2287
+ seed?: number;
2288
+ /**
2289
+ * A higher temperature increases randomness in the outputs.
2290
+ */
2291
+ temperature?: number;
2292
+ /**
2293
+ * Configuration options for a text response from the model. Can be plain text or
2294
+ * structured JSON data. Learn more:
2295
+ *
2296
+ * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
2297
+ * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)
2298
+ */
2299
+ text?: SamplingParams.Text;
2300
+ /**
2301
+ * An array of tools the model may call while generating a response. You can
2302
+ * specify which tool to use by setting the `tool_choice` parameter.
2303
+ *
2304
+ * The two categories of tools you can provide the model are:
2305
+ *
2306
+ * - **Built-in tools**: Tools that are provided by OpenAI that extend the model's
2307
+ * capabilities, like
2308
+ * [web search](https://platform.openai.com/docs/guides/tools-web-search) or
2309
+ * [file search](https://platform.openai.com/docs/guides/tools-file-search).
2310
+ * Learn more about
2311
+ * [built-in tools](https://platform.openai.com/docs/guides/tools).
2312
+ * - **Function calls (custom tools)**: Functions that are defined by you, enabling
2313
+ * the model to call your own code. Learn more about
2314
+ * [function calling](https://platform.openai.com/docs/guides/function-calling).
2315
+ */
2316
+ tools?: Array<ResponsesAPI.Tool>;
2317
+ /**
2318
+ * An alternative to temperature for nucleus sampling; 1.0 includes all tokens.
2319
+ */
2320
+ top_p?: number;
2321
+ }
2322
+ namespace SamplingParams {
2323
+ /**
2324
+ * Configuration options for a text response from the model. Can be plain text or
2325
+ * structured JSON data. Learn more:
2326
+ *
2327
+ * - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
2328
+ * - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)
2329
+ */
2330
+ interface Text {
2331
+ /**
2332
+ * An object specifying the format that the model must output.
2333
+ *
2334
+ * Configuring `{ "type": "json_schema" }` enables Structured Outputs, which
2335
+ * ensures the model will match your supplied JSON schema. Learn more in the
2336
+ * [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
2337
+ *
2338
+ * The default format is `{ "type": "text" }` with no additional options.
2339
+ *
2340
+ * **Not recommended for gpt-4o and newer models:**
2341
+ *
2342
+ * Setting to `{ "type": "json_object" }` enables the older JSON mode, which
2343
+ * ensures the message the model generates is valid JSON. Using `json_schema` is
2344
+ * preferred for models that support it.
2345
+ */
2346
+ format?: ResponsesAPI.ResponseFormatTextConfig;
2347
+ }
2348
+ }
2349
+ }
2350
+ }
2351
+ export interface RunRetrieveParams {
2352
+ /**
2353
+ * The ID of the evaluation to retrieve runs for.
2354
+ */
2355
+ eval_id: string;
2356
+ }
2357
+ export interface RunListParams extends CursorPageParams {
2358
+ /**
2359
+ * Sort order for runs by timestamp. Use `asc` for ascending order or `desc` for
2360
+ * descending order. Defaults to `asc`.
2361
+ */
2362
+ order?: 'asc' | 'desc';
2363
+ /**
2364
+ * Filter runs by status. One of `queued` | `in_progress` | `failed` | `completed`
2365
+ * | `canceled`.
2366
+ */
2367
+ status?: 'queued' | 'in_progress' | 'completed' | 'canceled' | 'failed';
2368
+ }
2369
+ export interface RunDeleteParams {
2370
+ /**
2371
+ * The ID of the evaluation to delete the run from.
2372
+ */
2373
+ eval_id: string;
2374
+ }
2375
+ export interface RunCancelParams {
2376
+ /**
2377
+ * The ID of the evaluation whose run you want to cancel.
2378
+ */
2379
+ eval_id: string;
2380
+ }
2381
+ export declare namespace Runs {
2382
+ export { type CreateEvalCompletionsRunDataSource as CreateEvalCompletionsRunDataSource, type CreateEvalJSONLRunDataSource as CreateEvalJSONLRunDataSource, type EvalAPIError as EvalAPIError, type RunCreateResponse as RunCreateResponse, type RunRetrieveResponse as RunRetrieveResponse, type RunListResponse as RunListResponse, type RunDeleteResponse as RunDeleteResponse, type RunCancelResponse as RunCancelResponse, type RunListResponsesPage as RunListResponsesPage, type RunCreateParams as RunCreateParams, type RunRetrieveParams as RunRetrieveParams, type RunListParams as RunListParams, type RunDeleteParams as RunDeleteParams, type RunCancelParams as RunCancelParams, };
2383
+ export { OutputItems as OutputItems, type OutputItemRetrieveResponse as OutputItemRetrieveResponse, type OutputItemListResponse as OutputItemListResponse, type OutputItemListResponsesPage as OutputItemListResponsesPage, type OutputItemRetrieveParams as OutputItemRetrieveParams, type OutputItemListParams as OutputItemListParams, };
2384
+ }
2385
+ //# sourceMappingURL=runs.d.ts.map