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