@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.
- package/CHANGELOG.md +10 -0
- package/LICENSE +21 -0
- package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__create/input.json +325 -0
- package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__create/output.py +26 -0
- package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__delete/input.json +201 -0
- package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__delete/output.py +28 -0
- package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__list/input.json +400 -0
- package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__list/output.py +29 -0
- package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__retrieve/input.json +304 -0
- package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__retrieve/output.py +28 -0
- package/__fixtures__/-2.complex.openai/admin__organization__audit_logs__list/input.json +2602 -0
- package/__fixtures__/-2.complex.openai/admin__organization__audit_logs__list/output.py +29 -0
- package/__fixtures__/-2.complex.openai/admin__organization__certificates__activate__create/input.json +308 -0
- package/__fixtures__/-2.complex.openai/admin__organization__certificates__activate__create/output.py +32 -0
- package/__fixtures__/-2.complex.openai/admin__organization__certificates__create/input.json +308 -0
- package/__fixtures__/-2.complex.openai/admin__organization__certificates__create/output.py +28 -0
- package/__fixtures__/-2.complex.openai/admin__organization__certificates__deactivate__create/input.json +308 -0
- package/__fixtures__/-2.complex.openai/admin__organization__certificates__deactivate__create/output.py +32 -0
- package/__fixtures__/-2.complex.openai/admin__organization__certificates__delete/input.json +196 -0
- package/__fixtures__/-2.complex.openai/admin__organization__certificates__delete/output.py +28 -0
- package/__fixtures__/-2.complex.openai/admin__organization__certificates__list/input.json +356 -0
- package/__fixtures__/-2.complex.openai/admin__organization__certificates__list/output.py +29 -0
- package/__fixtures__/-2.complex.openai/admin__organization__certificates__retrieve/input.json +300 -0
- package/__fixtures__/-2.complex.openai/admin__organization__certificates__retrieve/output.py +30 -0
- package/__fixtures__/-2.complex.openai/admin__organization__certificates__update/input.json +310 -0
- package/__fixtures__/-2.complex.openai/admin__organization__certificates__update/output.py +30 -0
- package/__fixtures__/-2.complex.openai/admin__organization__costs__list/input.json +1062 -0
- package/__fixtures__/-2.complex.openai/admin__organization__costs__list/output.py +29 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__create/input.json +239 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__create/output.py +26 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__delete/input.json +206 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__delete/output.py +28 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__list/input.json +316 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__list/output.py +29 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__create/input.json +364 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__create/output.py +34 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__delete/input.json +210 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__delete/output.py +36 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__list/input.json +398 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__list/output.py +37 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__update/input.json +241 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__update/output.py +28 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__users__create/input.json +237 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__users__create/output.py +34 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__users__delete/input.json +211 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__users__delete/output.py +36 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__users__list/input.json +314 -0
- package/__fixtures__/-2.complex.openai/admin__organization__groups__users__list/output.py +37 -0
- package/__fixtures__/-2.complex.openai/admin__organization__invites__create/input.json +386 -0
- package/__fixtures__/-2.complex.openai/admin__organization__invites__create/output.py +28 -0
- package/__fixtures__/-2.complex.openai/admin__organization__invites__delete/input.json +203 -0
- package/__fixtures__/-2.complex.openai/admin__organization__invites__delete/output.py +28 -0
- package/__fixtures__/-2.complex.openai/admin__organization__invites__list/input.json +414 -0
- package/__fixtures__/-2.complex.openai/admin__organization__invites__list/output.py +29 -0
- package/__fixtures__/-2.complex.openai/admin__organization__invites__retrieve/input.json +337 -0
- package/__fixtures__/-2.complex.openai/admin__organization__invites__retrieve/output.py +28 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__api_keys__delete/input.json +279 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__api_keys__delete/output.py +36 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__api_keys__list/input.json +475 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__api_keys__list/output.py +37 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__api_keys__retrieve/input.json +400 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__api_keys__retrieve/output.py +36 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__archive/input.json +247 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__archive/output.py +28 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__certificates__activate__create/input.json +324 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__certificates__activate__create/output.py +40 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__certificates__deactivate__create/input.json +324 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__certificates__deactivate__create/output.py +40 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__certificates__list/input.json +372 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__certificates__list/output.py +37 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__create/input.json +281 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__create/output.py +28 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__create/input.json +274 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__create/output.py +34 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__delete/input.json +211 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__delete/output.py +36 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__list/input.json +342 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__list/output.py +37 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__list/input.json +330 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__list/output.py +29 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__rate_limits__list_rate_limits/input.json +358 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__rate_limits__list_rate_limits/output.py +37 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__rate_limits__update_rate_limit/input.json +407 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__rate_limits__update_rate_limit/output.py +38 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__retrieve/input.json +247 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__retrieve/output.py +28 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__create/input.json +372 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__create/output.py +34 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__delete/input.json +216 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__delete/output.py +36 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__list/input.json +391 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__list/output.py +37 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__retrieve/input.json +253 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__retrieve/output.py +36 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__update/input.json +356 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__update/output.py +30 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__users__create/input.json +349 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__users__create/output.py +36 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__users__delete/input.json +279 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__users__delete/output.py +36 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__users__list/input.json +387 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__users__list/output.py +37 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__users__retrieve/input.json +250 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__users__retrieve/output.py +36 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__users__update/input.json +339 -0
- package/__fixtures__/-2.complex.openai/admin__organization__projects__users__update/output.py +38 -0
- package/__fixtures__/-2.complex.openai/admin__organization__roles__create/input.json +283 -0
- package/__fixtures__/-2.complex.openai/admin__organization__roles__create/output.py +28 -0
- package/__fixtures__/-2.complex.openai/admin__organization__roles__delete/input.json +206 -0
- package/__fixtures__/-2.complex.openai/admin__organization__roles__delete/output.py +28 -0
- package/__fixtures__/-2.complex.openai/admin__organization__roles__list/input.json +338 -0
- package/__fixtures__/-2.complex.openai/admin__organization__roles__list/output.py +29 -0
- package/__fixtures__/-2.complex.openai/admin__organization__roles__update/input.json +296 -0
- package/__fixtures__/-2.complex.openai/admin__organization__roles__update/output.py +30 -0
- package/__fixtures__/-2.complex.openai/admin__organization__usage__audio_speeches__list/input.json +1108 -0
- package/__fixtures__/-2.complex.openai/admin__organization__usage__audio_speeches__list/output.py +35 -0
- package/__fixtures__/-2.complex.openai/admin__organization__usage__audio_transcriptions__list/input.json +1108 -0
- package/__fixtures__/-2.complex.openai/admin__organization__usage__audio_transcriptions__list/output.py +35 -0
- package/__fixtures__/-2.complex.openai/admin__organization__usage__code_interpreter_sessions__list/input.json +1054 -0
- package/__fixtures__/-2.complex.openai/admin__organization__usage__code_interpreter_sessions__list/output.py +35 -0
- package/__fixtures__/-2.complex.openai/admin__organization__usage__completions__list/input.json +1123 -0
- package/__fixtures__/-2.complex.openai/admin__organization__usage__completions__list/output.py +35 -0
- package/__fixtures__/-2.complex.openai/admin__organization__usage__embeddings__list/input.json +1108 -0
- package/__fixtures__/-2.complex.openai/admin__organization__usage__embeddings__list/output.py +35 -0
- package/__fixtures__/-2.complex.openai/admin__organization__usage__images__list/input.json +1176 -0
- package/__fixtures__/-2.complex.openai/admin__organization__usage__images__list/output.py +35 -0
- package/__fixtures__/-2.complex.openai/admin__organization__usage__moderations__list/input.json +1108 -0
- package/__fixtures__/-2.complex.openai/admin__organization__usage__moderations__list/output.py +35 -0
- package/__fixtures__/-2.complex.openai/admin__organization__usage__vector_stores__list/input.json +1054 -0
- package/__fixtures__/-2.complex.openai/admin__organization__usage__vector_stores__list/output.py +35 -0
- package/__fixtures__/-2.complex.openai/admin__organization__users__delete/input.json +202 -0
- package/__fixtures__/-2.complex.openai/admin__organization__users__delete/output.py +28 -0
- package/__fixtures__/-2.complex.openai/admin__organization__users__list/input.json +557 -0
- package/__fixtures__/-2.complex.openai/admin__organization__users__list/output.py +29 -0
- package/__fixtures__/-2.complex.openai/admin__organization__users__retrieve/input.json +472 -0
- package/__fixtures__/-2.complex.openai/admin__organization__users__retrieve/output.py +28 -0
- package/__fixtures__/-2.complex.openai/admin__organization__users__roles__create/input.json +611 -0
- package/__fixtures__/-2.complex.openai/admin__organization__users__roles__create/output.py +34 -0
- package/__fixtures__/-2.complex.openai/admin__organization__users__roles__delete/input.json +210 -0
- package/__fixtures__/-2.complex.openai/admin__organization__users__roles__delete/output.py +36 -0
- package/__fixtures__/-2.complex.openai/admin__organization__users__roles__list/input.json +398 -0
- package/__fixtures__/-2.complex.openai/admin__organization__users__roles__list/output.py +37 -0
- package/__fixtures__/-2.complex.openai/admin__organization__users__update/input.json +528 -0
- package/__fixtures__/-2.complex.openai/admin__organization__users__update/output.py +30 -0
- package/__fixtures__/-2.complex.openai/audio__speech__create/input.json +388 -0
- package/__fixtures__/-2.complex.openai/audio__speech__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/audio__transcriptions__create/input.json +999 -0
- package/__fixtures__/-2.complex.openai/audio__transcriptions__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/audio__translations__create/input.json +430 -0
- package/__fixtures__/-2.complex.openai/audio__translations__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/audio__voice_consents__create/input.json +244 -0
- package/__fixtures__/-2.complex.openai/audio__voice_consents__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/audio__voice_consents__delete/input.json +190 -0
- package/__fixtures__/-2.complex.openai/audio__voice_consents__delete/output.py +22 -0
- package/__fixtures__/-2.complex.openai/audio__voice_consents__list/input.json +285 -0
- package/__fixtures__/-2.complex.openai/audio__voice_consents__list/output.py +23 -0
- package/__fixtures__/-2.complex.openai/audio__voice_consents__retrieve/input.json +212 -0
- package/__fixtures__/-2.complex.openai/audio__voice_consents__retrieve/output.py +22 -0
- package/__fixtures__/-2.complex.openai/audio__voice_consents__update/input.json +236 -0
- package/__fixtures__/-2.complex.openai/audio__voice_consents__update/output.py +22 -0
- package/__fixtures__/-2.complex.openai/audio__voices__create/input.json +235 -0
- package/__fixtures__/-2.complex.openai/audio__voices__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/batches__cancel/input.json +594 -0
- package/__fixtures__/-2.complex.openai/batches__cancel/output.py +16 -0
- package/__fixtures__/-2.complex.openai/batches__create/input.json +701 -0
- package/__fixtures__/-2.complex.openai/batches__create/output.py +16 -0
- package/__fixtures__/-2.complex.openai/batches__list/input.json +665 -0
- package/__fixtures__/-2.complex.openai/batches__list/output.py +17 -0
- package/__fixtures__/-2.complex.openai/batches__retrieve/input.json +594 -0
- package/__fixtures__/-2.complex.openai/batches__retrieve/output.py +16 -0
- package/__fixtures__/-2.complex.openai/beta__assistants__create/input.json +1029 -0
- package/__fixtures__/-2.complex.openai/beta__assistants__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/beta__assistants__delete/input.json +190 -0
- package/__fixtures__/-2.complex.openai/beta__assistants__delete/output.py +22 -0
- package/__fixtures__/-2.complex.openai/beta__assistants__list/input.json +796 -0
- package/__fixtures__/-2.complex.openai/beta__assistants__list/output.py +23 -0
- package/__fixtures__/-2.complex.openai/beta__assistants__retrieve/input.json +694 -0
- package/__fixtures__/-2.complex.openai/beta__assistants__retrieve/output.py +22 -0
- package/__fixtures__/-2.complex.openai/beta__assistants__update/input.json +1045 -0
- package/__fixtures__/-2.complex.openai/beta__assistants__update/output.py +24 -0
- package/__fixtures__/-2.complex.openai/beta__chat_kit__sessions__cancel/input.json +482 -0
- package/__fixtures__/-2.complex.openai/beta__chat_kit__sessions__cancel/output.py +28 -0
- package/__fixtures__/-2.complex.openai/beta__chat_kit__sessions__create/input.json +738 -0
- package/__fixtures__/-2.complex.openai/beta__chat_kit__sessions__create/output.py +28 -0
- package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__delete/input.json +200 -0
- package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__delete/output.py +28 -0
- package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__items__list/input.json +1218 -0
- package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__items__list/output.py +37 -0
- package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__list/input.json +444 -0
- package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__list/output.py +29 -0
- package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__retrieve/input.json +328 -0
- package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__retrieve/output.py +28 -0
- package/__fixtures__/-2.complex.openai/beta__threads__create/input.json +665 -0
- package/__fixtures__/-2.complex.openai/beta__threads__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/beta__threads__delete/input.json +189 -0
- package/__fixtures__/-2.complex.openai/beta__threads__delete/output.py +22 -0
- package/__fixtures__/-2.complex.openai/beta__threads__messages__create/input.json +938 -0
- package/__fixtures__/-2.complex.openai/beta__threads__messages__create/output.py +30 -0
- package/__fixtures__/-2.complex.openai/beta__threads__messages__delete/input.json +203 -0
- package/__fixtures__/-2.complex.openai/beta__threads__messages__delete/output.py +30 -0
- package/__fixtures__/-2.complex.openai/beta__threads__messages__list/input.json +945 -0
- package/__fixtures__/-2.complex.openai/beta__threads__messages__list/output.py +31 -0
- package/__fixtures__/-2.complex.openai/beta__threads__messages__retrieve/input.json +832 -0
- package/__fixtures__/-2.complex.openai/beta__threads__messages__retrieve/output.py +30 -0
- package/__fixtures__/-2.complex.openai/beta__threads__messages__update/input.json +855 -0
- package/__fixtures__/-2.complex.openai/beta__threads__messages__update/output.py +32 -0
- package/__fixtures__/-2.complex.openai/beta__threads__new_and_run/input.json +1899 -0
- package/__fixtures__/-2.complex.openai/beta__threads__new_and_run/output.py +22 -0
- package/__fixtures__/-2.complex.openai/beta__threads__retrieve/input.json +283 -0
- package/__fixtures__/-2.complex.openai/beta__threads__retrieve/output.py +22 -0
- package/__fixtures__/-2.complex.openai/beta__threads__runs__cancel/input.json +1181 -0
- package/__fixtures__/-2.complex.openai/beta__threads__runs__cancel/output.py +30 -0
- package/__fixtures__/-2.complex.openai/beta__threads__runs__create/input.json +1851 -0
- package/__fixtures__/-2.complex.openai/beta__threads__runs__create/output.py +30 -0
- package/__fixtures__/-2.complex.openai/beta__threads__runs__list/input.json +1285 -0
- package/__fixtures__/-2.complex.openai/beta__threads__runs__list/output.py +31 -0
- package/__fixtures__/-2.complex.openai/beta__threads__runs__retrieve/input.json +1181 -0
- package/__fixtures__/-2.complex.openai/beta__threads__runs__retrieve/output.py +30 -0
- package/__fixtures__/-2.complex.openai/beta__threads__runs__steps__list/input.json +1066 -0
- package/__fixtures__/-2.complex.openai/beta__threads__runs__steps__list/output.py +39 -0
- package/__fixtures__/-2.complex.openai/beta__threads__runs__steps__retrieve/input.json +964 -0
- package/__fixtures__/-2.complex.openai/beta__threads__runs__steps__retrieve/output.py +40 -0
- package/__fixtures__/-2.complex.openai/beta__threads__runs__submit_tool_outputs__create/input.json +1246 -0
- package/__fixtures__/-2.complex.openai/beta__threads__runs__submit_tool_outputs__create/output.py +38 -0
- package/__fixtures__/-2.complex.openai/beta__threads__runs__update/input.json +1204 -0
- package/__fixtures__/-2.complex.openai/beta__threads__runs__update/output.py +32 -0
- package/__fixtures__/-2.complex.openai/beta__threads__update/input.json +315 -0
- package/__fixtures__/-2.complex.openai/beta__threads__update/output.py +24 -0
- package/__fixtures__/-2.complex.openai/chat__completions__create/input.json +3325 -0
- package/__fixtures__/-2.complex.openai/chat__completions__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/chat__completions__delete/input.json +192 -0
- package/__fixtures__/-2.complex.openai/chat__completions__delete/output.py +22 -0
- package/__fixtures__/-2.complex.openai/chat__completions__list/input.json +1069 -0
- package/__fixtures__/-2.complex.openai/chat__completions__list/output.py +23 -0
- package/__fixtures__/-2.complex.openai/chat__completions__messages__list/input.json +770 -0
- package/__fixtures__/-2.complex.openai/chat__completions__messages__list/output.py +31 -0
- package/__fixtures__/-2.complex.openai/chat__completions__retrieve/input.json +938 -0
- package/__fixtures__/-2.complex.openai/chat__completions__retrieve/output.py +22 -0
- package/__fixtures__/-2.complex.openai/chat__completions__update/input.json +973 -0
- package/__fixtures__/-2.complex.openai/chat__completions__update/output.py +22 -0
- package/__fixtures__/-2.complex.openai/completions__create/input.json +788 -0
- package/__fixtures__/-2.complex.openai/completions__create/output.py +16 -0
- package/__fixtures__/-2.complex.openai/containers__create/input.json +671 -0
- package/__fixtures__/-2.complex.openai/containers__create/output.py +16 -0
- package/__fixtures__/-2.complex.openai/containers__delete/input.json +142 -0
- package/__fixtures__/-2.complex.openai/containers__delete/output.py +16 -0
- package/__fixtures__/-2.complex.openai/containers__files__content/input.json +154 -0
- package/__fixtures__/-2.complex.openai/containers__files__content/output.py +24 -0
- package/__fixtures__/-2.complex.openai/containers__files__create/input.json +261 -0
- package/__fixtures__/-2.complex.openai/containers__files__create/output.py +24 -0
- package/__fixtures__/-2.complex.openai/containers__files__delete/input.json +154 -0
- package/__fixtures__/-2.complex.openai/containers__files__delete/output.py +24 -0
- package/__fixtures__/-2.complex.openai/containers__files__list/input.json +337 -0
- package/__fixtures__/-2.complex.openai/containers__files__list/output.py +25 -0
- package/__fixtures__/-2.complex.openai/containers__files__retrieve/input.json +235 -0
- package/__fixtures__/-2.complex.openai/containers__files__retrieve/output.py +24 -0
- package/__fixtures__/-2.complex.openai/containers__list/input.json +438 -0
- package/__fixtures__/-2.complex.openai/containers__list/output.py +17 -0
- package/__fixtures__/-2.complex.openai/containers__retrieve/input.json +329 -0
- package/__fixtures__/-2.complex.openai/containers__retrieve/output.py +16 -0
- package/__fixtures__/-2.complex.openai/conversations__create/input.json +6737 -0
- package/__fixtures__/-2.complex.openai/conversations__create/output.py +16 -0
- package/__fixtures__/-2.complex.openai/conversations__delete/input.json +186 -0
- package/__fixtures__/-2.complex.openai/conversations__delete/output.py +16 -0
- package/__fixtures__/-2.complex.openai/conversations__items__create/input.json +8352 -0
- package/__fixtures__/-2.complex.openai/conversations__items__create/output.py +25 -0
- package/__fixtures__/-2.complex.openai/conversations__items__delete/input.json +213 -0
- package/__fixtures__/-2.complex.openai/conversations__items__delete/output.py +24 -0
- package/__fixtures__/-2.complex.openai/conversations__items__list/input.json +6695 -0
- package/__fixtures__/-2.complex.openai/conversations__items__list/output.py +25 -0
- package/__fixtures__/-2.complex.openai/conversations__items__retrieve/input.json +6597 -0
- package/__fixtures__/-2.complex.openai/conversations__items__retrieve/output.py +26 -0
- package/__fixtures__/-2.complex.openai/conversations__retrieve/input.json +198 -0
- package/__fixtures__/-2.complex.openai/conversations__retrieve/output.py +16 -0
- package/__fixtures__/-2.complex.openai/conversations__update/input.json +233 -0
- package/__fixtures__/-2.complex.openai/conversations__update/output.py +16 -0
- package/__fixtures__/-2.complex.openai/embeddings__create/input.json +395 -0
- package/__fixtures__/-2.complex.openai/embeddings__create/output.py +16 -0
- package/__fixtures__/-2.complex.openai/evals__create/input.json +1424 -0
- package/__fixtures__/-2.complex.openai/evals__create/output.py +16 -0
- package/__fixtures__/-2.complex.openai/evals__delete/input.json +232 -0
- package/__fixtures__/-2.complex.openai/evals__delete/output.py +16 -0
- package/__fixtures__/-2.complex.openai/evals__list/input.json +1251 -0
- package/__fixtures__/-2.complex.openai/evals__list/output.py +17 -0
- package/__fixtures__/-2.complex.openai/evals__retrieve/input.json +1127 -0
- package/__fixtures__/-2.complex.openai/evals__retrieve/output.py +16 -0
- package/__fixtures__/-2.complex.openai/evals__runs__cancel/input.json +4445 -0
- package/__fixtures__/-2.complex.openai/evals__runs__cancel/output.py +24 -0
- package/__fixtures__/-2.complex.openai/evals__runs__create/input.json +4526 -0
- package/__fixtures__/-2.complex.openai/evals__runs__create/output.py +24 -0
- package/__fixtures__/-2.complex.openai/evals__runs__delete/input.json +246 -0
- package/__fixtures__/-2.complex.openai/evals__runs__delete/output.py +24 -0
- package/__fixtures__/-2.complex.openai/evals__runs__list/input.json +4579 -0
- package/__fixtures__/-2.complex.openai/evals__runs__list/output.py +25 -0
- package/__fixtures__/-2.complex.openai/evals__runs__output_items__list/input.json +685 -0
- package/__fixtures__/-2.complex.openai/evals__runs__output_items__list/output.py +33 -0
- package/__fixtures__/-2.complex.openai/evals__runs__output_items__retrieve/input.json +560 -0
- package/__fixtures__/-2.complex.openai/evals__runs__output_items__retrieve/output.py +32 -0
- package/__fixtures__/-2.complex.openai/evals__runs__retrieve/input.json +4445 -0
- package/__fixtures__/-2.complex.openai/evals__runs__retrieve/output.py +24 -0
- package/__fixtures__/-2.complex.openai/evals__update/input.json +1160 -0
- package/__fixtures__/-2.complex.openai/evals__update/output.py +18 -0
- package/__fixtures__/-2.complex.openai/files__content/input.json +151 -0
- package/__fixtures__/-2.complex.openai/files__content/output.py +16 -0
- package/__fixtures__/-2.complex.openai/files__create/input.json +379 -0
- package/__fixtures__/-2.complex.openai/files__create/output.py +16 -0
- package/__fixtures__/-2.complex.openai/files__delete/input.json +184 -0
- package/__fixtures__/-2.complex.openai/files__delete/output.py +16 -0
- package/__fixtures__/-2.complex.openai/files__list/input.json +397 -0
- package/__fixtures__/-2.complex.openai/files__list/output.py +17 -0
- package/__fixtures__/-2.complex.openai/files__retrieve/input.json +295 -0
- package/__fixtures__/-2.complex.openai/files__retrieve/output.py +16 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__alpha__graders__run__create/input.json +1225 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__alpha__graders__run__create/output.py +34 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__alpha__graders__validate__create/input.json +991 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__alpha__graders__validate__create/output.py +32 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__checkpoints__permissions__create/input.json +297 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__checkpoints__permissions__create/output.py +29 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__checkpoints__permissions__delete/input.json +208 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__checkpoints__permissions__delete/output.py +30 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__checkpoints__permissions__list/input.json +325 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__checkpoints__permissions__list/output.py +31 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__jobs__cancel/input.json +1645 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__jobs__cancel/output.py +22 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__jobs__checkpoints__list/input.json +383 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__jobs__checkpoints__list/output.py +31 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__jobs__create/input.json +1887 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__jobs__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__jobs__list/input.json +1714 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__jobs__list/output.py +23 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__jobs__list_events/input.json +330 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__jobs__list_events/output.py +25 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__jobs__pause/input.json +1645 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__jobs__pause/output.py +22 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__jobs__resume/input.json +1645 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__jobs__resume/output.py +22 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__jobs__retrieve/input.json +1645 -0
- package/__fixtures__/-2.complex.openai/fine_tuning__jobs__retrieve/output.py +22 -0
- package/__fixtures__/-2.complex.openai/images__edits__create/input.json +744 -0
- package/__fixtures__/-2.complex.openai/images__edits__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/images__generations__create/input.json +789 -0
- package/__fixtures__/-2.complex.openai/images__generations__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/images__variations__create/input.json +550 -0
- package/__fixtures__/-2.complex.openai/images__variations__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/models__delete/input.json +184 -0
- package/__fixtures__/-2.complex.openai/models__delete/output.py +16 -0
- package/__fixtures__/-2.complex.openai/models__list/input.json +221 -0
- package/__fixtures__/-2.complex.openai/models__list/output.py +15 -0
- package/__fixtures__/-2.complex.openai/models__retrieve/input.json +199 -0
- package/__fixtures__/-2.complex.openai/models__retrieve/output.py +16 -0
- package/__fixtures__/-2.complex.openai/moderations__create/input.json +831 -0
- package/__fixtures__/-2.complex.openai/moderations__create/output.py +16 -0
- package/__fixtures__/-2.complex.openai/projects__groups__roles__create/input.json +368 -0
- package/__fixtures__/-2.complex.openai/projects__groups__roles__create/output.py +30 -0
- package/__fixtures__/-2.complex.openai/projects__groups__roles__delete/input.json +214 -0
- package/__fixtures__/-2.complex.openai/projects__groups__roles__delete/output.py +32 -0
- package/__fixtures__/-2.complex.openai/projects__groups__roles__list/input.json +402 -0
- package/__fixtures__/-2.complex.openai/projects__groups__roles__list/output.py +33 -0
- package/__fixtures__/-2.complex.openai/projects__roles__create/input.json +289 -0
- package/__fixtures__/-2.complex.openai/projects__roles__create/output.py +24 -0
- package/__fixtures__/-2.complex.openai/projects__roles__delete/input.json +210 -0
- package/__fixtures__/-2.complex.openai/projects__roles__delete/output.py +24 -0
- package/__fixtures__/-2.complex.openai/projects__roles__list/input.json +344 -0
- package/__fixtures__/-2.complex.openai/projects__roles__list/output.py +25 -0
- package/__fixtures__/-2.complex.openai/projects__roles__update/input.json +300 -0
- package/__fixtures__/-2.complex.openai/projects__roles__update/output.py +26 -0
- package/__fixtures__/-2.complex.openai/projects__users__roles__create/input.json +615 -0
- package/__fixtures__/-2.complex.openai/projects__users__roles__create/output.py +30 -0
- package/__fixtures__/-2.complex.openai/projects__users__roles__delete/input.json +214 -0
- package/__fixtures__/-2.complex.openai/projects__users__roles__delete/output.py +32 -0
- package/__fixtures__/-2.complex.openai/projects__users__roles__list/input.json +402 -0
- package/__fixtures__/-2.complex.openai/projects__users__roles__list/output.py +33 -0
- package/__fixtures__/-2.complex.openai/realtime__calls__accept/input.json +1768 -0
- package/__fixtures__/-2.complex.openai/realtime__calls__accept/output.py +24 -0
- package/__fixtures__/-2.complex.openai/realtime__calls__create/input.json +1790 -0
- package/__fixtures__/-2.complex.openai/realtime__calls__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/realtime__calls__hangup/input.json +147 -0
- package/__fixtures__/-2.complex.openai/realtime__calls__hangup/output.py +22 -0
- package/__fixtures__/-2.complex.openai/realtime__calls__refer/input.json +175 -0
- package/__fixtures__/-2.complex.openai/realtime__calls__refer/output.py +22 -0
- package/__fixtures__/-2.complex.openai/realtime__calls__reject/input.json +175 -0
- package/__fixtures__/-2.complex.openai/realtime__calls__reject/output.py +24 -0
- package/__fixtures__/-2.complex.openai/realtime__client_secrets__create/input.json +2407 -0
- package/__fixtures__/-2.complex.openai/realtime__client_secrets__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/realtime__sessions__create/input.json +1400 -0
- package/__fixtures__/-2.complex.openai/realtime__sessions__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/realtime__transcription_sessions__create/input.json +562 -0
- package/__fixtures__/-2.complex.openai/realtime__transcription_sessions__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/realtime__translations__client_secrets__create/input.json +498 -0
- package/__fixtures__/-2.complex.openai/realtime__translations__client_secrets__create/output.py +28 -0
- package/__fixtures__/-2.complex.openai/responses__cancel/input.json +9526 -0
- package/__fixtures__/-2.complex.openai/responses__cancel/output.py +16 -0
- package/__fixtures__/-2.complex.openai/responses__compact__create/input.json +8721 -0
- package/__fixtures__/-2.complex.openai/responses__compact__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/responses__create/input.json +9862 -0
- package/__fixtures__/-2.complex.openai/responses__create/output.py +16 -0
- package/__fixtures__/-2.complex.openai/responses__delete/input.json +194 -0
- package/__fixtures__/-2.complex.openai/responses__delete/output.py +16 -0
- package/__fixtures__/-2.complex.openai/responses__input_items__list/input.json +6686 -0
- package/__fixtures__/-2.complex.openai/responses__input_items__list/output.py +25 -0
- package/__fixtures__/-2.complex.openai/responses__input_tokens__count/input.json +7368 -0
- package/__fixtures__/-2.complex.openai/responses__input_tokens__count/output.py +22 -0
- package/__fixtures__/-2.complex.openai/responses__retrieve/input.json +9550 -0
- package/__fixtures__/-2.complex.openai/responses__retrieve/output.py +18 -0
- package/__fixtures__/-2.complex.openai/skills__content/input.json +152 -0
- package/__fixtures__/-2.complex.openai/skills__content/output.py +16 -0
- package/__fixtures__/-2.complex.openai/skills__create/input.json +258 -0
- package/__fixtures__/-2.complex.openai/skills__create/output.py +14 -0
- package/__fixtures__/-2.complex.openai/skills__delete/input.json +186 -0
- package/__fixtures__/-2.complex.openai/skills__delete/output.py +16 -0
- package/__fixtures__/-2.complex.openai/skills__list/input.json +323 -0
- package/__fixtures__/-2.complex.openai/skills__list/output.py +17 -0
- package/__fixtures__/-2.complex.openai/skills__retrieve/input.json +226 -0
- package/__fixtures__/-2.complex.openai/skills__retrieve/output.py +16 -0
- package/__fixtures__/-2.complex.openai/skills__update/input.json +251 -0
- package/__fixtures__/-2.complex.openai/skills__update/output.py +16 -0
- package/__fixtures__/-2.complex.openai/skills__versions__content/input.json +166 -0
- package/__fixtures__/-2.complex.openai/skills__versions__content/output.py +24 -0
- package/__fixtures__/-2.complex.openai/skills__versions__create/input.json +284 -0
- package/__fixtures__/-2.complex.openai/skills__versions__create/output.py +24 -0
- package/__fixtures__/-2.complex.openai/skills__versions__delete/input.json +209 -0
- package/__fixtures__/-2.complex.openai/skills__versions__delete/output.py +24 -0
- package/__fixtures__/-2.complex.openai/skills__versions__list/input.json +341 -0
- package/__fixtures__/-2.complex.openai/skills__versions__list/output.py +25 -0
- package/__fixtures__/-2.complex.openai/skills__versions__retrieve/input.json +240 -0
- package/__fixtures__/-2.complex.openai/skills__versions__retrieve/output.py +24 -0
- package/__fixtures__/-2.complex.openai/uploads__cancel/input.json +407 -0
- package/__fixtures__/-2.complex.openai/uploads__cancel/output.py +16 -0
- package/__fixtures__/-2.complex.openai/uploads__complete/input.json +443 -0
- package/__fixtures__/-2.complex.openai/uploads__complete/output.py +18 -0
- package/__fixtures__/-2.complex.openai/uploads__create/input.json +501 -0
- package/__fixtures__/-2.complex.openai/uploads__create/output.py +16 -0
- package/__fixtures__/-2.complex.openai/uploads__parts__create/input.json +229 -0
- package/__fixtures__/-2.complex.openai/uploads__parts__create/output.py +24 -0
- package/__fixtures__/-2.complex.openai/vector_stores__create/input.json +507 -0
- package/__fixtures__/-2.complex.openai/vector_stores__create/output.py +16 -0
- package/__fixtures__/-2.complex.openai/vector_stores__delete/input.json +184 -0
- package/__fixtures__/-2.complex.openai/vector_stores__delete/output.py +16 -0
- package/__fixtures__/-2.complex.openai/vector_stores__file_batches__cancel/input.json +300 -0
- package/__fixtures__/-2.complex.openai/vector_stores__file_batches__cancel/output.py +24 -0
- package/__fixtures__/-2.complex.openai/vector_stores__file_batches__create/input.json +314 -0
- package/__fixtures__/-2.complex.openai/vector_stores__file_batches__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/vector_stores__file_batches__list_files/input.json +571 -0
- package/__fixtures__/-2.complex.openai/vector_stores__file_batches__list_files/output.py +27 -0
- package/__fixtures__/-2.complex.openai/vector_stores__file_batches__retrieve/input.json +302 -0
- package/__fixtures__/-2.complex.openai/vector_stores__file_batches__retrieve/output.py +24 -0
- package/__fixtures__/-2.complex.openai/vector_stores__files__content/input.json +249 -0
- package/__fixtures__/-2.complex.openai/vector_stores__files__content/output.py +25 -0
- package/__fixtures__/-2.complex.openai/vector_stores__files__create/input.json +527 -0
- package/__fixtures__/-2.complex.openai/vector_stores__files__create/output.py +24 -0
- package/__fixtures__/-2.complex.openai/vector_stores__files__delete/input.json +198 -0
- package/__fixtures__/-2.complex.openai/vector_stores__files__delete/output.py +24 -0
- package/__fixtures__/-2.complex.openai/vector_stores__files__list/input.json +562 -0
- package/__fixtures__/-2.complex.openai/vector_stores__files__list/output.py +25 -0
- package/__fixtures__/-2.complex.openai/vector_stores__files__retrieve/input.json +432 -0
- package/__fixtures__/-2.complex.openai/vector_stores__files__retrieve/output.py +24 -0
- package/__fixtures__/-2.complex.openai/vector_stores__files__update/input.json +455 -0
- package/__fixtures__/-2.complex.openai/vector_stores__files__update/output.py +24 -0
- package/__fixtures__/-2.complex.openai/vector_stores__list/input.json +468 -0
- package/__fixtures__/-2.complex.openai/vector_stores__list/output.py +17 -0
- package/__fixtures__/-2.complex.openai/vector_stores__retrieve/input.json +366 -0
- package/__fixtures__/-2.complex.openai/vector_stores__retrieve/output.py +16 -0
- package/__fixtures__/-2.complex.openai/vector_stores__search/input.json +637 -0
- package/__fixtures__/-2.complex.openai/vector_stores__search/output.py +19 -0
- package/__fixtures__/-2.complex.openai/vector_stores__update/input.json +409 -0
- package/__fixtures__/-2.complex.openai/vector_stores__update/output.py +18 -0
- package/__fixtures__/-2.complex.openai/videos__characters__create/input.json +216 -0
- package/__fixtures__/-2.complex.openai/videos__characters__create/output.py +22 -0
- package/__fixtures__/-2.complex.openai/videos__characters__retrieve/input.json +193 -0
- package/__fixtures__/-2.complex.openai/videos__characters__retrieve/output.py +22 -0
- package/__fixtures__/-2.complex.openai/videos__create/input.json +465 -0
- package/__fixtures__/-2.complex.openai/videos__create/output.py +16 -0
- package/__fixtures__/-2.complex.openai/videos__delete/input.json +190 -0
- package/__fixtures__/-2.complex.openai/videos__delete/output.py +16 -0
- package/__fixtures__/-2.complex.openai/videos__download_content/input.json +181 -0
- package/__fixtures__/-2.complex.openai/videos__download_content/output.py +18 -0
- package/__fixtures__/-2.complex.openai/videos__edits__create/input.json +422 -0
- package/__fixtures__/-2.complex.openai/videos__edits__create/output.py +20 -0
- package/__fixtures__/-2.complex.openai/videos__extensions__create/input.json +446 -0
- package/__fixtures__/-2.complex.openai/videos__extensions__create/output.py +20 -0
- package/__fixtures__/-2.complex.openai/videos__list/input.json +477 -0
- package/__fixtures__/-2.complex.openai/videos__list/output.py +17 -0
- package/__fixtures__/-2.complex.openai/videos__remix/input.json +405 -0
- package/__fixtures__/-2.complex.openai/videos__remix/output.py +16 -0
- package/__fixtures__/-2.complex.openai/videos__retrieve/input.json +380 -0
- package/__fixtures__/-2.complex.openai/videos__retrieve/output.py +16 -0
- package/__fixtures__/1.basic/input.json +249 -0
- package/__fixtures__/1.basic/output/petstore/__init__.py +6 -0
- package/__fixtures__/1.basic/output/petstore/_client.py +21 -0
- package/__fixtures__/1.basic/output/petstore/_pagination.py +42 -0
- package/__fixtures__/1.basic/output/petstore/_transport.py +391 -0
- package/__fixtures__/1.basic/output/petstore/models.py +33 -0
- package/__fixtures__/1.basic/output/petstore/resources.py +25 -0
- package/__fixtures__/1.basic/output/pyproject.toml +12 -0
- package/__fixtures__/1.basic/output/tests/conftest.py +16 -0
- package/__fixtures__/1.basic/output/tests/test_pets.py +36 -0
- package/__fixtures__/1.basic/output/tests/utils.py +28 -0
- package/__fixtures__/2.wire/input.json +351 -0
- package/__fixtures__/2.wire/output/pyproject.toml +12 -0
- package/__fixtures__/2.wire/output/tests/conftest.py +16 -0
- package/__fixtures__/2.wire/output/tests/test_items.py +18 -0
- package/__fixtures__/2.wire/output/tests/test_tokens.py +17 -0
- package/__fixtures__/2.wire/output/tests/test_uploads.py +27 -0
- package/__fixtures__/2.wire/output/tests/utils.py +28 -0
- package/__fixtures__/2.wire/output/wire_service/__init__.py +6 -0
- package/__fixtures__/2.wire/output/wire_service/_client.py +23 -0
- package/__fixtures__/2.wire/output/wire_service/_pagination.py +42 -0
- package/__fixtures__/2.wire/output/wire_service/_transport.py +391 -0
- package/__fixtures__/2.wire/output/wire_service/models.py +44 -0
- package/__fixtures__/2.wire/output/wire_service/resources.py +38 -0
- package/__tests__/docs.test.ts +115 -0
- package/__tests__/e2e/harness.ts +79 -0
- package/__tests__/e2e/openai.test.ts +14 -0
- package/__tests__/e2e/publish.test.ts +19 -0
- package/__tests__/opensdk-python.test.ts +134 -0
- package/__tests__/utils.ts +117 -0
- package/biome.json +25 -0
- package/dist/index.cjs +1274 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +32 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.js +1246 -0
- package/dist/index.js.map +1 -0
- package/index.ts +1 -0
- package/package.json +30 -0
- package/src/emitter.ts +95 -0
- package/src/example-py.ts +60 -0
- package/src/index.ts +4 -0
- package/src/method.ts +13 -0
- package/src/naming.ts +45 -0
- package/src/project.ts +446 -0
- package/src/publish.ts +22 -0
- package/src/pytype.ts +86 -0
- package/src/runtime.ts +551 -0
- package/src/tests-py.ts +197 -0
- package/src/types.ts +8 -0
- package/tsconfig.json +18 -0
- package/tsup.config.ts +19 -0
- package/vitest.config.ts +8 -0
package/__fixtures__/-2.complex.openai/beta__threads__runs__submit_tool_outputs__create/input.json
ADDED
|
@@ -0,0 +1,1246 @@
|
|
|
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": "SubmitToolOutputsRunRequest",
|
|
29
|
+
"kind": "struct",
|
|
30
|
+
"fields": [
|
|
31
|
+
{
|
|
32
|
+
"name": "tool_outputs",
|
|
33
|
+
"type": {
|
|
34
|
+
"kind": "array",
|
|
35
|
+
"items": {
|
|
36
|
+
"kind": "ref",
|
|
37
|
+
"name": "SubmitToolOutputsRunRequestToolOutputsItem"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"required": true,
|
|
41
|
+
"description": "A list of tools for which the outputs are being submitted."
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "stream",
|
|
45
|
+
"type": {
|
|
46
|
+
"kind": "scalar",
|
|
47
|
+
"scalar": "boolean",
|
|
48
|
+
"nullable": true
|
|
49
|
+
},
|
|
50
|
+
"required": false
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "SubmitToolOutputsRunRequestToolOutputsItem",
|
|
56
|
+
"kind": "struct",
|
|
57
|
+
"fields": [
|
|
58
|
+
{
|
|
59
|
+
"name": "tool_call_id",
|
|
60
|
+
"type": {
|
|
61
|
+
"kind": "scalar",
|
|
62
|
+
"scalar": "string"
|
|
63
|
+
},
|
|
64
|
+
"required": false,
|
|
65
|
+
"description": "The ID of the tool call in the `required_action` object within the run object the output is being submitted for."
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "output",
|
|
69
|
+
"type": {
|
|
70
|
+
"kind": "scalar",
|
|
71
|
+
"scalar": "string"
|
|
72
|
+
},
|
|
73
|
+
"required": false,
|
|
74
|
+
"description": "The output of the tool call to be submitted to continue the run."
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "RunObject",
|
|
80
|
+
"kind": "struct",
|
|
81
|
+
"fields": [
|
|
82
|
+
{
|
|
83
|
+
"name": "id",
|
|
84
|
+
"type": {
|
|
85
|
+
"kind": "scalar",
|
|
86
|
+
"scalar": "string"
|
|
87
|
+
},
|
|
88
|
+
"required": true,
|
|
89
|
+
"description": "The identifier, which can be referenced in API endpoints."
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "object",
|
|
93
|
+
"type": {
|
|
94
|
+
"kind": "scalar",
|
|
95
|
+
"scalar": "string",
|
|
96
|
+
"const": "thread.run"
|
|
97
|
+
},
|
|
98
|
+
"required": true,
|
|
99
|
+
"description": "The object type, which is always `thread.run`."
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "created_at",
|
|
103
|
+
"type": {
|
|
104
|
+
"kind": "scalar",
|
|
105
|
+
"scalar": "integer",
|
|
106
|
+
"format": "unixtime"
|
|
107
|
+
},
|
|
108
|
+
"required": true,
|
|
109
|
+
"description": "The Unix timestamp (in seconds) for when the run was created."
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"name": "thread_id",
|
|
113
|
+
"type": {
|
|
114
|
+
"kind": "scalar",
|
|
115
|
+
"scalar": "string"
|
|
116
|
+
},
|
|
117
|
+
"required": true,
|
|
118
|
+
"description": "The ID of the [thread](/docs/api-reference/threads) that was executed on as a part of this run."
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "assistant_id",
|
|
122
|
+
"type": {
|
|
123
|
+
"kind": "scalar",
|
|
124
|
+
"scalar": "string"
|
|
125
|
+
},
|
|
126
|
+
"required": true,
|
|
127
|
+
"description": "The ID of the [assistant](/docs/api-reference/assistants) used for execution of this run."
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"name": "status",
|
|
131
|
+
"type": {
|
|
132
|
+
"kind": "ref",
|
|
133
|
+
"name": "RunObjectStatus"
|
|
134
|
+
},
|
|
135
|
+
"required": true,
|
|
136
|
+
"description": "The status of the run, which can be either `queued`, `in_progress`, `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`, `incomplete`, or `expired`."
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "required_action",
|
|
140
|
+
"type": {
|
|
141
|
+
"kind": "ref",
|
|
142
|
+
"name": "RunObjectRequiredAction",
|
|
143
|
+
"nullable": true
|
|
144
|
+
},
|
|
145
|
+
"required": true,
|
|
146
|
+
"nullable": true,
|
|
147
|
+
"description": "Details on the action required to continue the run. Will be `null` if no action is required."
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"name": "last_error",
|
|
151
|
+
"type": {
|
|
152
|
+
"kind": "ref",
|
|
153
|
+
"name": "RunObjectLastError",
|
|
154
|
+
"nullable": true
|
|
155
|
+
},
|
|
156
|
+
"required": true,
|
|
157
|
+
"nullable": true,
|
|
158
|
+
"description": "The last error associated with this run. Will be `null` if there are no errors."
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "expires_at",
|
|
162
|
+
"type": {
|
|
163
|
+
"kind": "scalar",
|
|
164
|
+
"scalar": "integer",
|
|
165
|
+
"format": "unixtime",
|
|
166
|
+
"nullable": true
|
|
167
|
+
},
|
|
168
|
+
"required": true,
|
|
169
|
+
"nullable": true,
|
|
170
|
+
"description": "The Unix timestamp (in seconds) for when the run will expire."
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "started_at",
|
|
174
|
+
"type": {
|
|
175
|
+
"kind": "scalar",
|
|
176
|
+
"scalar": "integer",
|
|
177
|
+
"format": "unixtime",
|
|
178
|
+
"nullable": true
|
|
179
|
+
},
|
|
180
|
+
"required": true,
|
|
181
|
+
"nullable": true,
|
|
182
|
+
"description": "The Unix timestamp (in seconds) for when the run was started."
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "cancelled_at",
|
|
186
|
+
"type": {
|
|
187
|
+
"kind": "scalar",
|
|
188
|
+
"scalar": "integer",
|
|
189
|
+
"format": "unixtime",
|
|
190
|
+
"nullable": true
|
|
191
|
+
},
|
|
192
|
+
"required": true,
|
|
193
|
+
"nullable": true,
|
|
194
|
+
"description": "The Unix timestamp (in seconds) for when the run was cancelled."
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"name": "failed_at",
|
|
198
|
+
"type": {
|
|
199
|
+
"kind": "scalar",
|
|
200
|
+
"scalar": "integer",
|
|
201
|
+
"format": "unixtime",
|
|
202
|
+
"nullable": true
|
|
203
|
+
},
|
|
204
|
+
"required": true,
|
|
205
|
+
"nullable": true,
|
|
206
|
+
"description": "The Unix timestamp (in seconds) for when the run failed."
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "completed_at",
|
|
210
|
+
"type": {
|
|
211
|
+
"kind": "scalar",
|
|
212
|
+
"scalar": "integer",
|
|
213
|
+
"format": "unixtime",
|
|
214
|
+
"nullable": true
|
|
215
|
+
},
|
|
216
|
+
"required": true,
|
|
217
|
+
"nullable": true,
|
|
218
|
+
"description": "The Unix timestamp (in seconds) for when the run was completed."
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"name": "incomplete_details",
|
|
222
|
+
"type": {
|
|
223
|
+
"kind": "ref",
|
|
224
|
+
"name": "RunObjectIncompleteDetails",
|
|
225
|
+
"nullable": true
|
|
226
|
+
},
|
|
227
|
+
"required": true,
|
|
228
|
+
"nullable": true,
|
|
229
|
+
"description": "Details on why the run is incomplete. Will be `null` if the run is not incomplete."
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"name": "model",
|
|
233
|
+
"type": {
|
|
234
|
+
"kind": "scalar",
|
|
235
|
+
"scalar": "string"
|
|
236
|
+
},
|
|
237
|
+
"required": true,
|
|
238
|
+
"description": "The model that the [assistant](/docs/api-reference/assistants) used for this run."
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"name": "instructions",
|
|
242
|
+
"type": {
|
|
243
|
+
"kind": "scalar",
|
|
244
|
+
"scalar": "string"
|
|
245
|
+
},
|
|
246
|
+
"required": true,
|
|
247
|
+
"description": "The instructions that the [assistant](/docs/api-reference/assistants) used for this run."
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"name": "tools",
|
|
251
|
+
"type": {
|
|
252
|
+
"kind": "array",
|
|
253
|
+
"items": {
|
|
254
|
+
"kind": "ref",
|
|
255
|
+
"name": "RunObjectToolsItem"
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"required": true,
|
|
259
|
+
"default": [],
|
|
260
|
+
"description": "The list of tools that the [assistant](/docs/api-reference/assistants) used for this run."
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"name": "metadata",
|
|
264
|
+
"type": {
|
|
265
|
+
"kind": "ref",
|
|
266
|
+
"name": "Metadata"
|
|
267
|
+
},
|
|
268
|
+
"required": true
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"name": "usage",
|
|
272
|
+
"type": {
|
|
273
|
+
"kind": "ref",
|
|
274
|
+
"name": "RunCompletionUsage"
|
|
275
|
+
},
|
|
276
|
+
"required": true
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"name": "temperature",
|
|
280
|
+
"type": {
|
|
281
|
+
"kind": "scalar",
|
|
282
|
+
"scalar": "number",
|
|
283
|
+
"nullable": true
|
|
284
|
+
},
|
|
285
|
+
"required": false,
|
|
286
|
+
"nullable": true,
|
|
287
|
+
"description": "The sampling temperature used for this run. If not set, defaults to 1."
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"name": "top_p",
|
|
291
|
+
"type": {
|
|
292
|
+
"kind": "scalar",
|
|
293
|
+
"scalar": "number",
|
|
294
|
+
"nullable": true
|
|
295
|
+
},
|
|
296
|
+
"required": false,
|
|
297
|
+
"nullable": true,
|
|
298
|
+
"description": "The nucleus sampling value used for this run. If not set, defaults to 1."
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"name": "max_prompt_tokens",
|
|
302
|
+
"type": {
|
|
303
|
+
"kind": "scalar",
|
|
304
|
+
"scalar": "integer",
|
|
305
|
+
"nullable": true
|
|
306
|
+
},
|
|
307
|
+
"required": true,
|
|
308
|
+
"nullable": true,
|
|
309
|
+
"description": "The maximum number of prompt tokens specified to have been used over the course of the run.\n"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"name": "max_completion_tokens",
|
|
313
|
+
"type": {
|
|
314
|
+
"kind": "scalar",
|
|
315
|
+
"scalar": "integer",
|
|
316
|
+
"nullable": true
|
|
317
|
+
},
|
|
318
|
+
"required": true,
|
|
319
|
+
"nullable": true,
|
|
320
|
+
"description": "The maximum number of completion tokens specified to have been used over the course of the run.\n"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"name": "truncation_strategy",
|
|
324
|
+
"type": {
|
|
325
|
+
"kind": "ref",
|
|
326
|
+
"name": "TruncationObject",
|
|
327
|
+
"nullable": true
|
|
328
|
+
},
|
|
329
|
+
"required": true
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"name": "tool_choice",
|
|
333
|
+
"type": {
|
|
334
|
+
"kind": "ref",
|
|
335
|
+
"name": "AssistantsApiToolChoiceOption",
|
|
336
|
+
"nullable": true
|
|
337
|
+
},
|
|
338
|
+
"required": true
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"name": "parallel_tool_calls",
|
|
342
|
+
"type": {
|
|
343
|
+
"kind": "ref",
|
|
344
|
+
"name": "ParallelToolCalls"
|
|
345
|
+
},
|
|
346
|
+
"required": true
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"name": "response_format",
|
|
350
|
+
"type": {
|
|
351
|
+
"kind": "ref",
|
|
352
|
+
"name": "AssistantsApiResponseFormatOption"
|
|
353
|
+
},
|
|
354
|
+
"required": true
|
|
355
|
+
}
|
|
356
|
+
],
|
|
357
|
+
"description": "Represents an execution run on a [thread](/docs/api-reference/threads)."
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"name": "RunObjectStatus",
|
|
361
|
+
"kind": "enum",
|
|
362
|
+
"base": "string",
|
|
363
|
+
"values": [
|
|
364
|
+
{
|
|
365
|
+
"value": "queued"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"value": "in_progress"
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"value": "requires_action"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"value": "cancelling"
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"value": "cancelled"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"value": "failed"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"value": "completed"
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"value": "incomplete"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"value": "expired"
|
|
390
|
+
}
|
|
391
|
+
],
|
|
392
|
+
"description": "The status of the run, which can be either `queued`, `in_progress`, `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`, `incomplete`, or `expired`."
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"name": "RunObjectRequiredAction",
|
|
396
|
+
"kind": "struct",
|
|
397
|
+
"fields": [
|
|
398
|
+
{
|
|
399
|
+
"name": "type",
|
|
400
|
+
"type": {
|
|
401
|
+
"kind": "scalar",
|
|
402
|
+
"scalar": "string",
|
|
403
|
+
"const": "submit_tool_outputs"
|
|
404
|
+
},
|
|
405
|
+
"required": true,
|
|
406
|
+
"description": "For now, this is always `submit_tool_outputs`."
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
"name": "submit_tool_outputs",
|
|
410
|
+
"type": {
|
|
411
|
+
"kind": "ref",
|
|
412
|
+
"name": "RunObjectRequiredActionSubmitToolOutputs"
|
|
413
|
+
},
|
|
414
|
+
"required": true,
|
|
415
|
+
"description": "Details on the tool outputs needed for this run to continue."
|
|
416
|
+
}
|
|
417
|
+
],
|
|
418
|
+
"description": "Details on the action required to continue the run. Will be `null` if no action is required."
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"name": "RunObjectRequiredActionSubmitToolOutputs",
|
|
422
|
+
"kind": "struct",
|
|
423
|
+
"fields": [
|
|
424
|
+
{
|
|
425
|
+
"name": "tool_calls",
|
|
426
|
+
"type": {
|
|
427
|
+
"kind": "array",
|
|
428
|
+
"items": {
|
|
429
|
+
"kind": "ref",
|
|
430
|
+
"name": "RunToolCallObject"
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
"required": true,
|
|
434
|
+
"description": "A list of the relevant tool calls."
|
|
435
|
+
}
|
|
436
|
+
],
|
|
437
|
+
"description": "Details on the tool outputs needed for this run to continue."
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"name": "RunToolCallObject",
|
|
441
|
+
"kind": "struct",
|
|
442
|
+
"fields": [
|
|
443
|
+
{
|
|
444
|
+
"name": "id",
|
|
445
|
+
"type": {
|
|
446
|
+
"kind": "scalar",
|
|
447
|
+
"scalar": "string"
|
|
448
|
+
},
|
|
449
|
+
"required": true,
|
|
450
|
+
"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."
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
"name": "type",
|
|
454
|
+
"type": {
|
|
455
|
+
"kind": "scalar",
|
|
456
|
+
"scalar": "string",
|
|
457
|
+
"const": "function"
|
|
458
|
+
},
|
|
459
|
+
"required": true,
|
|
460
|
+
"description": "The type of tool call the output is required for. For now, this is always `function`."
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"name": "function",
|
|
464
|
+
"type": {
|
|
465
|
+
"kind": "ref",
|
|
466
|
+
"name": "RunToolCallObjectFunction"
|
|
467
|
+
},
|
|
468
|
+
"required": true,
|
|
469
|
+
"description": "The function definition."
|
|
470
|
+
}
|
|
471
|
+
],
|
|
472
|
+
"description": "Tool call objects"
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"name": "RunToolCallObjectFunction",
|
|
476
|
+
"kind": "struct",
|
|
477
|
+
"fields": [
|
|
478
|
+
{
|
|
479
|
+
"name": "name",
|
|
480
|
+
"type": {
|
|
481
|
+
"kind": "scalar",
|
|
482
|
+
"scalar": "string"
|
|
483
|
+
},
|
|
484
|
+
"required": true,
|
|
485
|
+
"description": "The name of the function."
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"name": "arguments",
|
|
489
|
+
"type": {
|
|
490
|
+
"kind": "scalar",
|
|
491
|
+
"scalar": "string"
|
|
492
|
+
},
|
|
493
|
+
"required": true,
|
|
494
|
+
"description": "The arguments that the model expects you to pass to the function."
|
|
495
|
+
}
|
|
496
|
+
],
|
|
497
|
+
"description": "The function definition."
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"name": "RunObjectLastError",
|
|
501
|
+
"kind": "struct",
|
|
502
|
+
"fields": [
|
|
503
|
+
{
|
|
504
|
+
"name": "code",
|
|
505
|
+
"type": {
|
|
506
|
+
"kind": "ref",
|
|
507
|
+
"name": "RunObjectLastErrorCode"
|
|
508
|
+
},
|
|
509
|
+
"required": true,
|
|
510
|
+
"description": "One of `server_error`, `rate_limit_exceeded`, or `invalid_prompt`."
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
"name": "message",
|
|
514
|
+
"type": {
|
|
515
|
+
"kind": "scalar",
|
|
516
|
+
"scalar": "string"
|
|
517
|
+
},
|
|
518
|
+
"required": true,
|
|
519
|
+
"description": "A human-readable description of the error."
|
|
520
|
+
}
|
|
521
|
+
],
|
|
522
|
+
"description": "The last error associated with this run. Will be `null` if there are no errors."
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"name": "RunObjectLastErrorCode",
|
|
526
|
+
"kind": "enum",
|
|
527
|
+
"base": "string",
|
|
528
|
+
"values": [
|
|
529
|
+
{
|
|
530
|
+
"value": "server_error"
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
"value": "rate_limit_exceeded"
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
"value": "invalid_prompt"
|
|
537
|
+
}
|
|
538
|
+
],
|
|
539
|
+
"description": "One of `server_error`, `rate_limit_exceeded`, or `invalid_prompt`."
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"name": "RunObjectIncompleteDetails",
|
|
543
|
+
"kind": "struct",
|
|
544
|
+
"fields": [
|
|
545
|
+
{
|
|
546
|
+
"name": "reason",
|
|
547
|
+
"type": {
|
|
548
|
+
"kind": "ref",
|
|
549
|
+
"name": "RunObjectIncompleteDetailsReason"
|
|
550
|
+
},
|
|
551
|
+
"required": false,
|
|
552
|
+
"description": "The reason why the run is incomplete. This will point to which specific token limit was reached over the course of the run."
|
|
553
|
+
}
|
|
554
|
+
],
|
|
555
|
+
"description": "Details on why the run is incomplete. Will be `null` if the run is not incomplete."
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"name": "RunObjectIncompleteDetailsReason",
|
|
559
|
+
"kind": "enum",
|
|
560
|
+
"base": "string",
|
|
561
|
+
"values": [
|
|
562
|
+
{
|
|
563
|
+
"value": "max_completion_tokens"
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
"value": "max_prompt_tokens"
|
|
567
|
+
}
|
|
568
|
+
],
|
|
569
|
+
"description": "The reason why the run is incomplete. This will point to which specific token limit was reached over the course of the run."
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"name": "RunObjectToolsItem",
|
|
573
|
+
"kind": "union",
|
|
574
|
+
"semantics": "oneOf",
|
|
575
|
+
"variants": [
|
|
576
|
+
{
|
|
577
|
+
"kind": "ref",
|
|
578
|
+
"name": "AssistantToolsCode"
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
"kind": "ref",
|
|
582
|
+
"name": "AssistantToolsFileSearch"
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
"kind": "ref",
|
|
586
|
+
"name": "AssistantToolsFunction"
|
|
587
|
+
}
|
|
588
|
+
]
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"name": "AssistantToolsCode",
|
|
592
|
+
"kind": "struct",
|
|
593
|
+
"fields": [
|
|
594
|
+
{
|
|
595
|
+
"name": "type",
|
|
596
|
+
"type": {
|
|
597
|
+
"kind": "scalar",
|
|
598
|
+
"scalar": "string",
|
|
599
|
+
"const": "code_interpreter"
|
|
600
|
+
},
|
|
601
|
+
"required": true,
|
|
602
|
+
"description": "The type of tool being defined: `code_interpreter`"
|
|
603
|
+
}
|
|
604
|
+
]
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
"name": "AssistantToolsFileSearch",
|
|
608
|
+
"kind": "struct",
|
|
609
|
+
"fields": [
|
|
610
|
+
{
|
|
611
|
+
"name": "type",
|
|
612
|
+
"type": {
|
|
613
|
+
"kind": "scalar",
|
|
614
|
+
"scalar": "string",
|
|
615
|
+
"const": "file_search"
|
|
616
|
+
},
|
|
617
|
+
"required": true,
|
|
618
|
+
"description": "The type of tool being defined: `file_search`"
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
"name": "file_search",
|
|
622
|
+
"type": {
|
|
623
|
+
"kind": "ref",
|
|
624
|
+
"name": "AssistantToolsFileSearchFileSearch"
|
|
625
|
+
},
|
|
626
|
+
"required": false,
|
|
627
|
+
"description": "Overrides for the file search tool."
|
|
628
|
+
}
|
|
629
|
+
]
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
"name": "AssistantToolsFileSearchFileSearch",
|
|
633
|
+
"kind": "struct",
|
|
634
|
+
"fields": [
|
|
635
|
+
{
|
|
636
|
+
"name": "max_num_results",
|
|
637
|
+
"type": {
|
|
638
|
+
"kind": "scalar",
|
|
639
|
+
"scalar": "integer"
|
|
640
|
+
},
|
|
641
|
+
"required": false,
|
|
642
|
+
"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"
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
"name": "ranking_options",
|
|
646
|
+
"type": {
|
|
647
|
+
"kind": "ref",
|
|
648
|
+
"name": "FileSearchRankingOptions"
|
|
649
|
+
},
|
|
650
|
+
"required": false
|
|
651
|
+
}
|
|
652
|
+
],
|
|
653
|
+
"description": "Overrides for the file search tool."
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
"name": "FileSearchRankingOptions",
|
|
657
|
+
"kind": "struct",
|
|
658
|
+
"fields": [
|
|
659
|
+
{
|
|
660
|
+
"name": "ranker",
|
|
661
|
+
"type": {
|
|
662
|
+
"kind": "ref",
|
|
663
|
+
"name": "FileSearchRanker"
|
|
664
|
+
},
|
|
665
|
+
"required": false
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"name": "score_threshold",
|
|
669
|
+
"type": {
|
|
670
|
+
"kind": "scalar",
|
|
671
|
+
"scalar": "number"
|
|
672
|
+
},
|
|
673
|
+
"required": true,
|
|
674
|
+
"description": "The score threshold for the file search. All values must be a floating point number between 0 and 1."
|
|
675
|
+
}
|
|
676
|
+
],
|
|
677
|
+
"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"
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
"name": "FileSearchRanker",
|
|
681
|
+
"kind": "enum",
|
|
682
|
+
"base": "string",
|
|
683
|
+
"values": [
|
|
684
|
+
{
|
|
685
|
+
"value": "auto"
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
"value": "default_2024_08_21"
|
|
689
|
+
}
|
|
690
|
+
],
|
|
691
|
+
"description": "The ranker to use for the file search. If not specified will use the `auto` ranker."
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
"name": "AssistantToolsFunction",
|
|
695
|
+
"kind": "struct",
|
|
696
|
+
"fields": [
|
|
697
|
+
{
|
|
698
|
+
"name": "type",
|
|
699
|
+
"type": {
|
|
700
|
+
"kind": "scalar",
|
|
701
|
+
"scalar": "string",
|
|
702
|
+
"const": "function"
|
|
703
|
+
},
|
|
704
|
+
"required": true,
|
|
705
|
+
"description": "The type of tool being defined: `function`"
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
"name": "function",
|
|
709
|
+
"type": {
|
|
710
|
+
"kind": "ref",
|
|
711
|
+
"name": "FunctionObject"
|
|
712
|
+
},
|
|
713
|
+
"required": true
|
|
714
|
+
}
|
|
715
|
+
]
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
"name": "FunctionObject",
|
|
719
|
+
"kind": "struct",
|
|
720
|
+
"fields": [
|
|
721
|
+
{
|
|
722
|
+
"name": "description",
|
|
723
|
+
"type": {
|
|
724
|
+
"kind": "scalar",
|
|
725
|
+
"scalar": "string"
|
|
726
|
+
},
|
|
727
|
+
"required": false,
|
|
728
|
+
"description": "A description of what the function does, used by the model to choose when and how to call the function."
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
"name": "name",
|
|
732
|
+
"type": {
|
|
733
|
+
"kind": "scalar",
|
|
734
|
+
"scalar": "string"
|
|
735
|
+
},
|
|
736
|
+
"required": true,
|
|
737
|
+
"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."
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
"name": "parameters",
|
|
741
|
+
"type": {
|
|
742
|
+
"kind": "ref",
|
|
743
|
+
"name": "FunctionParameters"
|
|
744
|
+
},
|
|
745
|
+
"required": false
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
"name": "strict",
|
|
749
|
+
"type": {
|
|
750
|
+
"kind": "scalar",
|
|
751
|
+
"scalar": "boolean",
|
|
752
|
+
"nullable": true
|
|
753
|
+
},
|
|
754
|
+
"required": false
|
|
755
|
+
}
|
|
756
|
+
]
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
"name": "FunctionParameters",
|
|
760
|
+
"kind": "alias",
|
|
761
|
+
"of": {
|
|
762
|
+
"kind": "map",
|
|
763
|
+
"values": {
|
|
764
|
+
"kind": "any"
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
"name": "Metadata",
|
|
770
|
+
"kind": "alias",
|
|
771
|
+
"of": {
|
|
772
|
+
"kind": "map",
|
|
773
|
+
"values": {
|
|
774
|
+
"kind": "scalar",
|
|
775
|
+
"scalar": "string"
|
|
776
|
+
},
|
|
777
|
+
"nullable": true
|
|
778
|
+
}
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
"name": "RunCompletionUsage",
|
|
782
|
+
"kind": "struct",
|
|
783
|
+
"fields": [
|
|
784
|
+
{
|
|
785
|
+
"name": "completion_tokens",
|
|
786
|
+
"type": {
|
|
787
|
+
"kind": "scalar",
|
|
788
|
+
"scalar": "integer"
|
|
789
|
+
},
|
|
790
|
+
"required": true,
|
|
791
|
+
"description": "Number of completion tokens used over the course of the run."
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
"name": "prompt_tokens",
|
|
795
|
+
"type": {
|
|
796
|
+
"kind": "scalar",
|
|
797
|
+
"scalar": "integer"
|
|
798
|
+
},
|
|
799
|
+
"required": true,
|
|
800
|
+
"description": "Number of prompt tokens used over the course of the run."
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
"name": "total_tokens",
|
|
804
|
+
"type": {
|
|
805
|
+
"kind": "scalar",
|
|
806
|
+
"scalar": "integer"
|
|
807
|
+
},
|
|
808
|
+
"required": true,
|
|
809
|
+
"description": "Total number of tokens used (prompt + completion)."
|
|
810
|
+
}
|
|
811
|
+
],
|
|
812
|
+
"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.)."
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
"name": "TruncationObject",
|
|
816
|
+
"kind": "struct",
|
|
817
|
+
"fields": [
|
|
818
|
+
{
|
|
819
|
+
"name": "type",
|
|
820
|
+
"type": {
|
|
821
|
+
"kind": "ref",
|
|
822
|
+
"name": "TruncationObjectType"
|
|
823
|
+
},
|
|
824
|
+
"required": true,
|
|
825
|
+
"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`."
|
|
826
|
+
},
|
|
827
|
+
{
|
|
828
|
+
"name": "last_messages",
|
|
829
|
+
"type": {
|
|
830
|
+
"kind": "scalar",
|
|
831
|
+
"scalar": "integer",
|
|
832
|
+
"nullable": true
|
|
833
|
+
},
|
|
834
|
+
"required": false
|
|
835
|
+
}
|
|
836
|
+
],
|
|
837
|
+
"description": "Controls for how a thread will be truncated prior to the run. Use this to control the initial context window of the run."
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
"name": "TruncationObjectType",
|
|
841
|
+
"kind": "enum",
|
|
842
|
+
"base": "string",
|
|
843
|
+
"values": [
|
|
844
|
+
{
|
|
845
|
+
"value": "auto"
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
"value": "last_messages"
|
|
849
|
+
}
|
|
850
|
+
],
|
|
851
|
+
"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`."
|
|
852
|
+
},
|
|
853
|
+
{
|
|
854
|
+
"name": "AssistantsApiToolChoiceOption",
|
|
855
|
+
"kind": "union",
|
|
856
|
+
"semantics": "oneOf",
|
|
857
|
+
"variants": [
|
|
858
|
+
{
|
|
859
|
+
"kind": "ref",
|
|
860
|
+
"name": "AssistantsApiToolChoiceOptionString"
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
"kind": "ref",
|
|
864
|
+
"name": "AssistantsNamedToolChoice"
|
|
865
|
+
}
|
|
866
|
+
],
|
|
867
|
+
"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"
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
"name": "AssistantsApiToolChoiceOptionString",
|
|
871
|
+
"kind": "enum",
|
|
872
|
+
"base": "string",
|
|
873
|
+
"values": [
|
|
874
|
+
{
|
|
875
|
+
"value": "none"
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
"value": "auto"
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
"value": "required"
|
|
882
|
+
}
|
|
883
|
+
],
|
|
884
|
+
"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"
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
"name": "AssistantsNamedToolChoice",
|
|
888
|
+
"kind": "struct",
|
|
889
|
+
"fields": [
|
|
890
|
+
{
|
|
891
|
+
"name": "type",
|
|
892
|
+
"type": {
|
|
893
|
+
"kind": "ref",
|
|
894
|
+
"name": "AssistantsNamedToolChoiceType"
|
|
895
|
+
},
|
|
896
|
+
"required": true,
|
|
897
|
+
"description": "The type of the tool. If type is `function`, the function name must be set"
|
|
898
|
+
},
|
|
899
|
+
{
|
|
900
|
+
"name": "function",
|
|
901
|
+
"type": {
|
|
902
|
+
"kind": "ref",
|
|
903
|
+
"name": "AssistantsNamedToolChoiceFunction"
|
|
904
|
+
},
|
|
905
|
+
"required": false
|
|
906
|
+
}
|
|
907
|
+
],
|
|
908
|
+
"description": "Specifies a tool the model should use. Use to force the model to call a specific tool."
|
|
909
|
+
},
|
|
910
|
+
{
|
|
911
|
+
"name": "AssistantsNamedToolChoiceType",
|
|
912
|
+
"kind": "enum",
|
|
913
|
+
"base": "string",
|
|
914
|
+
"values": [
|
|
915
|
+
{
|
|
916
|
+
"value": "function"
|
|
917
|
+
},
|
|
918
|
+
{
|
|
919
|
+
"value": "code_interpreter"
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
"value": "file_search"
|
|
923
|
+
}
|
|
924
|
+
],
|
|
925
|
+
"description": "The type of the tool. If type is `function`, the function name must be set"
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
"name": "AssistantsNamedToolChoiceFunction",
|
|
929
|
+
"kind": "struct",
|
|
930
|
+
"fields": [
|
|
931
|
+
{
|
|
932
|
+
"name": "name",
|
|
933
|
+
"type": {
|
|
934
|
+
"kind": "scalar",
|
|
935
|
+
"scalar": "string"
|
|
936
|
+
},
|
|
937
|
+
"required": true,
|
|
938
|
+
"description": "The name of the function to call."
|
|
939
|
+
}
|
|
940
|
+
]
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
"name": "ParallelToolCalls",
|
|
944
|
+
"kind": "alias",
|
|
945
|
+
"of": {
|
|
946
|
+
"kind": "scalar",
|
|
947
|
+
"scalar": "boolean"
|
|
948
|
+
}
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
"name": "AssistantsApiResponseFormatOption",
|
|
952
|
+
"kind": "union",
|
|
953
|
+
"semantics": "oneOf",
|
|
954
|
+
"variants": [
|
|
955
|
+
{
|
|
956
|
+
"kind": "scalar",
|
|
957
|
+
"scalar": "string",
|
|
958
|
+
"const": "auto"
|
|
959
|
+
},
|
|
960
|
+
{
|
|
961
|
+
"kind": "ref",
|
|
962
|
+
"name": "ResponseFormatText"
|
|
963
|
+
},
|
|
964
|
+
{
|
|
965
|
+
"kind": "ref",
|
|
966
|
+
"name": "ResponseFormatJsonObject"
|
|
967
|
+
},
|
|
968
|
+
{
|
|
969
|
+
"kind": "ref",
|
|
970
|
+
"name": "ResponseFormatJsonSchema"
|
|
971
|
+
}
|
|
972
|
+
],
|
|
973
|
+
"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"
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
"name": "ResponseFormatText",
|
|
977
|
+
"kind": "struct",
|
|
978
|
+
"fields": [
|
|
979
|
+
{
|
|
980
|
+
"name": "type",
|
|
981
|
+
"type": {
|
|
982
|
+
"kind": "scalar",
|
|
983
|
+
"scalar": "string",
|
|
984
|
+
"const": "text"
|
|
985
|
+
},
|
|
986
|
+
"required": true,
|
|
987
|
+
"description": "The type of response format being defined. Always `text`."
|
|
988
|
+
}
|
|
989
|
+
],
|
|
990
|
+
"description": "Default response format. Used to generate text responses.\n"
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
"name": "ResponseFormatJsonObject",
|
|
994
|
+
"kind": "struct",
|
|
995
|
+
"fields": [
|
|
996
|
+
{
|
|
997
|
+
"name": "type",
|
|
998
|
+
"type": {
|
|
999
|
+
"kind": "scalar",
|
|
1000
|
+
"scalar": "string",
|
|
1001
|
+
"const": "json_object"
|
|
1002
|
+
},
|
|
1003
|
+
"required": true,
|
|
1004
|
+
"description": "The type of response format being defined. Always `json_object`."
|
|
1005
|
+
}
|
|
1006
|
+
],
|
|
1007
|
+
"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"
|
|
1008
|
+
},
|
|
1009
|
+
{
|
|
1010
|
+
"name": "ResponseFormatJsonSchema",
|
|
1011
|
+
"kind": "struct",
|
|
1012
|
+
"fields": [
|
|
1013
|
+
{
|
|
1014
|
+
"name": "type",
|
|
1015
|
+
"type": {
|
|
1016
|
+
"kind": "scalar",
|
|
1017
|
+
"scalar": "string",
|
|
1018
|
+
"const": "json_schema"
|
|
1019
|
+
},
|
|
1020
|
+
"required": true,
|
|
1021
|
+
"description": "The type of response format being defined. Always `json_schema`."
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
"name": "json_schema",
|
|
1025
|
+
"type": {
|
|
1026
|
+
"kind": "ref",
|
|
1027
|
+
"name": "ResponseFormatJsonSchemaJsonSchema"
|
|
1028
|
+
},
|
|
1029
|
+
"required": true,
|
|
1030
|
+
"description": "Structured Outputs configuration options, including a JSON Schema.\n"
|
|
1031
|
+
}
|
|
1032
|
+
],
|
|
1033
|
+
"description": "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).\n"
|
|
1034
|
+
},
|
|
1035
|
+
{
|
|
1036
|
+
"name": "ResponseFormatJsonSchemaJsonSchema",
|
|
1037
|
+
"kind": "struct",
|
|
1038
|
+
"fields": [
|
|
1039
|
+
{
|
|
1040
|
+
"name": "description",
|
|
1041
|
+
"type": {
|
|
1042
|
+
"kind": "scalar",
|
|
1043
|
+
"scalar": "string"
|
|
1044
|
+
},
|
|
1045
|
+
"required": false,
|
|
1046
|
+
"description": "A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n"
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
"name": "name",
|
|
1050
|
+
"type": {
|
|
1051
|
+
"kind": "scalar",
|
|
1052
|
+
"scalar": "string"
|
|
1053
|
+
},
|
|
1054
|
+
"required": true,
|
|
1055
|
+
"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"
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
"name": "schema",
|
|
1059
|
+
"type": {
|
|
1060
|
+
"kind": "ref",
|
|
1061
|
+
"name": "ResponseFormatJsonSchemaSchema"
|
|
1062
|
+
},
|
|
1063
|
+
"required": false
|
|
1064
|
+
},
|
|
1065
|
+
{
|
|
1066
|
+
"name": "strict",
|
|
1067
|
+
"type": {
|
|
1068
|
+
"kind": "scalar",
|
|
1069
|
+
"scalar": "boolean",
|
|
1070
|
+
"nullable": true
|
|
1071
|
+
},
|
|
1072
|
+
"required": false
|
|
1073
|
+
}
|
|
1074
|
+
],
|
|
1075
|
+
"description": "Structured Outputs configuration options, including a JSON Schema.\n"
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
"name": "ResponseFormatJsonSchemaSchema",
|
|
1079
|
+
"kind": "alias",
|
|
1080
|
+
"of": {
|
|
1081
|
+
"kind": "map",
|
|
1082
|
+
"values": {
|
|
1083
|
+
"kind": "any"
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
],
|
|
1088
|
+
"resources": [
|
|
1089
|
+
{
|
|
1090
|
+
"name": "beta",
|
|
1091
|
+
"resources": [
|
|
1092
|
+
{
|
|
1093
|
+
"name": "threads",
|
|
1094
|
+
"resources": [
|
|
1095
|
+
{
|
|
1096
|
+
"name": "runs",
|
|
1097
|
+
"resources": [
|
|
1098
|
+
{
|
|
1099
|
+
"name": "submit-tool-outputs",
|
|
1100
|
+
"methods": [
|
|
1101
|
+
{
|
|
1102
|
+
"action": "create",
|
|
1103
|
+
"httpMethod": "post",
|
|
1104
|
+
"path": "/threads/{thread_id}/runs/{run_id}/submit_tool_outputs",
|
|
1105
|
+
"operationId": "submitToolOuputsToRun",
|
|
1106
|
+
"description": "When a run has the `status: \"requires_action\"` and `required_action.type` is `submit_tool_outputs`, this endpoint can be used to submit the outputs from the tool calls once they're all completed. All outputs must be submitted in a single request.\n",
|
|
1107
|
+
"pathParams": [
|
|
1108
|
+
{
|
|
1109
|
+
"name": "thread_id",
|
|
1110
|
+
"type": {
|
|
1111
|
+
"kind": "scalar",
|
|
1112
|
+
"scalar": "string"
|
|
1113
|
+
},
|
|
1114
|
+
"required": true,
|
|
1115
|
+
"description": "The ID of the [thread](/docs/api-reference/threads) to which this run belongs."
|
|
1116
|
+
},
|
|
1117
|
+
{
|
|
1118
|
+
"name": "run_id",
|
|
1119
|
+
"type": {
|
|
1120
|
+
"kind": "scalar",
|
|
1121
|
+
"scalar": "string"
|
|
1122
|
+
},
|
|
1123
|
+
"required": true,
|
|
1124
|
+
"description": "The ID of the run that requires the tool output submission."
|
|
1125
|
+
}
|
|
1126
|
+
],
|
|
1127
|
+
"requestBody": {
|
|
1128
|
+
"contentType": "application/json",
|
|
1129
|
+
"type": {
|
|
1130
|
+
"kind": "ref",
|
|
1131
|
+
"name": "SubmitToolOutputsRunRequest"
|
|
1132
|
+
},
|
|
1133
|
+
"required": true,
|
|
1134
|
+
"encoding": "json"
|
|
1135
|
+
},
|
|
1136
|
+
"responses": [
|
|
1137
|
+
{
|
|
1138
|
+
"status": "200",
|
|
1139
|
+
"description": "OK",
|
|
1140
|
+
"contentType": "application/json",
|
|
1141
|
+
"type": {
|
|
1142
|
+
"kind": "ref",
|
|
1143
|
+
"name": "RunObject"
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
],
|
|
1147
|
+
"primaryResponse": {
|
|
1148
|
+
"kind": "ref",
|
|
1149
|
+
"name": "RunObject"
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
]
|
|
1153
|
+
}
|
|
1154
|
+
]
|
|
1155
|
+
}
|
|
1156
|
+
]
|
|
1157
|
+
}
|
|
1158
|
+
]
|
|
1159
|
+
}
|
|
1160
|
+
],
|
|
1161
|
+
"sdk": {
|
|
1162
|
+
"retry": {
|
|
1163
|
+
"maxRetries": 2,
|
|
1164
|
+
"retryableStatusCodes": [
|
|
1165
|
+
408,
|
|
1166
|
+
429,
|
|
1167
|
+
500,
|
|
1168
|
+
502,
|
|
1169
|
+
503,
|
|
1170
|
+
504
|
|
1171
|
+
],
|
|
1172
|
+
"retryConnectionErrors": true,
|
|
1173
|
+
"honorRetryAfterHeader": true,
|
|
1174
|
+
"backoff": {
|
|
1175
|
+
"initialDelayMs": 500,
|
|
1176
|
+
"maxDelayMs": 8000,
|
|
1177
|
+
"multiplier": 2,
|
|
1178
|
+
"jitter": 0.25
|
|
1179
|
+
}
|
|
1180
|
+
},
|
|
1181
|
+
"timeout": {
|
|
1182
|
+
"defaultTimeoutMs": 60000
|
|
1183
|
+
},
|
|
1184
|
+
"errors": {
|
|
1185
|
+
"statusCodeMap": {
|
|
1186
|
+
"400": "BadRequest",
|
|
1187
|
+
"401": "Unauthorized",
|
|
1188
|
+
"403": "PermissionDenied",
|
|
1189
|
+
"404": "NotFound",
|
|
1190
|
+
"409": "Conflict",
|
|
1191
|
+
"422": "UnprocessableEntity",
|
|
1192
|
+
"429": "RateLimited"
|
|
1193
|
+
},
|
|
1194
|
+
"clientErrorKind": "API",
|
|
1195
|
+
"serverErrorKind": "Internal"
|
|
1196
|
+
},
|
|
1197
|
+
"userAgent": {
|
|
1198
|
+
"sdkIdentifierTemplate": "{package}-{language}/{version}",
|
|
1199
|
+
"includeRuntimeVersion": false,
|
|
1200
|
+
"aiAgentEnvVars": {
|
|
1201
|
+
"CLAUDE_CODE": "claude-code",
|
|
1202
|
+
"CURSOR_AGENT": "cursor",
|
|
1203
|
+
"CLINE_ACTIVE": "cline",
|
|
1204
|
+
"WINDSURF_ACTIVE": "windsurf",
|
|
1205
|
+
"COPILOT_AGENT": "copilot"
|
|
1206
|
+
}
|
|
1207
|
+
},
|
|
1208
|
+
"telemetry": {
|
|
1209
|
+
"requestIdHeader": "X-Request-ID",
|
|
1210
|
+
"headerName": "X-Client-Telemetry",
|
|
1211
|
+
"enabledByDefault": false
|
|
1212
|
+
},
|
|
1213
|
+
"logging": {
|
|
1214
|
+
"events": [
|
|
1215
|
+
"request.start",
|
|
1216
|
+
"request.success",
|
|
1217
|
+
"request.retry",
|
|
1218
|
+
"request.rate_limited",
|
|
1219
|
+
"request.error",
|
|
1220
|
+
"request.connection_error"
|
|
1221
|
+
]
|
|
1222
|
+
},
|
|
1223
|
+
"idempotency": {
|
|
1224
|
+
"headerName": "Idempotency-Key",
|
|
1225
|
+
"autoGenerateForPost": true
|
|
1226
|
+
},
|
|
1227
|
+
"pagination": {
|
|
1228
|
+
"autoPageDelayMs": 0
|
|
1229
|
+
},
|
|
1230
|
+
"requestGuard": {
|
|
1231
|
+
"optionKeys": [
|
|
1232
|
+
"api_key",
|
|
1233
|
+
"apiKey",
|
|
1234
|
+
"idempotency_key",
|
|
1235
|
+
"idempotencyKey",
|
|
1236
|
+
"extra_headers",
|
|
1237
|
+
"extraHeaders",
|
|
1238
|
+
"max_retries",
|
|
1239
|
+
"maxRetries",
|
|
1240
|
+
"base_url",
|
|
1241
|
+
"baseUrl",
|
|
1242
|
+
"timeout"
|
|
1243
|
+
]
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
}
|