llama-stack-client 0.3.5 → 0.4.0-rc2

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 (580) hide show
  1. package/CHANGELOG.md +153 -0
  2. package/README.md +48 -39
  3. package/error.d.ts.map +1 -1
  4. package/error.js +1 -0
  5. package/error.js.map +1 -1
  6. package/error.mjs.map +1 -1
  7. package/index.d.mts +33 -54
  8. package/index.d.ts +33 -54
  9. package/index.d.ts.map +1 -1
  10. package/index.js +20 -29
  11. package/index.js.map +1 -1
  12. package/index.mjs +18 -28
  13. package/index.mjs.map +1 -1
  14. package/lib/response-helpers.d.ts +23 -0
  15. package/lib/response-helpers.d.ts.map +1 -0
  16. package/lib/response-helpers.js +53 -0
  17. package/lib/response-helpers.js.map +1 -0
  18. package/lib/response-helpers.mjs +49 -0
  19. package/lib/response-helpers.mjs.map +1 -0
  20. package/package.json +7 -1
  21. package/pagination.d.ts.map +1 -1
  22. package/pagination.js +2 -4
  23. package/pagination.js.map +1 -1
  24. package/pagination.mjs +1 -4
  25. package/pagination.mjs.map +1 -1
  26. package/resource.d.ts.map +1 -1
  27. package/resource.js.map +1 -1
  28. package/resource.mjs.map +1 -1
  29. package/resources/alpha/admin.d.ts +41 -0
  30. package/resources/alpha/admin.d.ts.map +1 -0
  31. package/resources/alpha/admin.js +46 -0
  32. package/resources/alpha/admin.js.map +1 -0
  33. package/resources/alpha/admin.mjs +42 -0
  34. package/resources/alpha/admin.mjs.map +1 -0
  35. package/resources/alpha/alpha.d.ts +26 -0
  36. package/resources/alpha/alpha.d.ts.map +1 -0
  37. package/resources/alpha/alpha.js +61 -0
  38. package/resources/alpha/alpha.js.map +1 -0
  39. package/resources/alpha/alpha.mjs +34 -0
  40. package/resources/alpha/alpha.mjs.map +1 -0
  41. package/resources/{benchmarks.d.ts → alpha/benchmarks.d.ts} +41 -15
  42. package/resources/alpha/benchmarks.d.ts.map +1 -0
  43. package/resources/{benchmarks.js → alpha/benchmarks.js} +18 -4
  44. package/resources/alpha/benchmarks.js.map +1 -0
  45. package/resources/alpha/benchmarks.mjs +44 -0
  46. package/resources/alpha/benchmarks.mjs.map +1 -0
  47. package/resources/alpha/eval/eval.d.ts +160 -0
  48. package/resources/alpha/eval/eval.d.ts.map +1 -0
  49. package/resources/{eval → alpha/eval}/eval.js +7 -6
  50. package/resources/alpha/eval/eval.js.map +1 -0
  51. package/resources/{eval → alpha/eval}/eval.mjs +7 -5
  52. package/resources/alpha/eval/eval.mjs.map +1 -0
  53. package/resources/alpha/eval/index.d.ts +3 -0
  54. package/resources/alpha/eval/index.d.ts.map +1 -0
  55. package/resources/{eval → alpha/eval}/index.js +2 -1
  56. package/resources/alpha/eval/index.js.map +1 -0
  57. package/resources/{eval → alpha/eval}/index.mjs +2 -0
  58. package/resources/alpha/eval/index.mjs.map +1 -0
  59. package/resources/{eval → alpha/eval}/jobs.d.ts +2 -2
  60. package/resources/alpha/eval/jobs.d.ts.map +1 -0
  61. package/resources/{eval → alpha/eval}/jobs.js +6 -5
  62. package/resources/alpha/eval/jobs.js.map +1 -0
  63. package/resources/{eval → alpha/eval}/jobs.mjs +6 -4
  64. package/resources/alpha/eval/jobs.mjs.map +1 -0
  65. package/resources/alpha/eval.d.ts.map +1 -0
  66. package/resources/{eval.js → alpha/eval.js} +1 -0
  67. package/resources/alpha/eval.js.map +1 -0
  68. package/resources/alpha/eval.mjs.map +1 -0
  69. package/resources/alpha/index.d.ts +7 -0
  70. package/resources/alpha/index.d.ts.map +1 -0
  71. package/resources/alpha/index.js +23 -0
  72. package/resources/alpha/index.js.map +1 -0
  73. package/resources/alpha/index.mjs +14 -0
  74. package/resources/alpha/index.mjs.map +1 -0
  75. package/resources/alpha/inference.d.ts +85 -0
  76. package/resources/alpha/inference.d.ts.map +1 -0
  77. package/resources/{agents/steps.js → alpha/inference.js} +9 -8
  78. package/resources/alpha/inference.js.map +1 -0
  79. package/resources/alpha/inference.mjs +17 -0
  80. package/resources/alpha/inference.mjs.map +1 -0
  81. package/resources/alpha/post-training/index.d.ts.map +1 -0
  82. package/resources/{post-training → alpha/post-training}/index.js +2 -1
  83. package/resources/alpha/post-training/index.js.map +1 -0
  84. package/resources/{post-training → alpha/post-training}/index.mjs +2 -0
  85. package/resources/alpha/post-training/index.mjs.map +1 -0
  86. package/resources/alpha/post-training/job.d.ts +113 -0
  87. package/resources/alpha/post-training/job.d.ts.map +1 -0
  88. package/resources/{post-training → alpha/post-training}/job.js +7 -6
  89. package/resources/alpha/post-training/job.js.map +1 -0
  90. package/resources/{post-training → alpha/post-training}/job.mjs +7 -5
  91. package/resources/alpha/post-training/job.mjs.map +1 -0
  92. package/resources/alpha/post-training/post-training.d.ts +245 -0
  93. package/resources/alpha/post-training/post-training.d.ts.map +1 -0
  94. package/resources/{post-training → alpha/post-training}/post-training.js +5 -4
  95. package/resources/alpha/post-training/post-training.js.map +1 -0
  96. package/resources/{post-training → alpha/post-training}/post-training.mjs +5 -3
  97. package/resources/alpha/post-training/post-training.mjs.map +1 -0
  98. package/resources/alpha/post-training.d.ts.map +1 -0
  99. package/resources/{post-training.js → alpha/post-training.js} +2 -1
  100. package/resources/alpha/post-training.js.map +1 -0
  101. package/resources/{post-training.mjs → alpha/post-training.mjs} +2 -0
  102. package/resources/alpha/post-training.mjs.map +1 -0
  103. package/resources/alpha.d.ts +2 -0
  104. package/resources/alpha.d.ts.map +1 -0
  105. package/resources/alpha.js +25 -0
  106. package/resources/alpha.js.map +1 -0
  107. package/resources/alpha.mjs +9 -0
  108. package/resources/alpha.mjs.map +1 -0
  109. package/resources/batches.d.ts +322 -0
  110. package/resources/batches.d.ts.map +1 -0
  111. package/resources/batches.js +45 -0
  112. package/resources/batches.js.map +1 -0
  113. package/resources/batches.mjs +40 -0
  114. package/resources/batches.mjs.map +1 -0
  115. package/resources/beta/beta.d.ts +10 -0
  116. package/resources/beta/beta.d.ts.map +1 -0
  117. package/resources/{tool-runtime/tool-runtime.js → beta/beta.js} +10 -22
  118. package/resources/beta/beta.js.map +1 -0
  119. package/resources/beta/beta.mjs +18 -0
  120. package/resources/beta/beta.mjs.map +1 -0
  121. package/resources/{datasets.d.ts → beta/datasets.d.ts} +117 -99
  122. package/resources/beta/datasets.d.ts.map +1 -0
  123. package/resources/{datasets.js → beta/datasets.js} +14 -9
  124. package/resources/beta/datasets.js.map +1 -0
  125. package/resources/{datasets.mjs → beta/datasets.mjs} +14 -8
  126. package/resources/beta/datasets.mjs.map +1 -0
  127. package/resources/beta/index.d.ts +3 -0
  128. package/resources/beta/index.d.ts.map +1 -0
  129. package/resources/beta/index.js +15 -0
  130. package/resources/beta/index.js.map +1 -0
  131. package/resources/beta/index.mjs +10 -0
  132. package/resources/beta/index.mjs.map +1 -0
  133. package/resources/beta.d.ts +2 -0
  134. package/resources/beta.d.ts.map +1 -0
  135. package/resources/{agents.js → beta.js} +4 -3
  136. package/resources/beta.js.map +1 -0
  137. package/resources/beta.mjs +9 -0
  138. package/resources/beta.mjs.map +1 -0
  139. package/resources/chat/chat.d.ts +75 -80
  140. package/resources/chat/chat.d.ts.map +1 -1
  141. package/resources/chat/chat.js +2 -2
  142. package/resources/chat/chat.js.map +1 -1
  143. package/resources/chat/chat.mjs +3 -2
  144. package/resources/chat/chat.mjs.map +1 -1
  145. package/resources/chat/completions.d.ts +760 -1406
  146. package/resources/chat/completions.d.ts.map +1 -1
  147. package/resources/chat/completions.js +8 -14
  148. package/resources/chat/completions.js.map +1 -1
  149. package/resources/chat/completions.mjs +7 -11
  150. package/resources/chat/completions.mjs.map +1 -1
  151. package/resources/chat/index.d.ts +1 -1
  152. package/resources/chat/index.d.ts.map +1 -1
  153. package/resources/chat/index.js +3 -3
  154. package/resources/chat/index.js.map +1 -1
  155. package/resources/chat/index.mjs +3 -1
  156. package/resources/chat/index.mjs.map +1 -1
  157. package/resources/chat.js +2 -1
  158. package/resources/chat.js.map +1 -1
  159. package/resources/chat.mjs +2 -0
  160. package/resources/chat.mjs.map +1 -1
  161. package/resources/completions.d.ts +54 -97
  162. package/resources/completions.d.ts.map +1 -1
  163. package/resources/completions.js +3 -6
  164. package/resources/completions.js.map +1 -1
  165. package/resources/completions.mjs +3 -5
  166. package/resources/completions.mjs.map +1 -1
  167. package/resources/conversations/conversations.d.ts +320 -0
  168. package/resources/conversations/conversations.d.ts.map +1 -0
  169. package/resources/conversations/conversations.js +78 -0
  170. package/resources/conversations/conversations.js.map +1 -0
  171. package/resources/conversations/conversations.mjs +51 -0
  172. package/resources/conversations/conversations.mjs.map +1 -0
  173. package/resources/conversations/index.d.ts +3 -0
  174. package/resources/conversations/index.d.ts.map +1 -0
  175. package/resources/conversations/index.js +16 -0
  176. package/resources/conversations/index.js.map +1 -0
  177. package/resources/conversations/index.mjs +10 -0
  178. package/resources/conversations/index.mjs.map +1 -0
  179. package/resources/conversations/items.d.ts +874 -0
  180. package/resources/conversations/items.d.ts.map +1 -0
  181. package/resources/conversations/items.js +51 -0
  182. package/resources/conversations/items.js.map +1 -0
  183. package/resources/conversations/items.mjs +46 -0
  184. package/resources/conversations/items.mjs.map +1 -0
  185. package/resources/conversations.d.ts +2 -0
  186. package/resources/conversations.d.ts.map +1 -0
  187. package/resources/conversations.js +25 -0
  188. package/resources/conversations.js.map +1 -0
  189. package/resources/conversations.mjs +9 -0
  190. package/resources/conversations.mjs.map +1 -0
  191. package/resources/embeddings.d.ts +10 -52
  192. package/resources/embeddings.d.ts.map +1 -1
  193. package/resources/embeddings.js +5 -2
  194. package/resources/embeddings.js.map +1 -1
  195. package/resources/embeddings.mjs +5 -1
  196. package/resources/embeddings.mjs.map +1 -1
  197. package/resources/files.d.ts +44 -54
  198. package/resources/files.d.ts.map +1 -1
  199. package/resources/files.js +18 -9
  200. package/resources/files.js.map +1 -1
  201. package/resources/files.mjs +18 -8
  202. package/resources/files.mjs.map +1 -1
  203. package/resources/index.d.ts +11 -15
  204. package/resources/index.d.ts.map +1 -1
  205. package/resources/index.js +15 -21
  206. package/resources/index.js.map +1 -1
  207. package/resources/index.mjs +9 -11
  208. package/resources/index.mjs.map +1 -1
  209. package/resources/inspect.d.ts +3 -71
  210. package/resources/inspect.d.ts.map +1 -1
  211. package/resources/inspect.js +2 -1
  212. package/resources/inspect.js.map +1 -1
  213. package/resources/inspect.mjs +2 -0
  214. package/resources/inspect.mjs.map +1 -1
  215. package/resources/models/index.d.ts +2 -2
  216. package/resources/models/index.d.ts.map +1 -1
  217. package/resources/models/index.js +2 -1
  218. package/resources/models/index.js.map +1 -1
  219. package/resources/models/index.mjs +2 -0
  220. package/resources/models/index.mjs.map +1 -1
  221. package/resources/models/models.d.ts +71 -31
  222. package/resources/models/models.d.ts.map +1 -1
  223. package/resources/models/models.js +13 -2
  224. package/resources/models/models.js.map +1 -1
  225. package/resources/models/models.mjs +13 -1
  226. package/resources/models/models.mjs.map +1 -1
  227. package/resources/models/openai.d.ts +2 -16
  228. package/resources/models/openai.d.ts.map +1 -1
  229. package/resources/models/openai.js +3 -2
  230. package/resources/models/openai.js.map +1 -1
  231. package/resources/models/openai.mjs +3 -1
  232. package/resources/models/openai.mjs.map +1 -1
  233. package/resources/models.js +2 -1
  234. package/resources/models.js.map +1 -1
  235. package/resources/models.mjs +2 -0
  236. package/resources/models.mjs.map +1 -1
  237. package/resources/moderations.d.ts +9 -35
  238. package/resources/moderations.d.ts.map +1 -1
  239. package/resources/moderations.js +5 -2
  240. package/resources/moderations.js.map +1 -1
  241. package/resources/moderations.mjs +5 -1
  242. package/resources/moderations.mjs.map +1 -1
  243. package/resources/prompts/index.d.ts +3 -0
  244. package/resources/prompts/index.d.ts.map +1 -0
  245. package/resources/prompts/index.js +15 -0
  246. package/resources/prompts/index.js.map +1 -0
  247. package/resources/prompts/index.mjs +10 -0
  248. package/resources/prompts/index.mjs.map +1 -0
  249. package/resources/prompts/prompts.d.ts +96 -0
  250. package/resources/prompts/prompts.d.ts.map +1 -0
  251. package/resources/{agents/agents.js → prompts/prompts.js} +43 -30
  252. package/resources/prompts/prompts.js.map +1 -0
  253. package/resources/prompts/prompts.mjs +66 -0
  254. package/resources/prompts/prompts.mjs.map +1 -0
  255. package/resources/prompts/versions.d.ts +12 -0
  256. package/resources/prompts/versions.d.ts.map +1 -0
  257. package/resources/prompts/versions.js +23 -0
  258. package/resources/prompts/versions.js.map +1 -0
  259. package/resources/prompts/versions.mjs +19 -0
  260. package/resources/prompts/versions.mjs.map +1 -0
  261. package/resources/prompts.d.ts +2 -0
  262. package/resources/prompts.d.ts.map +1 -0
  263. package/resources/prompts.js +25 -0
  264. package/resources/prompts.js.map +1 -0
  265. package/resources/prompts.mjs +9 -0
  266. package/resources/prompts.mjs.map +1 -0
  267. package/resources/providers.d.ts +4 -13
  268. package/resources/providers.d.ts.map +1 -1
  269. package/resources/providers.js +2 -1
  270. package/resources/providers.js.map +1 -1
  271. package/resources/providers.mjs +2 -0
  272. package/resources/providers.mjs.map +1 -1
  273. package/resources/responses/index.js +2 -1
  274. package/resources/responses/index.js.map +1 -1
  275. package/resources/responses/index.mjs +2 -0
  276. package/resources/responses/index.mjs.map +1 -1
  277. package/resources/responses/input-items.d.ts +246 -151
  278. package/resources/responses/input-items.d.ts.map +1 -1
  279. package/resources/responses/input-items.js +3 -2
  280. package/resources/responses/input-items.js.map +1 -1
  281. package/resources/responses/input-items.mjs +3 -1
  282. package/resources/responses/input-items.mjs.map +1 -1
  283. package/resources/responses/responses.d.ts +1841 -1455
  284. package/resources/responses/responses.d.ts.map +1 -1
  285. package/resources/responses/responses.js +8 -11
  286. package/resources/responses/responses.js.map +1 -1
  287. package/resources/responses/responses.mjs +8 -10
  288. package/resources/responses/responses.mjs.map +1 -1
  289. package/resources/responses.js +2 -1
  290. package/resources/responses.js.map +1 -1
  291. package/resources/responses.mjs +2 -0
  292. package/resources/responses.mjs.map +1 -1
  293. package/resources/routes.d.ts +11 -10
  294. package/resources/routes.d.ts.map +1 -1
  295. package/resources/routes.js +8 -6
  296. package/resources/routes.js.map +1 -1
  297. package/resources/routes.mjs +8 -5
  298. package/resources/routes.mjs.map +1 -1
  299. package/resources/safety.d.ts +144 -10
  300. package/resources/safety.d.ts.map +1 -1
  301. package/resources/safety.js +4 -1
  302. package/resources/safety.js.map +1 -1
  303. package/resources/safety.mjs +4 -0
  304. package/resources/safety.mjs.map +1 -1
  305. package/resources/scoring-functions.d.ts +120 -50
  306. package/resources/scoring-functions.d.ts.map +1 -1
  307. package/resources/scoring-functions.js +15 -1
  308. package/resources/scoring-functions.js.map +1 -1
  309. package/resources/scoring-functions.mjs +15 -0
  310. package/resources/scoring-functions.mjs.map +1 -1
  311. package/resources/scoring.d.ts +85 -26
  312. package/resources/scoring.d.ts.map +1 -1
  313. package/resources/scoring.js +2 -1
  314. package/resources/scoring.js.map +1 -1
  315. package/resources/scoring.mjs +2 -0
  316. package/resources/scoring.mjs.map +1 -1
  317. package/resources/shared.d.ts +173 -591
  318. package/resources/shared.d.ts.map +1 -1
  319. package/resources/shared.js +2 -0
  320. package/resources/shared.js.map +1 -1
  321. package/resources/shared.mjs +2 -0
  322. package/resources/shared.mjs.map +1 -1
  323. package/resources/shields.d.ts +19 -24
  324. package/resources/shields.d.ts.map +1 -1
  325. package/resources/shields.js +6 -1
  326. package/resources/shields.js.map +1 -1
  327. package/resources/shields.mjs +6 -0
  328. package/resources/shields.mjs.map +1 -1
  329. package/resources/tool-runtime.d.ts +151 -1
  330. package/resources/tool-runtime.d.ts.map +1 -1
  331. package/resources/tool-runtime.js +22 -16
  332. package/resources/tool-runtime.js.map +1 -1
  333. package/resources/tool-runtime.mjs +20 -1
  334. package/resources/tool-runtime.mjs.map +1 -1
  335. package/resources/toolgroups.d.ts +27 -37
  336. package/resources/toolgroups.d.ts.map +1 -1
  337. package/resources/toolgroups.js +10 -1
  338. package/resources/toolgroups.js.map +1 -1
  339. package/resources/toolgroups.mjs +10 -0
  340. package/resources/toolgroups.mjs.map +1 -1
  341. package/resources/tools.d.ts +9 -76
  342. package/resources/tools.d.ts.map +1 -1
  343. package/resources/tools.js +4 -1
  344. package/resources/tools.js.map +1 -1
  345. package/resources/tools.mjs +4 -0
  346. package/resources/tools.mjs.map +1 -1
  347. package/resources/vector-io.d.ts +272 -148
  348. package/resources/vector-io.d.ts.map +1 -1
  349. package/resources/vector-io.js +2 -1
  350. package/resources/vector-io.js.map +1 -1
  351. package/resources/vector-io.mjs +2 -0
  352. package/resources/vector-io.mjs.map +1 -1
  353. package/resources/vector-stores/file-batches.d.ts +111 -0
  354. package/resources/vector-stores/file-batches.d.ts.map +1 -0
  355. package/resources/vector-stores/file-batches.js +45 -0
  356. package/resources/vector-stores/file-batches.js.map +1 -0
  357. package/resources/vector-stores/file-batches.mjs +41 -0
  358. package/resources/vector-stores/file-batches.mjs.map +1 -0
  359. package/resources/vector-stores/files.d.ts +83 -135
  360. package/resources/vector-stores/files.d.ts.map +1 -1
  361. package/resources/vector-stores/files.js +15 -14
  362. package/resources/vector-stores/files.js.map +1 -1
  363. package/resources/vector-stores/files.mjs +15 -13
  364. package/resources/vector-stores/files.mjs.map +1 -1
  365. package/resources/vector-stores/index.d.ts +2 -1
  366. package/resources/vector-stores/index.d.ts.map +1 -1
  367. package/resources/vector-stores/index.js +5 -2
  368. package/resources/vector-stores/index.js.map +1 -1
  369. package/resources/vector-stores/index.mjs +3 -0
  370. package/resources/vector-stores/index.mjs.map +1 -1
  371. package/resources/vector-stores/vector-stores.d.ts +118 -217
  372. package/resources/vector-stores/vector-stores.d.ts.map +1 -1
  373. package/resources/vector-stores/vector-stores.js +18 -12
  374. package/resources/vector-stores/vector-stores.js.map +1 -1
  375. package/resources/vector-stores/vector-stores.mjs +18 -11
  376. package/resources/vector-stores/vector-stores.mjs.map +1 -1
  377. package/resources/vector-stores.js +2 -1
  378. package/resources/vector-stores.js.map +1 -1
  379. package/resources/vector-stores.mjs +2 -0
  380. package/resources/vector-stores.mjs.map +1 -1
  381. package/src/error.ts +1 -0
  382. package/src/index.ts +92 -267
  383. package/src/lib/response-helpers.ts +60 -0
  384. package/src/pagination.ts +2 -5
  385. package/src/resource.ts +1 -0
  386. package/src/resources/alpha/admin.ts +84 -0
  387. package/src/resources/alpha/alpha.ts +93 -0
  388. package/src/resources/{benchmarks.ts → alpha/benchmarks.ts} +51 -16
  389. package/src/resources/{eval → alpha/eval}/eval.ts +83 -65
  390. package/src/resources/{eval → alpha/eval}/index.ts +1 -2
  391. package/src/resources/{eval → alpha/eval}/jobs.ts +6 -6
  392. package/src/resources/{eval.ts → alpha/eval.ts} +1 -0
  393. package/src/resources/alpha/index.ts +36 -0
  394. package/src/resources/alpha/inference.ts +132 -0
  395. package/src/resources/{post-training → alpha/post-training}/index.ts +1 -1
  396. package/src/resources/alpha/post-training/job.ts +177 -0
  397. package/src/resources/alpha/post-training/post-training.ts +372 -0
  398. package/src/resources/{post-training.ts → alpha/post-training.ts} +1 -1
  399. package/src/resources/alpha.ts +9 -0
  400. package/src/resources/batches.ts +572 -0
  401. package/src/resources/beta/beta.ts +41 -0
  402. package/src/resources/{datasets.ts → beta/datasets.ts} +128 -110
  403. package/src/resources/beta/index.ts +20 -0
  404. package/src/resources/{agents.ts → beta.ts} +2 -2
  405. package/src/resources/chat/chat.ts +84 -83
  406. package/src/resources/chat/completions.ts +876 -1486
  407. package/src/resources/chat/index.ts +1 -2
  408. package/src/resources/chat.ts +1 -1
  409. package/src/resources/completions.ts +59 -103
  410. package/src/resources/conversations/conversations.ts +491 -0
  411. package/src/resources/conversations/index.ts +25 -0
  412. package/src/resources/conversations/items.ts +1365 -0
  413. package/src/resources/conversations.ts +9 -0
  414. package/src/resources/embeddings.ts +14 -55
  415. package/src/resources/files.ts +54 -61
  416. package/src/resources/index.ts +35 -111
  417. package/src/resources/inspect.ts +4 -84
  418. package/src/resources/models/index.ts +4 -2
  419. package/src/resources/models/models.ts +79 -30
  420. package/src/resources/models/openai.ts +4 -24
  421. package/src/resources/models.ts +1 -1
  422. package/src/resources/moderations.ts +10 -36
  423. package/src/resources/prompts/index.ts +19 -0
  424. package/src/resources/prompts/prompts.ts +171 -0
  425. package/src/resources/prompts/versions.ts +26 -0
  426. package/src/resources/prompts.ts +9 -0
  427. package/src/resources/providers.ts +5 -18
  428. package/src/resources/responses/index.ts +1 -1
  429. package/src/resources/responses/input-items.ts +365 -161
  430. package/src/resources/responses/responses.ts +2959 -1870
  431. package/src/resources/responses.ts +1 -1
  432. package/src/resources/routes.ts +25 -14
  433. package/src/resources/safety.ts +199 -9
  434. package/src/resources/scoring-functions.ts +168 -52
  435. package/src/resources/scoring.ts +125 -22
  436. package/src/resources/shared.ts +187 -665
  437. package/src/resources/shields.ts +18 -23
  438. package/src/resources/tool-runtime.ts +210 -2
  439. package/src/resources/toolgroups.ts +26 -36
  440. package/src/resources/tools.ts +10 -94
  441. package/src/resources/vector-io.ts +323 -145
  442. package/src/resources/vector-stores/file-batches.ts +201 -0
  443. package/src/resources/vector-stores/files.ts +123 -143
  444. package/src/resources/vector-stores/index.ts +9 -1
  445. package/src/resources/vector-stores/vector-stores.ts +150 -216
  446. package/src/resources/vector-stores.ts +1 -1
  447. package/src/version.ts +1 -1
  448. package/version.d.ts +1 -1
  449. package/version.d.ts.map +1 -1
  450. package/version.js +1 -1
  451. package/version.js.map +1 -1
  452. package/version.mjs +1 -1
  453. package/version.mjs.map +1 -1
  454. package/resources/agents/agents.d.ts +0 -246
  455. package/resources/agents/agents.d.ts.map +0 -1
  456. package/resources/agents/agents.js.map +0 -1
  457. package/resources/agents/agents.mjs +0 -52
  458. package/resources/agents/agents.mjs.map +0 -1
  459. package/resources/agents/index.d.ts +0 -5
  460. package/resources/agents/index.d.ts.map +0 -1
  461. package/resources/agents/index.js +0 -18
  462. package/resources/agents/index.js.map +0 -1
  463. package/resources/agents/index.mjs +0 -10
  464. package/resources/agents/index.mjs.map +0 -1
  465. package/resources/agents/session.d.ts +0 -98
  466. package/resources/agents/session.d.ts.map +0 -1
  467. package/resources/agents/session.js +0 -42
  468. package/resources/agents/session.js.map +0 -1
  469. package/resources/agents/session.mjs +0 -37
  470. package/resources/agents/session.mjs.map +0 -1
  471. package/resources/agents/steps.d.ts +0 -22
  472. package/resources/agents/steps.d.ts.map +0 -1
  473. package/resources/agents/steps.js.map +0 -1
  474. package/resources/agents/steps.mjs +0 -15
  475. package/resources/agents/steps.mjs.map +0 -1
  476. package/resources/agents/turn.d.ts +0 -461
  477. package/resources/agents/turn.d.ts.map +0 -1
  478. package/resources/agents/turn.js +0 -34
  479. package/resources/agents/turn.js.map +0 -1
  480. package/resources/agents/turn.mjs +0 -29
  481. package/resources/agents/turn.mjs.map +0 -1
  482. package/resources/agents.d.ts +0 -2
  483. package/resources/agents.d.ts.map +0 -1
  484. package/resources/agents.js.map +0 -1
  485. package/resources/agents.mjs +0 -7
  486. package/resources/agents.mjs.map +0 -1
  487. package/resources/benchmarks.d.ts.map +0 -1
  488. package/resources/benchmarks.js.map +0 -1
  489. package/resources/benchmarks.mjs +0 -31
  490. package/resources/benchmarks.mjs.map +0 -1
  491. package/resources/datasets.d.ts.map +0 -1
  492. package/resources/datasets.js.map +0 -1
  493. package/resources/datasets.mjs.map +0 -1
  494. package/resources/eval/eval.d.ts +0 -159
  495. package/resources/eval/eval.d.ts.map +0 -1
  496. package/resources/eval/eval.js.map +0 -1
  497. package/resources/eval/eval.mjs.map +0 -1
  498. package/resources/eval/index.d.ts +0 -3
  499. package/resources/eval/index.d.ts.map +0 -1
  500. package/resources/eval/index.js.map +0 -1
  501. package/resources/eval/index.mjs.map +0 -1
  502. package/resources/eval/jobs.d.ts.map +0 -1
  503. package/resources/eval/jobs.js.map +0 -1
  504. package/resources/eval/jobs.mjs.map +0 -1
  505. package/resources/eval.d.ts.map +0 -1
  506. package/resources/eval.js.map +0 -1
  507. package/resources/eval.mjs.map +0 -1
  508. package/resources/inference.d.ts +0 -580
  509. package/resources/inference.d.ts.map +0 -1
  510. package/resources/inference.js +0 -54
  511. package/resources/inference.js.map +0 -1
  512. package/resources/inference.mjs +0 -49
  513. package/resources/inference.mjs.map +0 -1
  514. package/resources/post-training/index.d.ts.map +0 -1
  515. package/resources/post-training/index.js.map +0 -1
  516. package/resources/post-training/index.mjs.map +0 -1
  517. package/resources/post-training/job.d.ts +0 -205
  518. package/resources/post-training/job.d.ts.map +0 -1
  519. package/resources/post-training/job.js.map +0 -1
  520. package/resources/post-training/job.mjs.map +0 -1
  521. package/resources/post-training/post-training.d.ts +0 -402
  522. package/resources/post-training/post-training.d.ts.map +0 -1
  523. package/resources/post-training/post-training.js.map +0 -1
  524. package/resources/post-training/post-training.mjs.map +0 -1
  525. package/resources/post-training.d.ts.map +0 -1
  526. package/resources/post-training.js.map +0 -1
  527. package/resources/post-training.mjs.map +0 -1
  528. package/resources/synthetic-data-generation.d.ts +0 -47
  529. package/resources/synthetic-data-generation.d.ts.map +0 -1
  530. package/resources/synthetic-data-generation.js +0 -20
  531. package/resources/synthetic-data-generation.js.map +0 -1
  532. package/resources/synthetic-data-generation.mjs +0 -15
  533. package/resources/synthetic-data-generation.mjs.map +0 -1
  534. package/resources/telemetry.d.ts +0 -519
  535. package/resources/telemetry.d.ts.map +0 -1
  536. package/resources/telemetry.js +0 -70
  537. package/resources/telemetry.js.map +0 -1
  538. package/resources/telemetry.mjs +0 -65
  539. package/resources/telemetry.mjs.map +0 -1
  540. package/resources/tool-runtime/index.d.ts +0 -3
  541. package/resources/tool-runtime/index.d.ts.map +0 -1
  542. package/resources/tool-runtime/index.js +0 -14
  543. package/resources/tool-runtime/index.js.map +0 -1
  544. package/resources/tool-runtime/index.mjs +0 -8
  545. package/resources/tool-runtime/index.mjs.map +0 -1
  546. package/resources/tool-runtime/rag-tool.d.ts +0 -45
  547. package/resources/tool-runtime/rag-tool.d.ts.map +0 -1
  548. package/resources/tool-runtime/rag-tool.js +0 -30
  549. package/resources/tool-runtime/rag-tool.js.map +0 -1
  550. package/resources/tool-runtime/rag-tool.mjs +0 -25
  551. package/resources/tool-runtime/rag-tool.mjs.map +0 -1
  552. package/resources/tool-runtime/tool-runtime.d.ts +0 -132
  553. package/resources/tool-runtime/tool-runtime.d.ts.map +0 -1
  554. package/resources/tool-runtime/tool-runtime.js.map +0 -1
  555. package/resources/tool-runtime/tool-runtime.mjs +0 -29
  556. package/resources/tool-runtime/tool-runtime.mjs.map +0 -1
  557. package/resources/vector-dbs.d.ts +0 -128
  558. package/resources/vector-dbs.d.ts.map +0 -1
  559. package/resources/vector-dbs.js +0 -41
  560. package/resources/vector-dbs.js.map +0 -1
  561. package/resources/vector-dbs.mjs +0 -36
  562. package/resources/vector-dbs.mjs.map +0 -1
  563. package/src/resources/agents/agents.ts +0 -372
  564. package/src/resources/agents/index.ts +0 -44
  565. package/src/resources/agents/session.ts +0 -169
  566. package/src/resources/agents/steps.ts +0 -47
  567. package/src/resources/agents/turn.ts +0 -638
  568. package/src/resources/inference.ts +0 -768
  569. package/src/resources/post-training/job.ts +0 -274
  570. package/src/resources/post-training/post-training.ts +0 -516
  571. package/src/resources/synthetic-data-generation.ts +0 -65
  572. package/src/resources/telemetry.ts +0 -692
  573. package/src/resources/tool-runtime/index.ts +0 -17
  574. package/src/resources/tool-runtime/rag-tool.ts +0 -69
  575. package/src/resources/tool-runtime/tool-runtime.ts +0 -191
  576. package/src/resources/vector-dbs.ts +0 -191
  577. /package/resources/{eval.d.ts → alpha/eval.d.ts} +0 -0
  578. /package/resources/{eval.mjs → alpha/eval.mjs} +0 -0
  579. /package/resources/{post-training → alpha/post-training}/index.d.ts +0 -0
  580. /package/resources/{post-training.d.ts → alpha/post-training.d.ts} +0 -0
