@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,1899 @@
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": "CreateThreadAndRunRequest",
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": "thread",
42
+ "type": {
43
+ "kind": "ref",
44
+ "name": "CreateThreadRequest"
45
+ },
46
+ "required": false
47
+ },
48
+ {
49
+ "name": "model",
50
+ "type": {
51
+ "kind": "ref",
52
+ "name": "CreateThreadAndRunRequestModel",
53
+ "nullable": true
54
+ },
55
+ "required": false,
56
+ "nullable": true,
57
+ "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."
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": "Override the default system message of the assistant. This is useful for modifying the behavior on a per-run basis."
69
+ },
70
+ {
71
+ "name": "tools",
72
+ "type": {
73
+ "kind": "array",
74
+ "items": {
75
+ "kind": "ref",
76
+ "name": "CreateThreadAndRunRequestToolsItem"
77
+ },
78
+ "nullable": true
79
+ },
80
+ "required": false,
81
+ "nullable": true,
82
+ "description": "Override the tools the assistant can use for this run. This is useful for modifying the behavior on a per-run basis."
83
+ },
84
+ {
85
+ "name": "tool_resources",
86
+ "type": {
87
+ "kind": "ref",
88
+ "name": "CreateThreadAndRunRequestToolResources",
89
+ "nullable": true
90
+ },
91
+ "required": false,
92
+ "nullable": true,
93
+ "description": "A set of resources that are used by the assistant's tools. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.\n"
94
+ },
95
+ {
96
+ "name": "metadata",
97
+ "type": {
98
+ "kind": "ref",
99
+ "name": "Metadata"
100
+ },
101
+ "required": false
102
+ },
103
+ {
104
+ "name": "temperature",
105
+ "type": {
106
+ "kind": "scalar",
107
+ "scalar": "number",
108
+ "nullable": true
109
+ },
110
+ "required": false,
111
+ "nullable": true,
112
+ "default": 1,
113
+ "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"
114
+ },
115
+ {
116
+ "name": "top_p",
117
+ "type": {
118
+ "kind": "scalar",
119
+ "scalar": "number",
120
+ "nullable": true
121
+ },
122
+ "required": false,
123
+ "nullable": true,
124
+ "default": 1,
125
+ "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"
126
+ },
127
+ {
128
+ "name": "stream",
129
+ "type": {
130
+ "kind": "scalar",
131
+ "scalar": "boolean",
132
+ "nullable": true
133
+ },
134
+ "required": false,
135
+ "nullable": true,
136
+ "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"
137
+ },
138
+ {
139
+ "name": "max_prompt_tokens",
140
+ "type": {
141
+ "kind": "scalar",
142
+ "scalar": "integer",
143
+ "nullable": true
144
+ },
145
+ "required": false,
146
+ "nullable": true,
147
+ "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"
148
+ },
149
+ {
150
+ "name": "max_completion_tokens",
151
+ "type": {
152
+ "kind": "scalar",
153
+ "scalar": "integer",
154
+ "nullable": true
155
+ },
156
+ "required": false,
157
+ "nullable": true,
158
+ "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"
159
+ },
160
+ {
161
+ "name": "truncation_strategy",
162
+ "type": {
163
+ "kind": "ref",
164
+ "name": "TruncationObject",
165
+ "nullable": true
166
+ },
167
+ "required": false
168
+ },
169
+ {
170
+ "name": "tool_choice",
171
+ "type": {
172
+ "kind": "ref",
173
+ "name": "AssistantsApiToolChoiceOption",
174
+ "nullable": true
175
+ },
176
+ "required": false
177
+ },
178
+ {
179
+ "name": "parallel_tool_calls",
180
+ "type": {
181
+ "kind": "ref",
182
+ "name": "ParallelToolCalls"
183
+ },
184
+ "required": false
185
+ },
186
+ {
187
+ "name": "response_format",
188
+ "type": {
189
+ "kind": "ref",
190
+ "name": "AssistantsApiResponseFormatOption"
191
+ },
192
+ "required": false
193
+ }
194
+ ]
195
+ },
196
+ {
197
+ "name": "CreateThreadRequest",
198
+ "kind": "struct",
199
+ "fields": [
200
+ {
201
+ "name": "messages",
202
+ "type": {
203
+ "kind": "array",
204
+ "items": {
205
+ "kind": "ref",
206
+ "name": "CreateMessageRequest"
207
+ }
208
+ },
209
+ "required": false,
210
+ "description": "A list of [messages](/docs/api-reference/messages) to start the thread with."
211
+ },
212
+ {
213
+ "name": "tool_resources",
214
+ "type": {
215
+ "kind": "ref",
216
+ "name": "CreateThreadRequestToolResources",
217
+ "nullable": true
218
+ },
219
+ "required": false
220
+ },
221
+ {
222
+ "name": "metadata",
223
+ "type": {
224
+ "kind": "ref",
225
+ "name": "Metadata"
226
+ },
227
+ "required": false
228
+ }
229
+ ],
230
+ "description": "Options to create a new thread. If no thread is provided when running a\nrequest, an empty thread will be created.\n"
231
+ },
232
+ {
233
+ "name": "CreateMessageRequest",
234
+ "kind": "struct",
235
+ "fields": [
236
+ {
237
+ "name": "role",
238
+ "type": {
239
+ "kind": "ref",
240
+ "name": "CreateMessageRequestRole"
241
+ },
242
+ "required": true,
243
+ "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"
244
+ },
245
+ {
246
+ "name": "content",
247
+ "type": {
248
+ "kind": "ref",
249
+ "name": "CreateMessageRequestContent"
250
+ },
251
+ "required": true
252
+ },
253
+ {
254
+ "name": "attachments",
255
+ "type": {
256
+ "kind": "array",
257
+ "items": {
258
+ "kind": "ref",
259
+ "name": "CreateMessageRequestAttachmentsItem"
260
+ },
261
+ "nullable": true
262
+ },
263
+ "required": false
264
+ },
265
+ {
266
+ "name": "metadata",
267
+ "type": {
268
+ "kind": "ref",
269
+ "name": "Metadata"
270
+ },
271
+ "required": false
272
+ }
273
+ ]
274
+ },
275
+ {
276
+ "name": "CreateMessageRequestRole",
277
+ "kind": "enum",
278
+ "base": "string",
279
+ "values": [
280
+ {
281
+ "value": "user"
282
+ },
283
+ {
284
+ "value": "assistant"
285
+ }
286
+ ],
287
+ "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"
288
+ },
289
+ {
290
+ "name": "CreateMessageRequestContent",
291
+ "kind": "union",
292
+ "semantics": "oneOf",
293
+ "variants": [
294
+ {
295
+ "kind": "scalar",
296
+ "scalar": "string"
297
+ },
298
+ {
299
+ "kind": "array",
300
+ "items": {
301
+ "kind": "ref",
302
+ "name": "CreateMessageRequestContentArrayOfContentPartsItem"
303
+ }
304
+ }
305
+ ]
306
+ },
307
+ {
308
+ "name": "CreateMessageRequestContentArrayOfContentPartsItem",
309
+ "kind": "union",
310
+ "semantics": "oneOf",
311
+ "variants": [
312
+ {
313
+ "kind": "ref",
314
+ "name": "MessageContentImageFileObject"
315
+ },
316
+ {
317
+ "kind": "ref",
318
+ "name": "MessageContentImageUrlObject"
319
+ },
320
+ {
321
+ "kind": "ref",
322
+ "name": "MessageRequestContentTextObject"
323
+ }
324
+ ]
325
+ },
326
+ {
327
+ "name": "MessageContentImageFileObject",
328
+ "kind": "struct",
329
+ "fields": [
330
+ {
331
+ "name": "type",
332
+ "type": {
333
+ "kind": "scalar",
334
+ "scalar": "string",
335
+ "const": "image_file"
336
+ },
337
+ "required": true,
338
+ "description": "Always `image_file`."
339
+ },
340
+ {
341
+ "name": "image_file",
342
+ "type": {
343
+ "kind": "ref",
344
+ "name": "MessageContentImageFileObjectImageFile"
345
+ },
346
+ "required": true
347
+ }
348
+ ],
349
+ "description": "References an image [File](/docs/api-reference/files) in the content of a message."
350
+ },
351
+ {
352
+ "name": "MessageContentImageFileObjectImageFile",
353
+ "kind": "struct",
354
+ "fields": [
355
+ {
356
+ "name": "file_id",
357
+ "type": {
358
+ "kind": "scalar",
359
+ "scalar": "string"
360
+ },
361
+ "required": true,
362
+ "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."
363
+ },
364
+ {
365
+ "name": "detail",
366
+ "type": {
367
+ "kind": "ref",
368
+ "name": "MessageContentImageFileObjectImageFileDetail"
369
+ },
370
+ "required": false,
371
+ "default": "auto",
372
+ "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`."
373
+ }
374
+ ]
375
+ },
376
+ {
377
+ "name": "MessageContentImageFileObjectImageFileDetail",
378
+ "kind": "enum",
379
+ "base": "string",
380
+ "values": [
381
+ {
382
+ "value": "auto"
383
+ },
384
+ {
385
+ "value": "low"
386
+ },
387
+ {
388
+ "value": "high"
389
+ }
390
+ ],
391
+ "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`."
392
+ },
393
+ {
394
+ "name": "MessageContentImageUrlObject",
395
+ "kind": "struct",
396
+ "fields": [
397
+ {
398
+ "name": "type",
399
+ "type": {
400
+ "kind": "scalar",
401
+ "scalar": "string",
402
+ "const": "image_url"
403
+ },
404
+ "required": true,
405
+ "description": "The type of the content part."
406
+ },
407
+ {
408
+ "name": "image_url",
409
+ "type": {
410
+ "kind": "ref",
411
+ "name": "MessageContentImageUrlObjectImageUrl"
412
+ },
413
+ "required": true
414
+ }
415
+ ],
416
+ "description": "References an image URL in the content of a message."
417
+ },
418
+ {
419
+ "name": "MessageContentImageUrlObjectImageUrl",
420
+ "kind": "struct",
421
+ "fields": [
422
+ {
423
+ "name": "url",
424
+ "type": {
425
+ "kind": "scalar",
426
+ "scalar": "string",
427
+ "format": "uri"
428
+ },
429
+ "required": true,
430
+ "description": "The external URL of the image, must be a supported image types: jpeg, jpg, png, gif, webp."
431
+ },
432
+ {
433
+ "name": "detail",
434
+ "type": {
435
+ "kind": "ref",
436
+ "name": "MessageContentImageFileObjectImageFileDetail"
437
+ },
438
+ "required": false,
439
+ "default": "auto",
440
+ "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`"
441
+ }
442
+ ]
443
+ },
444
+ {
445
+ "name": "MessageRequestContentTextObject",
446
+ "kind": "struct",
447
+ "fields": [
448
+ {
449
+ "name": "type",
450
+ "type": {
451
+ "kind": "scalar",
452
+ "scalar": "string",
453
+ "const": "text"
454
+ },
455
+ "required": true,
456
+ "description": "Always `text`."
457
+ },
458
+ {
459
+ "name": "text",
460
+ "type": {
461
+ "kind": "scalar",
462
+ "scalar": "string"
463
+ },
464
+ "required": true,
465
+ "description": "Text content to be sent to the model"
466
+ }
467
+ ],
468
+ "description": "The text content that is part of a message."
469
+ },
470
+ {
471
+ "name": "CreateMessageRequestAttachmentsItem",
472
+ "kind": "struct",
473
+ "fields": [
474
+ {
475
+ "name": "file_id",
476
+ "type": {
477
+ "kind": "scalar",
478
+ "scalar": "string"
479
+ },
480
+ "required": false,
481
+ "description": "The ID of the file to attach to the message."
482
+ },
483
+ {
484
+ "name": "tools",
485
+ "type": {
486
+ "kind": "array",
487
+ "items": {
488
+ "kind": "ref",
489
+ "name": "CreateMessageRequestAttachmentsItemToolsItem"
490
+ }
491
+ },
492
+ "required": false,
493
+ "description": "The tools to add this file to."
494
+ }
495
+ ]
496
+ },
497
+ {
498
+ "name": "CreateMessageRequestAttachmentsItemToolsItem",
499
+ "kind": "union",
500
+ "semantics": "oneOf",
501
+ "variants": [
502
+ {
503
+ "kind": "ref",
504
+ "name": "AssistantToolsCode"
505
+ },
506
+ {
507
+ "kind": "ref",
508
+ "name": "AssistantToolsFileSearchTypeOnly"
509
+ }
510
+ ]
511
+ },
512
+ {
513
+ "name": "AssistantToolsCode",
514
+ "kind": "struct",
515
+ "fields": [
516
+ {
517
+ "name": "type",
518
+ "type": {
519
+ "kind": "scalar",
520
+ "scalar": "string",
521
+ "const": "code_interpreter"
522
+ },
523
+ "required": true,
524
+ "description": "The type of tool being defined: `code_interpreter`"
525
+ }
526
+ ]
527
+ },
528
+ {
529
+ "name": "AssistantToolsFileSearchTypeOnly",
530
+ "kind": "struct",
531
+ "fields": [
532
+ {
533
+ "name": "type",
534
+ "type": {
535
+ "kind": "scalar",
536
+ "scalar": "string",
537
+ "const": "file_search"
538
+ },
539
+ "required": true,
540
+ "description": "The type of tool being defined: `file_search`"
541
+ }
542
+ ]
543
+ },
544
+ {
545
+ "name": "Metadata",
546
+ "kind": "alias",
547
+ "of": {
548
+ "kind": "map",
549
+ "values": {
550
+ "kind": "scalar",
551
+ "scalar": "string"
552
+ },
553
+ "nullable": true
554
+ }
555
+ },
556
+ {
557
+ "name": "CreateThreadRequestToolResources",
558
+ "kind": "struct",
559
+ "fields": [
560
+ {
561
+ "name": "code_interpreter",
562
+ "type": {
563
+ "kind": "ref",
564
+ "name": "CreateThreadRequestToolResourcesCodeInterpreter"
565
+ },
566
+ "required": false
567
+ },
568
+ {
569
+ "name": "file_search",
570
+ "type": {
571
+ "kind": "ref",
572
+ "name": "CreateThreadRequestToolResourcesFileSearch"
573
+ },
574
+ "required": false
575
+ }
576
+ ],
577
+ "description": "A set of resources that are made available to the assistant's tools in this thread. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.\n"
578
+ },
579
+ {
580
+ "name": "CreateThreadRequestToolResourcesCodeInterpreter",
581
+ "kind": "struct",
582
+ "fields": [
583
+ {
584
+ "name": "file_ids",
585
+ "type": {
586
+ "kind": "array",
587
+ "items": {
588
+ "kind": "scalar",
589
+ "scalar": "string"
590
+ }
591
+ },
592
+ "required": false,
593
+ "default": [],
594
+ "description": "A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.\n"
595
+ }
596
+ ]
597
+ },
598
+ {
599
+ "name": "CreateThreadRequestToolResourcesFileSearch",
600
+ "kind": "union",
601
+ "semantics": "oneOf",
602
+ "variants": [
603
+ {
604
+ "kind": "any"
605
+ },
606
+ {
607
+ "kind": "any"
608
+ }
609
+ ]
610
+ },
611
+ {
612
+ "name": "CreateThreadAndRunRequestModel",
613
+ "kind": "union",
614
+ "semantics": "anyOf",
615
+ "variants": [
616
+ {
617
+ "kind": "scalar",
618
+ "scalar": "string"
619
+ },
620
+ {
621
+ "kind": "ref",
622
+ "name": "CreateThreadAndRunRequestModelString"
623
+ }
624
+ ],
625
+ "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."
626
+ },
627
+ {
628
+ "name": "CreateThreadAndRunRequestModelString",
629
+ "kind": "enum",
630
+ "base": "string",
631
+ "values": [
632
+ {
633
+ "value": "gpt-5"
634
+ },
635
+ {
636
+ "value": "gpt-5-mini"
637
+ },
638
+ {
639
+ "value": "gpt-5-nano"
640
+ },
641
+ {
642
+ "value": "gpt-5-2025-08-07"
643
+ },
644
+ {
645
+ "value": "gpt-5-mini-2025-08-07"
646
+ },
647
+ {
648
+ "value": "gpt-5-nano-2025-08-07"
649
+ },
650
+ {
651
+ "value": "gpt-4.1"
652
+ },
653
+ {
654
+ "value": "gpt-4.1-mini"
655
+ },
656
+ {
657
+ "value": "gpt-4.1-nano"
658
+ },
659
+ {
660
+ "value": "gpt-4.1-2025-04-14"
661
+ },
662
+ {
663
+ "value": "gpt-4.1-mini-2025-04-14"
664
+ },
665
+ {
666
+ "value": "gpt-4.1-nano-2025-04-14"
667
+ },
668
+ {
669
+ "value": "gpt-4o"
670
+ },
671
+ {
672
+ "value": "gpt-4o-2024-11-20"
673
+ },
674
+ {
675
+ "value": "gpt-4o-2024-08-06"
676
+ },
677
+ {
678
+ "value": "gpt-4o-2024-05-13"
679
+ },
680
+ {
681
+ "value": "gpt-4o-mini"
682
+ },
683
+ {
684
+ "value": "gpt-4o-mini-2024-07-18"
685
+ },
686
+ {
687
+ "value": "gpt-4.5-preview"
688
+ },
689
+ {
690
+ "value": "gpt-4.5-preview-2025-02-27"
691
+ },
692
+ {
693
+ "value": "gpt-4-turbo"
694
+ },
695
+ {
696
+ "value": "gpt-4-turbo-2024-04-09"
697
+ },
698
+ {
699
+ "value": "gpt-4-0125-preview"
700
+ },
701
+ {
702
+ "value": "gpt-4-turbo-preview"
703
+ },
704
+ {
705
+ "value": "gpt-4-1106-preview"
706
+ },
707
+ {
708
+ "value": "gpt-4-vision-preview"
709
+ },
710
+ {
711
+ "value": "gpt-4"
712
+ },
713
+ {
714
+ "value": "gpt-4-0314"
715
+ },
716
+ {
717
+ "value": "gpt-4-0613"
718
+ },
719
+ {
720
+ "value": "gpt-4-32k"
721
+ },
722
+ {
723
+ "value": "gpt-4-32k-0314"
724
+ },
725
+ {
726
+ "value": "gpt-4-32k-0613"
727
+ },
728
+ {
729
+ "value": "gpt-3.5-turbo"
730
+ },
731
+ {
732
+ "value": "gpt-3.5-turbo-16k"
733
+ },
734
+ {
735
+ "value": "gpt-3.5-turbo-0613"
736
+ },
737
+ {
738
+ "value": "gpt-3.5-turbo-1106"
739
+ },
740
+ {
741
+ "value": "gpt-3.5-turbo-0125"
742
+ },
743
+ {
744
+ "value": "gpt-3.5-turbo-16k-0613"
745
+ }
746
+ ]
747
+ },
748
+ {
749
+ "name": "CreateThreadAndRunRequestToolsItem",
750
+ "kind": "union",
751
+ "semantics": "oneOf",
752
+ "variants": [
753
+ {
754
+ "kind": "ref",
755
+ "name": "AssistantToolsCode"
756
+ },
757
+ {
758
+ "kind": "ref",
759
+ "name": "AssistantToolsFileSearch"
760
+ },
761
+ {
762
+ "kind": "ref",
763
+ "name": "AssistantToolsFunction"
764
+ }
765
+ ]
766
+ },
767
+ {
768
+ "name": "AssistantToolsFileSearch",
769
+ "kind": "struct",
770
+ "fields": [
771
+ {
772
+ "name": "type",
773
+ "type": {
774
+ "kind": "scalar",
775
+ "scalar": "string",
776
+ "const": "file_search"
777
+ },
778
+ "required": true,
779
+ "description": "The type of tool being defined: `file_search`"
780
+ },
781
+ {
782
+ "name": "file_search",
783
+ "type": {
784
+ "kind": "ref",
785
+ "name": "AssistantToolsFileSearchFileSearch"
786
+ },
787
+ "required": false,
788
+ "description": "Overrides for the file search tool."
789
+ }
790
+ ]
791
+ },
792
+ {
793
+ "name": "AssistantToolsFileSearchFileSearch",
794
+ "kind": "struct",
795
+ "fields": [
796
+ {
797
+ "name": "max_num_results",
798
+ "type": {
799
+ "kind": "scalar",
800
+ "scalar": "integer"
801
+ },
802
+ "required": false,
803
+ "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"
804
+ },
805
+ {
806
+ "name": "ranking_options",
807
+ "type": {
808
+ "kind": "ref",
809
+ "name": "FileSearchRankingOptions"
810
+ },
811
+ "required": false
812
+ }
813
+ ],
814
+ "description": "Overrides for the file search tool."
815
+ },
816
+ {
817
+ "name": "FileSearchRankingOptions",
818
+ "kind": "struct",
819
+ "fields": [
820
+ {
821
+ "name": "ranker",
822
+ "type": {
823
+ "kind": "ref",
824
+ "name": "FileSearchRanker"
825
+ },
826
+ "required": false
827
+ },
828
+ {
829
+ "name": "score_threshold",
830
+ "type": {
831
+ "kind": "scalar",
832
+ "scalar": "number"
833
+ },
834
+ "required": true,
835
+ "description": "The score threshold for the file search. All values must be a floating point number between 0 and 1."
836
+ }
837
+ ],
838
+ "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"
839
+ },
840
+ {
841
+ "name": "FileSearchRanker",
842
+ "kind": "enum",
843
+ "base": "string",
844
+ "values": [
845
+ {
846
+ "value": "auto"
847
+ },
848
+ {
849
+ "value": "default_2024_08_21"
850
+ }
851
+ ],
852
+ "description": "The ranker to use for the file search. If not specified will use the `auto` ranker."
853
+ },
854
+ {
855
+ "name": "AssistantToolsFunction",
856
+ "kind": "struct",
857
+ "fields": [
858
+ {
859
+ "name": "type",
860
+ "type": {
861
+ "kind": "scalar",
862
+ "scalar": "string",
863
+ "const": "function"
864
+ },
865
+ "required": true,
866
+ "description": "The type of tool being defined: `function`"
867
+ },
868
+ {
869
+ "name": "function",
870
+ "type": {
871
+ "kind": "ref",
872
+ "name": "FunctionObject"
873
+ },
874
+ "required": true
875
+ }
876
+ ]
877
+ },
878
+ {
879
+ "name": "FunctionObject",
880
+ "kind": "struct",
881
+ "fields": [
882
+ {
883
+ "name": "description",
884
+ "type": {
885
+ "kind": "scalar",
886
+ "scalar": "string"
887
+ },
888
+ "required": false,
889
+ "description": "A description of what the function does, used by the model to choose when and how to call the function."
890
+ },
891
+ {
892
+ "name": "name",
893
+ "type": {
894
+ "kind": "scalar",
895
+ "scalar": "string"
896
+ },
897
+ "required": true,
898
+ "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."
899
+ },
900
+ {
901
+ "name": "parameters",
902
+ "type": {
903
+ "kind": "ref",
904
+ "name": "FunctionParameters"
905
+ },
906
+ "required": false
907
+ },
908
+ {
909
+ "name": "strict",
910
+ "type": {
911
+ "kind": "scalar",
912
+ "scalar": "boolean",
913
+ "nullable": true
914
+ },
915
+ "required": false
916
+ }
917
+ ]
918
+ },
919
+ {
920
+ "name": "FunctionParameters",
921
+ "kind": "alias",
922
+ "of": {
923
+ "kind": "map",
924
+ "values": {
925
+ "kind": "any"
926
+ }
927
+ }
928
+ },
929
+ {
930
+ "name": "CreateThreadAndRunRequestToolResources",
931
+ "kind": "struct",
932
+ "fields": [
933
+ {
934
+ "name": "code_interpreter",
935
+ "type": {
936
+ "kind": "ref",
937
+ "name": "CreateThreadRequestToolResourcesCodeInterpreter"
938
+ },
939
+ "required": false
940
+ },
941
+ {
942
+ "name": "file_search",
943
+ "type": {
944
+ "kind": "ref",
945
+ "name": "CreateThreadAndRunRequestToolResourcesFileSearch"
946
+ },
947
+ "required": false
948
+ }
949
+ ],
950
+ "description": "A set of resources that are used by the assistant's tools. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.\n"
951
+ },
952
+ {
953
+ "name": "CreateThreadAndRunRequestToolResourcesFileSearch",
954
+ "kind": "struct",
955
+ "fields": [
956
+ {
957
+ "name": "vector_store_ids",
958
+ "type": {
959
+ "kind": "array",
960
+ "items": {
961
+ "kind": "scalar",
962
+ "scalar": "string"
963
+ }
964
+ },
965
+ "required": false,
966
+ "description": "The ID of the [vector store](/docs/api-reference/vector-stores/object) attached to this assistant. There can be a maximum of 1 vector store attached to the assistant.\n"
967
+ }
968
+ ]
969
+ },
970
+ {
971
+ "name": "TruncationObject",
972
+ "kind": "struct",
973
+ "fields": [
974
+ {
975
+ "name": "type",
976
+ "type": {
977
+ "kind": "ref",
978
+ "name": "TruncationObjectType"
979
+ },
980
+ "required": true,
981
+ "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`."
982
+ },
983
+ {
984
+ "name": "last_messages",
985
+ "type": {
986
+ "kind": "scalar",
987
+ "scalar": "integer",
988
+ "nullable": true
989
+ },
990
+ "required": false
991
+ }
992
+ ],
993
+ "description": "Controls for how a thread will be truncated prior to the run. Use this to control the initial context window of the run."
994
+ },
995
+ {
996
+ "name": "TruncationObjectType",
997
+ "kind": "enum",
998
+ "base": "string",
999
+ "values": [
1000
+ {
1001
+ "value": "auto"
1002
+ },
1003
+ {
1004
+ "value": "last_messages"
1005
+ }
1006
+ ],
1007
+ "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`."
1008
+ },
1009
+ {
1010
+ "name": "AssistantsApiToolChoiceOption",
1011
+ "kind": "union",
1012
+ "semantics": "oneOf",
1013
+ "variants": [
1014
+ {
1015
+ "kind": "ref",
1016
+ "name": "AssistantsApiToolChoiceOptionString"
1017
+ },
1018
+ {
1019
+ "kind": "ref",
1020
+ "name": "AssistantsNamedToolChoice"
1021
+ }
1022
+ ],
1023
+ "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"
1024
+ },
1025
+ {
1026
+ "name": "AssistantsApiToolChoiceOptionString",
1027
+ "kind": "enum",
1028
+ "base": "string",
1029
+ "values": [
1030
+ {
1031
+ "value": "none"
1032
+ },
1033
+ {
1034
+ "value": "auto"
1035
+ },
1036
+ {
1037
+ "value": "required"
1038
+ }
1039
+ ],
1040
+ "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"
1041
+ },
1042
+ {
1043
+ "name": "AssistantsNamedToolChoice",
1044
+ "kind": "struct",
1045
+ "fields": [
1046
+ {
1047
+ "name": "type",
1048
+ "type": {
1049
+ "kind": "ref",
1050
+ "name": "AssistantsNamedToolChoiceType"
1051
+ },
1052
+ "required": true,
1053
+ "description": "The type of the tool. If type is `function`, the function name must be set"
1054
+ },
1055
+ {
1056
+ "name": "function",
1057
+ "type": {
1058
+ "kind": "ref",
1059
+ "name": "AssistantsNamedToolChoiceFunction"
1060
+ },
1061
+ "required": false
1062
+ }
1063
+ ],
1064
+ "description": "Specifies a tool the model should use. Use to force the model to call a specific tool."
1065
+ },
1066
+ {
1067
+ "name": "AssistantsNamedToolChoiceType",
1068
+ "kind": "enum",
1069
+ "base": "string",
1070
+ "values": [
1071
+ {
1072
+ "value": "function"
1073
+ },
1074
+ {
1075
+ "value": "code_interpreter"
1076
+ },
1077
+ {
1078
+ "value": "file_search"
1079
+ }
1080
+ ],
1081
+ "description": "The type of the tool. If type is `function`, the function name must be set"
1082
+ },
1083
+ {
1084
+ "name": "AssistantsNamedToolChoiceFunction",
1085
+ "kind": "struct",
1086
+ "fields": [
1087
+ {
1088
+ "name": "name",
1089
+ "type": {
1090
+ "kind": "scalar",
1091
+ "scalar": "string"
1092
+ },
1093
+ "required": true,
1094
+ "description": "The name of the function to call."
1095
+ }
1096
+ ]
1097
+ },
1098
+ {
1099
+ "name": "ParallelToolCalls",
1100
+ "kind": "alias",
1101
+ "of": {
1102
+ "kind": "scalar",
1103
+ "scalar": "boolean"
1104
+ }
1105
+ },
1106
+ {
1107
+ "name": "AssistantsApiResponseFormatOption",
1108
+ "kind": "union",
1109
+ "semantics": "oneOf",
1110
+ "variants": [
1111
+ {
1112
+ "kind": "scalar",
1113
+ "scalar": "string",
1114
+ "const": "auto"
1115
+ },
1116
+ {
1117
+ "kind": "ref",
1118
+ "name": "ResponseFormatText"
1119
+ },
1120
+ {
1121
+ "kind": "ref",
1122
+ "name": "ResponseFormatJsonObject"
1123
+ },
1124
+ {
1125
+ "kind": "ref",
1126
+ "name": "ResponseFormatJsonSchema"
1127
+ }
1128
+ ],
1129
+ "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"
1130
+ },
1131
+ {
1132
+ "name": "ResponseFormatText",
1133
+ "kind": "struct",
1134
+ "fields": [
1135
+ {
1136
+ "name": "type",
1137
+ "type": {
1138
+ "kind": "scalar",
1139
+ "scalar": "string",
1140
+ "const": "text"
1141
+ },
1142
+ "required": true,
1143
+ "description": "The type of response format being defined. Always `text`."
1144
+ }
1145
+ ],
1146
+ "description": "Default response format. Used to generate text responses.\n"
1147
+ },
1148
+ {
1149
+ "name": "ResponseFormatJsonObject",
1150
+ "kind": "struct",
1151
+ "fields": [
1152
+ {
1153
+ "name": "type",
1154
+ "type": {
1155
+ "kind": "scalar",
1156
+ "scalar": "string",
1157
+ "const": "json_object"
1158
+ },
1159
+ "required": true,
1160
+ "description": "The type of response format being defined. Always `json_object`."
1161
+ }
1162
+ ],
1163
+ "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"
1164
+ },
1165
+ {
1166
+ "name": "ResponseFormatJsonSchema",
1167
+ "kind": "struct",
1168
+ "fields": [
1169
+ {
1170
+ "name": "type",
1171
+ "type": {
1172
+ "kind": "scalar",
1173
+ "scalar": "string",
1174
+ "const": "json_schema"
1175
+ },
1176
+ "required": true,
1177
+ "description": "The type of response format being defined. Always `json_schema`."
1178
+ },
1179
+ {
1180
+ "name": "json_schema",
1181
+ "type": {
1182
+ "kind": "ref",
1183
+ "name": "ResponseFormatJsonSchemaJsonSchema"
1184
+ },
1185
+ "required": true,
1186
+ "description": "Structured Outputs configuration options, including a JSON Schema.\n"
1187
+ }
1188
+ ],
1189
+ "description": "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).\n"
1190
+ },
1191
+ {
1192
+ "name": "ResponseFormatJsonSchemaJsonSchema",
1193
+ "kind": "struct",
1194
+ "fields": [
1195
+ {
1196
+ "name": "description",
1197
+ "type": {
1198
+ "kind": "scalar",
1199
+ "scalar": "string"
1200
+ },
1201
+ "required": false,
1202
+ "description": "A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n"
1203
+ },
1204
+ {
1205
+ "name": "name",
1206
+ "type": {
1207
+ "kind": "scalar",
1208
+ "scalar": "string"
1209
+ },
1210
+ "required": true,
1211
+ "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"
1212
+ },
1213
+ {
1214
+ "name": "schema",
1215
+ "type": {
1216
+ "kind": "ref",
1217
+ "name": "ResponseFormatJsonSchemaSchema"
1218
+ },
1219
+ "required": false
1220
+ },
1221
+ {
1222
+ "name": "strict",
1223
+ "type": {
1224
+ "kind": "scalar",
1225
+ "scalar": "boolean",
1226
+ "nullable": true
1227
+ },
1228
+ "required": false
1229
+ }
1230
+ ],
1231
+ "description": "Structured Outputs configuration options, including a JSON Schema.\n"
1232
+ },
1233
+ {
1234
+ "name": "ResponseFormatJsonSchemaSchema",
1235
+ "kind": "alias",
1236
+ "of": {
1237
+ "kind": "map",
1238
+ "values": {
1239
+ "kind": "any"
1240
+ }
1241
+ }
1242
+ },
1243
+ {
1244
+ "name": "RunObject",
1245
+ "kind": "struct",
1246
+ "fields": [
1247
+ {
1248
+ "name": "id",
1249
+ "type": {
1250
+ "kind": "scalar",
1251
+ "scalar": "string"
1252
+ },
1253
+ "required": true,
1254
+ "description": "The identifier, which can be referenced in API endpoints."
1255
+ },
1256
+ {
1257
+ "name": "object",
1258
+ "type": {
1259
+ "kind": "scalar",
1260
+ "scalar": "string",
1261
+ "const": "thread.run"
1262
+ },
1263
+ "required": true,
1264
+ "description": "The object type, which is always `thread.run`."
1265
+ },
1266
+ {
1267
+ "name": "created_at",
1268
+ "type": {
1269
+ "kind": "scalar",
1270
+ "scalar": "integer",
1271
+ "format": "unixtime"
1272
+ },
1273
+ "required": true,
1274
+ "description": "The Unix timestamp (in seconds) for when the run was created."
1275
+ },
1276
+ {
1277
+ "name": "thread_id",
1278
+ "type": {
1279
+ "kind": "scalar",
1280
+ "scalar": "string"
1281
+ },
1282
+ "required": true,
1283
+ "description": "The ID of the [thread](/docs/api-reference/threads) that was executed on as a part of this run."
1284
+ },
1285
+ {
1286
+ "name": "assistant_id",
1287
+ "type": {
1288
+ "kind": "scalar",
1289
+ "scalar": "string"
1290
+ },
1291
+ "required": true,
1292
+ "description": "The ID of the [assistant](/docs/api-reference/assistants) used for execution of this run."
1293
+ },
1294
+ {
1295
+ "name": "status",
1296
+ "type": {
1297
+ "kind": "ref",
1298
+ "name": "RunObjectStatus"
1299
+ },
1300
+ "required": true,
1301
+ "description": "The status of the run, which can be either `queued`, `in_progress`, `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`, `incomplete`, or `expired`."
1302
+ },
1303
+ {
1304
+ "name": "required_action",
1305
+ "type": {
1306
+ "kind": "ref",
1307
+ "name": "RunObjectRequiredAction",
1308
+ "nullable": true
1309
+ },
1310
+ "required": true,
1311
+ "nullable": true,
1312
+ "description": "Details on the action required to continue the run. Will be `null` if no action is required."
1313
+ },
1314
+ {
1315
+ "name": "last_error",
1316
+ "type": {
1317
+ "kind": "ref",
1318
+ "name": "RunObjectLastError",
1319
+ "nullable": true
1320
+ },
1321
+ "required": true,
1322
+ "nullable": true,
1323
+ "description": "The last error associated with this run. Will be `null` if there are no errors."
1324
+ },
1325
+ {
1326
+ "name": "expires_at",
1327
+ "type": {
1328
+ "kind": "scalar",
1329
+ "scalar": "integer",
1330
+ "format": "unixtime",
1331
+ "nullable": true
1332
+ },
1333
+ "required": true,
1334
+ "nullable": true,
1335
+ "description": "The Unix timestamp (in seconds) for when the run will expire."
1336
+ },
1337
+ {
1338
+ "name": "started_at",
1339
+ "type": {
1340
+ "kind": "scalar",
1341
+ "scalar": "integer",
1342
+ "format": "unixtime",
1343
+ "nullable": true
1344
+ },
1345
+ "required": true,
1346
+ "nullable": true,
1347
+ "description": "The Unix timestamp (in seconds) for when the run was started."
1348
+ },
1349
+ {
1350
+ "name": "cancelled_at",
1351
+ "type": {
1352
+ "kind": "scalar",
1353
+ "scalar": "integer",
1354
+ "format": "unixtime",
1355
+ "nullable": true
1356
+ },
1357
+ "required": true,
1358
+ "nullable": true,
1359
+ "description": "The Unix timestamp (in seconds) for when the run was cancelled."
1360
+ },
1361
+ {
1362
+ "name": "failed_at",
1363
+ "type": {
1364
+ "kind": "scalar",
1365
+ "scalar": "integer",
1366
+ "format": "unixtime",
1367
+ "nullable": true
1368
+ },
1369
+ "required": true,
1370
+ "nullable": true,
1371
+ "description": "The Unix timestamp (in seconds) for when the run failed."
1372
+ },
1373
+ {
1374
+ "name": "completed_at",
1375
+ "type": {
1376
+ "kind": "scalar",
1377
+ "scalar": "integer",
1378
+ "format": "unixtime",
1379
+ "nullable": true
1380
+ },
1381
+ "required": true,
1382
+ "nullable": true,
1383
+ "description": "The Unix timestamp (in seconds) for when the run was completed."
1384
+ },
1385
+ {
1386
+ "name": "incomplete_details",
1387
+ "type": {
1388
+ "kind": "ref",
1389
+ "name": "RunObjectIncompleteDetails",
1390
+ "nullable": true
1391
+ },
1392
+ "required": true,
1393
+ "nullable": true,
1394
+ "description": "Details on why the run is incomplete. Will be `null` if the run is not incomplete."
1395
+ },
1396
+ {
1397
+ "name": "model",
1398
+ "type": {
1399
+ "kind": "scalar",
1400
+ "scalar": "string"
1401
+ },
1402
+ "required": true,
1403
+ "description": "The model that the [assistant](/docs/api-reference/assistants) used for this run."
1404
+ },
1405
+ {
1406
+ "name": "instructions",
1407
+ "type": {
1408
+ "kind": "scalar",
1409
+ "scalar": "string"
1410
+ },
1411
+ "required": true,
1412
+ "description": "The instructions that the [assistant](/docs/api-reference/assistants) used for this run."
1413
+ },
1414
+ {
1415
+ "name": "tools",
1416
+ "type": {
1417
+ "kind": "array",
1418
+ "items": {
1419
+ "kind": "ref",
1420
+ "name": "CreateThreadAndRunRequestToolsItem"
1421
+ }
1422
+ },
1423
+ "required": true,
1424
+ "default": [],
1425
+ "description": "The list of tools that the [assistant](/docs/api-reference/assistants) used for this run."
1426
+ },
1427
+ {
1428
+ "name": "metadata",
1429
+ "type": {
1430
+ "kind": "ref",
1431
+ "name": "Metadata"
1432
+ },
1433
+ "required": true
1434
+ },
1435
+ {
1436
+ "name": "usage",
1437
+ "type": {
1438
+ "kind": "ref",
1439
+ "name": "RunCompletionUsage"
1440
+ },
1441
+ "required": true
1442
+ },
1443
+ {
1444
+ "name": "temperature",
1445
+ "type": {
1446
+ "kind": "scalar",
1447
+ "scalar": "number",
1448
+ "nullable": true
1449
+ },
1450
+ "required": false,
1451
+ "nullable": true,
1452
+ "description": "The sampling temperature used for this run. If not set, defaults to 1."
1453
+ },
1454
+ {
1455
+ "name": "top_p",
1456
+ "type": {
1457
+ "kind": "scalar",
1458
+ "scalar": "number",
1459
+ "nullable": true
1460
+ },
1461
+ "required": false,
1462
+ "nullable": true,
1463
+ "description": "The nucleus sampling value used for this run. If not set, defaults to 1."
1464
+ },
1465
+ {
1466
+ "name": "max_prompt_tokens",
1467
+ "type": {
1468
+ "kind": "scalar",
1469
+ "scalar": "integer",
1470
+ "nullable": true
1471
+ },
1472
+ "required": true,
1473
+ "nullable": true,
1474
+ "description": "The maximum number of prompt tokens specified to have been used over the course of the run.\n"
1475
+ },
1476
+ {
1477
+ "name": "max_completion_tokens",
1478
+ "type": {
1479
+ "kind": "scalar",
1480
+ "scalar": "integer",
1481
+ "nullable": true
1482
+ },
1483
+ "required": true,
1484
+ "nullable": true,
1485
+ "description": "The maximum number of completion tokens specified to have been used over the course of the run.\n"
1486
+ },
1487
+ {
1488
+ "name": "truncation_strategy",
1489
+ "type": {
1490
+ "kind": "ref",
1491
+ "name": "TruncationObject",
1492
+ "nullable": true
1493
+ },
1494
+ "required": true
1495
+ },
1496
+ {
1497
+ "name": "tool_choice",
1498
+ "type": {
1499
+ "kind": "ref",
1500
+ "name": "AssistantsApiToolChoiceOption",
1501
+ "nullable": true
1502
+ },
1503
+ "required": true
1504
+ },
1505
+ {
1506
+ "name": "parallel_tool_calls",
1507
+ "type": {
1508
+ "kind": "ref",
1509
+ "name": "ParallelToolCalls"
1510
+ },
1511
+ "required": true
1512
+ },
1513
+ {
1514
+ "name": "response_format",
1515
+ "type": {
1516
+ "kind": "ref",
1517
+ "name": "AssistantsApiResponseFormatOption"
1518
+ },
1519
+ "required": true
1520
+ }
1521
+ ],
1522
+ "description": "Represents an execution run on a [thread](/docs/api-reference/threads)."
1523
+ },
1524
+ {
1525
+ "name": "RunObjectStatus",
1526
+ "kind": "enum",
1527
+ "base": "string",
1528
+ "values": [
1529
+ {
1530
+ "value": "queued"
1531
+ },
1532
+ {
1533
+ "value": "in_progress"
1534
+ },
1535
+ {
1536
+ "value": "requires_action"
1537
+ },
1538
+ {
1539
+ "value": "cancelling"
1540
+ },
1541
+ {
1542
+ "value": "cancelled"
1543
+ },
1544
+ {
1545
+ "value": "failed"
1546
+ },
1547
+ {
1548
+ "value": "completed"
1549
+ },
1550
+ {
1551
+ "value": "incomplete"
1552
+ },
1553
+ {
1554
+ "value": "expired"
1555
+ }
1556
+ ],
1557
+ "description": "The status of the run, which can be either `queued`, `in_progress`, `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`, `incomplete`, or `expired`."
1558
+ },
1559
+ {
1560
+ "name": "RunObjectRequiredAction",
1561
+ "kind": "struct",
1562
+ "fields": [
1563
+ {
1564
+ "name": "type",
1565
+ "type": {
1566
+ "kind": "scalar",
1567
+ "scalar": "string",
1568
+ "const": "submit_tool_outputs"
1569
+ },
1570
+ "required": true,
1571
+ "description": "For now, this is always `submit_tool_outputs`."
1572
+ },
1573
+ {
1574
+ "name": "submit_tool_outputs",
1575
+ "type": {
1576
+ "kind": "ref",
1577
+ "name": "RunObjectRequiredActionSubmitToolOutputs"
1578
+ },
1579
+ "required": true,
1580
+ "description": "Details on the tool outputs needed for this run to continue."
1581
+ }
1582
+ ],
1583
+ "description": "Details on the action required to continue the run. Will be `null` if no action is required."
1584
+ },
1585
+ {
1586
+ "name": "RunObjectRequiredActionSubmitToolOutputs",
1587
+ "kind": "struct",
1588
+ "fields": [
1589
+ {
1590
+ "name": "tool_calls",
1591
+ "type": {
1592
+ "kind": "array",
1593
+ "items": {
1594
+ "kind": "ref",
1595
+ "name": "RunToolCallObject"
1596
+ }
1597
+ },
1598
+ "required": true,
1599
+ "description": "A list of the relevant tool calls."
1600
+ }
1601
+ ],
1602
+ "description": "Details on the tool outputs needed for this run to continue."
1603
+ },
1604
+ {
1605
+ "name": "RunToolCallObject",
1606
+ "kind": "struct",
1607
+ "fields": [
1608
+ {
1609
+ "name": "id",
1610
+ "type": {
1611
+ "kind": "scalar",
1612
+ "scalar": "string"
1613
+ },
1614
+ "required": true,
1615
+ "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."
1616
+ },
1617
+ {
1618
+ "name": "type",
1619
+ "type": {
1620
+ "kind": "scalar",
1621
+ "scalar": "string",
1622
+ "const": "function"
1623
+ },
1624
+ "required": true,
1625
+ "description": "The type of tool call the output is required for. For now, this is always `function`."
1626
+ },
1627
+ {
1628
+ "name": "function",
1629
+ "type": {
1630
+ "kind": "ref",
1631
+ "name": "RunToolCallObjectFunction"
1632
+ },
1633
+ "required": true,
1634
+ "description": "The function definition."
1635
+ }
1636
+ ],
1637
+ "description": "Tool call objects"
1638
+ },
1639
+ {
1640
+ "name": "RunToolCallObjectFunction",
1641
+ "kind": "struct",
1642
+ "fields": [
1643
+ {
1644
+ "name": "name",
1645
+ "type": {
1646
+ "kind": "scalar",
1647
+ "scalar": "string"
1648
+ },
1649
+ "required": true,
1650
+ "description": "The name of the function."
1651
+ },
1652
+ {
1653
+ "name": "arguments",
1654
+ "type": {
1655
+ "kind": "scalar",
1656
+ "scalar": "string"
1657
+ },
1658
+ "required": true,
1659
+ "description": "The arguments that the model expects you to pass to the function."
1660
+ }
1661
+ ],
1662
+ "description": "The function definition."
1663
+ },
1664
+ {
1665
+ "name": "RunObjectLastError",
1666
+ "kind": "struct",
1667
+ "fields": [
1668
+ {
1669
+ "name": "code",
1670
+ "type": {
1671
+ "kind": "ref",
1672
+ "name": "RunObjectLastErrorCode"
1673
+ },
1674
+ "required": true,
1675
+ "description": "One of `server_error`, `rate_limit_exceeded`, or `invalid_prompt`."
1676
+ },
1677
+ {
1678
+ "name": "message",
1679
+ "type": {
1680
+ "kind": "scalar",
1681
+ "scalar": "string"
1682
+ },
1683
+ "required": true,
1684
+ "description": "A human-readable description of the error."
1685
+ }
1686
+ ],
1687
+ "description": "The last error associated with this run. Will be `null` if there are no errors."
1688
+ },
1689
+ {
1690
+ "name": "RunObjectLastErrorCode",
1691
+ "kind": "enum",
1692
+ "base": "string",
1693
+ "values": [
1694
+ {
1695
+ "value": "server_error"
1696
+ },
1697
+ {
1698
+ "value": "rate_limit_exceeded"
1699
+ },
1700
+ {
1701
+ "value": "invalid_prompt"
1702
+ }
1703
+ ],
1704
+ "description": "One of `server_error`, `rate_limit_exceeded`, or `invalid_prompt`."
1705
+ },
1706
+ {
1707
+ "name": "RunObjectIncompleteDetails",
1708
+ "kind": "struct",
1709
+ "fields": [
1710
+ {
1711
+ "name": "reason",
1712
+ "type": {
1713
+ "kind": "ref",
1714
+ "name": "RunObjectIncompleteDetailsReason"
1715
+ },
1716
+ "required": false,
1717
+ "description": "The reason why the run is incomplete. This will point to which specific token limit was reached over the course of the run."
1718
+ }
1719
+ ],
1720
+ "description": "Details on why the run is incomplete. Will be `null` if the run is not incomplete."
1721
+ },
1722
+ {
1723
+ "name": "RunObjectIncompleteDetailsReason",
1724
+ "kind": "enum",
1725
+ "base": "string",
1726
+ "values": [
1727
+ {
1728
+ "value": "max_completion_tokens"
1729
+ },
1730
+ {
1731
+ "value": "max_prompt_tokens"
1732
+ }
1733
+ ],
1734
+ "description": "The reason why the run is incomplete. This will point to which specific token limit was reached over the course of the run."
1735
+ },
1736
+ {
1737
+ "name": "RunCompletionUsage",
1738
+ "kind": "struct",
1739
+ "fields": [
1740
+ {
1741
+ "name": "completion_tokens",
1742
+ "type": {
1743
+ "kind": "scalar",
1744
+ "scalar": "integer"
1745
+ },
1746
+ "required": true,
1747
+ "description": "Number of completion tokens used over the course of the run."
1748
+ },
1749
+ {
1750
+ "name": "prompt_tokens",
1751
+ "type": {
1752
+ "kind": "scalar",
1753
+ "scalar": "integer"
1754
+ },
1755
+ "required": true,
1756
+ "description": "Number of prompt tokens used over the course of the run."
1757
+ },
1758
+ {
1759
+ "name": "total_tokens",
1760
+ "type": {
1761
+ "kind": "scalar",
1762
+ "scalar": "integer"
1763
+ },
1764
+ "required": true,
1765
+ "description": "Total number of tokens used (prompt + completion)."
1766
+ }
1767
+ ],
1768
+ "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.)."
1769
+ }
1770
+ ],
1771
+ "resources": [
1772
+ {
1773
+ "name": "beta",
1774
+ "resources": [
1775
+ {
1776
+ "name": "threads",
1777
+ "methods": [
1778
+ {
1779
+ "action": "new-and-run",
1780
+ "httpMethod": "post",
1781
+ "path": "/threads/runs",
1782
+ "operationId": "createThreadAndRun",
1783
+ "description": "Create a thread and run it in one request.",
1784
+ "requestBody": {
1785
+ "contentType": "application/json",
1786
+ "type": {
1787
+ "kind": "ref",
1788
+ "name": "CreateThreadAndRunRequest"
1789
+ },
1790
+ "required": true,
1791
+ "encoding": "json"
1792
+ },
1793
+ "responses": [
1794
+ {
1795
+ "status": "200",
1796
+ "description": "OK",
1797
+ "contentType": "application/json",
1798
+ "type": {
1799
+ "kind": "ref",
1800
+ "name": "RunObject"
1801
+ }
1802
+ }
1803
+ ],
1804
+ "primaryResponse": {
1805
+ "kind": "ref",
1806
+ "name": "RunObject"
1807
+ }
1808
+ }
1809
+ ]
1810
+ }
1811
+ ]
1812
+ }
1813
+ ],
1814
+ "sdk": {
1815
+ "retry": {
1816
+ "maxRetries": 2,
1817
+ "retryableStatusCodes": [
1818
+ 408,
1819
+ 429,
1820
+ 500,
1821
+ 502,
1822
+ 503,
1823
+ 504
1824
+ ],
1825
+ "retryConnectionErrors": true,
1826
+ "honorRetryAfterHeader": true,
1827
+ "backoff": {
1828
+ "initialDelayMs": 500,
1829
+ "maxDelayMs": 8000,
1830
+ "multiplier": 2,
1831
+ "jitter": 0.25
1832
+ }
1833
+ },
1834
+ "timeout": {
1835
+ "defaultTimeoutMs": 60000
1836
+ },
1837
+ "errors": {
1838
+ "statusCodeMap": {
1839
+ "400": "BadRequest",
1840
+ "401": "Unauthorized",
1841
+ "403": "PermissionDenied",
1842
+ "404": "NotFound",
1843
+ "409": "Conflict",
1844
+ "422": "UnprocessableEntity",
1845
+ "429": "RateLimited"
1846
+ },
1847
+ "clientErrorKind": "API",
1848
+ "serverErrorKind": "Internal"
1849
+ },
1850
+ "userAgent": {
1851
+ "sdkIdentifierTemplate": "{package}-{language}/{version}",
1852
+ "includeRuntimeVersion": false,
1853
+ "aiAgentEnvVars": {
1854
+ "CLAUDE_CODE": "claude-code",
1855
+ "CURSOR_AGENT": "cursor",
1856
+ "CLINE_ACTIVE": "cline",
1857
+ "WINDSURF_ACTIVE": "windsurf",
1858
+ "COPILOT_AGENT": "copilot"
1859
+ }
1860
+ },
1861
+ "telemetry": {
1862
+ "requestIdHeader": "X-Request-ID",
1863
+ "headerName": "X-Client-Telemetry",
1864
+ "enabledByDefault": false
1865
+ },
1866
+ "logging": {
1867
+ "events": [
1868
+ "request.start",
1869
+ "request.success",
1870
+ "request.retry",
1871
+ "request.rate_limited",
1872
+ "request.error",
1873
+ "request.connection_error"
1874
+ ]
1875
+ },
1876
+ "idempotency": {
1877
+ "headerName": "Idempotency-Key",
1878
+ "autoGenerateForPost": true
1879
+ },
1880
+ "pagination": {
1881
+ "autoPageDelayMs": 0
1882
+ },
1883
+ "requestGuard": {
1884
+ "optionKeys": [
1885
+ "api_key",
1886
+ "apiKey",
1887
+ "idempotency_key",
1888
+ "idempotencyKey",
1889
+ "extra_headers",
1890
+ "extraHeaders",
1891
+ "max_retries",
1892
+ "maxRetries",
1893
+ "base_url",
1894
+ "baseUrl",
1895
+ "timeout"
1896
+ ]
1897
+ }
1898
+ }
1899
+ }