@xyd-js/opensdk-python 0.0.0-build-f0c10f6-20260703195526

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 (539) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/LICENSE +21 -0
  3. package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__create/input.json +325 -0
  4. package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__create/output.py +26 -0
  5. package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__delete/input.json +201 -0
  6. package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__delete/output.py +28 -0
  7. package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__list/input.json +400 -0
  8. package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__list/output.py +29 -0
  9. package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__retrieve/input.json +304 -0
  10. package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__retrieve/output.py +28 -0
  11. package/__fixtures__/-2.complex.openai/admin__organization__audit_logs__list/input.json +2602 -0
  12. package/__fixtures__/-2.complex.openai/admin__organization__audit_logs__list/output.py +29 -0
  13. package/__fixtures__/-2.complex.openai/admin__organization__certificates__activate__create/input.json +308 -0
  14. package/__fixtures__/-2.complex.openai/admin__organization__certificates__activate__create/output.py +32 -0
  15. package/__fixtures__/-2.complex.openai/admin__organization__certificates__create/input.json +308 -0
  16. package/__fixtures__/-2.complex.openai/admin__organization__certificates__create/output.py +28 -0
  17. package/__fixtures__/-2.complex.openai/admin__organization__certificates__deactivate__create/input.json +308 -0
  18. package/__fixtures__/-2.complex.openai/admin__organization__certificates__deactivate__create/output.py +32 -0
  19. package/__fixtures__/-2.complex.openai/admin__organization__certificates__delete/input.json +196 -0
  20. package/__fixtures__/-2.complex.openai/admin__organization__certificates__delete/output.py +28 -0
  21. package/__fixtures__/-2.complex.openai/admin__organization__certificates__list/input.json +356 -0
  22. package/__fixtures__/-2.complex.openai/admin__organization__certificates__list/output.py +29 -0
  23. package/__fixtures__/-2.complex.openai/admin__organization__certificates__retrieve/input.json +300 -0
  24. package/__fixtures__/-2.complex.openai/admin__organization__certificates__retrieve/output.py +30 -0
  25. package/__fixtures__/-2.complex.openai/admin__organization__certificates__update/input.json +310 -0
  26. package/__fixtures__/-2.complex.openai/admin__organization__certificates__update/output.py +30 -0
  27. package/__fixtures__/-2.complex.openai/admin__organization__costs__list/input.json +1062 -0
  28. package/__fixtures__/-2.complex.openai/admin__organization__costs__list/output.py +29 -0
  29. package/__fixtures__/-2.complex.openai/admin__organization__groups__create/input.json +239 -0
  30. package/__fixtures__/-2.complex.openai/admin__organization__groups__create/output.py +26 -0
  31. package/__fixtures__/-2.complex.openai/admin__organization__groups__delete/input.json +206 -0
  32. package/__fixtures__/-2.complex.openai/admin__organization__groups__delete/output.py +28 -0
  33. package/__fixtures__/-2.complex.openai/admin__organization__groups__list/input.json +316 -0
  34. package/__fixtures__/-2.complex.openai/admin__organization__groups__list/output.py +29 -0
  35. package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__create/input.json +364 -0
  36. package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__create/output.py +34 -0
  37. package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__delete/input.json +210 -0
  38. package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__delete/output.py +36 -0
  39. package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__list/input.json +398 -0
  40. package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__list/output.py +37 -0
  41. package/__fixtures__/-2.complex.openai/admin__organization__groups__update/input.json +241 -0
  42. package/__fixtures__/-2.complex.openai/admin__organization__groups__update/output.py +28 -0
  43. package/__fixtures__/-2.complex.openai/admin__organization__groups__users__create/input.json +237 -0
  44. package/__fixtures__/-2.complex.openai/admin__organization__groups__users__create/output.py +34 -0
  45. package/__fixtures__/-2.complex.openai/admin__organization__groups__users__delete/input.json +211 -0
  46. package/__fixtures__/-2.complex.openai/admin__organization__groups__users__delete/output.py +36 -0
  47. package/__fixtures__/-2.complex.openai/admin__organization__groups__users__list/input.json +314 -0
  48. package/__fixtures__/-2.complex.openai/admin__organization__groups__users__list/output.py +37 -0
  49. package/__fixtures__/-2.complex.openai/admin__organization__invites__create/input.json +386 -0
  50. package/__fixtures__/-2.complex.openai/admin__organization__invites__create/output.py +28 -0
  51. package/__fixtures__/-2.complex.openai/admin__organization__invites__delete/input.json +203 -0
  52. package/__fixtures__/-2.complex.openai/admin__organization__invites__delete/output.py +28 -0
  53. package/__fixtures__/-2.complex.openai/admin__organization__invites__list/input.json +414 -0
  54. package/__fixtures__/-2.complex.openai/admin__organization__invites__list/output.py +29 -0
  55. package/__fixtures__/-2.complex.openai/admin__organization__invites__retrieve/input.json +337 -0
  56. package/__fixtures__/-2.complex.openai/admin__organization__invites__retrieve/output.py +28 -0
  57. package/__fixtures__/-2.complex.openai/admin__organization__projects__api_keys__delete/input.json +279 -0
  58. package/__fixtures__/-2.complex.openai/admin__organization__projects__api_keys__delete/output.py +36 -0
  59. package/__fixtures__/-2.complex.openai/admin__organization__projects__api_keys__list/input.json +475 -0
  60. package/__fixtures__/-2.complex.openai/admin__organization__projects__api_keys__list/output.py +37 -0
  61. package/__fixtures__/-2.complex.openai/admin__organization__projects__api_keys__retrieve/input.json +400 -0
  62. package/__fixtures__/-2.complex.openai/admin__organization__projects__api_keys__retrieve/output.py +36 -0
  63. package/__fixtures__/-2.complex.openai/admin__organization__projects__archive/input.json +247 -0
  64. package/__fixtures__/-2.complex.openai/admin__organization__projects__archive/output.py +28 -0
  65. package/__fixtures__/-2.complex.openai/admin__organization__projects__certificates__activate__create/input.json +324 -0
  66. package/__fixtures__/-2.complex.openai/admin__organization__projects__certificates__activate__create/output.py +40 -0
  67. package/__fixtures__/-2.complex.openai/admin__organization__projects__certificates__deactivate__create/input.json +324 -0
  68. package/__fixtures__/-2.complex.openai/admin__organization__projects__certificates__deactivate__create/output.py +40 -0
  69. package/__fixtures__/-2.complex.openai/admin__organization__projects__certificates__list/input.json +372 -0
  70. package/__fixtures__/-2.complex.openai/admin__organization__projects__certificates__list/output.py +37 -0
  71. package/__fixtures__/-2.complex.openai/admin__organization__projects__create/input.json +281 -0
  72. package/__fixtures__/-2.complex.openai/admin__organization__projects__create/output.py +28 -0
  73. package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__create/input.json +274 -0
  74. package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__create/output.py +34 -0
  75. package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__delete/input.json +211 -0
  76. package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__delete/output.py +36 -0
  77. package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__list/input.json +342 -0
  78. package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__list/output.py +37 -0
  79. package/__fixtures__/-2.complex.openai/admin__organization__projects__list/input.json +330 -0
  80. package/__fixtures__/-2.complex.openai/admin__organization__projects__list/output.py +29 -0
  81. package/__fixtures__/-2.complex.openai/admin__organization__projects__rate_limits__list_rate_limits/input.json +358 -0
  82. package/__fixtures__/-2.complex.openai/admin__organization__projects__rate_limits__list_rate_limits/output.py +37 -0
  83. package/__fixtures__/-2.complex.openai/admin__organization__projects__rate_limits__update_rate_limit/input.json +407 -0
  84. package/__fixtures__/-2.complex.openai/admin__organization__projects__rate_limits__update_rate_limit/output.py +38 -0
  85. package/__fixtures__/-2.complex.openai/admin__organization__projects__retrieve/input.json +247 -0
  86. package/__fixtures__/-2.complex.openai/admin__organization__projects__retrieve/output.py +28 -0
  87. package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__create/input.json +372 -0
  88. package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__create/output.py +34 -0
  89. package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__delete/input.json +216 -0
  90. package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__delete/output.py +36 -0
  91. package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__list/input.json +391 -0
  92. package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__list/output.py +37 -0
  93. package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__retrieve/input.json +253 -0
  94. package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__retrieve/output.py +36 -0
  95. package/__fixtures__/-2.complex.openai/admin__organization__projects__update/input.json +356 -0
  96. package/__fixtures__/-2.complex.openai/admin__organization__projects__update/output.py +30 -0
  97. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__create/input.json +349 -0
  98. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__create/output.py +36 -0
  99. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__delete/input.json +279 -0
  100. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__delete/output.py +36 -0
  101. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__list/input.json +387 -0
  102. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__list/output.py +37 -0
  103. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__retrieve/input.json +250 -0
  104. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__retrieve/output.py +36 -0
  105. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__update/input.json +339 -0
  106. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__update/output.py +38 -0
  107. package/__fixtures__/-2.complex.openai/admin__organization__roles__create/input.json +283 -0
  108. package/__fixtures__/-2.complex.openai/admin__organization__roles__create/output.py +28 -0
  109. package/__fixtures__/-2.complex.openai/admin__organization__roles__delete/input.json +206 -0
  110. package/__fixtures__/-2.complex.openai/admin__organization__roles__delete/output.py +28 -0
  111. package/__fixtures__/-2.complex.openai/admin__organization__roles__list/input.json +338 -0
  112. package/__fixtures__/-2.complex.openai/admin__organization__roles__list/output.py +29 -0
  113. package/__fixtures__/-2.complex.openai/admin__organization__roles__update/input.json +296 -0
  114. package/__fixtures__/-2.complex.openai/admin__organization__roles__update/output.py +30 -0
  115. package/__fixtures__/-2.complex.openai/admin__organization__usage__audio_speeches__list/input.json +1108 -0
  116. package/__fixtures__/-2.complex.openai/admin__organization__usage__audio_speeches__list/output.py +35 -0
  117. package/__fixtures__/-2.complex.openai/admin__organization__usage__audio_transcriptions__list/input.json +1108 -0
  118. package/__fixtures__/-2.complex.openai/admin__organization__usage__audio_transcriptions__list/output.py +35 -0
  119. package/__fixtures__/-2.complex.openai/admin__organization__usage__code_interpreter_sessions__list/input.json +1054 -0
  120. package/__fixtures__/-2.complex.openai/admin__organization__usage__code_interpreter_sessions__list/output.py +35 -0
  121. package/__fixtures__/-2.complex.openai/admin__organization__usage__completions__list/input.json +1123 -0
  122. package/__fixtures__/-2.complex.openai/admin__organization__usage__completions__list/output.py +35 -0
  123. package/__fixtures__/-2.complex.openai/admin__organization__usage__embeddings__list/input.json +1108 -0
  124. package/__fixtures__/-2.complex.openai/admin__organization__usage__embeddings__list/output.py +35 -0
  125. package/__fixtures__/-2.complex.openai/admin__organization__usage__images__list/input.json +1176 -0
  126. package/__fixtures__/-2.complex.openai/admin__organization__usage__images__list/output.py +35 -0
  127. package/__fixtures__/-2.complex.openai/admin__organization__usage__moderations__list/input.json +1108 -0
  128. package/__fixtures__/-2.complex.openai/admin__organization__usage__moderations__list/output.py +35 -0
  129. package/__fixtures__/-2.complex.openai/admin__organization__usage__vector_stores__list/input.json +1054 -0
  130. package/__fixtures__/-2.complex.openai/admin__organization__usage__vector_stores__list/output.py +35 -0
  131. package/__fixtures__/-2.complex.openai/admin__organization__users__delete/input.json +202 -0
  132. package/__fixtures__/-2.complex.openai/admin__organization__users__delete/output.py +28 -0
  133. package/__fixtures__/-2.complex.openai/admin__organization__users__list/input.json +557 -0
  134. package/__fixtures__/-2.complex.openai/admin__organization__users__list/output.py +29 -0
  135. package/__fixtures__/-2.complex.openai/admin__organization__users__retrieve/input.json +472 -0
  136. package/__fixtures__/-2.complex.openai/admin__organization__users__retrieve/output.py +28 -0
  137. package/__fixtures__/-2.complex.openai/admin__organization__users__roles__create/input.json +611 -0
  138. package/__fixtures__/-2.complex.openai/admin__organization__users__roles__create/output.py +34 -0
  139. package/__fixtures__/-2.complex.openai/admin__organization__users__roles__delete/input.json +210 -0
  140. package/__fixtures__/-2.complex.openai/admin__organization__users__roles__delete/output.py +36 -0
  141. package/__fixtures__/-2.complex.openai/admin__organization__users__roles__list/input.json +398 -0
  142. package/__fixtures__/-2.complex.openai/admin__organization__users__roles__list/output.py +37 -0
  143. package/__fixtures__/-2.complex.openai/admin__organization__users__update/input.json +528 -0
  144. package/__fixtures__/-2.complex.openai/admin__organization__users__update/output.py +30 -0
  145. package/__fixtures__/-2.complex.openai/audio__speech__create/input.json +388 -0
  146. package/__fixtures__/-2.complex.openai/audio__speech__create/output.py +22 -0
  147. package/__fixtures__/-2.complex.openai/audio__transcriptions__create/input.json +999 -0
  148. package/__fixtures__/-2.complex.openai/audio__transcriptions__create/output.py +22 -0
  149. package/__fixtures__/-2.complex.openai/audio__translations__create/input.json +430 -0
  150. package/__fixtures__/-2.complex.openai/audio__translations__create/output.py +22 -0
  151. package/__fixtures__/-2.complex.openai/audio__voice_consents__create/input.json +244 -0
  152. package/__fixtures__/-2.complex.openai/audio__voice_consents__create/output.py +22 -0
  153. package/__fixtures__/-2.complex.openai/audio__voice_consents__delete/input.json +190 -0
  154. package/__fixtures__/-2.complex.openai/audio__voice_consents__delete/output.py +22 -0
  155. package/__fixtures__/-2.complex.openai/audio__voice_consents__list/input.json +285 -0
  156. package/__fixtures__/-2.complex.openai/audio__voice_consents__list/output.py +23 -0
  157. package/__fixtures__/-2.complex.openai/audio__voice_consents__retrieve/input.json +212 -0
  158. package/__fixtures__/-2.complex.openai/audio__voice_consents__retrieve/output.py +22 -0
  159. package/__fixtures__/-2.complex.openai/audio__voice_consents__update/input.json +236 -0
  160. package/__fixtures__/-2.complex.openai/audio__voice_consents__update/output.py +22 -0
  161. package/__fixtures__/-2.complex.openai/audio__voices__create/input.json +235 -0
  162. package/__fixtures__/-2.complex.openai/audio__voices__create/output.py +22 -0
  163. package/__fixtures__/-2.complex.openai/batches__cancel/input.json +594 -0
  164. package/__fixtures__/-2.complex.openai/batches__cancel/output.py +16 -0
  165. package/__fixtures__/-2.complex.openai/batches__create/input.json +701 -0
  166. package/__fixtures__/-2.complex.openai/batches__create/output.py +16 -0
  167. package/__fixtures__/-2.complex.openai/batches__list/input.json +665 -0
  168. package/__fixtures__/-2.complex.openai/batches__list/output.py +17 -0
  169. package/__fixtures__/-2.complex.openai/batches__retrieve/input.json +594 -0
  170. package/__fixtures__/-2.complex.openai/batches__retrieve/output.py +16 -0
  171. package/__fixtures__/-2.complex.openai/beta__assistants__create/input.json +1029 -0
  172. package/__fixtures__/-2.complex.openai/beta__assistants__create/output.py +22 -0
  173. package/__fixtures__/-2.complex.openai/beta__assistants__delete/input.json +190 -0
  174. package/__fixtures__/-2.complex.openai/beta__assistants__delete/output.py +22 -0
  175. package/__fixtures__/-2.complex.openai/beta__assistants__list/input.json +796 -0
  176. package/__fixtures__/-2.complex.openai/beta__assistants__list/output.py +23 -0
  177. package/__fixtures__/-2.complex.openai/beta__assistants__retrieve/input.json +694 -0
  178. package/__fixtures__/-2.complex.openai/beta__assistants__retrieve/output.py +22 -0
  179. package/__fixtures__/-2.complex.openai/beta__assistants__update/input.json +1045 -0
  180. package/__fixtures__/-2.complex.openai/beta__assistants__update/output.py +24 -0
  181. package/__fixtures__/-2.complex.openai/beta__chat_kit__sessions__cancel/input.json +482 -0
  182. package/__fixtures__/-2.complex.openai/beta__chat_kit__sessions__cancel/output.py +28 -0
  183. package/__fixtures__/-2.complex.openai/beta__chat_kit__sessions__create/input.json +738 -0
  184. package/__fixtures__/-2.complex.openai/beta__chat_kit__sessions__create/output.py +28 -0
  185. package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__delete/input.json +200 -0
  186. package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__delete/output.py +28 -0
  187. package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__items__list/input.json +1218 -0
  188. package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__items__list/output.py +37 -0
  189. package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__list/input.json +444 -0
  190. package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__list/output.py +29 -0
  191. package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__retrieve/input.json +328 -0
  192. package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__retrieve/output.py +28 -0
  193. package/__fixtures__/-2.complex.openai/beta__threads__create/input.json +665 -0
  194. package/__fixtures__/-2.complex.openai/beta__threads__create/output.py +22 -0
  195. package/__fixtures__/-2.complex.openai/beta__threads__delete/input.json +189 -0
  196. package/__fixtures__/-2.complex.openai/beta__threads__delete/output.py +22 -0
  197. package/__fixtures__/-2.complex.openai/beta__threads__messages__create/input.json +938 -0
  198. package/__fixtures__/-2.complex.openai/beta__threads__messages__create/output.py +30 -0
  199. package/__fixtures__/-2.complex.openai/beta__threads__messages__delete/input.json +203 -0
  200. package/__fixtures__/-2.complex.openai/beta__threads__messages__delete/output.py +30 -0
  201. package/__fixtures__/-2.complex.openai/beta__threads__messages__list/input.json +945 -0
  202. package/__fixtures__/-2.complex.openai/beta__threads__messages__list/output.py +31 -0
  203. package/__fixtures__/-2.complex.openai/beta__threads__messages__retrieve/input.json +832 -0
  204. package/__fixtures__/-2.complex.openai/beta__threads__messages__retrieve/output.py +30 -0
  205. package/__fixtures__/-2.complex.openai/beta__threads__messages__update/input.json +855 -0
  206. package/__fixtures__/-2.complex.openai/beta__threads__messages__update/output.py +32 -0
  207. package/__fixtures__/-2.complex.openai/beta__threads__new_and_run/input.json +1899 -0
  208. package/__fixtures__/-2.complex.openai/beta__threads__new_and_run/output.py +22 -0
  209. package/__fixtures__/-2.complex.openai/beta__threads__retrieve/input.json +283 -0
  210. package/__fixtures__/-2.complex.openai/beta__threads__retrieve/output.py +22 -0
  211. package/__fixtures__/-2.complex.openai/beta__threads__runs__cancel/input.json +1181 -0
  212. package/__fixtures__/-2.complex.openai/beta__threads__runs__cancel/output.py +30 -0
  213. package/__fixtures__/-2.complex.openai/beta__threads__runs__create/input.json +1851 -0
  214. package/__fixtures__/-2.complex.openai/beta__threads__runs__create/output.py +30 -0
  215. package/__fixtures__/-2.complex.openai/beta__threads__runs__list/input.json +1285 -0
  216. package/__fixtures__/-2.complex.openai/beta__threads__runs__list/output.py +31 -0
  217. package/__fixtures__/-2.complex.openai/beta__threads__runs__retrieve/input.json +1181 -0
  218. package/__fixtures__/-2.complex.openai/beta__threads__runs__retrieve/output.py +30 -0
  219. package/__fixtures__/-2.complex.openai/beta__threads__runs__steps__list/input.json +1066 -0
  220. package/__fixtures__/-2.complex.openai/beta__threads__runs__steps__list/output.py +39 -0
  221. package/__fixtures__/-2.complex.openai/beta__threads__runs__steps__retrieve/input.json +964 -0
  222. package/__fixtures__/-2.complex.openai/beta__threads__runs__steps__retrieve/output.py +40 -0
  223. package/__fixtures__/-2.complex.openai/beta__threads__runs__submit_tool_outputs__create/input.json +1246 -0
  224. package/__fixtures__/-2.complex.openai/beta__threads__runs__submit_tool_outputs__create/output.py +38 -0
  225. package/__fixtures__/-2.complex.openai/beta__threads__runs__update/input.json +1204 -0
  226. package/__fixtures__/-2.complex.openai/beta__threads__runs__update/output.py +32 -0
  227. package/__fixtures__/-2.complex.openai/beta__threads__update/input.json +315 -0
  228. package/__fixtures__/-2.complex.openai/beta__threads__update/output.py +24 -0
  229. package/__fixtures__/-2.complex.openai/chat__completions__create/input.json +3325 -0
  230. package/__fixtures__/-2.complex.openai/chat__completions__create/output.py +22 -0
  231. package/__fixtures__/-2.complex.openai/chat__completions__delete/input.json +192 -0
  232. package/__fixtures__/-2.complex.openai/chat__completions__delete/output.py +22 -0
  233. package/__fixtures__/-2.complex.openai/chat__completions__list/input.json +1069 -0
  234. package/__fixtures__/-2.complex.openai/chat__completions__list/output.py +23 -0
  235. package/__fixtures__/-2.complex.openai/chat__completions__messages__list/input.json +770 -0
  236. package/__fixtures__/-2.complex.openai/chat__completions__messages__list/output.py +31 -0
  237. package/__fixtures__/-2.complex.openai/chat__completions__retrieve/input.json +938 -0
  238. package/__fixtures__/-2.complex.openai/chat__completions__retrieve/output.py +22 -0
  239. package/__fixtures__/-2.complex.openai/chat__completions__update/input.json +973 -0
  240. package/__fixtures__/-2.complex.openai/chat__completions__update/output.py +22 -0
  241. package/__fixtures__/-2.complex.openai/completions__create/input.json +788 -0
  242. package/__fixtures__/-2.complex.openai/completions__create/output.py +16 -0
  243. package/__fixtures__/-2.complex.openai/containers__create/input.json +671 -0
  244. package/__fixtures__/-2.complex.openai/containers__create/output.py +16 -0
  245. package/__fixtures__/-2.complex.openai/containers__delete/input.json +142 -0
  246. package/__fixtures__/-2.complex.openai/containers__delete/output.py +16 -0
  247. package/__fixtures__/-2.complex.openai/containers__files__content/input.json +154 -0
  248. package/__fixtures__/-2.complex.openai/containers__files__content/output.py +24 -0
  249. package/__fixtures__/-2.complex.openai/containers__files__create/input.json +261 -0
  250. package/__fixtures__/-2.complex.openai/containers__files__create/output.py +24 -0
  251. package/__fixtures__/-2.complex.openai/containers__files__delete/input.json +154 -0
  252. package/__fixtures__/-2.complex.openai/containers__files__delete/output.py +24 -0
  253. package/__fixtures__/-2.complex.openai/containers__files__list/input.json +337 -0
  254. package/__fixtures__/-2.complex.openai/containers__files__list/output.py +25 -0
  255. package/__fixtures__/-2.complex.openai/containers__files__retrieve/input.json +235 -0
  256. package/__fixtures__/-2.complex.openai/containers__files__retrieve/output.py +24 -0
  257. package/__fixtures__/-2.complex.openai/containers__list/input.json +438 -0
  258. package/__fixtures__/-2.complex.openai/containers__list/output.py +17 -0
  259. package/__fixtures__/-2.complex.openai/containers__retrieve/input.json +329 -0
  260. package/__fixtures__/-2.complex.openai/containers__retrieve/output.py +16 -0
  261. package/__fixtures__/-2.complex.openai/conversations__create/input.json +6737 -0
  262. package/__fixtures__/-2.complex.openai/conversations__create/output.py +16 -0
  263. package/__fixtures__/-2.complex.openai/conversations__delete/input.json +186 -0
  264. package/__fixtures__/-2.complex.openai/conversations__delete/output.py +16 -0
  265. package/__fixtures__/-2.complex.openai/conversations__items__create/input.json +8352 -0
  266. package/__fixtures__/-2.complex.openai/conversations__items__create/output.py +25 -0
  267. package/__fixtures__/-2.complex.openai/conversations__items__delete/input.json +213 -0
  268. package/__fixtures__/-2.complex.openai/conversations__items__delete/output.py +24 -0
  269. package/__fixtures__/-2.complex.openai/conversations__items__list/input.json +6695 -0
  270. package/__fixtures__/-2.complex.openai/conversations__items__list/output.py +25 -0
  271. package/__fixtures__/-2.complex.openai/conversations__items__retrieve/input.json +6597 -0
  272. package/__fixtures__/-2.complex.openai/conversations__items__retrieve/output.py +26 -0
  273. package/__fixtures__/-2.complex.openai/conversations__retrieve/input.json +198 -0
  274. package/__fixtures__/-2.complex.openai/conversations__retrieve/output.py +16 -0
  275. package/__fixtures__/-2.complex.openai/conversations__update/input.json +233 -0
  276. package/__fixtures__/-2.complex.openai/conversations__update/output.py +16 -0
  277. package/__fixtures__/-2.complex.openai/embeddings__create/input.json +395 -0
  278. package/__fixtures__/-2.complex.openai/embeddings__create/output.py +16 -0
  279. package/__fixtures__/-2.complex.openai/evals__create/input.json +1424 -0
  280. package/__fixtures__/-2.complex.openai/evals__create/output.py +16 -0
  281. package/__fixtures__/-2.complex.openai/evals__delete/input.json +232 -0
  282. package/__fixtures__/-2.complex.openai/evals__delete/output.py +16 -0
  283. package/__fixtures__/-2.complex.openai/evals__list/input.json +1251 -0
  284. package/__fixtures__/-2.complex.openai/evals__list/output.py +17 -0
  285. package/__fixtures__/-2.complex.openai/evals__retrieve/input.json +1127 -0
  286. package/__fixtures__/-2.complex.openai/evals__retrieve/output.py +16 -0
  287. package/__fixtures__/-2.complex.openai/evals__runs__cancel/input.json +4445 -0
  288. package/__fixtures__/-2.complex.openai/evals__runs__cancel/output.py +24 -0
  289. package/__fixtures__/-2.complex.openai/evals__runs__create/input.json +4526 -0
  290. package/__fixtures__/-2.complex.openai/evals__runs__create/output.py +24 -0
  291. package/__fixtures__/-2.complex.openai/evals__runs__delete/input.json +246 -0
  292. package/__fixtures__/-2.complex.openai/evals__runs__delete/output.py +24 -0
  293. package/__fixtures__/-2.complex.openai/evals__runs__list/input.json +4579 -0
  294. package/__fixtures__/-2.complex.openai/evals__runs__list/output.py +25 -0
  295. package/__fixtures__/-2.complex.openai/evals__runs__output_items__list/input.json +685 -0
  296. package/__fixtures__/-2.complex.openai/evals__runs__output_items__list/output.py +33 -0
  297. package/__fixtures__/-2.complex.openai/evals__runs__output_items__retrieve/input.json +560 -0
  298. package/__fixtures__/-2.complex.openai/evals__runs__output_items__retrieve/output.py +32 -0
  299. package/__fixtures__/-2.complex.openai/evals__runs__retrieve/input.json +4445 -0
  300. package/__fixtures__/-2.complex.openai/evals__runs__retrieve/output.py +24 -0
  301. package/__fixtures__/-2.complex.openai/evals__update/input.json +1160 -0
  302. package/__fixtures__/-2.complex.openai/evals__update/output.py +18 -0
  303. package/__fixtures__/-2.complex.openai/files__content/input.json +151 -0
  304. package/__fixtures__/-2.complex.openai/files__content/output.py +16 -0
  305. package/__fixtures__/-2.complex.openai/files__create/input.json +379 -0
  306. package/__fixtures__/-2.complex.openai/files__create/output.py +16 -0
  307. package/__fixtures__/-2.complex.openai/files__delete/input.json +184 -0
  308. package/__fixtures__/-2.complex.openai/files__delete/output.py +16 -0
  309. package/__fixtures__/-2.complex.openai/files__list/input.json +397 -0
  310. package/__fixtures__/-2.complex.openai/files__list/output.py +17 -0
  311. package/__fixtures__/-2.complex.openai/files__retrieve/input.json +295 -0
  312. package/__fixtures__/-2.complex.openai/files__retrieve/output.py +16 -0
  313. package/__fixtures__/-2.complex.openai/fine_tuning__alpha__graders__run__create/input.json +1225 -0
  314. package/__fixtures__/-2.complex.openai/fine_tuning__alpha__graders__run__create/output.py +34 -0
  315. package/__fixtures__/-2.complex.openai/fine_tuning__alpha__graders__validate__create/input.json +991 -0
  316. package/__fixtures__/-2.complex.openai/fine_tuning__alpha__graders__validate__create/output.py +32 -0
  317. package/__fixtures__/-2.complex.openai/fine_tuning__checkpoints__permissions__create/input.json +297 -0
  318. package/__fixtures__/-2.complex.openai/fine_tuning__checkpoints__permissions__create/output.py +29 -0
  319. package/__fixtures__/-2.complex.openai/fine_tuning__checkpoints__permissions__delete/input.json +208 -0
  320. package/__fixtures__/-2.complex.openai/fine_tuning__checkpoints__permissions__delete/output.py +30 -0
  321. package/__fixtures__/-2.complex.openai/fine_tuning__checkpoints__permissions__list/input.json +325 -0
  322. package/__fixtures__/-2.complex.openai/fine_tuning__checkpoints__permissions__list/output.py +31 -0
  323. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__cancel/input.json +1645 -0
  324. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__cancel/output.py +22 -0
  325. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__checkpoints__list/input.json +383 -0
  326. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__checkpoints__list/output.py +31 -0
  327. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__create/input.json +1887 -0
  328. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__create/output.py +22 -0
  329. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__list/input.json +1714 -0
  330. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__list/output.py +23 -0
  331. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__list_events/input.json +330 -0
  332. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__list_events/output.py +25 -0
  333. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__pause/input.json +1645 -0
  334. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__pause/output.py +22 -0
  335. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__resume/input.json +1645 -0
  336. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__resume/output.py +22 -0
  337. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__retrieve/input.json +1645 -0
  338. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__retrieve/output.py +22 -0
  339. package/__fixtures__/-2.complex.openai/images__edits__create/input.json +744 -0
  340. package/__fixtures__/-2.complex.openai/images__edits__create/output.py +22 -0
  341. package/__fixtures__/-2.complex.openai/images__generations__create/input.json +789 -0
  342. package/__fixtures__/-2.complex.openai/images__generations__create/output.py +22 -0
  343. package/__fixtures__/-2.complex.openai/images__variations__create/input.json +550 -0
  344. package/__fixtures__/-2.complex.openai/images__variations__create/output.py +22 -0
  345. package/__fixtures__/-2.complex.openai/models__delete/input.json +184 -0
  346. package/__fixtures__/-2.complex.openai/models__delete/output.py +16 -0
  347. package/__fixtures__/-2.complex.openai/models__list/input.json +221 -0
  348. package/__fixtures__/-2.complex.openai/models__list/output.py +15 -0
  349. package/__fixtures__/-2.complex.openai/models__retrieve/input.json +199 -0
  350. package/__fixtures__/-2.complex.openai/models__retrieve/output.py +16 -0
  351. package/__fixtures__/-2.complex.openai/moderations__create/input.json +831 -0
  352. package/__fixtures__/-2.complex.openai/moderations__create/output.py +16 -0
  353. package/__fixtures__/-2.complex.openai/projects__groups__roles__create/input.json +368 -0
  354. package/__fixtures__/-2.complex.openai/projects__groups__roles__create/output.py +30 -0
  355. package/__fixtures__/-2.complex.openai/projects__groups__roles__delete/input.json +214 -0
  356. package/__fixtures__/-2.complex.openai/projects__groups__roles__delete/output.py +32 -0
  357. package/__fixtures__/-2.complex.openai/projects__groups__roles__list/input.json +402 -0
  358. package/__fixtures__/-2.complex.openai/projects__groups__roles__list/output.py +33 -0
  359. package/__fixtures__/-2.complex.openai/projects__roles__create/input.json +289 -0
  360. package/__fixtures__/-2.complex.openai/projects__roles__create/output.py +24 -0
  361. package/__fixtures__/-2.complex.openai/projects__roles__delete/input.json +210 -0
  362. package/__fixtures__/-2.complex.openai/projects__roles__delete/output.py +24 -0
  363. package/__fixtures__/-2.complex.openai/projects__roles__list/input.json +344 -0
  364. package/__fixtures__/-2.complex.openai/projects__roles__list/output.py +25 -0
  365. package/__fixtures__/-2.complex.openai/projects__roles__update/input.json +300 -0
  366. package/__fixtures__/-2.complex.openai/projects__roles__update/output.py +26 -0
  367. package/__fixtures__/-2.complex.openai/projects__users__roles__create/input.json +615 -0
  368. package/__fixtures__/-2.complex.openai/projects__users__roles__create/output.py +30 -0
  369. package/__fixtures__/-2.complex.openai/projects__users__roles__delete/input.json +214 -0
  370. package/__fixtures__/-2.complex.openai/projects__users__roles__delete/output.py +32 -0
  371. package/__fixtures__/-2.complex.openai/projects__users__roles__list/input.json +402 -0
  372. package/__fixtures__/-2.complex.openai/projects__users__roles__list/output.py +33 -0
  373. package/__fixtures__/-2.complex.openai/realtime__calls__accept/input.json +1768 -0
  374. package/__fixtures__/-2.complex.openai/realtime__calls__accept/output.py +24 -0
  375. package/__fixtures__/-2.complex.openai/realtime__calls__create/input.json +1790 -0
  376. package/__fixtures__/-2.complex.openai/realtime__calls__create/output.py +22 -0
  377. package/__fixtures__/-2.complex.openai/realtime__calls__hangup/input.json +147 -0
  378. package/__fixtures__/-2.complex.openai/realtime__calls__hangup/output.py +22 -0
  379. package/__fixtures__/-2.complex.openai/realtime__calls__refer/input.json +175 -0
  380. package/__fixtures__/-2.complex.openai/realtime__calls__refer/output.py +22 -0
  381. package/__fixtures__/-2.complex.openai/realtime__calls__reject/input.json +175 -0
  382. package/__fixtures__/-2.complex.openai/realtime__calls__reject/output.py +24 -0
  383. package/__fixtures__/-2.complex.openai/realtime__client_secrets__create/input.json +2407 -0
  384. package/__fixtures__/-2.complex.openai/realtime__client_secrets__create/output.py +22 -0
  385. package/__fixtures__/-2.complex.openai/realtime__sessions__create/input.json +1400 -0
  386. package/__fixtures__/-2.complex.openai/realtime__sessions__create/output.py +22 -0
  387. package/__fixtures__/-2.complex.openai/realtime__transcription_sessions__create/input.json +562 -0
  388. package/__fixtures__/-2.complex.openai/realtime__transcription_sessions__create/output.py +22 -0
  389. package/__fixtures__/-2.complex.openai/realtime__translations__client_secrets__create/input.json +498 -0
  390. package/__fixtures__/-2.complex.openai/realtime__translations__client_secrets__create/output.py +28 -0
  391. package/__fixtures__/-2.complex.openai/responses__cancel/input.json +9526 -0
  392. package/__fixtures__/-2.complex.openai/responses__cancel/output.py +16 -0
  393. package/__fixtures__/-2.complex.openai/responses__compact__create/input.json +8721 -0
  394. package/__fixtures__/-2.complex.openai/responses__compact__create/output.py +22 -0
  395. package/__fixtures__/-2.complex.openai/responses__create/input.json +9862 -0
  396. package/__fixtures__/-2.complex.openai/responses__create/output.py +16 -0
  397. package/__fixtures__/-2.complex.openai/responses__delete/input.json +194 -0
  398. package/__fixtures__/-2.complex.openai/responses__delete/output.py +16 -0
  399. package/__fixtures__/-2.complex.openai/responses__input_items__list/input.json +6686 -0
  400. package/__fixtures__/-2.complex.openai/responses__input_items__list/output.py +25 -0
  401. package/__fixtures__/-2.complex.openai/responses__input_tokens__count/input.json +7368 -0
  402. package/__fixtures__/-2.complex.openai/responses__input_tokens__count/output.py +22 -0
  403. package/__fixtures__/-2.complex.openai/responses__retrieve/input.json +9550 -0
  404. package/__fixtures__/-2.complex.openai/responses__retrieve/output.py +18 -0
  405. package/__fixtures__/-2.complex.openai/skills__content/input.json +152 -0
  406. package/__fixtures__/-2.complex.openai/skills__content/output.py +16 -0
  407. package/__fixtures__/-2.complex.openai/skills__create/input.json +258 -0
  408. package/__fixtures__/-2.complex.openai/skills__create/output.py +14 -0
  409. package/__fixtures__/-2.complex.openai/skills__delete/input.json +186 -0
  410. package/__fixtures__/-2.complex.openai/skills__delete/output.py +16 -0
  411. package/__fixtures__/-2.complex.openai/skills__list/input.json +323 -0
  412. package/__fixtures__/-2.complex.openai/skills__list/output.py +17 -0
  413. package/__fixtures__/-2.complex.openai/skills__retrieve/input.json +226 -0
  414. package/__fixtures__/-2.complex.openai/skills__retrieve/output.py +16 -0
  415. package/__fixtures__/-2.complex.openai/skills__update/input.json +251 -0
  416. package/__fixtures__/-2.complex.openai/skills__update/output.py +16 -0
  417. package/__fixtures__/-2.complex.openai/skills__versions__content/input.json +166 -0
  418. package/__fixtures__/-2.complex.openai/skills__versions__content/output.py +24 -0
  419. package/__fixtures__/-2.complex.openai/skills__versions__create/input.json +284 -0
  420. package/__fixtures__/-2.complex.openai/skills__versions__create/output.py +24 -0
  421. package/__fixtures__/-2.complex.openai/skills__versions__delete/input.json +209 -0
  422. package/__fixtures__/-2.complex.openai/skills__versions__delete/output.py +24 -0
  423. package/__fixtures__/-2.complex.openai/skills__versions__list/input.json +341 -0
  424. package/__fixtures__/-2.complex.openai/skills__versions__list/output.py +25 -0
  425. package/__fixtures__/-2.complex.openai/skills__versions__retrieve/input.json +240 -0
  426. package/__fixtures__/-2.complex.openai/skills__versions__retrieve/output.py +24 -0
  427. package/__fixtures__/-2.complex.openai/uploads__cancel/input.json +407 -0
  428. package/__fixtures__/-2.complex.openai/uploads__cancel/output.py +16 -0
  429. package/__fixtures__/-2.complex.openai/uploads__complete/input.json +443 -0
  430. package/__fixtures__/-2.complex.openai/uploads__complete/output.py +18 -0
  431. package/__fixtures__/-2.complex.openai/uploads__create/input.json +501 -0
  432. package/__fixtures__/-2.complex.openai/uploads__create/output.py +16 -0
  433. package/__fixtures__/-2.complex.openai/uploads__parts__create/input.json +229 -0
  434. package/__fixtures__/-2.complex.openai/uploads__parts__create/output.py +24 -0
  435. package/__fixtures__/-2.complex.openai/vector_stores__create/input.json +507 -0
  436. package/__fixtures__/-2.complex.openai/vector_stores__create/output.py +16 -0
  437. package/__fixtures__/-2.complex.openai/vector_stores__delete/input.json +184 -0
  438. package/__fixtures__/-2.complex.openai/vector_stores__delete/output.py +16 -0
  439. package/__fixtures__/-2.complex.openai/vector_stores__file_batches__cancel/input.json +300 -0
  440. package/__fixtures__/-2.complex.openai/vector_stores__file_batches__cancel/output.py +24 -0
  441. package/__fixtures__/-2.complex.openai/vector_stores__file_batches__create/input.json +314 -0
  442. package/__fixtures__/-2.complex.openai/vector_stores__file_batches__create/output.py +22 -0
  443. package/__fixtures__/-2.complex.openai/vector_stores__file_batches__list_files/input.json +571 -0
  444. package/__fixtures__/-2.complex.openai/vector_stores__file_batches__list_files/output.py +27 -0
  445. package/__fixtures__/-2.complex.openai/vector_stores__file_batches__retrieve/input.json +302 -0
  446. package/__fixtures__/-2.complex.openai/vector_stores__file_batches__retrieve/output.py +24 -0
  447. package/__fixtures__/-2.complex.openai/vector_stores__files__content/input.json +249 -0
  448. package/__fixtures__/-2.complex.openai/vector_stores__files__content/output.py +25 -0
  449. package/__fixtures__/-2.complex.openai/vector_stores__files__create/input.json +527 -0
  450. package/__fixtures__/-2.complex.openai/vector_stores__files__create/output.py +24 -0
  451. package/__fixtures__/-2.complex.openai/vector_stores__files__delete/input.json +198 -0
  452. package/__fixtures__/-2.complex.openai/vector_stores__files__delete/output.py +24 -0
  453. package/__fixtures__/-2.complex.openai/vector_stores__files__list/input.json +562 -0
  454. package/__fixtures__/-2.complex.openai/vector_stores__files__list/output.py +25 -0
  455. package/__fixtures__/-2.complex.openai/vector_stores__files__retrieve/input.json +432 -0
  456. package/__fixtures__/-2.complex.openai/vector_stores__files__retrieve/output.py +24 -0
  457. package/__fixtures__/-2.complex.openai/vector_stores__files__update/input.json +455 -0
  458. package/__fixtures__/-2.complex.openai/vector_stores__files__update/output.py +24 -0
  459. package/__fixtures__/-2.complex.openai/vector_stores__list/input.json +468 -0
  460. package/__fixtures__/-2.complex.openai/vector_stores__list/output.py +17 -0
  461. package/__fixtures__/-2.complex.openai/vector_stores__retrieve/input.json +366 -0
  462. package/__fixtures__/-2.complex.openai/vector_stores__retrieve/output.py +16 -0
  463. package/__fixtures__/-2.complex.openai/vector_stores__search/input.json +637 -0
  464. package/__fixtures__/-2.complex.openai/vector_stores__search/output.py +19 -0
  465. package/__fixtures__/-2.complex.openai/vector_stores__update/input.json +409 -0
  466. package/__fixtures__/-2.complex.openai/vector_stores__update/output.py +18 -0
  467. package/__fixtures__/-2.complex.openai/videos__characters__create/input.json +216 -0
  468. package/__fixtures__/-2.complex.openai/videos__characters__create/output.py +22 -0
  469. package/__fixtures__/-2.complex.openai/videos__characters__retrieve/input.json +193 -0
  470. package/__fixtures__/-2.complex.openai/videos__characters__retrieve/output.py +22 -0
  471. package/__fixtures__/-2.complex.openai/videos__create/input.json +465 -0
  472. package/__fixtures__/-2.complex.openai/videos__create/output.py +16 -0
  473. package/__fixtures__/-2.complex.openai/videos__delete/input.json +190 -0
  474. package/__fixtures__/-2.complex.openai/videos__delete/output.py +16 -0
  475. package/__fixtures__/-2.complex.openai/videos__download_content/input.json +181 -0
  476. package/__fixtures__/-2.complex.openai/videos__download_content/output.py +18 -0
  477. package/__fixtures__/-2.complex.openai/videos__edits__create/input.json +422 -0
  478. package/__fixtures__/-2.complex.openai/videos__edits__create/output.py +20 -0
  479. package/__fixtures__/-2.complex.openai/videos__extensions__create/input.json +446 -0
  480. package/__fixtures__/-2.complex.openai/videos__extensions__create/output.py +20 -0
  481. package/__fixtures__/-2.complex.openai/videos__list/input.json +477 -0
  482. package/__fixtures__/-2.complex.openai/videos__list/output.py +17 -0
  483. package/__fixtures__/-2.complex.openai/videos__remix/input.json +405 -0
  484. package/__fixtures__/-2.complex.openai/videos__remix/output.py +16 -0
  485. package/__fixtures__/-2.complex.openai/videos__retrieve/input.json +380 -0
  486. package/__fixtures__/-2.complex.openai/videos__retrieve/output.py +16 -0
  487. package/__fixtures__/1.basic/input.json +249 -0
  488. package/__fixtures__/1.basic/output/petstore/__init__.py +6 -0
  489. package/__fixtures__/1.basic/output/petstore/_client.py +21 -0
  490. package/__fixtures__/1.basic/output/petstore/_pagination.py +42 -0
  491. package/__fixtures__/1.basic/output/petstore/_transport.py +391 -0
  492. package/__fixtures__/1.basic/output/petstore/models.py +33 -0
  493. package/__fixtures__/1.basic/output/petstore/resources.py +25 -0
  494. package/__fixtures__/1.basic/output/pyproject.toml +12 -0
  495. package/__fixtures__/1.basic/output/tests/conftest.py +16 -0
  496. package/__fixtures__/1.basic/output/tests/test_pets.py +36 -0
  497. package/__fixtures__/1.basic/output/tests/utils.py +28 -0
  498. package/__fixtures__/2.wire/input.json +351 -0
  499. package/__fixtures__/2.wire/output/pyproject.toml +12 -0
  500. package/__fixtures__/2.wire/output/tests/conftest.py +16 -0
  501. package/__fixtures__/2.wire/output/tests/test_items.py +18 -0
  502. package/__fixtures__/2.wire/output/tests/test_tokens.py +17 -0
  503. package/__fixtures__/2.wire/output/tests/test_uploads.py +27 -0
  504. package/__fixtures__/2.wire/output/tests/utils.py +28 -0
  505. package/__fixtures__/2.wire/output/wire_service/__init__.py +6 -0
  506. package/__fixtures__/2.wire/output/wire_service/_client.py +23 -0
  507. package/__fixtures__/2.wire/output/wire_service/_pagination.py +42 -0
  508. package/__fixtures__/2.wire/output/wire_service/_transport.py +391 -0
  509. package/__fixtures__/2.wire/output/wire_service/models.py +44 -0
  510. package/__fixtures__/2.wire/output/wire_service/resources.py +38 -0
  511. package/__tests__/docs.test.ts +115 -0
  512. package/__tests__/e2e/harness.ts +79 -0
  513. package/__tests__/e2e/openai.test.ts +14 -0
  514. package/__tests__/e2e/publish.test.ts +19 -0
  515. package/__tests__/opensdk-python.test.ts +134 -0
  516. package/__tests__/utils.ts +117 -0
  517. package/biome.json +25 -0
  518. package/dist/index.cjs +1274 -0
  519. package/dist/index.cjs.map +1 -0
  520. package/dist/index.d.cts +32 -0
  521. package/dist/index.d.ts +32 -0
  522. package/dist/index.js +1246 -0
  523. package/dist/index.js.map +1 -0
  524. package/index.ts +1 -0
  525. package/package.json +30 -0
  526. package/src/emitter.ts +95 -0
  527. package/src/example-py.ts +60 -0
  528. package/src/index.ts +4 -0
  529. package/src/method.ts +13 -0
  530. package/src/naming.ts +45 -0
  531. package/src/project.ts +446 -0
  532. package/src/publish.ts +22 -0
  533. package/src/pytype.ts +86 -0
  534. package/src/runtime.ts +551 -0
  535. package/src/tests-py.ts +197 -0
  536. package/src/types.ts +8 -0
  537. package/tsconfig.json +18 -0
  538. package/tsup.config.ts +19 -0
  539. package/vitest.config.ts +8 -0