@@ -0,0 +1,1365 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ // All rights reserved.
3
+ //
4
+ // This source code is licensed under the terms described in the LICENSE file in
5
+ // the root directory of this source tree.
6
+ //
7
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
8
+
9
+ import { APIResource } from '../../resource';
10
+ import { isRequestOptions } from '../../core';
11
+ import * as Core from '../../core';
12
+ import { OpenAICursorPage, type OpenAICursorPageParams } from '../../pagination';
13
+
14
+ export class Items extends APIResource {
15
+ /**
16
+ * Create items.
17
+ *
18
+ * Create items in the conversation.
19
+ */
20
+ create(
21
+ conversationId: string,
22
+ body: ItemCreateParams,
23
+ options?: Core.RequestOptions,
24
+ ): Core.APIPromise<ItemCreateResponse> {
25
+ return this._client.post(`/v1/conversations/${conversationId}/items`, { body, ...options });
26
+ }
27
+
28
+ /**
29
+ * List items.
30
+ *
31
+ * List items in the conversation.
32
+ */
33
+ list(
34
+ conversationId: string,
35
+ query?: ItemListParams,
36
+ options?: Core.RequestOptions,
37
+ ): Core.PagePromise<ItemListResponsesOpenAICursorPage, ItemListResponse>;
38
+ list(
39
+ conversationId: string,
40
+ options?: Core.RequestOptions,
41
+ ): Core.PagePromise<ItemListResponsesOpenAICursorPage, ItemListResponse>;
42
+ list(
43
+ conversationId: string,
44
+ query: ItemListParams | Core.RequestOptions = {},
45
+ options?: Core.RequestOptions,
46
+ ): Core.PagePromise<ItemListResponsesOpenAICursorPage, ItemListResponse> {
47
+ if (isRequestOptions(query)) {
48
+ return this.list(conversationId, {}, query);
49
+ }
50
+ return this._client.getAPIList(
51
+ `/v1/conversations/${conversationId}/items`,
52
+ ItemListResponsesOpenAICursorPage,
53
+ { query, ...options },
54
+ );
55
+ }
56
+
57
+ /**
58
+ * Delete an item.
59
+ *
60
+ * Delete a conversation item.
61
+ */
62
+ delete(
63
+ conversationId: string,
64
+ itemId: string,
65
+ options?: Core.RequestOptions,
66
+ ): Core.APIPromise<ItemDeleteResponse> {
67
+ return this._client.delete(`/v1/conversations/${conversationId}/items/${itemId}`, options);
68
+ }
69
+
70
+ /**
71
+ * Retrieve an item.
72
+ *
73
+ * Retrieve a conversation item.
74
+ */
75
+ get(
76
+ conversationId: string,
77
+ itemId: string,
78
+ options?: Core.RequestOptions,
79
+ ): Core.APIPromise<ItemGetResponse> {
80
+ return this._client.get(`/v1/conversations/${conversationId}/items/${itemId}`, options);
81
+ }
82
+ }
83
+
84
+ export class ItemListResponsesOpenAICursorPage extends OpenAICursorPage<ItemListResponse> {}
85
+
86
+ /**
87
+ * List of conversation items with pagination.
88
+ */
89
+ export interface ItemCreateResponse {
90
+ /**
91
+ * List of conversation items
92
+ */
93
+ data: Array<
94
+ | ItemCreateResponse.OpenAIResponseMessageOutput
95
+ | ItemCreateResponse.OpenAIResponseOutputMessageWebSearchToolCall
96
+ | ItemCreateResponse.OpenAIResponseOutputMessageFileSearchToolCall
97
+ | ItemCreateResponse.OpenAIResponseOutputMessageFunctionToolCall
98
+ | ItemCreateResponse.OpenAIResponseInputFunctionToolCallOutput
99
+ | ItemCreateResponse.OpenAIResponseMcpApprovalRequest
100
+ | ItemCreateResponse.OpenAIResponseMcpApprovalResponse
101
+ | ItemCreateResponse.OpenAIResponseOutputMessageMcpCall
102
+ | ItemCreateResponse.OpenAIResponseOutputMessageMcpListTools
103
+ >;
104
+
105
+ /**
106
+ * The ID of the first item in the list
107
+ */
108
+ first_id?: string | null;
109
+
110
+ /**
111
+ * Whether there are more items available
112
+ */
113
+ has_more?: boolean;
114
+
115
+ /**
116
+ * The ID of the last item in the list
117
+ */
118
+ last_id?: string | null;
119
+
120
+ /**
121
+ * Object type
122
+ */
123
+ object?: string;
124
+ }
125
+
126
+ export namespace ItemCreateResponse {
127
+ /**
128
+ * Corresponds to the various Message types in the Responses API. They are all
129
+ * under one type because the Responses API gives them all the same "type" value,
130
+ * and there is no way to tell them apart in certain scenarios.
131
+ */
132
+ export interface OpenAIResponseMessageOutput {
133
+ content:
134
+ | string
135
+ | Array<
136
+ | OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentText
137
+ | OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentImage
138
+ | OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentFile
139
+ >
140
+ | Array<
141
+ | OpenAIResponseMessageOutput.OpenAIResponseOutputMessageContentOutputTextOutput
142
+ | OpenAIResponseMessageOutput.OpenAIResponseContentPartRefusal
143
+ >;
144
+
145
+ role: 'system' | 'developer' | 'user' | 'assistant';
146
+
147
+ id?: string | null;
148
+
149
+ status?: string | null;
150
+
151
+ type?: 'message';
152
+ }
153
+
154
+ export namespace OpenAIResponseMessageOutput {
155
+ /**
156
+ * Text content for input messages in OpenAI response format.
157
+ */
158
+ export interface OpenAIResponseInputMessageContentText {
159
+ text: string;
160
+
161
+ type?: 'input_text';
162
+ }
163
+
164
+ /**
165
+ * Image content for input messages in OpenAI response format.
166
+ */
167
+ export interface OpenAIResponseInputMessageContentImage {
168
+ detail?: 'low' | 'high' | 'auto';
169
+
170
+ file_id?: string | null;
171
+
172
+ image_url?: string | null;
173
+
174
+ type?: 'input_image';
175
+ }
176
+
177
+ /**
178
+ * File content for input messages in OpenAI response format.
179
+ */
180
+ export interface OpenAIResponseInputMessageContentFile {
181
+ file_data?: string | null;
182
+
183
+ file_id?: string | null;
184
+
185
+ file_url?: string | null;
186
+
187
+ filename?: string | null;
188
+
189
+ type?: 'input_file';
190
+ }
191
+
192
+ export interface OpenAIResponseOutputMessageContentOutputTextOutput {
193
+ text: string;
194
+
195
+ annotations?: Array<
196
+ | OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFileCitation
197
+ | OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationCitation
198
+ | OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationContainerFileCitation
199
+ | OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFilePath
200
+ >;
201
+
202
+ logprobs?: Array<OpenAIResponseOutputMessageContentOutputTextOutput.Logprob> | null;
203
+
204
+ type?: 'output_text';
205
+ }
206
+
207
+ export namespace OpenAIResponseOutputMessageContentOutputTextOutput {
208
+ /**
209
+ * File citation annotation for referencing specific files in response content.
210
+ */
211
+ export interface OpenAIResponseAnnotationFileCitation {
212
+ file_id: string;
213
+
214
+ filename: string;
215
+
216
+ index: number;
217
+
218
+ type?: 'file_citation';
219
+ }
220
+
221
+ /**
222
+ * URL citation annotation for referencing external web resources.
223
+ */
224
+ export interface OpenAIResponseAnnotationCitation {
225
+ end_index: number;
226
+
227
+ start_index: number;
228
+
229
+ title: string;
230
+
231
+ url: string;
232
+
233
+ type?: 'url_citation';
234
+ }
235
+
236
+ export interface OpenAIResponseAnnotationContainerFileCitation {
237
+ container_id: string;
238
+
239
+ end_index: number;
240
+
241
+ file_id: string;
242
+
243
+ filename: string;
244
+
245
+ start_index: number;
246
+
247
+ type?: 'container_file_citation';
248
+ }
249
+
250
+ export interface OpenAIResponseAnnotationFilePath {
251
+ file_id: string;
252
+
253
+ index: number;
254
+
255
+ type?: 'file_path';
256
+ }
257
+
258
+ /**
259
+ * The log probability for a token from an OpenAI-compatible chat completion
260
+ * response.
261
+ *
262
+ * :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
263
+ * probability of the token :top_logprobs: The top log probabilities for the token
264
+ */
265
+ export interface Logprob {
266
+ token: string;
267
+
268
+ logprob: number;
269
+
270
+ bytes?: Array<number> | null;
271
+
272
+ top_logprobs?: Array<Logprob.TopLogprob> | null;
273
+ }
274
+
275
+ export namespace Logprob {
276
+ /**
277
+ * The top log probability for a token from an OpenAI-compatible chat completion
278
+ * response.
279
+ *
280
+ * :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
281
+ * probability of the token
282
+ */
283
+ export interface TopLogprob {
284
+ token: string;
285
+
286
+ logprob: number;
287
+
288
+ bytes?: Array<number> | null;
289
+ }
290
+ }
291
+ }
292
+
293
+ /**
294
+ * Refusal content within a streamed response part.
295
+ */
296
+ export interface OpenAIResponseContentPartRefusal {
297
+ refusal: string;
298
+
299
+ type?: 'refusal';
300
+ }
301
+ }
302
+
303
+ /**
304
+ * Web search tool call output message for OpenAI responses.
305
+ */
306
+ export interface OpenAIResponseOutputMessageWebSearchToolCall {
307
+ id: string;
308
+
309
+ status: string;
310
+
311
+ type?: 'web_search_call';
312
+ }
313
+
314
+ /**
315
+ * File search tool call output message for OpenAI responses.
316
+ */
317
+ export interface OpenAIResponseOutputMessageFileSearchToolCall {
318
+ id: string;
319
+
320
+ queries: Array<string>;
321
+
322
+ status: string;
323
+
324
+ results?: Array<OpenAIResponseOutputMessageFileSearchToolCall.Result> | null;
325
+
326
+ type?: 'file_search_call';
327
+ }
328
+
329
+ export namespace OpenAIResponseOutputMessageFileSearchToolCall {
330
+ /**
331
+ * Search results returned by the file search operation.
332
+ */
333
+ export interface Result {
334
+ attributes: { [key: string]: unknown };
335
+
336
+ file_id: string;
337
+
338
+ filename: string;
339
+
340
+ score: number;
341
+
342
+ text: string;
343
+ }
344
+ }
345
+
346
+ /**
347
+ * Function tool call output message for OpenAI responses.
348
+ */
349
+ export interface OpenAIResponseOutputMessageFunctionToolCall {
350
+ arguments: string;
351
+
352
+ call_id: string;
353
+
354
+ name: string;
355
+
356
+ id?: string | null;
357
+
358
+ status?: string | null;
359
+
360
+ type?: 'function_call';
361
+ }
362
+
363
+ /**
364
+ * This represents the output of a function call that gets passed back to the
365
+ * model.
366
+ */
367
+ export interface OpenAIResponseInputFunctionToolCallOutput {
368
+ call_id: string;
369
+
370
+ output: string;
371
+
372
+ id?: string | null;
373
+
374
+ status?: string | null;
375
+
376
+ type?: 'function_call_output';
377
+ }
378
+
379
+ /**
380
+ * A request for human approval of a tool invocation.
381
+ */
382
+ export interface OpenAIResponseMcpApprovalRequest {
383
+ id: string;
384
+
385
+ arguments: string;
386
+
387
+ name: string;
388
+
389
+ server_label: string;
390
+
391
+ type?: 'mcp_approval_request';
392
+ }
393
+
394
+ /**
395
+ * A response to an MCP approval request.
396
+ */
397
+ export interface OpenAIResponseMcpApprovalResponse {
398
+ approval_request_id: string;
399
+
400
+ approve: boolean;
401
+
402
+ id?: string | null;
403
+
404
+ reason?: string | null;
405
+
406
+ type?: 'mcp_approval_response';
407
+ }
408
+
409
+ /**
410
+ * Model Context Protocol (MCP) call output message for OpenAI responses.
411
+ */
412
+ export interface OpenAIResponseOutputMessageMcpCall {
413
+ id: string;
414
+
415
+ arguments: string;
416
+
417
+ name: string;
418
+
419
+ server_label: string;
420
+
421
+ error?: string | null;
422
+
423
+ output?: string | null;
424
+
425
+ type?: 'mcp_call';
426
+ }
427
+
428
+ /**
429
+ * MCP list tools output message containing available tools from an MCP server.
430
+ */
431
+ export interface OpenAIResponseOutputMessageMcpListTools {
432
+ id: string;
433
+
434
+ server_label: string;
435
+
436
+ tools: Array<OpenAIResponseOutputMessageMcpListTools.Tool>;
437
+
438
+ type?: 'mcp_list_tools';
439
+ }
440
+
441
+ export namespace OpenAIResponseOutputMessageMcpListTools {
442
+ /**
443
+ * Tool definition returned by MCP list tools operation.
444
+ */
445
+ export interface Tool {
446
+ input_schema: { [key: string]: unknown };
447
+
448
+ name: string;
449
+
450
+ description?: string | null;
451
+ }
452
+ }
453
+ }
454
+
455
+ /**
456
+ * Corresponds to the various Message types in the Responses API. They are all
457
+ * under one type because the Responses API gives them all the same "type" value,
458
+ * and there is no way to tell them apart in certain scenarios.
459
+ */
460
+ export type ItemListResponse =
461
+ | ItemListResponse.OpenAIResponseMessageOutput
462
+ | ItemListResponse.OpenAIResponseOutputMessageWebSearchToolCall
463
+ | ItemListResponse.OpenAIResponseOutputMessageFileSearchToolCall
464
+ | ItemListResponse.OpenAIResponseOutputMessageFunctionToolCall
465
+ | ItemListResponse.OpenAIResponseInputFunctionToolCallOutput
466
+ | ItemListResponse.OpenAIResponseMcpApprovalRequest
467
+ | ItemListResponse.OpenAIResponseMcpApprovalResponse
468
+ | ItemListResponse.OpenAIResponseOutputMessageMcpCall
469
+ | ItemListResponse.OpenAIResponseOutputMessageMcpListTools;
470
+
471
+ export namespace ItemListResponse {
472
+ /**
473
+ * Corresponds to the various Message types in the Responses API. They are all
474
+ * under one type because the Responses API gives them all the same "type" value,
475
+ * and there is no way to tell them apart in certain scenarios.
476
+ */
477
+ export interface OpenAIResponseMessageOutput {
478
+ content:
479
+ | string
480
+ | Array<
481
+ | OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentText
482
+ | OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentImage
483
+ | OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentFile
484
+ >
485
+ | Array<
486
+ | OpenAIResponseMessageOutput.OpenAIResponseOutputMessageContentOutputTextOutput
487
+ | OpenAIResponseMessageOutput.OpenAIResponseContentPartRefusal
488
+ >;
489
+
490
+ role: 'system' | 'developer' | 'user' | 'assistant';
491
+
492
+ id?: string | null;
493
+
494
+ status?: string | null;
495
+
496
+ type?: 'message';
497
+ }
498
+
499
+ export namespace OpenAIResponseMessageOutput {
500
+ /**
501
+ * Text content for input messages in OpenAI response format.
502
+ */
503
+ export interface OpenAIResponseInputMessageContentText {
504
+ text: string;
505
+
506
+ type?: 'input_text';
507
+ }
508
+
509
+ /**
510
+ * Image content for input messages in OpenAI response format.
511
+ */
512
+ export interface OpenAIResponseInputMessageContentImage {
513
+ detail?: 'low' | 'high' | 'auto';
514
+
515
+ file_id?: string | null;
516
+
517
+ image_url?: string | null;
518
+
519
+ type?: 'input_image';
520
+ }
521
+
522
+ /**
523
+ * File content for input messages in OpenAI response format.
524
+ */
525
+ export interface OpenAIResponseInputMessageContentFile {
526
+ file_data?: string | null;
527
+
528
+ file_id?: string | null;
529
+
530
+ file_url?: string | null;
531
+
532
+ filename?: string | null;
533
+
534
+ type?: 'input_file';
535
+ }
536
+
537
+ export interface OpenAIResponseOutputMessageContentOutputTextOutput {
538
+ text: string;
539
+
540
+ annotations?: Array<
541
+ | OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFileCitation
542
+ | OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationCitation
543
+ | OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationContainerFileCitation
544
+ | OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFilePath
545
+ >;
546
+
547
+ logprobs?: Array<OpenAIResponseOutputMessageContentOutputTextOutput.Logprob> | null;
548
+
549
+ type?: 'output_text';
550
+ }
551
+
552
+ export namespace OpenAIResponseOutputMessageContentOutputTextOutput {
553
+ /**
554
+ * File citation annotation for referencing specific files in response content.
555
+ */
556
+ export interface OpenAIResponseAnnotationFileCitation {
557
+ file_id: string;
558
+
559
+ filename: string;
560
+
561
+ index: number;
562
+
563
+ type?: 'file_citation';
564
+ }
565
+
566
+ /**
567
+ * URL citation annotation for referencing external web resources.
568
+ */
569
+ export interface OpenAIResponseAnnotationCitation {
570
+ end_index: number;
571
+
572
+ start_index: number;
573
+
574
+ title: string;
575
+
576
+ url: string;
577
+
578
+ type?: 'url_citation';
579
+ }
580
+
581
+ export interface OpenAIResponseAnnotationContainerFileCitation {
582
+ container_id: string;
583
+
584
+ end_index: number;
585
+
586
+ file_id: string;
587
+
588
+ filename: string;
589
+
590
+ start_index: number;
591
+
592
+ type?: 'container_file_citation';
593
+ }
594
+
595
+ export interface OpenAIResponseAnnotationFilePath {
596
+ file_id: string;
597
+
598
+ index: number;
599
+
600
+ type?: 'file_path';
601
+ }
602
+
603
+ /**
604
+ * The log probability for a token from an OpenAI-compatible chat completion
605
+ * response.
606
+ *
607
+ * :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
608
+ * probability of the token :top_logprobs: The top log probabilities for the token
609
+ */
610
+ export interface Logprob {
611
+ token: string;
612
+
613
+ logprob: number;
614
+
615
+ bytes?: Array<number> | null;
616
+
617
+ top_logprobs?: Array<Logprob.TopLogprob> | null;
618
+ }
619
+
620
+ export namespace Logprob {
621
+ /**
622
+ * The top log probability for a token from an OpenAI-compatible chat completion
623
+ * response.
624
+ *
625
+ * :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
626
+ * probability of the token
627
+ */
628
+ export interface TopLogprob {
629
+ token: string;
630
+
631
+ logprob: number;
632
+
633
+ bytes?: Array<number> | null;
634
+ }
635
+ }
636
+ }
637
+
638
+ /**
639
+ * Refusal content within a streamed response part.
640
+ */
641
+ export interface OpenAIResponseContentPartRefusal {
642
+ refusal: string;
643
+
644
+ type?: 'refusal';
645
+ }
646
+ }
647
+
648
+ /**
649
+ * Web search tool call output message for OpenAI responses.
650
+ */
651
+ export interface OpenAIResponseOutputMessageWebSearchToolCall {
652
+ id: string;
653
+
654
+ status: string;
655
+
656
+ type?: 'web_search_call';
657
+ }
658
+
659
+ /**
660
+ * File search tool call output message for OpenAI responses.
661
+ */
662
+ export interface OpenAIResponseOutputMessageFileSearchToolCall {
663
+ id: string;
664
+
665
+ queries: Array<string>;
666
+
667
+ status: string;
668
+
669
+ results?: Array<OpenAIResponseOutputMessageFileSearchToolCall.Result> | null;
670
+
671
+ type?: 'file_search_call';
672
+ }
673
+
674
+ export namespace OpenAIResponseOutputMessageFileSearchToolCall {
675
+ /**
676
+ * Search results returned by the file search operation.
677
+ */
678
+ export interface Result {
679
+ attributes: { [key: string]: unknown };
680
+
681
+ file_id: string;
682
+
683
+ filename: string;
684
+
685
+ score: number;
686
+
687
+ text: string;
688
+ }
689
+ }
690
+
691
+ /**
692
+ * Function tool call output message for OpenAI responses.
693
+ */
694
+ export interface OpenAIResponseOutputMessageFunctionToolCall {
695
+ arguments: string;
696
+
697
+ call_id: string;
698
+
699
+ name: string;
700
+
701
+ id?: string | null;
702
+
703
+ status?: string | null;
704
+
705
+ type?: 'function_call';
706
+ }
707
+
708
+ /**
709
+ * This represents the output of a function call that gets passed back to the
710
+ * model.
711
+ */
712
+ export interface OpenAIResponseInputFunctionToolCallOutput {
713
+ call_id: string;
714
+
715
+ output: string;
716
+
717
+ id?: string | null;
718
+
719
+ status?: string | null;
720
+
721
+ type?: 'function_call_output';
722
+ }
723
+
724
+ /**
725
+ * A request for human approval of a tool invocation.
726
+ */
727
+ export interface OpenAIResponseMcpApprovalRequest {
728
+ id: string;
729
+
730
+ arguments: string;
731
+
732
+ name: string;
733
+
734
+ server_label: string;
735
+
736
+ type?: 'mcp_approval_request';
737
+ }
738
+
739
+ /**
740
+ * A response to an MCP approval request.
741
+ */
742
+ export interface OpenAIResponseMcpApprovalResponse {
743
+ approval_request_id: string;
744
+
745
+ approve: boolean;
746
+
747
+ id?: string | null;
748
+
749
+ reason?: string | null;
750
+
751
+ type?: 'mcp_approval_response';
752
+ }
753
+
754
+ /**
755
+ * Model Context Protocol (MCP) call output message for OpenAI responses.
756
+ */
757
+ export interface OpenAIResponseOutputMessageMcpCall {
758
+ id: string;
759
+
760
+ arguments: string;
761
+
762
+ name: string;
763
+
764
+ server_label: string;
765
+
766
+ error?: string | null;
767
+
768
+ output?: string | null;
769
+
770
+ type?: 'mcp_call';
771
+ }
772
+
773
+ /**
774
+ * MCP list tools output message containing available tools from an MCP server.
775
+ */
776
+ export interface OpenAIResponseOutputMessageMcpListTools {
777
+ id: string;
778
+
779
+ server_label: string;
780
+
781
+ tools: Array<OpenAIResponseOutputMessageMcpListTools.Tool>;
782
+
783
+ type?: 'mcp_list_tools';
784
+ }
785
+
786
+ export namespace OpenAIResponseOutputMessageMcpListTools {
787
+ /**
788
+ * Tool definition returned by MCP list tools operation.
789
+ */
790
+ export interface Tool {
791
+ input_schema: { [key: string]: unknown };
792
+
793
+ name: string;
794
+
795
+ description?: string | null;
796
+ }
797
+ }
798
+ }
799
+
800
+ /**
801
+ * Response for deleted conversation item.
802
+ */
803
+ export interface ItemDeleteResponse {
804
+ /**
805
+ * The deleted item identifier
806
+ */
807
+ id: string;
808
+
809
+ /**
810
+ * Whether the object was deleted
811
+ */
812
+ deleted?: boolean;
813
+
814
+ /**
815
+ * Object type
816
+ */
817
+ object?: string;
818
+ }
819
+
820
+ /**
821
+ * Corresponds to the various Message types in the Responses API. They are all
822
+ * under one type because the Responses API gives them all the same "type" value,
823
+ * and there is no way to tell them apart in certain scenarios.
824
+ */
825
+ export interface ItemGetResponse {
826
+ content:
827
+ | string
828
+ | Array<
829
+ | ItemGetResponse.OpenAIResponseInputMessageContentText
830
+ | ItemGetResponse.OpenAIResponseInputMessageContentImage
831
+ | ItemGetResponse.OpenAIResponseInputMessageContentFile
832
+ >
833
+ | Array<
834
+ | ItemGetResponse.OpenAIResponseOutputMessageContentOutputText
835
+ | ItemGetResponse.OpenAIResponseContentPartRefusal
836
+ >;
837
+
838
+ role: 'system' | 'developer' | 'user' | 'assistant';
839
+
840
+ id?: string | null;
841
+
842
+ status?: string | null;
843
+
844
+ type?: 'message';
845
+ }
846
+
847
+ export namespace ItemGetResponse {
848
+ /**
849
+ * Text content for input messages in OpenAI response format.
850
+ */
851
+ export interface OpenAIResponseInputMessageContentText {
852
+ text: string;
853
+
854
+ type?: 'input_text';
855
+ }
856
+
857
+ /**
858
+ * Image content for input messages in OpenAI response format.
859
+ */
860
+ export interface OpenAIResponseInputMessageContentImage {
861
+ detail?: 'low' | 'high' | 'auto';
862
+
863
+ file_id?: string | null;
864
+
865
+ image_url?: string | null;
866
+
867
+ type?: 'input_image';
868
+ }
869
+
870
+ /**
871
+ * File content for input messages in OpenAI response format.
872
+ */
873
+ export interface OpenAIResponseInputMessageContentFile {
874
+ file_data?: string | null;
875
+
876
+ file_id?: string | null;
877
+
878
+ file_url?: string | null;
879
+
880
+ filename?: string | null;
881
+
882
+ type?: 'input_file';
883
+ }
884
+
885
+ export interface OpenAIResponseOutputMessageContentOutputText {
886
+ text: string;
887
+
888
+ annotations?: Array<
889
+ | OpenAIResponseOutputMessageContentOutputText.OpenAIResponseAnnotationFileCitation
890
+ | OpenAIResponseOutputMessageContentOutputText.OpenAIResponseAnnotationCitation
891
+ | OpenAIResponseOutputMessageContentOutputText.OpenAIResponseAnnotationContainerFileCitation
892
+ | OpenAIResponseOutputMessageContentOutputText.OpenAIResponseAnnotationFilePath
893
+ >;
894
+
895
+ logprobs?: Array<OpenAIResponseOutputMessageContentOutputText.Logprob> | null;
896
+
897
+ type?: 'output_text';
898
+ }
899
+
900
+ export namespace OpenAIResponseOutputMessageContentOutputText {
901
+ /**
902
+ * File citation annotation for referencing specific files in response content.
903
+ */
904
+ export interface OpenAIResponseAnnotationFileCitation {
905
+ file_id: string;
906
+
907
+ filename: string;
908
+
909
+ index: number;
910
+
911
+ type?: 'file_citation';
912
+ }
913
+
914
+ /**
915
+ * URL citation annotation for referencing external web resources.
916
+ */
917
+ export interface OpenAIResponseAnnotationCitation {
918
+ end_index: number;
919
+
920
+ start_index: number;
921
+
922
+ title: string;
923
+
924
+ url: string;
925
+
926
+ type?: 'url_citation';
927
+ }
928
+
929
+ export interface OpenAIResponseAnnotationContainerFileCitation {
930
+ container_id: string;
931
+
932
+ end_index: number;
933
+
934
+ file_id: string;
935
+
936
+ filename: string;
937
+
938
+ start_index: number;
939
+
940
+ type?: 'container_file_citation';
941
+ }
942
+
943
+ export interface OpenAIResponseAnnotationFilePath {
944
+ file_id: string;
945
+
946
+ index: number;
947
+
948
+ type?: 'file_path';
949
+ }
950
+
951
+ /**
952
+ * The log probability for a token from an OpenAI-compatible chat completion
953
+ * response.
954
+ *
955
+ * :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
956
+ * probability of the token :top_logprobs: The top log probabilities for the token
957
+ */
958
+ export interface Logprob {
959
+ token: string;
960
+
961
+ logprob: number;
962
+
963
+ bytes?: Array<number> | null;
964
+
965
+ top_logprobs?: Array<Logprob.TopLogprob> | null;
966
+ }
967
+
968
+ export namespace Logprob {
969
+ /**
970
+ * The top log probability for a token from an OpenAI-compatible chat completion
971
+ * response.
972
+ *
973
+ * :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
974
+ * probability of the token
975
+ */
976
+ export interface TopLogprob {
977
+ token: string;
978
+
979
+ logprob: number;
980
+
981
+ bytes?: Array<number> | null;
982
+ }
983
+ }
984
+ }
985
+
986
+ /**
987
+ * Refusal content within a streamed response part.
988
+ */
989
+ export interface OpenAIResponseContentPartRefusal {
990
+ refusal: string;
991
+
992
+ type?: 'refusal';
993
+ }
994
+ }
995
+
996
+ export interface ItemCreateParams {
997
+ items: Array<
998
+ | ItemCreateParams.OpenAIResponseMessageInput
999
+ | ItemCreateParams.OpenAIResponseOutputMessageWebSearchToolCall
1000
+ | ItemCreateParams.OpenAIResponseOutputMessageFileSearchToolCall
1001
+ | ItemCreateParams.OpenAIResponseOutputMessageFunctionToolCall
1002
+ | ItemCreateParams.OpenAIResponseInputFunctionToolCallOutput
1003
+ | ItemCreateParams.OpenAIResponseMcpApprovalRequest
1004
+ | ItemCreateParams.OpenAIResponseMcpApprovalResponse
1005
+ | ItemCreateParams.OpenAIResponseOutputMessageMcpCall
1006
+ | ItemCreateParams.OpenAIResponseOutputMessageMcpListTools
1007
+ >;
1008
+ }
1009
+
1010
+ export namespace ItemCreateParams {
1011
+ /**
1012
+ * Corresponds to the various Message types in the Responses API. They are all
1013
+ * under one type because the Responses API gives them all the same "type" value,
1014
+ * and there is no way to tell them apart in certain scenarios.
1015
+ */
1016
+ export interface OpenAIResponseMessageInput {
1017
+ content:
1018
+ | string
1019
+ | Array<
1020
+ | OpenAIResponseMessageInput.OpenAIResponseInputMessageContentText
1021
+ | OpenAIResponseMessageInput.OpenAIResponseInputMessageContentImage
1022
+ | OpenAIResponseMessageInput.OpenAIResponseInputMessageContentFile
1023
+ >
1024
+ | Array<
1025
+ | OpenAIResponseMessageInput.OpenAIResponseOutputMessageContentOutputTextInput
1026
+ | OpenAIResponseMessageInput.OpenAIResponseContentPartRefusal
1027
+ >;
1028
+
1029
+ role: 'system' | 'developer' | 'user' | 'assistant';
1030
+
1031
+ id?: string | null;
1032
+
1033
+ status?: string | null;
1034
+
1035
+ type?: 'message';
1036
+ }
1037
+
1038
+ export namespace OpenAIResponseMessageInput {
1039
+ /**
1040
+ * Text content for input messages in OpenAI response format.
1041
+ */
1042
+ export interface OpenAIResponseInputMessageContentText {
1043
+ text: string;
1044
+
1045
+ type?: 'input_text';
1046
+ }
1047
+
1048
+ /**
1049
+ * Image content for input messages in OpenAI response format.
1050
+ */
1051
+ export interface OpenAIResponseInputMessageContentImage {
1052
+ detail?: 'low' | 'high' | 'auto';
1053
+
1054
+ file_id?: string | null;
1055
+
1056
+ image_url?: string | null;
1057
+
1058
+ type?: 'input_image';
1059
+ }
1060
+
1061
+ /**
1062
+ * File content for input messages in OpenAI response format.
1063
+ */
1064
+ export interface OpenAIResponseInputMessageContentFile {
1065
+ file_data?: string | null;
1066
+
1067
+ file_id?: string | null;
1068
+
1069
+ file_url?: string | null;
1070
+
1071
+ filename?: string | null;
1072
+
1073
+ type?: 'input_file';
1074
+ }
1075
+
1076
+ export interface OpenAIResponseOutputMessageContentOutputTextInput {
1077
+ text: string;
1078
+
1079
+ annotations?: Array<
1080
+ | OpenAIResponseOutputMessageContentOutputTextInput.OpenAIResponseAnnotationFileCitation
1081
+ | OpenAIResponseOutputMessageContentOutputTextInput.OpenAIResponseAnnotationCitation
1082
+ | OpenAIResponseOutputMessageContentOutputTextInput.OpenAIResponseAnnotationContainerFileCitation
1083
+ | OpenAIResponseOutputMessageContentOutputTextInput.OpenAIResponseAnnotationFilePath
1084
+ >;
1085
+
1086
+ logprobs?: Array<OpenAIResponseOutputMessageContentOutputTextInput.Logprob> | null;
1087
+
1088
+ type?: 'output_text';
1089
+ }
1090
+
1091
+ export namespace OpenAIResponseOutputMessageContentOutputTextInput {
1092
+ /**
1093
+ * File citation annotation for referencing specific files in response content.
1094
+ */
1095
+ export interface OpenAIResponseAnnotationFileCitation {
1096
+ file_id: string;
1097
+
1098
+ filename: string;
1099
+
1100
+ index: number;
1101
+
1102
+ type?: 'file_citation';
1103
+ }
1104
+
1105
+ /**
1106
+ * URL citation annotation for referencing external web resources.
1107
+ */
1108
+ export interface OpenAIResponseAnnotationCitation {
1109
+ end_index: number;
1110
+
1111
+ start_index: number;
1112
+
1113
+ title: string;
1114
+
1115
+ url: string;
1116
+
1117
+ type?: 'url_citation';
1118
+ }
1119
+
1120
+ export interface OpenAIResponseAnnotationContainerFileCitation {
1121
+ container_id: string;
1122
+
1123
+ end_index: number;
1124
+
1125
+ file_id: string;
1126
+
1127
+ filename: string;
1128
+
1129
+ start_index: number;
1130
+
1131
+ type?: 'container_file_citation';
1132
+ }
1133
+
1134
+ export interface OpenAIResponseAnnotationFilePath {
1135
+ file_id: string;
1136
+
1137
+ index: number;
1138
+
1139
+ type?: 'file_path';
1140
+ }
1141
+
1142
+ /**
1143
+ * The log probability for a token from an OpenAI-compatible chat completion
1144
+ * response.
1145
+ *
1146
+ * :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
1147
+ * probability of the token :top_logprobs: The top log probabilities for the token
1148
+ */
1149
+ export interface Logprob {
1150
+ token: string;
1151
+
1152
+ logprob: number;
1153
+
1154
+ bytes?: Array<number> | null;
1155
+
1156
+ top_logprobs?: Array<Logprob.TopLogprob> | null;
1157
+ }
1158
+
1159
+ export namespace Logprob {
1160
+ /**
1161
+ * The top log probability for a token from an OpenAI-compatible chat completion
1162
+ * response.
1163
+ *
1164
+ * :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
1165
+ * probability of the token
1166
+ */
1167
+ export interface TopLogprob {
1168
+ token: string;
1169
+
1170
+ logprob: number;
1171
+
1172
+ bytes?: Array<number> | null;
1173
+ }
1174
+ }
1175
+ }
1176
+
1177
+ /**
1178
+ * Refusal content within a streamed response part.
1179
+ */
1180
+ export interface OpenAIResponseContentPartRefusal {
1181
+ refusal: string;
1182
+
1183
+ type?: 'refusal';
1184
+ }
1185
+ }
1186
+
1187
+ /**
1188
+ * Web search tool call output message for OpenAI responses.
1189
+ */
1190
+ export interface OpenAIResponseOutputMessageWebSearchToolCall {
1191
+ id: string;
1192
+
1193
+ status: string;
1194
+
1195
+ type?: 'web_search_call';
1196
+ }
1197
+
1198
+ /**
1199
+ * File search tool call output message for OpenAI responses.
1200
+ */
1201
+ export interface OpenAIResponseOutputMessageFileSearchToolCall {
1202
+ id: string;
1203
+
1204
+ queries: Array<string>;
1205
+
1206
+ status: string;
1207
+
1208
+ results?: Array<OpenAIResponseOutputMessageFileSearchToolCall.Result> | null;
1209
+
1210
+ type?: 'file_search_call';
1211
+ }
1212
+
1213
+ export namespace OpenAIResponseOutputMessageFileSearchToolCall {
1214
+ /**
1215
+ * Search results returned by the file search operation.
1216
+ */
1217
+ export interface Result {
1218
+ attributes: { [key: string]: unknown };
1219
+
1220
+ file_id: string;
1221
+
1222
+ filename: string;
1223
+
1224
+ score: number;
1225
+
1226
+ text: string;
1227
+ }
1228
+ }
1229
+
1230
+ /**
1231
+ * Function tool call output message for OpenAI responses.
1232
+ */
1233
+ export interface OpenAIResponseOutputMessageFunctionToolCall {
1234
+ arguments: string;
1235
+
1236
+ call_id: string;
1237
+
1238
+ name: string;
1239
+
1240
+ id?: string | null;
1241
+
1242
+ status?: string | null;
1243
+
1244
+ type?: 'function_call';
1245
+ }
1246
+
1247
+ /**
1248
+ * This represents the output of a function call that gets passed back to the
1249
+ * model.
1250
+ */
1251
+ export interface OpenAIResponseInputFunctionToolCallOutput {
1252
+ call_id: string;
1253
+
1254
+ output: string;
1255
+
1256
+ id?: string | null;
1257
+
1258
+ status?: string | null;
1259
+
1260
+ type?: 'function_call_output';
1261
+ }
1262
+
1263
+ /**
1264
+ * A request for human approval of a tool invocation.
1265
+ */
1266
+ export interface OpenAIResponseMcpApprovalRequest {
1267
+ id: string;
1268
+
1269
+ arguments: string;
1270
+
1271
+ name: string;
1272
+
1273
+ server_label: string;
1274
+
1275
+ type?: 'mcp_approval_request';
1276
+ }
1277
+
1278
+ /**
1279
+ * A response to an MCP approval request.
1280
+ */
1281
+ export interface OpenAIResponseMcpApprovalResponse {
1282
+ approval_request_id: string;
1283
+
1284
+ approve: boolean;
1285
+
1286
+ id?: string | null;
1287
+
1288
+ reason?: string | null;
1289
+
1290
+ type?: 'mcp_approval_response';
1291
+ }
1292
+
1293
+ /**
1294
+ * Model Context Protocol (MCP) call output message for OpenAI responses.
1295
+ */
1296
+ export interface OpenAIResponseOutputMessageMcpCall {
1297
+ id: string;
1298
+
1299
+ arguments: string;
1300
+
1301
+ name: string;
1302
+
1303
+ server_label: string;
1304
+
1305
+ error?: string | null;
1306
+
1307
+ output?: string | null;
1308
+
1309
+ type?: 'mcp_call';
1310
+ }
1311
+
1312
+ /**
1313
+ * MCP list tools output message containing available tools from an MCP server.
1314
+ */
1315
+ export interface OpenAIResponseOutputMessageMcpListTools {
1316
+ id: string;
1317
+
1318
+ server_label: string;
1319
+
1320
+ tools: Array<OpenAIResponseOutputMessageMcpListTools.Tool>;
1321
+
1322
+ type?: 'mcp_list_tools';
1323
+ }
1324
+
1325
+ export namespace OpenAIResponseOutputMessageMcpListTools {
1326
+ /**
1327
+ * Tool definition returned by MCP list tools operation.
1328
+ */
1329
+ export interface Tool {
1330
+ input_schema: { [key: string]: unknown };
1331
+
1332
+ name: string;
1333
+
1334
+ description?: string | null;
1335
+ }
1336
+ }
1337
+ }
1338
+
1339
+ export interface ItemListParams extends OpenAICursorPageParams {
1340
+ include?: Array<
1341
+ | 'web_search_call.action.sources'
1342
+ | 'code_interpreter_call.outputs'
1343
+ | 'computer_call_output.output.image_url'
1344
+ | 'file_search_call.results'
1345
+ | 'message.input_image.image_url'
1346
+ | 'message.output_text.logprobs'
1347
+ | 'reasoning.encrypted_content'
1348
+ > | null;
1349
+
1350
+ order?: 'asc' | 'desc' | null;
1351
+ }
1352
+
1353
+ Items.ItemListResponsesOpenAICursorPage = ItemListResponsesOpenAICursorPage;
1354
+
1355
+ export declare namespace Items {
1356
+ export {
1357
+ type ItemCreateResponse as ItemCreateResponse,
1358
+ type ItemListResponse as ItemListResponse,
1359
+ type ItemDeleteResponse as ItemDeleteResponse,
1360
+ type ItemGetResponse as ItemGetResponse,
1361
+ ItemListResponsesOpenAICursorPage as ItemListResponsesOpenAICursorPage,
1362
+ type ItemCreateParams as ItemCreateParams,
1363
+ type ItemListParams as ItemListParams,
1364
+ };
1365
+ }