@@ -0,0 +1,1851 @@
1
+ {
2
+ "opensdk": "1.0.0",
3
+ "info": {
4
+ "title": "openai",
5
+ "version": "2.3.0"
6
+ },
7
+ "servers": [
8
+ "https://api.openai.com/v1"
9
+ ],
10
+ "security": [
11
+ {
12
+ "type": "http",
13
+ "kind": "bearer",
14
+ "schemeName": "ApiKeyAuth",
15
+ "envVar": "OPENAI_API_KEY",
16
+ "scheme": "bearer"
17
+ },
18
+ {
19
+ "type": "http",
20
+ "kind": "bearer",
21
+ "schemeName": "AdminApiKeyAuth",
22
+ "envVar": "OPENAI_API_KEY",
23
+ "scheme": "bearer"
24
+ }
25
+ ],
26
+ "types": [
27
+ {
28
+ "name": "CreateRunRequest",
29
+ "kind": "struct",
30
+ "fields": [
31
+ {
32
+ "name": "assistant_id",
33
+ "type": {
34
+ "kind": "scalar",
35
+ "scalar": "string"
36
+ },
37
+ "required": true,
38
+ "description": "The ID of the [assistant](/docs/api-reference/assistants) to use to execute this run."
39
+ },
40
+ {
41
+ "name": "model",
42
+ "type": {
43
+ "kind": "ref",
44
+ "name": "CreateRunRequestModel",
45
+ "nullable": true
46
+ },
47
+ "required": false,
48
+ "nullable": true,
49
+ "description": "The ID of the [Model](/docs/api-reference/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used."
50
+ },
51
+ {
52
+ "name": "reasoning_effort",
53
+ "type": {
54
+ "kind": "ref",
55
+ "name": "ReasoningEffort"
56
+ },
57
+ "required": false
58
+ },
59
+ {
60
+ "name": "instructions",
61
+ "type": {
62
+ "kind": "scalar",
63
+ "scalar": "string",
64
+ "nullable": true
65
+ },
66
+ "required": false,
67
+ "nullable": true,
68
+ "description": "Overrides the [instructions](/docs/api-reference/assistants/createAssistant) of the assistant. This is useful for modifying the behavior on a per-run basis."
69
+ },
70
+ {
71
+ "name": "additional_instructions",
72
+ "type": {
73
+ "kind": "scalar",
74
+ "scalar": "string",
75
+ "nullable": true
76
+ },
77
+ "required": false,
78
+ "nullable": true,
79
+ "description": "Appends additional instructions at the end of the instructions for the run. This is useful for modifying the behavior on a per-run basis without overriding other instructions."
80
+ },
81
+ {
82
+ "name": "additional_messages",
83
+ "type": {
84
+ "kind": "array",
85
+ "items": {
86
+ "kind": "ref",
87
+ "name": "CreateMessageRequest"
88
+ },
89
+ "nullable": true
90
+ },
91
+ "required": false,
92
+ "nullable": true,
93
+ "description": "Adds additional messages to the thread before creating the run."
94
+ },
95
+ {
96
+ "name": "tools",
97
+ "type": {
98
+ "kind": "array",
99
+ "items": {
100
+ "kind": "ref",
101
+ "name": "CreateRunRequestToolsItem"
102
+ },
103
+ "nullable": true
104
+ },
105
+ "required": false,
106
+ "nullable": true,
107
+ "description": "Override the tools the assistant can use for this run. This is useful for modifying the behavior on a per-run basis."
108
+ },
109
+ {
110
+ "name": "metadata",
111
+ "type": {
112
+ "kind": "ref",
113
+ "name": "Metadata"
114
+ },
115
+ "required": false
116
+ },
117
+ {
118
+ "name": "temperature",
119
+ "type": {
120
+ "kind": "scalar",
121
+ "scalar": "number",
122
+ "nullable": true
123
+ },
124
+ "required": false,
125
+ "nullable": true,
126
+ "default": 1,
127
+ "description": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.\n"
128
+ },
129
+ {
130
+ "name": "top_p",
131
+ "type": {
132
+ "kind": "scalar",
133
+ "scalar": "number",
134
+ "nullable": true
135
+ },
136
+ "required": false,
137
+ "nullable": true,
138
+ "default": 1,
139
+ "description": "An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.\n\nWe generally recommend altering this or temperature but not both.\n"
140
+ },
141
+ {
142
+ "name": "stream",
143
+ "type": {
144
+ "kind": "scalar",
145
+ "scalar": "boolean",
146
+ "nullable": true
147
+ },
148
+ "required": false,
149
+ "nullable": true,
150
+ "description": "If `true`, returns a stream of events that happen during the Run as server-sent events, terminating when the Run enters a terminal state with a `data: [DONE]` message.\n"
151
+ },
152
+ {
153
+ "name": "max_prompt_tokens",
154
+ "type": {
155
+ "kind": "scalar",
156
+ "scalar": "integer",
157
+ "nullable": true
158
+ },
159
+ "required": false,
160
+ "nullable": true,
161
+ "description": "The maximum number of prompt tokens that may be used over the course of the run. The run will make a best effort to use only the number of prompt tokens specified, across multiple turns of the run. If the run exceeds the number of prompt tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info.\n"
162
+ },
163
+ {
164
+ "name": "max_completion_tokens",
165
+ "type": {
166
+ "kind": "scalar",
167
+ "scalar": "integer",
168
+ "nullable": true
169
+ },
170
+ "required": false,
171
+ "nullable": true,
172
+ "description": "The maximum number of completion tokens that may be used over the course of the run. The run will make a best effort to use only the number of completion tokens specified, across multiple turns of the run. If the run exceeds the number of completion tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info.\n"
173
+ },
174
+ {
175
+ "name": "truncation_strategy",
176
+ "type": {
177
+ "kind": "ref",
178
+ "name": "TruncationObject",
179
+ "nullable": true
180
+ },
181
+ "required": false
182
+ },
183
+ {
184
+ "name": "tool_choice",
185
+ "type": {
186
+ "kind": "ref",
187
+ "name": "AssistantsApiToolChoiceOption",
188
+ "nullable": true
189
+ },
190
+ "required": false
191
+ },
192
+ {
193
+ "name": "parallel_tool_calls",
194
+ "type": {
195
+ "kind": "ref",
196
+ "name": "ParallelToolCalls"
197
+ },
198
+ "required": false
199
+ },
200
+ {
201
+ "name": "response_format",
202
+ "type": {
203
+ "kind": "ref",
204
+ "name": "AssistantsApiResponseFormatOption"
205
+ },
206
+ "required": false
207
+ }
208
+ ]
209
+ },
210
+ {
211
+ "name": "CreateRunRequestModel",
212
+ "kind": "union",
213
+ "semantics": "anyOf",
214
+ "variants": [
215
+ {
216
+ "kind": "scalar",
217
+ "scalar": "string"
218
+ },
219
+ {
220
+ "kind": "ref",
221
+ "name": "AssistantSupportedModels"
222
+ }
223
+ ],
224
+ "description": "The ID of the [Model](/docs/api-reference/models) to be used to execute this run. If a value is provided here, it will override the model associated with the assistant. If not, the model associated with the assistant will be used."
225
+ },
226
+ {
227
+ "name": "AssistantSupportedModels",
228
+ "kind": "enum",
229
+ "base": "string",
230
+ "values": [
231
+ {
232
+ "value": "gpt-5"
233
+ },
234
+ {
235
+ "value": "gpt-5-mini"
236
+ },
237
+ {
238
+ "value": "gpt-5-nano"
239
+ },
240
+ {
241
+ "value": "gpt-5-2025-08-07"
242
+ },
243
+ {
244
+ "value": "gpt-5-mini-2025-08-07"
245
+ },
246
+ {
247
+ "value": "gpt-5-nano-2025-08-07"
248
+ },
249
+ {
250
+ "value": "gpt-4.1"
251
+ },
252
+ {
253
+ "value": "gpt-4.1-mini"
254
+ },
255
+ {
256
+ "value": "gpt-4.1-nano"
257
+ },
258
+ {
259
+ "value": "gpt-4.1-2025-04-14"
260
+ },
261
+ {
262
+ "value": "gpt-4.1-mini-2025-04-14"
263
+ },
264
+ {
265
+ "value": "gpt-4.1-nano-2025-04-14"
266
+ },
267
+ {
268
+ "value": "o3-mini"
269
+ },
270
+ {
271
+ "value": "o3-mini-2025-01-31"
272
+ },
273
+ {
274
+ "value": "o1"
275
+ },
276
+ {
277
+ "value": "o1-2024-12-17"
278
+ },
279
+ {
280
+ "value": "gpt-4o"
281
+ },
282
+ {
283
+ "value": "gpt-4o-2024-11-20"
284
+ },
285
+ {
286
+ "value": "gpt-4o-2024-08-06"
287
+ },
288
+ {
289
+ "value": "gpt-4o-2024-05-13"
290
+ },
291
+ {
292
+ "value": "gpt-4o-mini"
293
+ },
294
+ {
295
+ "value": "gpt-4o-mini-2024-07-18"
296
+ },
297
+ {
298
+ "value": "gpt-4.5-preview"
299
+ },
300
+ {
301
+ "value": "gpt-4.5-preview-2025-02-27"
302
+ },
303
+ {
304
+ "value": "gpt-4-turbo"
305
+ },
306
+ {
307
+ "value": "gpt-4-turbo-2024-04-09"
308
+ },
309
+ {
310
+ "value": "gpt-4-0125-preview"
311
+ },
312
+ {
313
+ "value": "gpt-4-turbo-preview"
314
+ },
315
+ {
316
+ "value": "gpt-4-1106-preview"
317
+ },
318
+ {
319
+ "value": "gpt-4-vision-preview"
320
+ },
321
+ {
322
+ "value": "gpt-4"
323
+ },
324
+ {
325
+ "value": "gpt-4-0314"
326
+ },
327
+ {
328
+ "value": "gpt-4-0613"
329
+ },
330
+ {
331
+ "value": "gpt-4-32k"
332
+ },
333
+ {
334
+ "value": "gpt-4-32k-0314"
335
+ },
336
+ {
337
+ "value": "gpt-4-32k-0613"
338
+ },
339
+ {
340
+ "value": "gpt-3.5-turbo"
341
+ },
342
+ {
343
+ "value": "gpt-3.5-turbo-16k"
344
+ },
345
+ {
346
+ "value": "gpt-3.5-turbo-0613"
347
+ },
348
+ {
349
+ "value": "gpt-3.5-turbo-1106"
350
+ },
351
+ {
352
+ "value": "gpt-3.5-turbo-0125"
353
+ },
354
+ {
355
+ "value": "gpt-3.5-turbo-16k-0613"
356
+ }
357
+ ]
358
+ },
359
+ {
360
+ "name": "ReasoningEffort",
361
+ "kind": "enum",
362
+ "base": "string",
363
+ "values": [
364
+ {
365
+ "value": "none"
366
+ },
367
+ {
368
+ "value": "minimal"
369
+ },
370
+ {
371
+ "value": "low"
372
+ },
373
+ {
374
+ "value": "medium"
375
+ },
376
+ {
377
+ "value": "high"
378
+ },
379
+ {
380
+ "value": "xhigh"
381
+ }
382
+ ],
383
+ "description": "Constrains effort on reasoning for\n[reasoning models](https://platform.openai.com/docs/guides/reasoning).\nCurrently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing\nreasoning effort can result in faster responses and fewer tokens used\non reasoning in a response.\n\n- `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.\n- All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.\n- The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.\n- `xhigh` is supported for all models after `gpt-5.1-codex-max`.\n"
384
+ },
385
+ {
386
+ "name": "CreateMessageRequest",
387
+ "kind": "struct",
388
+ "fields": [
389
+ {
390
+ "name": "role",
391
+ "type": {
392
+ "kind": "ref",
393
+ "name": "CreateMessageRequestRole"
394
+ },
395
+ "required": true,
396
+ "description": "The role of the entity that is creating the message. Allowed values include:\n- `user`: Indicates the message is sent by an actual user and should be used in most cases to represent user-generated messages.\n- `assistant`: Indicates the message is generated by the assistant. Use this value to insert messages from the assistant into the conversation.\n"
397
+ },
398
+ {
399
+ "name": "content",
400
+ "type": {
401
+ "kind": "ref",
402
+ "name": "CreateMessageRequestContent"
403
+ },
404
+ "required": true
405
+ },
406
+ {
407
+ "name": "attachments",
408
+ "type": {
409
+ "kind": "array",
410
+ "items": {
411
+ "kind": "ref",
412
+ "name": "CreateMessageRequestAttachmentsItem"
413
+ },
414
+ "nullable": true
415
+ },
416
+ "required": false
417
+ },
418
+ {
419
+ "name": "metadata",
420
+ "type": {
421
+ "kind": "ref",
422
+ "name": "Metadata"
423
+ },
424
+ "required": false
425
+ }
426
+ ]
427
+ },
428
+ {
429
+ "name": "CreateMessageRequestRole",
430
+ "kind": "enum",
431
+ "base": "string",
432
+ "values": [
433
+ {
434
+ "value": "user"
435
+ },
436
+ {
437
+ "value": "assistant"
438
+ }
439
+ ],
440
+ "description": "The role of the entity that is creating the message. Allowed values include:\n- `user`: Indicates the message is sent by an actual user and should be used in most cases to represent user-generated messages.\n- `assistant`: Indicates the message is generated by the assistant. Use this value to insert messages from the assistant into the conversation.\n"
441
+ },
442
+ {
443
+ "name": "CreateMessageRequestContent",
444
+ "kind": "union",
445
+ "semantics": "oneOf",
446
+ "variants": [
447
+ {
448
+ "kind": "scalar",
449
+ "scalar": "string"
450
+ },
451
+ {
452
+ "kind": "array",
453
+ "items": {
454
+ "kind": "ref",
455
+ "name": "CreateMessageRequestContentArrayOfContentPartsItem"
456
+ }
457
+ }
458
+ ]
459
+ },
460
+ {
461
+ "name": "CreateMessageRequestContentArrayOfContentPartsItem",
462
+ "kind": "union",
463
+ "semantics": "oneOf",
464
+ "variants": [
465
+ {
466
+ "kind": "ref",
467
+ "name": "MessageContentImageFileObject"
468
+ },
469
+ {
470
+ "kind": "ref",
471
+ "name": "MessageContentImageUrlObject"
472
+ },
473
+ {
474
+ "kind": "ref",
475
+ "name": "MessageRequestContentTextObject"
476
+ }
477
+ ]
478
+ },
479
+ {
480
+ "name": "MessageContentImageFileObject",
481
+ "kind": "struct",
482
+ "fields": [
483
+ {
484
+ "name": "type",
485
+ "type": {
486
+ "kind": "scalar",
487
+ "scalar": "string",
488
+ "const": "image_file"
489
+ },
490
+ "required": true,
491
+ "description": "Always `image_file`."
492
+ },
493
+ {
494
+ "name": "image_file",
495
+ "type": {
496
+ "kind": "ref",
497
+ "name": "MessageContentImageFileObjectImageFile"
498
+ },
499
+ "required": true
500
+ }
501
+ ],
502
+ "description": "References an image [File](/docs/api-reference/files) in the content of a message."
503
+ },
504
+ {
505
+ "name": "MessageContentImageFileObjectImageFile",
506
+ "kind": "struct",
507
+ "fields": [
508
+ {
509
+ "name": "file_id",
510
+ "type": {
511
+ "kind": "scalar",
512
+ "scalar": "string"
513
+ },
514
+ "required": true,
515
+ "description": "The [File](/docs/api-reference/files) ID of the image in the message content. Set `purpose=\"vision\"` when uploading the File if you need to later display the file content."
516
+ },
517
+ {
518
+ "name": "detail",
519
+ "type": {
520
+ "kind": "ref",
521
+ "name": "MessageContentImageFileObjectImageFileDetail"
522
+ },
523
+ "required": false,
524
+ "default": "auto",
525
+ "description": "Specifies the detail level of the image if specified by the user. `low` uses fewer tokens, you can opt in to high resolution using `high`."
526
+ }
527
+ ]
528
+ },
529
+ {
530
+ "name": "MessageContentImageFileObjectImageFileDetail",
531
+ "kind": "enum",
532
+ "base": "string",
533
+ "values": [
534
+ {
535
+ "value": "auto"
536
+ },
537
+ {
538
+ "value": "low"
539
+ },
540
+ {
541
+ "value": "high"
542
+ }
543
+ ],
544
+ "description": "Specifies the detail level of the image if specified by the user. `low` uses fewer tokens, you can opt in to high resolution using `high`."
545
+ },
546
+ {
547
+ "name": "MessageContentImageUrlObject",
548
+ "kind": "struct",
549
+ "fields": [
550
+ {
551
+ "name": "type",
552
+ "type": {
553
+ "kind": "scalar",
554
+ "scalar": "string",
555
+ "const": "image_url"
556
+ },
557
+ "required": true,
558
+ "description": "The type of the content part."
559
+ },
560
+ {
561
+ "name": "image_url",
562
+ "type": {
563
+ "kind": "ref",
564
+ "name": "MessageContentImageUrlObjectImageUrl"
565
+ },
566
+ "required": true
567
+ }
568
+ ],
569
+ "description": "References an image URL in the content of a message."
570
+ },
571
+ {
572
+ "name": "MessageContentImageUrlObjectImageUrl",
573
+ "kind": "struct",
574
+ "fields": [
575
+ {
576
+ "name": "url",
577
+ "type": {
578
+ "kind": "scalar",
579
+ "scalar": "string",
580
+ "format": "uri"
581
+ },
582
+ "required": true,
583
+ "description": "The external URL of the image, must be a supported image types: jpeg, jpg, png, gif, webp."
584
+ },
585
+ {
586
+ "name": "detail",
587
+ "type": {
588
+ "kind": "ref",
589
+ "name": "MessageContentImageFileObjectImageFileDetail"
590
+ },
591
+ "required": false,
592
+ "default": "auto",
593
+ "description": "Specifies the detail level of the image. `low` uses fewer tokens, you can opt in to high resolution using `high`. Default value is `auto`"
594
+ }
595
+ ]
596
+ },
597
+ {
598
+ "name": "MessageRequestContentTextObject",
599
+ "kind": "struct",
600
+ "fields": [
601
+ {
602
+ "name": "type",
603
+ "type": {
604
+ "kind": "scalar",
605
+ "scalar": "string",
606
+ "const": "text"
607
+ },
608
+ "required": true,
609
+ "description": "Always `text`."
610
+ },
611
+ {
612
+ "name": "text",
613
+ "type": {
614
+ "kind": "scalar",
615
+ "scalar": "string"
616
+ },
617
+ "required": true,
618
+ "description": "Text content to be sent to the model"
619
+ }
620
+ ],
621
+ "description": "The text content that is part of a message."
622
+ },
623
+ {
624
+ "name": "CreateMessageRequestAttachmentsItem",
625
+ "kind": "struct",
626
+ "fields": [
627
+ {
628
+ "name": "file_id",
629
+ "type": {
630
+ "kind": "scalar",
631
+ "scalar": "string"
632
+ },
633
+ "required": false,
634
+ "description": "The ID of the file to attach to the message."
635
+ },
636
+ {
637
+ "name": "tools",
638
+ "type": {
639
+ "kind": "array",
640
+ "items": {
641
+ "kind": "ref",
642
+ "name": "CreateMessageRequestAttachmentsItemToolsItem"
643
+ }
644
+ },
645
+ "required": false,
646
+ "description": "The tools to add this file to."
647
+ }
648
+ ]
649
+ },
650
+ {
651
+ "name": "CreateMessageRequestAttachmentsItemToolsItem",
652
+ "kind": "union",
653
+ "semantics": "oneOf",
654
+ "variants": [
655
+ {
656
+ "kind": "ref",
657
+ "name": "AssistantToolsCode"
658
+ },
659
+ {
660
+ "kind": "ref",
661
+ "name": "AssistantToolsFileSearchTypeOnly"
662
+ }
663
+ ]
664
+ },
665
+ {
666
+ "name": "AssistantToolsCode",
667
+ "kind": "struct",
668
+ "fields": [
669
+ {
670
+ "name": "type",
671
+ "type": {
672
+ "kind": "scalar",
673
+ "scalar": "string",
674
+ "const": "code_interpreter"
675
+ },
676
+ "required": true,
677
+ "description": "The type of tool being defined: `code_interpreter`"
678
+ }
679
+ ]
680
+ },
681
+ {
682
+ "name": "AssistantToolsFileSearchTypeOnly",
683
+ "kind": "struct",
684
+ "fields": [
685
+ {
686
+ "name": "type",
687
+ "type": {
688
+ "kind": "scalar",
689
+ "scalar": "string",
690
+ "const": "file_search"
691
+ },
692
+ "required": true,
693
+ "description": "The type of tool being defined: `file_search`"
694
+ }
695
+ ]
696
+ },
697
+ {
698
+ "name": "Metadata",
699
+ "kind": "alias",
700
+ "of": {
701
+ "kind": "map",
702
+ "values": {
703
+ "kind": "scalar",
704
+ "scalar": "string"
705
+ },
706
+ "nullable": true
707
+ }
708
+ },
709
+ {
710
+ "name": "CreateRunRequestToolsItem",
711
+ "kind": "union",
712
+ "semantics": "oneOf",
713
+ "variants": [
714
+ {
715
+ "kind": "ref",
716
+ "name": "AssistantToolsCode"
717
+ },
718
+ {
719
+ "kind": "ref",
720
+ "name": "AssistantToolsFileSearch"
721
+ },
722
+ {
723
+ "kind": "ref",
724
+ "name": "AssistantToolsFunction"
725
+ }
726
+ ]
727
+ },
728
+ {
729
+ "name": "AssistantToolsFileSearch",
730
+ "kind": "struct",
731
+ "fields": [
732
+ {
733
+ "name": "type",
734
+ "type": {
735
+ "kind": "scalar",
736
+ "scalar": "string",
737
+ "const": "file_search"
738
+ },
739
+ "required": true,
740
+ "description": "The type of tool being defined: `file_search`"
741
+ },
742
+ {
743
+ "name": "file_search",
744
+ "type": {
745
+ "kind": "ref",
746
+ "name": "AssistantToolsFileSearchFileSearch"
747
+ },
748
+ "required": false,
749
+ "description": "Overrides for the file search tool."
750
+ }
751
+ ]
752
+ },
753
+ {
754
+ "name": "AssistantToolsFileSearchFileSearch",
755
+ "kind": "struct",
756
+ "fields": [
757
+ {
758
+ "name": "max_num_results",
759
+ "type": {
760
+ "kind": "scalar",
761
+ "scalar": "integer"
762
+ },
763
+ "required": false,
764
+ "description": "The maximum number of results the file search tool should output. The default is 20 for `gpt-4*` models and 5 for `gpt-3.5-turbo`. This number should be between 1 and 50 inclusive.\n\nNote that the file search tool may output fewer than `max_num_results` results. See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n"
765
+ },
766
+ {
767
+ "name": "ranking_options",
768
+ "type": {
769
+ "kind": "ref",
770
+ "name": "FileSearchRankingOptions"
771
+ },
772
+ "required": false
773
+ }
774
+ ],
775
+ "description": "Overrides for the file search tool."
776
+ },
777
+ {
778
+ "name": "FileSearchRankingOptions",
779
+ "kind": "struct",
780
+ "fields": [
781
+ {
782
+ "name": "ranker",
783
+ "type": {
784
+ "kind": "ref",
785
+ "name": "FileSearchRanker"
786
+ },
787
+ "required": false
788
+ },
789
+ {
790
+ "name": "score_threshold",
791
+ "type": {
792
+ "kind": "scalar",
793
+ "scalar": "number"
794
+ },
795
+ "required": true,
796
+ "description": "The score threshold for the file search. All values must be a floating point number between 0 and 1."
797
+ }
798
+ ],
799
+ "description": "The ranking options for the file search. If not specified, the file search tool will use the `auto` ranker and a score_threshold of 0.\n\nSee the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n"
800
+ },
801
+ {
802
+ "name": "FileSearchRanker",
803
+ "kind": "enum",
804
+ "base": "string",
805
+ "values": [
806
+ {
807
+ "value": "auto"
808
+ },
809
+ {
810
+ "value": "default_2024_08_21"
811
+ }
812
+ ],
813
+ "description": "The ranker to use for the file search. If not specified will use the `auto` ranker."
814
+ },
815
+ {
816
+ "name": "AssistantToolsFunction",
817
+ "kind": "struct",
818
+ "fields": [
819
+ {
820
+ "name": "type",
821
+ "type": {
822
+ "kind": "scalar",
823
+ "scalar": "string",
824
+ "const": "function"
825
+ },
826
+ "required": true,
827
+ "description": "The type of tool being defined: `function`"
828
+ },
829
+ {
830
+ "name": "function",
831
+ "type": {
832
+ "kind": "ref",
833
+ "name": "FunctionObject"
834
+ },
835
+ "required": true
836
+ }
837
+ ]
838
+ },
839
+ {
840
+ "name": "FunctionObject",
841
+ "kind": "struct",
842
+ "fields": [
843
+ {
844
+ "name": "description",
845
+ "type": {
846
+ "kind": "scalar",
847
+ "scalar": "string"
848
+ },
849
+ "required": false,
850
+ "description": "A description of what the function does, used by the model to choose when and how to call the function."
851
+ },
852
+ {
853
+ "name": "name",
854
+ "type": {
855
+ "kind": "scalar",
856
+ "scalar": "string"
857
+ },
858
+ "required": true,
859
+ "description": "The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64."
860
+ },
861
+ {
862
+ "name": "parameters",
863
+ "type": {
864
+ "kind": "ref",
865
+ "name": "FunctionParameters"
866
+ },
867
+ "required": false
868
+ },
869
+ {
870
+ "name": "strict",
871
+ "type": {
872
+ "kind": "scalar",
873
+ "scalar": "boolean",
874
+ "nullable": true
875
+ },
876
+ "required": false
877
+ }
878
+ ]
879
+ },
880
+ {
881
+ "name": "FunctionParameters",
882
+ "kind": "alias",
883
+ "of": {
884
+ "kind": "map",
885
+ "values": {
886
+ "kind": "any"
887
+ }
888
+ }
889
+ },
890
+ {
891
+ "name": "TruncationObject",
892
+ "kind": "struct",
893
+ "fields": [
894
+ {
895
+ "name": "type",
896
+ "type": {
897
+ "kind": "ref",
898
+ "name": "TruncationObjectType"
899
+ },
900
+ "required": true,
901
+ "description": "The truncation strategy to use for the thread. The default is `auto`. If set to `last_messages`, the thread will be truncated to the n most recent messages in the thread. When set to `auto`, messages in the middle of the thread will be dropped to fit the context length of the model, `max_prompt_tokens`."
902
+ },
903
+ {
904
+ "name": "last_messages",
905
+ "type": {
906
+ "kind": "scalar",
907
+ "scalar": "integer",
908
+ "nullable": true
909
+ },
910
+ "required": false
911
+ }
912
+ ],
913
+ "description": "Controls for how a thread will be truncated prior to the run. Use this to control the initial context window of the run."
914
+ },
915
+ {
916
+ "name": "TruncationObjectType",
917
+ "kind": "enum",
918
+ "base": "string",
919
+ "values": [
920
+ {
921
+ "value": "auto"
922
+ },
923
+ {
924
+ "value": "last_messages"
925
+ }
926
+ ],
927
+ "description": "The truncation strategy to use for the thread. The default is `auto`. If set to `last_messages`, the thread will be truncated to the n most recent messages in the thread. When set to `auto`, messages in the middle of the thread will be dropped to fit the context length of the model, `max_prompt_tokens`."
928
+ },
929
+ {
930
+ "name": "AssistantsApiToolChoiceOption",
931
+ "kind": "union",
932
+ "semantics": "oneOf",
933
+ "variants": [
934
+ {
935
+ "kind": "ref",
936
+ "name": "AssistantsApiToolChoiceOptionString"
937
+ },
938
+ {
939
+ "kind": "ref",
940
+ "name": "AssistantsNamedToolChoice"
941
+ }
942
+ ],
943
+ "description": "Controls which (if any) tool is called by the model.\n`none` means the model will not call any tools and instead generates a message.\n`auto` is the default value and means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools before responding to the user.\nSpecifying a particular tool like `{\"type\": \"file_search\"}` or `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n"
944
+ },
945
+ {
946
+ "name": "AssistantsApiToolChoiceOptionString",
947
+ "kind": "enum",
948
+ "base": "string",
949
+ "values": [
950
+ {
951
+ "value": "none"
952
+ },
953
+ {
954
+ "value": "auto"
955
+ },
956
+ {
957
+ "value": "required"
958
+ }
959
+ ],
960
+ "description": "`none` means the model will not call any tools and instead generates a message. `auto` means the model can pick between generating a message or calling one or more tools. `required` means the model must call one or more tools before responding to the user.\n"
961
+ },
962
+ {
963
+ "name": "AssistantsNamedToolChoice",
964
+ "kind": "struct",
965
+ "fields": [
966
+ {
967
+ "name": "type",
968
+ "type": {
969
+ "kind": "ref",
970
+ "name": "AssistantsNamedToolChoiceType"
971
+ },
972
+ "required": true,
973
+ "description": "The type of the tool. If type is `function`, the function name must be set"
974
+ },
975
+ {
976
+ "name": "function",
977
+ "type": {
978
+ "kind": "ref",
979
+ "name": "AssistantsNamedToolChoiceFunction"
980
+ },
981
+ "required": false
982
+ }
983
+ ],
984
+ "description": "Specifies a tool the model should use. Use to force the model to call a specific tool."
985
+ },
986
+ {
987
+ "name": "AssistantsNamedToolChoiceType",
988
+ "kind": "enum",
989
+ "base": "string",
990
+ "values": [
991
+ {
992
+ "value": "function"
993
+ },
994
+ {
995
+ "value": "code_interpreter"
996
+ },
997
+ {
998
+ "value": "file_search"
999
+ }
1000
+ ],
1001
+ "description": "The type of the tool. If type is `function`, the function name must be set"
1002
+ },
1003
+ {
1004
+ "name": "AssistantsNamedToolChoiceFunction",
1005
+ "kind": "struct",
1006
+ "fields": [
1007
+ {
1008
+ "name": "name",
1009
+ "type": {
1010
+ "kind": "scalar",
1011
+ "scalar": "string"
1012
+ },
1013
+ "required": true,
1014
+ "description": "The name of the function to call."
1015
+ }
1016
+ ]
1017
+ },
1018
+ {
1019
+ "name": "ParallelToolCalls",
1020
+ "kind": "alias",
1021
+ "of": {
1022
+ "kind": "scalar",
1023
+ "scalar": "boolean"
1024
+ }
1025
+ },
1026
+ {
1027
+ "name": "AssistantsApiResponseFormatOption",
1028
+ "kind": "union",
1029
+ "semantics": "oneOf",
1030
+ "variants": [
1031
+ {
1032
+ "kind": "scalar",
1033
+ "scalar": "string",
1034
+ "const": "auto"
1035
+ },
1036
+ {
1037
+ "kind": "ref",
1038
+ "name": "ResponseFormatText"
1039
+ },
1040
+ {
1041
+ "kind": "ref",
1042
+ "name": "ResponseFormatJsonObject"
1043
+ },
1044
+ {
1045
+ "kind": "ref",
1046
+ "name": "ResponseFormatJsonSchema"
1047
+ }
1048
+ ],
1049
+ "description": "Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.\n\nSetting to `{ \"type\": \"json_schema\", \"json_schema\": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).\n\nSetting to `{ \"type\": \"json_object\" }` enables JSON mode, which ensures the message the model generates is valid JSON.\n\n**Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly \"stuck\" request. Also note that the message content may be partially cut off if `finish_reason=\"length\"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length.\n"
1050
+ },
1051
+ {
1052
+ "name": "ResponseFormatText",
1053
+ "kind": "struct",
1054
+ "fields": [
1055
+ {
1056
+ "name": "type",
1057
+ "type": {
1058
+ "kind": "scalar",
1059
+ "scalar": "string",
1060
+ "const": "text"
1061
+ },
1062
+ "required": true,
1063
+ "description": "The type of response format being defined. Always `text`."
1064
+ }
1065
+ ],
1066
+ "description": "Default response format. Used to generate text responses.\n"
1067
+ },
1068
+ {
1069
+ "name": "ResponseFormatJsonObject",
1070
+ "kind": "struct",
1071
+ "fields": [
1072
+ {
1073
+ "name": "type",
1074
+ "type": {
1075
+ "kind": "scalar",
1076
+ "scalar": "string",
1077
+ "const": "json_object"
1078
+ },
1079
+ "required": true,
1080
+ "description": "The type of response format being defined. Always `json_object`."
1081
+ }
1082
+ ],
1083
+ "description": "JSON object response format. An older method of generating JSON responses.\nUsing `json_schema` is recommended for models that support it. Note that the\nmodel will not generate JSON without a system or user message instructing it\nto do so.\n"
1084
+ },
1085
+ {
1086
+ "name": "ResponseFormatJsonSchema",
1087
+ "kind": "struct",
1088
+ "fields": [
1089
+ {
1090
+ "name": "type",
1091
+ "type": {
1092
+ "kind": "scalar",
1093
+ "scalar": "string",
1094
+ "const": "json_schema"
1095
+ },
1096
+ "required": true,
1097
+ "description": "The type of response format being defined. Always `json_schema`."
1098
+ },
1099
+ {
1100
+ "name": "json_schema",
1101
+ "type": {
1102
+ "kind": "ref",
1103
+ "name": "ResponseFormatJsonSchemaJsonSchema"
1104
+ },
1105
+ "required": true,
1106
+ "description": "Structured Outputs configuration options, including a JSON Schema.\n"
1107
+ }
1108
+ ],
1109
+ "description": "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).\n"
1110
+ },
1111
+ {
1112
+ "name": "ResponseFormatJsonSchemaJsonSchema",
1113
+ "kind": "struct",
1114
+ "fields": [
1115
+ {
1116
+ "name": "description",
1117
+ "type": {
1118
+ "kind": "scalar",
1119
+ "scalar": "string"
1120
+ },
1121
+ "required": false,
1122
+ "description": "A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n"
1123
+ },
1124
+ {
1125
+ "name": "name",
1126
+ "type": {
1127
+ "kind": "scalar",
1128
+ "scalar": "string"
1129
+ },
1130
+ "required": true,
1131
+ "description": "The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.\n"
1132
+ },
1133
+ {
1134
+ "name": "schema",
1135
+ "type": {
1136
+ "kind": "ref",
1137
+ "name": "ResponseFormatJsonSchemaSchema"
1138
+ },
1139
+ "required": false
1140
+ },
1141
+ {
1142
+ "name": "strict",
1143
+ "type": {
1144
+ "kind": "scalar",
1145
+ "scalar": "boolean",
1146
+ "nullable": true
1147
+ },
1148
+ "required": false
1149
+ }
1150
+ ],
1151
+ "description": "Structured Outputs configuration options, including a JSON Schema.\n"
1152
+ },
1153
+ {
1154
+ "name": "ResponseFormatJsonSchemaSchema",
1155
+ "kind": "alias",
1156
+ "of": {
1157
+ "kind": "map",
1158
+ "values": {
1159
+ "kind": "any"
1160
+ }
1161
+ }
1162
+ },
1163
+ {
1164
+ "name": "RunObject",
1165
+ "kind": "struct",
1166
+ "fields": [
1167
+ {
1168
+ "name": "id",
1169
+ "type": {
1170
+ "kind": "scalar",
1171
+ "scalar": "string"
1172
+ },
1173
+ "required": true,
1174
+ "description": "The identifier, which can be referenced in API endpoints."
1175
+ },
1176
+ {
1177
+ "name": "object",
1178
+ "type": {
1179
+ "kind": "scalar",
1180
+ "scalar": "string",
1181
+ "const": "thread.run"
1182
+ },
1183
+ "required": true,
1184
+ "description": "The object type, which is always `thread.run`."
1185
+ },
1186
+ {
1187
+ "name": "created_at",
1188
+ "type": {
1189
+ "kind": "scalar",
1190
+ "scalar": "integer",
1191
+ "format": "unixtime"
1192
+ },
1193
+ "required": true,
1194
+ "description": "The Unix timestamp (in seconds) for when the run was created."
1195
+ },
1196
+ {
1197
+ "name": "thread_id",
1198
+ "type": {
1199
+ "kind": "scalar",
1200
+ "scalar": "string"
1201
+ },
1202
+ "required": true,
1203
+ "description": "The ID of the [thread](/docs/api-reference/threads) that was executed on as a part of this run."
1204
+ },
1205
+ {
1206
+ "name": "assistant_id",
1207
+ "type": {
1208
+ "kind": "scalar",
1209
+ "scalar": "string"
1210
+ },
1211
+ "required": true,
1212
+ "description": "The ID of the [assistant](/docs/api-reference/assistants) used for execution of this run."
1213
+ },
1214
+ {
1215
+ "name": "status",
1216
+ "type": {
1217
+ "kind": "ref",
1218
+ "name": "RunObjectStatus"
1219
+ },
1220
+ "required": true,
1221
+ "description": "The status of the run, which can be either `queued`, `in_progress`, `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`, `incomplete`, or `expired`."
1222
+ },
1223
+ {
1224
+ "name": "required_action",
1225
+ "type": {
1226
+ "kind": "ref",
1227
+ "name": "RunObjectRequiredAction",
1228
+ "nullable": true
1229
+ },
1230
+ "required": true,
1231
+ "nullable": true,
1232
+ "description": "Details on the action required to continue the run. Will be `null` if no action is required."
1233
+ },
1234
+ {
1235
+ "name": "last_error",
1236
+ "type": {
1237
+ "kind": "ref",
1238
+ "name": "RunObjectLastError",
1239
+ "nullable": true
1240
+ },
1241
+ "required": true,
1242
+ "nullable": true,
1243
+ "description": "The last error associated with this run. Will be `null` if there are no errors."
1244
+ },
1245
+ {
1246
+ "name": "expires_at",
1247
+ "type": {
1248
+ "kind": "scalar",
1249
+ "scalar": "integer",
1250
+ "format": "unixtime",
1251
+ "nullable": true
1252
+ },
1253
+ "required": true,
1254
+ "nullable": true,
1255
+ "description": "The Unix timestamp (in seconds) for when the run will expire."
1256
+ },
1257
+ {
1258
+ "name": "started_at",
1259
+ "type": {
1260
+ "kind": "scalar",
1261
+ "scalar": "integer",
1262
+ "format": "unixtime",
1263
+ "nullable": true
1264
+ },
1265
+ "required": true,
1266
+ "nullable": true,
1267
+ "description": "The Unix timestamp (in seconds) for when the run was started."
1268
+ },
1269
+ {
1270
+ "name": "cancelled_at",
1271
+ "type": {
1272
+ "kind": "scalar",
1273
+ "scalar": "integer",
1274
+ "format": "unixtime",
1275
+ "nullable": true
1276
+ },
1277
+ "required": true,
1278
+ "nullable": true,
1279
+ "description": "The Unix timestamp (in seconds) for when the run was cancelled."
1280
+ },
1281
+ {
1282
+ "name": "failed_at",
1283
+ "type": {
1284
+ "kind": "scalar",
1285
+ "scalar": "integer",
1286
+ "format": "unixtime",
1287
+ "nullable": true
1288
+ },
1289
+ "required": true,
1290
+ "nullable": true,
1291
+ "description": "The Unix timestamp (in seconds) for when the run failed."
1292
+ },
1293
+ {
1294
+ "name": "completed_at",
1295
+ "type": {
1296
+ "kind": "scalar",
1297
+ "scalar": "integer",
1298
+ "format": "unixtime",
1299
+ "nullable": true
1300
+ },
1301
+ "required": true,
1302
+ "nullable": true,
1303
+ "description": "The Unix timestamp (in seconds) for when the run was completed."
1304
+ },
1305
+ {
1306
+ "name": "incomplete_details",
1307
+ "type": {
1308
+ "kind": "ref",
1309
+ "name": "RunObjectIncompleteDetails",
1310
+ "nullable": true
1311
+ },
1312
+ "required": true,
1313
+ "nullable": true,
1314
+ "description": "Details on why the run is incomplete. Will be `null` if the run is not incomplete."
1315
+ },
1316
+ {
1317
+ "name": "model",
1318
+ "type": {
1319
+ "kind": "scalar",
1320
+ "scalar": "string"
1321
+ },
1322
+ "required": true,
1323
+ "description": "The model that the [assistant](/docs/api-reference/assistants) used for this run."
1324
+ },
1325
+ {
1326
+ "name": "instructions",
1327
+ "type": {
1328
+ "kind": "scalar",
1329
+ "scalar": "string"
1330
+ },
1331
+ "required": true,
1332
+ "description": "The instructions that the [assistant](/docs/api-reference/assistants) used for this run."
1333
+ },
1334
+ {
1335
+ "name": "tools",
1336
+ "type": {
1337
+ "kind": "array",
1338
+ "items": {
1339
+ "kind": "ref",
1340
+ "name": "CreateRunRequestToolsItem"
1341
+ }
1342
+ },
1343
+ "required": true,
1344
+ "default": [],
1345
+ "description": "The list of tools that the [assistant](/docs/api-reference/assistants) used for this run."
1346
+ },
1347
+ {
1348
+ "name": "metadata",
1349
+ "type": {
1350
+ "kind": "ref",
1351
+ "name": "Metadata"
1352
+ },
1353
+ "required": true
1354
+ },
1355
+ {
1356
+ "name": "usage",
1357
+ "type": {
1358
+ "kind": "ref",
1359
+ "name": "RunCompletionUsage"
1360
+ },
1361
+ "required": true
1362
+ },
1363
+ {
1364
+ "name": "temperature",
1365
+ "type": {
1366
+ "kind": "scalar",
1367
+ "scalar": "number",
1368
+ "nullable": true
1369
+ },
1370
+ "required": false,
1371
+ "nullable": true,
1372
+ "description": "The sampling temperature used for this run. If not set, defaults to 1."
1373
+ },
1374
+ {
1375
+ "name": "top_p",
1376
+ "type": {
1377
+ "kind": "scalar",
1378
+ "scalar": "number",
1379
+ "nullable": true
1380
+ },
1381
+ "required": false,
1382
+ "nullable": true,
1383
+ "description": "The nucleus sampling value used for this run. If not set, defaults to 1."
1384
+ },
1385
+ {
1386
+ "name": "max_prompt_tokens",
1387
+ "type": {
1388
+ "kind": "scalar",
1389
+ "scalar": "integer",
1390
+ "nullable": true
1391
+ },
1392
+ "required": true,
1393
+ "nullable": true,
1394
+ "description": "The maximum number of prompt tokens specified to have been used over the course of the run.\n"
1395
+ },
1396
+ {
1397
+ "name": "max_completion_tokens",
1398
+ "type": {
1399
+ "kind": "scalar",
1400
+ "scalar": "integer",
1401
+ "nullable": true
1402
+ },
1403
+ "required": true,
1404
+ "nullable": true,
1405
+ "description": "The maximum number of completion tokens specified to have been used over the course of the run.\n"
1406
+ },
1407
+ {
1408
+ "name": "truncation_strategy",
1409
+ "type": {
1410
+ "kind": "ref",
1411
+ "name": "TruncationObject",
1412
+ "nullable": true
1413
+ },
1414
+ "required": true
1415
+ },
1416
+ {
1417
+ "name": "tool_choice",
1418
+ "type": {
1419
+ "kind": "ref",
1420
+ "name": "AssistantsApiToolChoiceOption",
1421
+ "nullable": true
1422
+ },
1423
+ "required": true
1424
+ },
1425
+ {
1426
+ "name": "parallel_tool_calls",
1427
+ "type": {
1428
+ "kind": "ref",
1429
+ "name": "ParallelToolCalls"
1430
+ },
1431
+ "required": true
1432
+ },
1433
+ {
1434
+ "name": "response_format",
1435
+ "type": {
1436
+ "kind": "ref",
1437
+ "name": "AssistantsApiResponseFormatOption"
1438
+ },
1439
+ "required": true
1440
+ }
1441
+ ],
1442
+ "description": "Represents an execution run on a [thread](/docs/api-reference/threads)."
1443
+ },
1444
+ {
1445
+ "name": "RunObjectStatus",
1446
+ "kind": "enum",
1447
+ "base": "string",
1448
+ "values": [
1449
+ {
1450
+ "value": "queued"
1451
+ },
1452
+ {
1453
+ "value": "in_progress"
1454
+ },
1455
+ {
1456
+ "value": "requires_action"
1457
+ },
1458
+ {
1459
+ "value": "cancelling"
1460
+ },
1461
+ {
1462
+ "value": "cancelled"
1463
+ },
1464
+ {
1465
+ "value": "failed"
1466
+ },
1467
+ {
1468
+ "value": "completed"
1469
+ },
1470
+ {
1471
+ "value": "incomplete"
1472
+ },
1473
+ {
1474
+ "value": "expired"
1475
+ }
1476
+ ],
1477
+ "description": "The status of the run, which can be either `queued`, `in_progress`, `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`, `incomplete`, or `expired`."
1478
+ },
1479
+ {
1480
+ "name": "RunObjectRequiredAction",
1481
+ "kind": "struct",
1482
+ "fields": [
1483
+ {
1484
+ "name": "type",
1485
+ "type": {
1486
+ "kind": "scalar",
1487
+ "scalar": "string",
1488
+ "const": "submit_tool_outputs"
1489
+ },
1490
+ "required": true,
1491
+ "description": "For now, this is always `submit_tool_outputs`."
1492
+ },
1493
+ {
1494
+ "name": "submit_tool_outputs",
1495
+ "type": {
1496
+ "kind": "ref",
1497
+ "name": "RunObjectRequiredActionSubmitToolOutputs"
1498
+ },
1499
+ "required": true,
1500
+ "description": "Details on the tool outputs needed for this run to continue."
1501
+ }
1502
+ ],
1503
+ "description": "Details on the action required to continue the run. Will be `null` if no action is required."
1504
+ },
1505
+ {
1506
+ "name": "RunObjectRequiredActionSubmitToolOutputs",
1507
+ "kind": "struct",
1508
+ "fields": [
1509
+ {
1510
+ "name": "tool_calls",
1511
+ "type": {
1512
+ "kind": "array",
1513
+ "items": {
1514
+ "kind": "ref",
1515
+ "name": "RunToolCallObject"
1516
+ }
1517
+ },
1518
+ "required": true,
1519
+ "description": "A list of the relevant tool calls."
1520
+ }
1521
+ ],
1522
+ "description": "Details on the tool outputs needed for this run to continue."
1523
+ },
1524
+ {
1525
+ "name": "RunToolCallObject",
1526
+ "kind": "struct",
1527
+ "fields": [
1528
+ {
1529
+ "name": "id",
1530
+ "type": {
1531
+ "kind": "scalar",
1532
+ "scalar": "string"
1533
+ },
1534
+ "required": true,
1535
+ "description": "The ID of the tool call. This ID must be referenced when you submit the tool outputs in using the [Submit tool outputs to run](/docs/api-reference/runs/submitToolOutputs) endpoint."
1536
+ },
1537
+ {
1538
+ "name": "type",
1539
+ "type": {
1540
+ "kind": "scalar",
1541
+ "scalar": "string",
1542
+ "const": "function"
1543
+ },
1544
+ "required": true,
1545
+ "description": "The type of tool call the output is required for. For now, this is always `function`."
1546
+ },
1547
+ {
1548
+ "name": "function",
1549
+ "type": {
1550
+ "kind": "ref",
1551
+ "name": "RunToolCallObjectFunction"
1552
+ },
1553
+ "required": true,
1554
+ "description": "The function definition."
1555
+ }
1556
+ ],
1557
+ "description": "Tool call objects"
1558
+ },
1559
+ {
1560
+ "name": "RunToolCallObjectFunction",
1561
+ "kind": "struct",
1562
+ "fields": [
1563
+ {
1564
+ "name": "name",
1565
+ "type": {
1566
+ "kind": "scalar",
1567
+ "scalar": "string"
1568
+ },
1569
+ "required": true,
1570
+ "description": "The name of the function."
1571
+ },
1572
+ {
1573
+ "name": "arguments",
1574
+ "type": {
1575
+ "kind": "scalar",
1576
+ "scalar": "string"
1577
+ },
1578
+ "required": true,
1579
+ "description": "The arguments that the model expects you to pass to the function."
1580
+ }
1581
+ ],
1582
+ "description": "The function definition."
1583
+ },
1584
+ {
1585
+ "name": "RunObjectLastError",
1586
+ "kind": "struct",
1587
+ "fields": [
1588
+ {
1589
+ "name": "code",
1590
+ "type": {
1591
+ "kind": "ref",
1592
+ "name": "RunObjectLastErrorCode"
1593
+ },
1594
+ "required": true,
1595
+ "description": "One of `server_error`, `rate_limit_exceeded`, or `invalid_prompt`."
1596
+ },
1597
+ {
1598
+ "name": "message",
1599
+ "type": {
1600
+ "kind": "scalar",
1601
+ "scalar": "string"
1602
+ },
1603
+ "required": true,
1604
+ "description": "A human-readable description of the error."
1605
+ }
1606
+ ],
1607
+ "description": "The last error associated with this run. Will be `null` if there are no errors."
1608
+ },
1609
+ {
1610
+ "name": "RunObjectLastErrorCode",
1611
+ "kind": "enum",
1612
+ "base": "string",
1613
+ "values": [
1614
+ {
1615
+ "value": "server_error"
1616
+ },
1617
+ {
1618
+ "value": "rate_limit_exceeded"
1619
+ },
1620
+ {
1621
+ "value": "invalid_prompt"
1622
+ }
1623
+ ],
1624
+ "description": "One of `server_error`, `rate_limit_exceeded`, or `invalid_prompt`."
1625
+ },
1626
+ {
1627
+ "name": "RunObjectIncompleteDetails",
1628
+ "kind": "struct",
1629
+ "fields": [
1630
+ {
1631
+ "name": "reason",
1632
+ "type": {
1633
+ "kind": "ref",
1634
+ "name": "RunObjectIncompleteDetailsReason"
1635
+ },
1636
+ "required": false,
1637
+ "description": "The reason why the run is incomplete. This will point to which specific token limit was reached over the course of the run."
1638
+ }
1639
+ ],
1640
+ "description": "Details on why the run is incomplete. Will be `null` if the run is not incomplete."
1641
+ },
1642
+ {
1643
+ "name": "RunObjectIncompleteDetailsReason",
1644
+ "kind": "enum",
1645
+ "base": "string",
1646
+ "values": [
1647
+ {
1648
+ "value": "max_completion_tokens"
1649
+ },
1650
+ {
1651
+ "value": "max_prompt_tokens"
1652
+ }
1653
+ ],
1654
+ "description": "The reason why the run is incomplete. This will point to which specific token limit was reached over the course of the run."
1655
+ },
1656
+ {
1657
+ "name": "RunCompletionUsage",
1658
+ "kind": "struct",
1659
+ "fields": [
1660
+ {
1661
+ "name": "completion_tokens",
1662
+ "type": {
1663
+ "kind": "scalar",
1664
+ "scalar": "integer"
1665
+ },
1666
+ "required": true,
1667
+ "description": "Number of completion tokens used over the course of the run."
1668
+ },
1669
+ {
1670
+ "name": "prompt_tokens",
1671
+ "type": {
1672
+ "kind": "scalar",
1673
+ "scalar": "integer"
1674
+ },
1675
+ "required": true,
1676
+ "description": "Number of prompt tokens used over the course of the run."
1677
+ },
1678
+ {
1679
+ "name": "total_tokens",
1680
+ "type": {
1681
+ "kind": "scalar",
1682
+ "scalar": "integer"
1683
+ },
1684
+ "required": true,
1685
+ "description": "Total number of tokens used (prompt + completion)."
1686
+ }
1687
+ ],
1688
+ "description": "Usage statistics related to the run. This value will be `null` if the run is not in a terminal state (i.e. `in_progress`, `queued`, etc.)."
1689
+ }
1690
+ ],
1691
+ "resources": [
1692
+ {
1693
+ "name": "beta",
1694
+ "resources": [
1695
+ {
1696
+ "name": "threads",
1697
+ "resources": [
1698
+ {
1699
+ "name": "runs",
1700
+ "methods": [
1701
+ {
1702
+ "action": "create",
1703
+ "httpMethod": "post",
1704
+ "path": "/threads/{thread_id}/runs",
1705
+ "operationId": "createRun",
1706
+ "description": "Create a run.",
1707
+ "pathParams": [
1708
+ {
1709
+ "name": "thread_id",
1710
+ "type": {
1711
+ "kind": "scalar",
1712
+ "scalar": "string"
1713
+ },
1714
+ "required": true,
1715
+ "description": "The ID of the thread to run."
1716
+ }
1717
+ ],
1718
+ "queryParams": [
1719
+ {
1720
+ "name": "include",
1721
+ "type": {
1722
+ "kind": "array",
1723
+ "items": {
1724
+ "kind": "scalar",
1725
+ "scalar": "string",
1726
+ "const": "step_details.tool_calls[*].file_search.results[*].content"
1727
+ }
1728
+ },
1729
+ "required": false,
1730
+ "wireName": "include[]",
1731
+ "description": "A list of additional fields to include in the response. Currently the only supported value is `step_details.tool_calls[*].file_search.results[*].content` to fetch the file search result content.\n\nSee the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n"
1732
+ }
1733
+ ],
1734
+ "requestBody": {
1735
+ "contentType": "application/json",
1736
+ "type": {
1737
+ "kind": "ref",
1738
+ "name": "CreateRunRequest"
1739
+ },
1740
+ "required": true,
1741
+ "encoding": "json"
1742
+ },
1743
+ "responses": [
1744
+ {
1745
+ "status": "200",
1746
+ "description": "OK",
1747
+ "contentType": "application/json",
1748
+ "type": {
1749
+ "kind": "ref",
1750
+ "name": "RunObject"
1751
+ }
1752
+ }
1753
+ ],
1754
+ "primaryResponse": {
1755
+ "kind": "ref",
1756
+ "name": "RunObject"
1757
+ }
1758
+ }
1759
+ ]
1760
+ }
1761
+ ]
1762
+ }
1763
+ ]
1764
+ }
1765
+ ],
1766
+ "sdk": {
1767
+ "retry": {
1768
+ "maxRetries": 2,
1769
+ "retryableStatusCodes": [
1770
+ 408,
1771
+ 429,
1772
+ 500,
1773
+ 502,
1774
+ 503,
1775
+ 504
1776
+ ],
1777
+ "retryConnectionErrors": true,
1778
+ "honorRetryAfterHeader": true,
1779
+ "backoff": {
1780
+ "initialDelayMs": 500,
1781
+ "maxDelayMs": 8000,
1782
+ "multiplier": 2,
1783
+ "jitter": 0.25
1784
+ }
1785
+ },
1786
+ "timeout": {
1787
+ "defaultTimeoutMs": 60000
1788
+ },
1789
+ "errors": {
1790
+ "statusCodeMap": {
1791
+ "400": "BadRequest",
1792
+ "401": "Unauthorized",
1793
+ "403": "PermissionDenied",
1794
+ "404": "NotFound",
1795
+ "409": "Conflict",
1796
+ "422": "UnprocessableEntity",
1797
+ "429": "RateLimited"
1798
+ },
1799
+ "clientErrorKind": "API",
1800
+ "serverErrorKind": "Internal"
1801
+ },
1802
+ "userAgent": {
1803
+ "sdkIdentifierTemplate": "{package}-{language}/{version}",
1804
+ "includeRuntimeVersion": false,
1805
+ "aiAgentEnvVars": {
1806
+ "CLAUDE_CODE": "claude-code",
1807
+ "CURSOR_AGENT": "cursor",
1808
+ "CLINE_ACTIVE": "cline",
1809
+ "WINDSURF_ACTIVE": "windsurf",
1810
+ "COPILOT_AGENT": "copilot"
1811
+ }
1812
+ },
1813
+ "telemetry": {
1814
+ "requestIdHeader": "X-Request-ID",
1815
+ "headerName": "X-Client-Telemetry",
1816
+ "enabledByDefault": false
1817
+ },
1818
+ "logging": {
1819
+ "events": [
1820
+ "request.start",
1821
+ "request.success",
1822
+ "request.retry",
1823
+ "request.rate_limited",
1824
+ "request.error",
1825
+ "request.connection_error"
1826
+ ]
1827
+ },
1828
+ "idempotency": {
1829
+ "headerName": "Idempotency-Key",
1830
+ "autoGenerateForPost": true
1831
+ },
1832
+ "pagination": {
1833
+ "autoPageDelayMs": 0
1834
+ },
1835
+ "requestGuard": {
1836
+ "optionKeys": [
1837
+ "api_key",
1838
+ "apiKey",
1839
+ "idempotency_key",
1840
+ "idempotencyKey",
1841
+ "extra_headers",
1842
+ "extraHeaders",
1843
+ "max_retries",
1844
+ "maxRetries",
1845
+ "base_url",
1846
+ "baseUrl",
1847
+ "timeout"
1848
+ ]
1849
+ }
1850
+ }
1851
+ }