> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nscale.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a response

> Creates a model response. Tool and background-processing support depend on the selected model. Response retrieval, deletion, cancellation and input-item endpoints are not available in this API.



## OpenAPI

````yaml /openapi/serverless-openapi.yaml post /v1/responses
openapi: 3.1.0
info:
  title: Nscale Inference API
  version: 1.0.0
  description: >-
    Serverless inference and model discovery. Use a model ID returned by GET
    /v1/models. Modalities, tool use and generation options depend on the
    selected model. Inference requests have a 32 MiB body limit. Unknown JSON
    fields may be ignored; sending an undocumented field does not guarantee
    support for it.


    ## Third-party legal notices


    This specification includes selected and adapted schema definitions and
    descriptions from the following projects. Their original licence terms and
    notices continue to apply to the corresponding portions. These credits
    identify document sources, not API behavior.


    - [OpenAI OpenAPI specification](https://github.com/openai/openai-openapi):
    Copyright (c) OpenAI. MIT License.

    - [vLLM](https://github.com/vllm-project/vllm): Copyright contributors to
    the vLLM project. Apache License, Version 2.0.

    - [Agent Router](https://github.com/theagentrouter/agent-router): Copyright
    Envoy AI Gateway Authors. Apache License, Version 2.0.

    - [Anthropic Python
    SDK](https://github.com/anthropics/anthropic-sdk-python): Apache License,
    Version 2.0, with the retained MIT notice reproduced below.


    ### OpenAI MIT notice


    The MIT License


    Copyright (c) OpenAI (https://openai.com)


    Permission is hereby granted, free of charge, to any person obtaining a copy

    of this software and associated documentation files (the "Software"), to
    deal

    in the Software without restriction, including without limitation the rights

    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell

    copies of the Software, and to permit persons to whom the Software is

    furnished to do so, subject to the following conditions:


    The above copyright notice and this permission notice shall be included in

    all copies or substantial portions of the Software.


    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR

    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,

    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE

    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER

    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
    FROM,

    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN

    THE SOFTWARE.


    ### Anthropic retained MIT notice


    This repository changed its license from the MIT License to the Apache
    License, Version 2.0 (see LICENSE) in version 2.0.0. The MIT License below
    still applies to every version published under it, and to third-party
    contributions merged into this repository before the change.


    --------------------------------------------------------------------------------


    Copyright 2023 Anthropic, PBC.


    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to
    deal in the Software without restriction, including without limitation the
    rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
    sell copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:


    The above copyright notice and this permission notice shall be included in
    all copies or substantial portions of the Software.


    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
    FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
    IN THE SOFTWARE.


    ### Apache License, Version 2.0


    Apache License
                               Version 2.0, January 2004
                            http://www.apache.org/licenses/

       TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

       1. Definitions.

          "License" shall mean the terms and conditions for use, reproduction,
          and distribution as defined by Sections 1 through 9 of this document.

          "Licensor" shall mean the copyright owner or entity authorized by
          the copyright owner that is granting the License.

          "Legal Entity" shall mean the union of the acting entity and all
          other entities that control, are controlled by, or are under common
          control with that entity. For the purposes of this definition,
          "control" means (i) the power, direct or indirect, to cause the
          direction or management of such entity, whether by contract or
          otherwise, or (ii) ownership of fifty percent (50%) or more of the
          outstanding shares, or (iii) beneficial ownership of such entity.

          "You" (or "Your") shall mean an individual or Legal Entity
          exercising permissions granted by this License.

          "Source" form shall mean the preferred form for making modifications,
          including but not limited to software source code, documentation
          source, and configuration files.

          "Object" form shall mean any form resulting from mechanical
          transformation or translation of a Source form, including but
          not limited to compiled object code, generated documentation,
          and conversions to other media types.

          "Work" shall mean the work of authorship, whether in Source or
          Object form, made available under the License, as indicated by a
          copyright notice that is included in or attached to the work
          (an example is provided in the Appendix below).

          "Derivative Works" shall mean any work, whether in Source or Object
          form, that is based on (or derived from) the Work and for which the
          editorial revisions, annotations, elaborations, or other modifications
          represent, as a whole, an original work of authorship. For the purposes
          of this License, Derivative Works shall not include works that remain
          separable from, or merely link (or bind by name) to the interfaces of,
          the Work and Derivative Works thereof.

          "Contribution" shall mean any work of authorship, including
          the original version of the Work and any modifications or additions
          to that Work or Derivative Works thereof, that is intentionally
          submitted to Licensor for inclusion in the Work by the copyright owner
          or by an individual or Legal Entity authorized to submit on behalf of
          the copyright owner. For the purposes of this definition, "submitted"
          means any form of electronic, verbal, or written communication sent
          to the Licensor or its representatives, including but not limited to
          communication on electronic mailing lists, source code control systems,
          and issue tracking systems that are managed by, or on behalf of, the
          Licensor for the purpose of discussing and improving the Work, but
          excluding communication that is conspicuously marked or otherwise
          designated in writing by the copyright owner as "Not a Contribution."

          "Contributor" shall mean Licensor and any individual or Legal Entity
          on behalf of whom a Contribution has been received by Licensor and
          subsequently incorporated within the Work.

       2. Grant of Copyright License. Subject to the terms and conditions of
          this License, each Contributor hereby grants to You a perpetual,
          worldwide, non-exclusive, no-charge, royalty-free, irrevocable
          copyright license to reproduce, prepare Derivative Works of,
          publicly display, publicly perform, sublicense, and distribute the
          Work and such Derivative Works in Source or Object form.

       3. Grant of Patent License. Subject to the terms and conditions of
          this License, each Contributor hereby grants to You a perpetual,
          worldwide, non-exclusive, no-charge, royalty-free, irrevocable
          (except as stated in this section) patent license to make, have made,
          use, offer to sell, sell, import, and otherwise transfer the Work,
          where such license applies only to those patent claims licensable
          by such Contributor that are necessarily infringed by their
          Contribution(s) alone or by combination of their Contribution(s)
          with the Work to which such Contribution(s) was submitted. If You
          institute patent litigation against any entity (including a
          cross-claim or counterclaim in a lawsuit) alleging that the Work
          or a Contribution incorporated within the Work constitutes direct
          or contributory patent infringement, then any patent licenses
          granted to You under this License for that Work shall terminate
          as of the date such litigation is filed.

       4. Redistribution. You may reproduce and distribute copies of the
          Work or Derivative Works thereof in any medium, with or without
          modifications, and in Source or Object form, provided that You
          meet the following conditions:

          (a) You must give any other recipients of the Work or
              Derivative Works a copy of this License; and

          (b) You must cause any modified files to carry prominent notices
              stating that You changed the files; and

          (c) You must retain, in the Source form of any Derivative Works
              that You distribute, all copyright, patent, trademark, and
              attribution notices from the Source form of the Work,
              excluding those notices that do not pertain to any part of
              the Derivative Works; and

          (d) If the Work includes a "NOTICE" text file as part of its
              distribution, then any Derivative Works that You distribute must
              include a readable copy of the attribution notices contained
              within such NOTICE file, excluding those notices that do not
              pertain to any part of the Derivative Works, in at least one
              of the following places: within a NOTICE text file distributed
              as part of the Derivative Works; within the Source form or
              documentation, if provided along with the Derivative Works; or,
              within a display generated by the Derivative Works, if and
              wherever such third-party notices normally appear. The contents
              of the NOTICE file are for informational purposes only and
              do not modify the License. You may add Your own attribution
              notices within Derivative Works that You distribute, alongside
              or as an addendum to the NOTICE text from the Work, provided
              that such additional attribution notices cannot be construed
              as modifying the License.

          You may add Your own copyright statement to Your modifications and
          may provide additional or different license terms and conditions
          for use, reproduction, or distribution of Your modifications, or
          for any such Derivative Works as a whole, provided Your use,
          reproduction, and distribution of the Work otherwise complies with
          the conditions stated in this License.

       5. Submission of Contributions. Unless You explicitly state otherwise,
          any Contribution intentionally submitted for inclusion in the Work
          by You to the Licensor shall be under the terms and conditions of
          this License, without any additional terms or conditions.
          Notwithstanding the above, nothing herein shall supersede or modify
          the terms of any separate license agreement you may have executed
          with Licensor regarding such Contributions.

       6. Trademarks. This License does not grant permission to use the trade
          names, trademarks, service marks, or product names of the Licensor,
          except as required for reasonable and customary use in describing the
          origin of the Work and reproducing the content of the NOTICE file.

       7. Disclaimer of Warranty. Unless required by applicable law or
          agreed to in writing, Licensor provides the Work (and each
          Contributor provides its Contributions) on an "AS IS" BASIS,
          WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
          implied, including, without limitation, any warranties or conditions
          of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
          PARTICULAR PURPOSE. You are solely responsible for determining the
          appropriateness of using or redistributing the Work and assume any
          risks associated with Your exercise of permissions under this License.

       8. Limitation of Liability. In no event and under no legal theory,
          whether in tort (including negligence), contract, or otherwise,
          unless required by applicable law (such as deliberate and grossly
          negligent acts) or agreed to in writing, shall any Contributor be
          liable to You for damages, including any direct, indirect, special,
          incidental, or consequential damages of any character arising as a
          result of this License or out of the use or inability to use the
          Work (including but not limited to damages for loss of goodwill,
          work stoppage, computer failure or malfunction, or any and all
          other commercial damages or losses), even if such Contributor
          has been advised of the possibility of such damages.

       9. Accepting Warranty or Additional Liability. While redistributing
          the Work or Derivative Works thereof, You may choose to offer,
          and charge a fee for, acceptance of support, warranty, indemnity,
          or other liability obligations and/or rights consistent with this
          License. However, in accepting such obligations, You may act only
          on Your own behalf and on Your sole responsibility, not on behalf
          of any other Contributor, and only if You agree to indemnify,
          defend, and hold each Contributor harmless for any liability
          incurred by, or claims asserted against, such Contributor by reason
          of your accepting any such warranty or additional liability.

       END OF TERMS AND CONDITIONS

       APPENDIX: How to apply the Apache License to your work.

          To apply the Apache License to your work, attach the following
          boilerplate notice, with the fields enclosed by brackets "[]"
          replaced with your own identifying information. (Don't include
          the brackets!)  The text should be enclosed in the appropriate
          comment syntax for the file format. We also recommend that a
          file or class name and description of purpose be included on the
          same "printed page" as the copyright notice for easier
          identification within third-party archives.

       Copyright [yyyy] [name of copyright owner]

       Licensed under the Apache License, Version 2.0 (the "License");
       you may not use this file except in compliance with the License.
       You may obtain a copy of the License at

           http://www.apache.org/licenses/LICENSE-2.0

       Unless required by applicable law or agreed to in writing, software
       distributed under the License is distributed on an "AS IS" BASIS,
       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
       See the License for the specific language governing permissions and
       limitations under the License.

    ### Anthropic Apache licence and copyright notice


    Apache License
                               Version 2.0, January 2004
                            http://www.apache.org/licenses/

       TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

       1. Definitions.

          "License" shall mean the terms and conditions for use, reproduction,
          and distribution as defined by Sections 1 through 9 of this document.

          "Licensor" shall mean the copyright owner or entity authorized by
          the copyright owner that is granting the License.

          "Legal Entity" shall mean the union of the acting entity and all
          other entities that control, are controlled by, or are under common
          control with that entity. For the purposes of this definition,
          "control" means (i) the power, direct or indirect, to cause the
          direction or management of such entity, whether by contract or
          otherwise, or (ii) ownership of fifty percent (50%) or more of the
          outstanding shares, or (iii) beneficial ownership of such entity.

          "You" (or "Your") shall mean an individual or Legal Entity
          exercising permissions granted by this License.

          "Source" form shall mean the preferred form for making modifications,
          including but not limited to software source code, documentation
          source, and configuration files.

          "Object" form shall mean any form resulting from mechanical
          transformation or translation of a Source form, including but
          not limited to compiled object code, generated documentation,
          and conversions to other media types.

          "Work" shall mean the work of authorship, whether in Source or
          Object form, made available under the License, as indicated by a
          copyright notice that is included in or attached to the work
          (an example is provided in the Appendix below).

          "Derivative Works" shall mean any work, whether in Source or Object
          form, that is based on (or derived from) the Work and for which the
          editorial revisions, annotations, elaborations, or other modifications
          represent, as a whole, an original work of authorship. For the purposes
          of this License, Derivative Works shall not include works that remain
          separable from, or merely link (or bind by name) to the interfaces of,
          the Work and Derivative Works thereof.

          "Contribution" shall mean any work of authorship, including
          the original version of the Work and any modifications or additions
          to that Work or Derivative Works thereof, that is intentionally
          submitted to Licensor for inclusion in the Work by the copyright owner
          or by an individual or Legal Entity authorized to submit on behalf of
          the copyright owner. For the purposes of this definition, "submitted"
          means any form of electronic, verbal, or written communication sent
          to the Licensor or its representatives, including but not limited to
          communication on electronic mailing lists, source code control systems,
          and issue tracking systems that are managed by, or on behalf of, the
          Licensor for the purpose of discussing and improving the Work, but
          excluding communication that is conspicuously marked or otherwise
          designated in writing by the copyright owner as "Not a Contribution."

          "Contributor" shall mean Licensor and any individual or Legal Entity
          on behalf of whom a Contribution has been received by Licensor and
          subsequently incorporated within the Work.

       2. Grant of Copyright License. Subject to the terms and conditions of
          this License, each Contributor hereby grants to You a perpetual,
          worldwide, non-exclusive, no-charge, royalty-free, irrevocable
          copyright license to reproduce, prepare Derivative Works of,
          publicly display, publicly perform, sublicense, and distribute the
          Work and such Derivative Works in Source or Object form.

       3. Grant of Patent License. Subject to the terms and conditions of
          this License, each Contributor hereby grants to You a perpetual,
          worldwide, non-exclusive, no-charge, royalty-free, irrevocable
          (except as stated in this section) patent license to make, have made,
          use, offer to sell, sell, import, and otherwise transfer the Work,
          where such license applies only to those patent claims licensable
          by such Contributor that are necessarily infringed by their
          Contribution(s) alone or by combination of their Contribution(s)
          with the Work to which such Contribution(s) was submitted. If You
          institute patent litigation against any entity (including a
          cross-claim or counterclaim in a lawsuit) alleging that the Work
          or a Contribution incorporated within the Work constitutes direct
          or contributory patent infringement, then any patent licenses
          granted to You under this License for that Work shall terminate
          as of the date such litigation is filed.

       4. Redistribution. You may reproduce and distribute copies of the
          Work or Derivative Works thereof in any medium, with or without
          modifications, and in Source or Object form, provided that You
          meet the following conditions:

          (a) You must give any other recipients of the Work or
              Derivative Works a copy of this License; and

          (b) You must cause any modified files to carry prominent notices
              stating that You changed the files; and

          (c) You must retain, in the Source form of any Derivative Works
              that You distribute, all copyright, patent, trademark, and
              attribution notices from the Source form of the Work,
              excluding those notices that do not pertain to any part of
              the Derivative Works; and

          (d) If the Work includes a "NOTICE" text file as part of its
              distribution, then any Derivative Works that You distribute must
              include a readable copy of the attribution notices contained
              within such NOTICE file, excluding those notices that do not
              pertain to any part of the Derivative Works, in at least one
              of the following places: within a NOTICE text file distributed
              as part of the Derivative Works; within the Source form or
              documentation, if provided along with the Derivative Works; or,
              within a display generated by the Derivative Works, if and
              wherever such third-party notices normally appear. The contents
              of the NOTICE file are for informational purposes only and
              do not modify the License. You may add Your own attribution
              notices within Derivative Works that You distribute, alongside
              or as an addendum to the NOTICE text from the Work, provided
              that such additional attribution notices cannot be construed
              as modifying the License.

          You may add Your own copyright statement to Your modifications and
          may provide additional or different license terms and conditions
          for use, reproduction, or distribution of Your modifications, or
          for any such Derivative Works as a whole, provided Your use,
          reproduction, and distribution of the Work otherwise complies with
          the conditions stated in this License.

       5. Submission of Contributions. Unless You explicitly state otherwise,
          any Contribution intentionally submitted for inclusion in the Work
          by You to the Licensor shall be under the terms and conditions of
          this License, without any additional terms or conditions.
          Notwithstanding the above, nothing herein shall supersede or modify
          the terms of any separate license agreement you may have executed
          with Licensor regarding such Contributions.

       6. Trademarks. This License does not grant permission to use the trade
          names, trademarks, service marks, or product names of the Licensor,
          except as required for reasonable and customary use in describing the
          origin of the Work and reproducing the content of the NOTICE file.

       7. Disclaimer of Warranty. Unless required by applicable law or
          agreed to in writing, Licensor provides the Work (and each
          Contributor provides its Contributions) on an "AS IS" BASIS,
          WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
          implied, including, without limitation, any warranties or conditions
          of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
          PARTICULAR PURPOSE. You are solely responsible for determining the
          appropriateness of using or redistributing the Work and assume any
          risks associated with Your exercise of permissions under this License.

       8. Limitation of Liability. In no event and under no legal theory,
          whether in tort (including negligence), contract, or otherwise,
          unless required by applicable law (such as deliberate and grossly
          negligent acts) or agreed to in writing, shall any Contributor be
          liable to You for damages, including any direct, indirect, special,
          incidental, or consequential damages of any character arising as a
          result of this License or out of the use or inability to use the
          Work (including but not limited to damages for loss of goodwill,
          work stoppage, computer failure or malfunction, or any and all
          other commercial damages or losses), even if such Contributor
          has been advised of the possibility of such damages.

       9. Accepting Warranty or Additional Liability. While redistributing
          the Work or Derivative Works thereof, You may choose to offer,
          and charge a fee for, acceptance of support, warranty, indemnity,
          or other liability obligations and/or rights consistent with this
          License. However, in accepting such obligations, You may act only
          on Your own behalf and on Your sole responsibility, not on behalf
          of any other Contributor, and only if You agree to indemnify,
          defend, and hold each Contributor harmless for any liability
          incurred by, or claims asserted against, such Contributor by reason
          of your accepting any such warranty or additional liability.

       END OF TERMS AND CONDITIONS

       APPENDIX: How to apply the Apache License to your work.

          To apply the Apache License to your work, attach the following
          boilerplate notice, with the fields enclosed by brackets "[]"
          replaced with your own identifying information. (Don't include
          the brackets!)  The text should be enclosed in the appropriate
          comment syntax for the file format. We also recommend that a
          file or class name and description of purpose be included on the
          same "printed page" as the copyright notice for easier
          identification within third-party archives.

       Copyright 2023 Anthropic, PBC.

       Licensed under the Apache License, Version 2.0 (the "License");
       you may not use this file except in compliance with the License.
       You may obtain a copy of the License at

           http://www.apache.org/licenses/LICENSE-2.0

       Unless required by applicable law or agreed to in writing, software
       distributed under the License is distributed on an "AS IS" BASIS,
       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
       See the License for the specific language governing permissions and
       limitations under the License.
  license:
    name: Apache-2.0 AND MIT
    identifier: Apache-2.0 AND MIT
servers:
  - url: https://inference.api.nscale.com
    description: Production
security:
  - BearerAuth: []
paths:
  /v1/responses:
    post:
      tags:
        - Inference
      summary: Create a response
      description: >-
        Creates a model response. Tool and background-processing support depend
        on the selected model. Response retrieval, deletion, cancellation and
        input-item endpoints are not available in this API.
      operationId: createResponse
      parameters:
        - $ref: '#/components/parameters/OrganizationId'
        - $ref: '#/components/parameters/RequestId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InferenceResponsesRequest'
      responses:
        '200':
          description: >-
            Successful inference. Feature availability depends on the selected
            model.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InferenceResponsesResponse'
            text/event-stream:
              schema:
                type: string
          headers:
            X-Request-Id:
              description: >-
                Identifier for this request. Include this response value when
                contacting support. It may differ from a caller-supplied
                X-Request-Id.
              schema:
                type: string
            Inference-Id:
              description: >-
                Optional inference identifier. When present, equals
                X-Request-Id.
              schema:
                type: string
        '400':
          description: Invalid request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InferenceError'
          headers:
            X-Request-Id:
              description: >-
                Identifier for this request. Include this response value when
                contacting support. It may differ from a caller-supplied
                X-Request-Id.
              schema:
                type: string
            Inference-Id:
              description: >-
                Optional inference identifier. When present, equals
                X-Request-Id.
              schema:
                type: string
        '401':
          description: Missing or invalid credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InferenceError'
          headers:
            X-Request-Id:
              description: >-
                Identifier for this request. Include this response value when
                contacting support. It may differ from a caller-supplied
                X-Request-Id.
              schema:
                type: string
            Inference-Id:
              description: >-
                Optional inference identifier. When present, equals
                X-Request-Id.
              schema:
                type: string
        '403':
          description: Caller is not authorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InferenceError'
          headers:
            X-Request-Id:
              description: >-
                Identifier for this request. Include this response value when
                contacting support. It may differ from a caller-supplied
                X-Request-Id.
              schema:
                type: string
            Inference-Id:
              description: >-
                Optional inference identifier. When present, equals
                X-Request-Id.
              schema:
                type: string
        '404':
          description: Unknown endpoint or model.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InferenceError'
          headers:
            X-Request-Id:
              description: >-
                Identifier for this request. Include this response value when
                contacting support. It may differ from a caller-supplied
                X-Request-Id.
              schema:
                type: string
            Inference-Id:
              description: >-
                Optional inference identifier. When present, equals
                X-Request-Id.
              schema:
                type: string
        '405':
          description: Method not allowed; inference requires POST.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InferenceError'
          headers:
            X-Request-Id:
              description: >-
                Identifier for this request. Include this response value when
                contacting support. It may differ from a caller-supplied
                X-Request-Id.
              schema:
                type: string
            Inference-Id:
              description: >-
                Optional inference identifier. When present, equals
                X-Request-Id.
              schema:
                type: string
            Allow:
              schema:
                type: string
                const: POST
        '413':
          description: Request body exceeds 32 MiB.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InferenceError'
          headers:
            X-Request-Id:
              description: >-
                Identifier for this request. Include this response value when
                contacting support. It may differ from a caller-supplied
                X-Request-Id.
              schema:
                type: string
            Inference-Id:
              description: >-
                Optional inference identifier. When present, equals
                X-Request-Id.
              schema:
                type: string
        '429':
          description: Request rate, concurrency or token budget exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InferenceError'
          headers:
            X-Request-Id:
              description: >-
                Identifier for this request. Include this response value when
                contacting support. It may differ from a caller-supplied
                X-Request-Id.
              schema:
                type: string
            Inference-Id:
              description: >-
                Optional inference identifier. When present, equals
                X-Request-Id.
              schema:
                type: string
            Retry-After:
              description: >-
                Seconds before retrying a per-caller rate-limit rejection. Other
                429 responses may omit this header.
              schema:
                type: integer
                minimum: 0
        '500':
          description: Internal error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InferenceError'
          headers:
            X-Request-Id:
              description: >-
                Identifier for this request. Include this response value when
                contacting support. It may differ from a caller-supplied
                X-Request-Id.
              schema:
                type: string
            Inference-Id:
              description: >-
                Optional inference identifier. When present, equals
                X-Request-Id.
              schema:
                type: string
        '502':
          description: The request could not be completed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InferenceError'
          headers:
            X-Request-Id:
              description: >-
                Identifier for this request. Include this response value when
                contacting support. It may differ from a caller-supplied
                X-Request-Id.
              schema:
                type: string
            Inference-Id:
              description: >-
                Optional inference identifier. When present, equals
                X-Request-Id.
              schema:
                type: string
        '503':
          description: Temporarily unavailable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InferenceError'
          headers:
            X-Request-Id:
              description: >-
                Identifier for this request. Include this response value when
                contacting support. It may differ from a caller-supplied
                X-Request-Id.
              schema:
                type: string
            Inference-Id:
              description: >-
                Optional inference identifier. When present, equals
                X-Request-Id.
              schema:
                type: string
        '504':
          description: Request timed out.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InferenceError'
          headers:
            X-Request-Id:
              description: >-
                Identifier for this request. Include this response value when
                contacting support. It may differ from a caller-supplied
                X-Request-Id.
              schema:
                type: string
            Inference-Id:
              description: >-
                Optional inference identifier. When present, equals
                X-Request-Id.
              schema:
                type: string
components:
  parameters:
    OrganizationId:
      name: X-Organization-Id
      in: header
      required: false
      description: >-
        Selects the caller's public-cloud organization. Required when the caller
        belongs to multiple public-cloud organizations and the URL does not
        select an organization; omission then returns 400. With one public-cloud
        organization, omission selects it automatically. An explicitly supplied
        value, including an empty value, that is not one of the caller's
        public-cloud organizations returns 403. On
        /organizations/{organization_id}/endpoints, the path organization_id
        takes precedence over this header.
      schema:
        type: string
        minLength: 1
    RequestId:
      name: X-Request-Id
      in: header
      required: false
      description: >-
        Optional correlation identifier. Use the X-Request-Id returned in the
        response when contacting support. The response ID may differ from this
        value. Supplying this header does not make a request idempotent.
      schema:
        type: string
  schemas:
    InferenceResponsesRequest:
      type: object
      properties:
        background:
          anyOf:
            - type: boolean
            - type: 'null'
          default: false
        include:
          anyOf:
            - type: array
              items:
                enum:
                  - code_interpreter_call.outputs
                  - computer_call_output.output.image_url
                  - file_search_call.results
                  - message.input_image.image_url
                  - message.output_text.logprobs
                  - reasoning.encrypted_content
                type: string
            - type: 'null'
          default: null
        input:
          $ref: '#/components/schemas/InferenceInputInputParam'
        instructions:
          anyOf:
            - type: string
            - type: 'null'
          default: null
        max_output_tokens:
          anyOf:
            - type: integer
            - type: 'null'
          default: null
        max_tool_calls:
          anyOf:
            - type: integer
            - type: 'null'
          default: null
        metadata:
          anyOf:
            - $ref: '#/components/schemas/Metadata'
            - type: 'null'
          default: null
        model:
          type: string
          minLength: 1
          description: >-
            Model ID from GET /v1/models. Capabilities depend on the selected
            model.
        logit_bias:
          anyOf:
            - type: object
              additionalProperties:
                type: number
            - type: 'null'
          default: null
        parallel_tool_calls:
          anyOf:
            - type: boolean
            - type: 'null'
          default: true
        previous_response_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
        prompt:
          anyOf:
            - $ref: '#/components/schemas/Prompt'
            - type: 'null'
          default: null
        reasoning:
          anyOf:
            - anyOf:
                - $ref: '#/components/schemas/Reasoning'
                - type: 'null'
            - type: 'null'
          default: null
        include_reasoning:
          type: boolean
          description: >-
            Whether to include reasoning content in the response. When false,
            reasoning tokens are still generated but excluded from the output.
            This reduces network traffic without affecting model inference.
          default: true
        service_tier:
          enum:
            - auto
            - default
            - flex
            - scale
            - priority
          type: string
          default: auto
        store:
          anyOf:
            - type: boolean
            - type: 'null'
          default: true
        stream:
          anyOf:
            - type: boolean
            - type: 'null'
          default: false
        temperature:
          anyOf:
            - type: number
            - type: 'null'
          default: null
        text:
          anyOf:
            - $ref: '#/components/schemas/ResponseTextParam'
            - type: 'null'
          default: null
        tool_choice:
          $ref: '#/components/schemas/ToolChoiceParam'
          default: auto
        tools:
          $ref: '#/components/schemas/ToolsArray'
          default: []
        top_logprobs:
          anyOf:
            - type: integer
            - type: 'null'
          default: 0
        top_p:
          anyOf:
            - type: number
            - type: 'null'
          default: null
        top_k:
          anyOf:
            - type: integer
            - type: 'null'
          default: null
        min_p:
          anyOf:
            - type: number
            - type: 'null'
          default: null
        truncation:
          anyOf:
            - enum:
                - auto
                - disabled
              type: string
            - type: 'null'
          default: disabled
        user:
          anyOf:
            - type: string
            - type: 'null'
          default: null
        skip_special_tokens:
          type: boolean
          default: true
        include_stop_str_in_output:
          type: boolean
          default: false
        presence_penalty:
          anyOf:
            - type: number
            - type: 'null'
          minimum: -2
          maximum: 2
          description: >-
            The presence penalty that was used to penalize new tokens based on
            whether they appear in the text so far.
          default: null
        frequency_penalty:
          anyOf:
            - type: number
            - type: 'null'
          minimum: -2
          maximum: 2
          description: >-
            The frequency penalty that was used to penalize new tokens based on
            their frequency in the text so far.
          default: null
        prompt_cache_key:
          anyOf:
            - type: string
            - type: 'null'
          description: Accepted for compatibility; currently ignored.
          default: null
        watermarking:
          anyOf:
            - type: boolean
            - type: 'null'
          default: null
        request_id:
          type: string
          description: >-
            Identifier for the generation request. Generated when omitted. This
            is separate from the X-Request-Id HTTP correlation header.
        session_id:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Stable session identity shared by related requests. Unlike
            request_id, this value is expected to remain stable across multiple
            requests in the same conversation or agent session.
          default: null
        media_io_kwargs:
          anyOf:
            - type: object
              additionalProperties:
                additionalProperties: {}
                type: object
            - type: 'null'
          description: >-
            Model-specific options for reading image, audio and video inputs,
            keyed by modality.
          default: null
        mm_processor_kwargs:
          anyOf:
            - additionalProperties: {}
              type: object
            - type: 'null'
          description: Model-specific options for processing image, audio and video inputs.
          default: null
        priority:
          type: integer
          minimum: -9223372036854776000
          maximum: 9223372036854776000
          description: >-
            Scheduling priority; lower values are handled first. Non-zero
            priorities require support from the selected model.
          default: 0
        cache_salt:
          anyOf:
            - type: string
            - type: 'null'
          minLength: 1
          maxLength: 1024
          description: >-
            If specified, the prefix cache will be salted with the provided
            string to prevent an attacker to guess prompts in multi-user
            environments. The salt should be random, protected from access by
            3rd parties, and long enough to be unpredictable (e.g., 43
            characters base64-encoded, corresponding to 256 bit).
          default: null
        enable_response_messages:
          type: boolean
          description: >-
            Dictates whether or not to return messages as part of the response
            object. Currently only supported for non-background.
          default: false
        structured_outputs:
          anyOf:
            - $ref: '#/components/schemas/InferenceStructuredOutputsParams'
            - type: 'null'
          description: Additional kwargs for structured outputs
          default: null
        repetition_penalty:
          anyOf:
            - type: number
            - type: 'null'
          default: null
        seed:
          anyOf:
            - type: integer
            - type: 'null'
          minimum: -9223372036854776000
          maximum: 9223372036854776000
          default: null
        stop:
          anyOf:
            - type: string
            - items:
                type: string
              type: array
            - type: 'null'
          default: []
        stop_token_ids:
          anyOf:
            - type: array
              items:
                type: integer
            - type: 'null'
          default: []
        ignore_eos:
          type: boolean
          default: false
        vllm_xargs:
          anyOf:
            - type: object
              additionalProperties:
                anyOf:
                  - type: string
                  - type: integer
                  - type: number
                  - type: array
                    items:
                      anyOf:
                        - type: string
                        - type: integer
                        - type: number
            - type: 'null'
          description: >-
            Additional request parameters with (list of) string or numeric
            values, used by custom extensions.
          default: null
        chat_template_kwargs:
          anyOf:
            - additionalProperties: {}
              type: object
            - type: 'null'
          description: >-
            Additional keyword args to pass to the chat template renderer. Will
            be accessible by the template.
          default: null
      required:
        - input
        - model
    InferenceResponsesResponse:
      type: object
      properties:
        id:
          type: string
        created_at:
          type: integer
        incomplete_details:
          anyOf:
            - anyOf:
                - properties:
                    reason:
                      enum:
                        - max_output_tokens
                        - max_messages
                        - content_filter
                        - steered
                      type: string
                  type: object
                - type: 'null'
            - type: 'null'
          default: null
        instructions:
          anyOf:
            - type: string
            - type: 'null'
          default: null
        metadata:
          anyOf:
            - $ref: '#/components/schemas/Metadata'
            - type: 'null'
          default: null
        model:
          type: string
        object:
          enum:
            - response
          type: string
          default: response
        output:
          items:
            $ref: '#/components/schemas/OutputItem'
          type: array
        parallel_tool_calls:
          type: boolean
        temperature:
          type: number
        tool_choice:
          $ref: '#/components/schemas/ToolChoiceParam'
        tools:
          $ref: '#/components/schemas/ToolsArray'
        top_p:
          type: number
        background:
          type: boolean
        max_output_tokens:
          type: integer
        max_tool_calls:
          anyOf:
            - type: integer
            - type: 'null'
          default: null
        previous_response_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
        prompt:
          anyOf:
            - $ref: '#/components/schemas/Prompt'
            - type: 'null'
          default: null
        reasoning:
          anyOf:
            - anyOf:
                - $ref: '#/components/schemas/Reasoning'
                - type: 'null'
            - type: 'null'
          default: null
        service_tier:
          enum:
            - auto
            - default
            - flex
            - scale
            - priority
          type: string
        status:
          enum:
            - completed
            - failed
            - in_progress
            - cancelled
            - queued
            - incomplete
          type: string
        text:
          anyOf:
            - $ref: '#/components/schemas/ResponseTextParam'
            - type: 'null'
          default: null
        top_logprobs:
          anyOf:
            - type: integer
            - type: 'null'
          default: null
        truncation:
          enum:
            - auto
            - disabled
          type: string
        usage:
          anyOf:
            - $ref: '#/components/schemas/InferenceResponseUsage'
            - type: 'null'
          default: null
        user:
          anyOf:
            - type: string
            - type: 'null'
          default: null
        metrics:
          anyOf:
            - $ref: '#/components/schemas/InferencePerRequestMetrics'
            - type: 'null'
          default: null
        presence_penalty:
          anyOf:
            - type: number
            - type: 'null'
          minimum: -2
          maximum: 2
          description: >-
            The presence penalty that was used to penalize new tokens based on
            whether they appear in the text so far.
          default: null
        frequency_penalty:
          anyOf:
            - type: number
            - type: 'null'
          minimum: -2
          maximum: 2
          description: >-
            The frequency penalty that was used to penalize new tokens based on
            their frequency in the text so far.
          default: null
        input_messages:
          anyOf:
            - anyOf:
                - type: array
                  items:
                    $ref: '#/components/schemas/ChatCompletionRequestMessage'
                - type: array
                  items:
                    $ref: '#/components/schemas/InferenceResponseRawMessageAndToken'
            - type: 'null'
          description: If enable_response_messages, we can show raw token input to model.
          default: null
        output_messages:
          anyOf:
            - anyOf:
                - type: array
                  items:
                    $ref: '#/components/schemas/ChatCompletionRequestMessage'
                - type: array
                  items:
                    $ref: '#/components/schemas/InferenceResponseRawMessageAndToken'
            - type: 'null'
          description: If enable_response_messages, we can show raw token output of model.
          default: null
      required:
        - background
        - created_at
        - id
        - max_output_tokens
        - model
        - object
        - output
        - parallel_tool_calls
        - service_tier
        - status
        - temperature
        - tool_choice
        - tools
        - top_p
        - truncation
    InferenceError:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
            type:
              type: string
            param:
              anyOf:
                - type: string
                - type: 'null'
            code:
              type:
                - string
                - integer
                - 'null'
          required:
            - message
            - type
      required:
        - error
    InferenceInputInputParam:
      oneOf:
        - title: Text input
          type: string
        - items:
            $ref: '#/components/schemas/InferenceInputInputItem'
          title: Input item list
          type: array
    Metadata:
      anyOf:
        - type: object
          additionalProperties:
            type: string
        - type: 'null'
    Prompt:
      anyOf:
        - properties:
            id:
              type: string
            variables:
              $ref: '#/components/schemas/ResponsePromptVariables'
            version:
              anyOf:
                - type: string
                - type: 'null'
          required:
            - id
          type: object
        - type: 'null'
    Reasoning:
      properties:
        context:
          anyOf:
            - enum:
                - auto
                - current_turn
                - all_turns
              type: string
            - type: 'null'
        effort:
          $ref: '#/components/schemas/ReasoningEffort'
        generate_summary:
          anyOf:
            - deprecated: true
              enum:
                - auto
                - concise
                - detailed
              type: string
            - type: 'null'
        mode:
          $ref: '#/components/schemas/ReasoningModeEnum'
        summary:
          anyOf:
            - enum:
                - auto
                - concise
                - detailed
              type: string
            - type: 'null'
      title: Reasoning
      type: object
    ResponseTextParam:
      properties:
        format:
          $ref: '#/components/schemas/TextResponseFormatConfiguration'
        verbosity:
          $ref: '#/components/schemas/Verbosity'
      type: object
    ToolChoiceParam:
      oneOf:
        - $ref: '#/components/schemas/ToolChoiceOptions'
        - $ref: '#/components/schemas/ToolChoiceAllowed'
        - $ref: '#/components/schemas/ToolChoiceTypes'
        - $ref: '#/components/schemas/ToolChoiceFunction'
        - $ref: '#/components/schemas/ToolChoiceMCP'
        - $ref: '#/components/schemas/ToolChoiceCustom'
        - $ref: '#/components/schemas/SpecificProgrammaticToolCallingParam'
        - $ref: '#/components/schemas/SpecificApplyPatchParam'
        - $ref: '#/components/schemas/SpecificFunctionShellParam'
    ToolsArray:
      items:
        $ref: '#/components/schemas/Tool'
      type: array
    InferenceStructuredOutputsParams:
      type: object
      properties:
        json:
          anyOf:
            - type: string
            - type: object
            - type: 'null'
          default: null
        regex:
          anyOf:
            - type: string
            - type: 'null'
          default: null
        choice:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          default: null
        grammar:
          anyOf:
            - type: string
            - type: 'null'
          default: null
        json_object:
          anyOf:
            - type: boolean
            - type: 'null'
          default: null
        disable_any_whitespace:
          type: boolean
          default: false
        disable_additional_properties:
          type: boolean
          default: false
        whitespace_pattern:
          anyOf:
            - type: string
            - type: 'null'
          default: null
        structural_tag:
          anyOf:
            - type: string
            - type: 'null'
          default: null
    OutputItem:
      oneOf:
        - $ref: '#/components/schemas/OutputMessage'
        - $ref: '#/components/schemas/FileSearchToolCall'
        - $ref: '#/components/schemas/FunctionToolCall'
        - $ref: '#/components/schemas/FunctionToolCallOutputResource'
        - $ref: '#/components/schemas/WebSearchToolCall'
        - $ref: '#/components/schemas/ComputerToolCall'
        - $ref: '#/components/schemas/ComputerToolCallOutputResource'
        - $ref: '#/components/schemas/ReasoningItem'
        - $ref: '#/components/schemas/Program'
        - $ref: '#/components/schemas/ProgramOutput'
        - $ref: '#/components/schemas/ToolSearchCall'
        - $ref: '#/components/schemas/ToolSearchOutput'
        - $ref: '#/components/schemas/AdditionalTools'
        - $ref: '#/components/schemas/CompactionBody'
        - $ref: '#/components/schemas/ImageGenToolCall'
        - $ref: '#/components/schemas/CodeInterpreterToolCall'
        - $ref: '#/components/schemas/LocalShellToolCall'
        - $ref: '#/components/schemas/LocalShellToolCallOutput'
        - $ref: '#/components/schemas/FunctionShellCall'
        - $ref: '#/components/schemas/FunctionShellCallOutput'
        - $ref: '#/components/schemas/ApplyPatchToolCall'
        - $ref: '#/components/schemas/ApplyPatchToolCallOutput'
        - $ref: '#/components/schemas/MCPToolCall'
        - $ref: '#/components/schemas/MCPListTools'
        - $ref: '#/components/schemas/MCPApprovalRequest'
        - $ref: '#/components/schemas/MCPApprovalResponseResource'
        - $ref: '#/components/schemas/CustomToolCall'
        - $ref: '#/components/schemas/CustomToolCallOutputResource'
    InferenceResponseUsage:
      type: object
      properties:
        input_tokens:
          type: integer
        input_tokens_details:
          $ref: '#/components/schemas/InferenceInputTokensDetails'
        output_tokens:
          type: integer
        output_tokens_details:
          $ref: '#/components/schemas/InferenceOutputTokensDetails'
        total_tokens:
          type: integer
      required:
        - input_tokens
        - input_tokens_details
        - output_tokens
        - output_tokens_details
        - total_tokens
    InferencePerRequestMetrics:
      type: object
      properties:
        time_to_first_token_ms:
          anyOf:
            - type: number
            - type: 'null'
          default: null
        generation_time_ms:
          anyOf:
            - type: number
            - type: 'null'
          default: null
        queue_time_ms:
          anyOf:
            - type: number
            - type: 'null'
          default: null
        mean_itl_ms:
          anyOf:
            - type: number
            - type: 'null'
          default: null
        tokens_per_second:
          anyOf:
            - type: number
            - type: 'null'
          default: null
        speculative_decoding:
          anyOf:
            - $ref: '#/components/schemas/InferenceSpeculativeDecodingMetrics'
            - type: 'null'
          default: null
    ChatCompletionRequestMessage:
      oneOf:
        - $ref: '#/components/schemas/ChatCompletionRequestDeveloperMessage'
        - $ref: '#/components/schemas/ChatCompletionRequestSystemMessage'
        - $ref: '#/components/schemas/ChatCompletionRequestUserMessage'
        - $ref: '#/components/schemas/ChatCompletionRequestAssistantMessage'
        - $ref: '#/components/schemas/ChatCompletionRequestToolMessage'
        - $ref: '#/components/schemas/ChatCompletionRequestFunctionMessage'
    InferenceResponseRawMessageAndToken:
      type: object
      properties:
        message:
          type: string
        tokens:
          type: array
          items:
            type: integer
        type:
          enum:
            - raw_message_tokens
          type: string
          default: raw_message_tokens
      required:
        - message
        - tokens
    InferenceInputInputItem:
      anyOf:
        - $ref: '#/components/schemas/InferenceInputEasyInputMessage'
        - $ref: '#/components/schemas/InferenceInputItem'
          title: Item
          type: object
        - $ref: '#/components/schemas/CompactionTriggerItemParam'
        - $ref: '#/components/schemas/ItemReferenceParam'
        - $ref: '#/components/schemas/ProgramItemParam'
        - $ref: '#/components/schemas/ProgramOutputItemParam'
    ResponsePromptVariables:
      anyOf:
        - additionalProperties:
            oneOf:
              - type: string
              - $ref: '#/components/schemas/InputTextContent'
              - $ref: '#/components/schemas/InputImageContent'
              - $ref: '#/components/schemas/InputFileContent'
          title: Prompt Variables
          type: object
        - type: 'null'
    ReasoningEffort:
      anyOf:
        - default: medium
          enum:
            - none
            - minimal
            - low
            - medium
            - high
            - xhigh
            - max
          type: string
        - type: 'null'
    ReasoningModeEnum:
      anyOf:
        - type: string
        - enum:
            - standard
            - pro
          type: string
    TextResponseFormatConfiguration:
      oneOf:
        - $ref: '#/components/schemas/ResponseFormatText'
        - $ref: '#/components/schemas/TextResponseFormatJsonSchema'
        - $ref: '#/components/schemas/ResponseFormatJsonObject'
    Verbosity:
      anyOf:
        - default: medium
          enum:
            - low
            - medium
            - high
          type: string
        - type: 'null'
    ToolChoiceOptions:
      enum:
        - none
        - auto
        - required
      title: Tool choice mode
      type: string
    ToolChoiceAllowed:
      properties:
        mode:
          enum:
            - auto
            - required
          type: string
        tools:
          items:
            type: object
            additionalProperties: true
          type: array
        type:
          enum:
            - allowed_tools
          type: string
      required:
        - type
        - mode
        - tools
      title: Allowed tools
      type: object
    ToolChoiceTypes:
      properties:
        type:
          enum:
            - file_search
            - web_search_preview
            - computer
            - computer_use_preview
            - computer_use
            - web_search_preview_2025_03_11
            - image_generation
            - code_interpreter
          type: string
      required:
        - type
      title: Hosted tool
      type: object
    ToolChoiceFunction:
      properties:
        name:
          type: string
        type:
          enum:
            - function
          type: string
      required:
        - type
        - name
      title: Function tool
      type: object
    ToolChoiceMCP:
      properties:
        name:
          anyOf:
            - type: string
            - type: 'null'
        server_label:
          type: string
        type:
          enum:
            - mcp
          type: string
      required:
        - type
        - server_label
      title: MCP tool
      type: object
    ToolChoiceCustom:
      properties:
        name:
          type: string
        type:
          type: string
          enum:
            - custom
      required:
        - type
        - name
      title: Custom tool
      type: object
    SpecificProgrammaticToolCallingParam:
      properties:
        type:
          default: programmatic_tool_calling
          enum:
            - programmatic_tool_calling
          type: string
      required:
        - type
      type: object
    SpecificApplyPatchParam:
      properties:
        type:
          default: apply_patch
          enum:
            - apply_patch
          type: string
      required:
        - type
      title: Specific apply patch tool choice
      type: object
    SpecificFunctionShellParam:
      properties:
        type:
          default: shell
          enum:
            - shell
          type: string
      required:
        - type
      title: Specific shell tool choice
      type: object
    Tool:
      oneOf:
        - $ref: '#/components/schemas/FunctionTool'
        - $ref: '#/components/schemas/FileSearchTool'
        - $ref: '#/components/schemas/ComputerTool'
        - $ref: '#/components/schemas/ComputerUsePreviewTool'
        - $ref: '#/components/schemas/WebSearchTool'
        - $ref: '#/components/schemas/MCPTool'
        - $ref: '#/components/schemas/CodeInterpreterTool'
        - $ref: '#/components/schemas/ProgrammaticToolCallingParam'
        - $ref: '#/components/schemas/ImageGenTool'
        - $ref: '#/components/schemas/LocalShellToolParam'
        - $ref: '#/components/schemas/FunctionShellToolParam'
        - $ref: '#/components/schemas/CustomToolParam'
        - $ref: '#/components/schemas/NamespaceToolParam'
        - $ref: '#/components/schemas/ToolSearchToolParam'
        - $ref: '#/components/schemas/WebSearchPreviewTool'
        - $ref: '#/components/schemas/ApplyPatchToolParam'
    OutputMessage:
      properties:
        content:
          items:
            $ref: '#/components/schemas/OutputMessageContent'
          type: array
        id:
          type: string
        phase:
          anyOf:
            - $ref: '#/components/schemas/MessagePhase'
            - type: 'null'
        role:
          type: string
          const: assistant
        status:
          enum:
            - in_progress
            - completed
            - incomplete
          type: string
        type:
          type: string
          const: message
      required:
        - id
        - type
        - role
        - content
        - status
      title: Output message
      type: object
    FileSearchToolCall:
      properties:
        id:
          type: string
        queries:
          items:
            type: string
          type: array
        results:
          anyOf:
            - items:
                properties:
                  attributes:
                    $ref: '#/components/schemas/VectorStoreFileAttributes'
                  file_id:
                    type: string
                  filename:
                    type: string
                  score:
                    format: float
                    type: number
                  text:
                    type: string
                type: object
              type: array
            - type: 'null'
        status:
          enum:
            - in_progress
            - searching
            - completed
            - incomplete
            - failed
          type: string
        type:
          enum:
            - file_search_call
          type: string
      required:
        - id
        - type
        - status
        - queries
      title: File search tool call
      type: object
    FunctionToolCall:
      properties:
        arguments:
          type: string
        async:
          type: boolean
        call_id:
          type: string
        caller:
          anyOf:
            - $ref: '#/components/schemas/ToolCallCaller'
            - type: 'null'
        id:
          type: string
        name:
          type: string
        namespace:
          type: string
        status:
          enum:
            - in_progress
            - completed
            - incomplete
          type: string
        type:
          const: function_call
          type: string
      required:
        - type
        - call_id
        - name
        - arguments
      title: Function tool call
      type: object
    FunctionToolCallOutputResource:
      allOf:
        - $ref: '#/components/schemas/FunctionToolCallOutput'
        - properties:
            created_by:
              type: string
            id:
              type: string
            status:
              $ref: '#/components/schemas/FunctionCallOutputStatusEnum'
          required:
            - id
            - status
          type: object
    WebSearchToolCall:
      properties:
        action:
          oneOf:
            - $ref: '#/components/schemas/WebSearchActionSearch'
            - $ref: '#/components/schemas/WebSearchActionOpenPage'
            - $ref: '#/components/schemas/WebSearchActionFind'
          type: object
        id:
          type: string
        status:
          $ref: '#/components/schemas/WebSearchCallStatus'
        type:
          const: web_search_call
          type: string
      required:
        - id
        - type
        - status
      title: Web search tool call
      type: object
    ComputerToolCall:
      properties:
        action:
          $ref: '#/components/schemas/ComputerAction'
        actions:
          $ref: '#/components/schemas/ComputerActionList'
        call_id:
          type: string
        id:
          type: string
        pending_safety_checks:
          items:
            $ref: '#/components/schemas/ComputerCallSafetyCheckParam'
          type: array
        status:
          enum:
            - in_progress
            - completed
            - incomplete
          type: string
        type:
          default: computer_call
          enum:
            - computer_call
          type: string
      required:
        - type
        - id
        - call_id
        - pending_safety_checks
        - status
      title: Computer tool call
      type: object
    ComputerToolCallOutputResource:
      allOf:
        - $ref: '#/components/schemas/ComputerToolCallOutput'
        - properties:
            created_by:
              type: string
            status:
              $ref: '#/components/schemas/ComputerCallOutputStatus'
          required:
            - id
            - status
          type: object
    ReasoningItem:
      properties:
        content:
          items:
            $ref: '#/components/schemas/ReasoningTextContent'
          type: array
        encrypted_content:
          anyOf:
            - type: string
            - type: 'null'
        id:
          type: string
        status:
          enum:
            - in_progress
            - completed
            - incomplete
          type: string
        summary:
          items:
            $ref: '#/components/schemas/SummaryTextContent'
          type: array
        type:
          enum:
            - reasoning
          type: string
      required:
        - id
        - summary
        - type
      title: Reasoning
      type: object
    Program:
      properties:
        call_id:
          type: string
        code:
          type: string
        fingerprint:
          type: string
        id:
          type: string
        type:
          default: program
          enum:
            - program
          type: string
      required:
        - type
        - id
        - call_id
        - code
        - fingerprint
      type: object
    ProgramOutput:
      properties:
        call_id:
          type: string
        id:
          type: string
        result:
          type: string
        status:
          $ref: '#/components/schemas/ProgramOutputStatus'
        type:
          default: program_output
          enum:
            - program_output
          type: string
      required:
        - type
        - id
        - call_id
        - result
        - status
      type: object
    ToolSearchCall:
      properties:
        arguments: {}
        call_id:
          anyOf:
            - type: string
            - type: 'null'
        created_by:
          type: string
        execution:
          $ref: '#/components/schemas/ToolSearchExecutionType'
        id:
          type: string
        status:
          $ref: '#/components/schemas/FunctionCallStatus'
        type:
          default: tool_search_call
          enum:
            - tool_search_call
          type: string
      required:
        - type
        - id
        - call_id
        - execution
        - arguments
        - status
      type: object
    ToolSearchOutput:
      properties:
        call_id:
          anyOf:
            - type: string
            - type: 'null'
        created_by:
          type: string
        execution:
          $ref: '#/components/schemas/ToolSearchExecutionType'
        id:
          type: string
        status:
          $ref: '#/components/schemas/FunctionCallOutputStatusEnum'
        tools:
          items:
            $ref: '#/components/schemas/Tool'
          type: array
        type:
          default: tool_search_output
          enum:
            - tool_search_output
          type: string
      required:
        - type
        - id
        - call_id
        - execution
        - tools
        - status
      type: object
    AdditionalTools:
      properties:
        id:
          type: string
        role:
          $ref: '#/components/schemas/MessageRole'
        tools:
          items:
            $ref: '#/components/schemas/Tool'
          type: array
        type:
          default: additional_tools
          enum:
            - additional_tools
          type: string
      required:
        - type
        - id
        - role
        - tools
      type: object
    CompactionBody:
      properties:
        created_by:
          type: string
        encrypted_content:
          type: string
        id:
          type: string
        type:
          default: compaction
          enum:
            - compaction
          type: string
      required:
        - type
        - id
        - encrypted_content
      title: Compaction item
      type: object
    ImageGenToolCall:
      properties:
        action:
          anyOf:
            - $ref: '#/components/schemas/ImageGenActionEnum'
            - type: 'null'
        background:
          anyOf:
            - $ref: '#/components/schemas/ImageBackground'
            - type: 'null'
        error:
          $ref: '#/components/schemas/ImageGenToolCallError'
        id:
          type: string
        output_format:
          anyOf:
            - $ref: '#/components/schemas/ImageOutputFormat'
            - type: 'null'
        quality:
          anyOf:
            - enum:
                - low
                - medium
                - high
                - xhigh
                - max
                - auto
              type: string
            - type: 'null'
        result:
          anyOf:
            - type: string
            - type: 'null'
        revised_prompt:
          anyOf:
            - type: string
            - type: 'null'
        size:
          anyOf:
            - anyOf:
                - type: string
                - enum:
                    - 1024x1024
                    - 1024x1536
                    - 1536x1024
                  type: string
            - type: 'null'
        status:
          enum:
            - in_progress
            - completed
            - generating
            - failed
          type: string
        svg_usage:
          $ref: '#/components/schemas/SvgUsage'
        type:
          enum:
            - image_generation_call
          type: string
      required:
        - type
        - id
        - status
        - result
      title: Image generation call
      type: object
    CodeInterpreterToolCall:
      properties:
        code:
          anyOf:
            - type: string
            - type: 'null'
        container_id:
          type: string
        id:
          type: string
        outputs:
          anyOf:
            - items:
                oneOf:
                  - $ref: '#/components/schemas/CodeInterpreterOutputLogs'
                  - $ref: '#/components/schemas/CodeInterpreterOutputImage'
              type: array
            - type: 'null'
        status:
          enum:
            - in_progress
            - completed
            - incomplete
            - interpreting
            - failed
          type: string
        type:
          default: code_interpreter_call
          enum:
            - code_interpreter_call
          type: string
      required:
        - type
        - id
        - status
        - container_id
        - code
        - outputs
      title: Code interpreter tool call
      type: object
    LocalShellToolCall:
      properties:
        action:
          $ref: '#/components/schemas/LocalShellExecAction'
        call_id:
          type: string
        id:
          type: string
        status:
          enum:
            - in_progress
            - completed
            - incomplete
          type: string
        type:
          enum:
            - local_shell_call
          type: string
      required:
        - type
        - id
        - call_id
        - action
        - status
      title: Local shell call
      type: object
    LocalShellToolCallOutput:
      properties:
        id:
          type: string
        output:
          type: string
        status:
          anyOf:
            - enum:
                - in_progress
                - completed
                - incomplete
              type: string
            - type: 'null'
        type:
          enum:
            - local_shell_call_output
          type: string
      required:
        - id
        - type
        - call_id
        - output
      title: Local shell call output
      type: object
    FunctionShellCall:
      properties:
        action:
          $ref: '#/components/schemas/FunctionShellAction'
        call_id:
          type: string
        caller:
          anyOf:
            - $ref: '#/components/schemas/ToolCallCaller'
            - type: 'null'
        created_by:
          type: string
        environment:
          anyOf:
            - oneOf:
                - $ref: '#/components/schemas/LocalEnvironmentResource'
                - $ref: '#/components/schemas/ContainerReferenceResource'
            - type: 'null'
        id:
          type: string
        status:
          $ref: '#/components/schemas/FunctionShellCallStatus'
        type:
          default: shell_call
          enum:
            - shell_call
          type: string
      required:
        - type
        - id
        - call_id
        - action
        - status
        - environment
      title: Shell tool call
      type: object
    FunctionShellCallOutput:
      properties:
        call_id:
          type: string
        caller:
          anyOf:
            - $ref: '#/components/schemas/ToolCallCaller'
            - type: 'null'
        created_by:
          type: string
        id:
          type: string
        max_output_length:
          anyOf:
            - type: integer
            - type: 'null'
        output:
          items:
            $ref: '#/components/schemas/FunctionShellCallOutputContent'
          type: array
        status:
          $ref: '#/components/schemas/FunctionShellCallOutputStatusEnum'
        type:
          default: shell_call_output
          enum:
            - shell_call_output
          type: string
      required:
        - type
        - id
        - call_id
        - status
        - output
        - max_output_length
      title: Shell call output
      type: object
    ApplyPatchToolCall:
      properties:
        call_id:
          type: string
        caller:
          anyOf:
            - $ref: '#/components/schemas/ToolCallCaller'
            - type: 'null'
        created_by:
          type: string
        id:
          type: string
        operation:
          oneOf:
            - $ref: '#/components/schemas/ApplyPatchCreateFileOperation'
            - $ref: '#/components/schemas/ApplyPatchDeleteFileOperation'
            - $ref: '#/components/schemas/ApplyPatchUpdateFileOperation'
          title: Apply patch operation
        status:
          $ref: '#/components/schemas/ApplyPatchCallStatus'
        type:
          default: apply_patch_call
          enum:
            - apply_patch_call
          type: string
      required:
        - type
        - id
        - call_id
        - status
        - operation
      title: Apply patch tool call
      type: object
    ApplyPatchToolCallOutput:
      properties:
        call_id:
          type: string
        caller:
          anyOf:
            - $ref: '#/components/schemas/ToolCallCaller'
            - type: 'null'
        created_by:
          type: string
        id:
          type: string
        output:
          anyOf:
            - type: string
            - type: 'null'
        status:
          $ref: '#/components/schemas/ApplyPatchCallOutputStatus'
        type:
          default: apply_patch_call_output
          enum:
            - apply_patch_call_output
          type: string
      required:
        - type
        - id
        - call_id
        - status
      title: Apply patch tool call output
      type: object
    MCPToolCall:
      properties:
        approval_request_id:
          anyOf:
            - type: string
            - type: 'null'
        arguments:
          type: string
        error:
          anyOf:
            - $ref: '#/components/schemas/MCPToolCallError'
            - type: 'null'
        id:
          type: string
        name:
          type: string
        output:
          anyOf:
            - type: string
            - type: 'null'
        server_label:
          type: string
        status:
          $ref: '#/components/schemas/MCPToolCallStatus'
        type:
          const: mcp_call
          type: string
      required:
        - type
        - id
        - server_label
        - name
        - arguments
      title: MCP tool call
      type: object
    MCPListTools:
      properties:
        error:
          anyOf:
            - type: string
            - type: 'null'
        id:
          type: string
        server_label:
          type: string
        tools:
          items:
            $ref: '#/components/schemas/MCPListToolsTool'
          type: array
        type:
          const: mcp_list_tools
          type: string
      required:
        - type
        - id
        - server_label
        - tools
      title: MCP list tools
      type: object
    MCPApprovalRequest:
      properties:
        arguments:
          type: string
        id:
          type: string
        name:
          type: string
        server_label:
          type: string
        type:
          const: mcp_approval_request
          type: string
      required:
        - type
        - id
        - server_label
        - name
        - arguments
      title: MCP approval request
      type: object
    MCPApprovalResponseResource:
      properties:
        approval_request_id:
          type: string
        approve:
          type: boolean
        id:
          type: string
        reason:
          anyOf:
            - type: string
            - type: 'null'
        type:
          const: mcp_approval_response
          type: string
      required:
        - type
        - id
        - request_id
        - approve
        - approval_request_id
      title: MCP approval response
      type: object
    CustomToolCall:
      properties:
        async:
          type: boolean
        call_id:
          type: string
        caller:
          anyOf:
            - $ref: '#/components/schemas/ToolCallCaller'
            - type: 'null'
        id:
          type: string
        input:
          type: string
        name:
          type: string
        namespace:
          type: string
        type:
          enum:
            - custom_tool_call
          type: string
      required:
        - type
        - call_id
        - name
        - input
      title: Custom tool call
      type: object
    CustomToolCallOutputResource:
      allOf:
        - $ref: '#/components/schemas/CustomToolCallOutput'
        - properties:
            created_by:
              type: string
            id:
              type: string
            status:
              $ref: '#/components/schemas/FunctionCallOutputStatusEnum'
          required:
            - id
            - status
          type: object
      title: ResponseCustomToolCallOutputItem
    InferenceInputTokensDetails:
      type: object
      properties:
        cached_tokens:
          type: integer
        cache_write_tokens:
          type: integer
        input_tokens_per_turn:
          type: array
          items:
            type: integer
          default: []
        cached_tokens_per_turn:
          type: array
          items:
            type: integer
          default: []
      required:
        - cached_tokens
        - cache_write_tokens
    InferenceOutputTokensDetails:
      type: object
      properties:
        reasoning_tokens:
          type: integer
          default: 0
        tool_output_tokens:
          type: integer
          default: 0
        output_tokens_per_turn:
          type: array
          items:
            type: integer
          default: []
        tool_output_tokens_per_turn:
          type: array
          items:
            type: integer
          default: []
    InferenceSpeculativeDecodingMetrics:
      type: object
      properties:
        mean_acceptance_length:
          type: number
        draft_acceptance_rate:
          type: number
        acceptance_histogram:
          type: array
          items:
            type: integer
        num_spec_steps:
          type: integer
        num_accepted_draft_tokens:
          type: integer
        num_draft_tokens:
          type: integer
        num_spec_tokens:
          type: integer
        per_step_accepted:
          anyOf:
            - type: array
              items:
                type: integer
            - type: 'null'
          default: null
        per_step_drafted:
          anyOf:
            - type: array
              items:
                type: integer
            - type: 'null'
          default: null
      required:
        - mean_acceptance_length
        - draft_acceptance_rate
        - acceptance_histogram
        - num_spec_steps
        - num_accepted_draft_tokens
        - num_draft_tokens
        - num_spec_tokens
    ChatCompletionRequestDeveloperMessage:
      properties:
        content:
          oneOf:
            - title: Text content
              type: string
            - items:
                $ref: >-
                  #/components/schemas/ChatCompletionRequestMessageContentPartText
              minItems: 1
              title: Array of content parts
              type: array
        name:
          type: string
        role:
          const: developer
          type: string
      required:
        - content
        - role
      title: Developer message
      type: object
    ChatCompletionRequestSystemMessage:
      properties:
        content:
          oneOf:
            - title: Text content
              type: string
            - items:
                $ref: >-
                  #/components/schemas/ChatCompletionRequestSystemMessageContentPart
              minItems: 1
              title: Array of content parts
              type: array
        name:
          type: string
        role:
          const: system
          type: string
      required:
        - content
        - role
      title: System message
      type: object
    ChatCompletionRequestUserMessage:
      properties:
        content:
          oneOf:
            - title: Text content
              type: string
            - items:
                $ref: >-
                  #/components/schemas/ChatCompletionRequestUserMessageContentPart
              minItems: 1
              title: Array of content parts
              type: array
        name:
          type: string
        role:
          type: string
          const: user
      required:
        - content
        - role
      title: User message
      type: object
    ChatCompletionRequestAssistantMessage:
      properties:
        audio:
          anyOf:
            - properties:
                id:
                  type: string
              required:
                - id
              type: object
            - type: 'null'
        content:
          anyOf:
            - oneOf:
                - title: Text content
                  type: string
                - items:
                    $ref: >-
                      #/components/schemas/ChatCompletionRequestAssistantMessageContentPart
                  minItems: 1
                  title: Array of content parts
                  type: array
            - type: 'null'
        function_call:
          anyOf:
            - deprecated: true
              properties:
                arguments:
                  type: string
                name:
                  type: string
              required:
                - arguments
                - name
              type: object
            - type: 'null'
        name:
          type: string
        refusal:
          anyOf:
            - type: string
            - type: 'null'
        role:
          type: string
          const: assistant
        tool_calls:
          $ref: '#/components/schemas/ChatCompletionMessageToolCalls'
      required:
        - role
      title: Assistant message
      type: object
    ChatCompletionRequestToolMessage:
      properties:
        content:
          oneOf:
            - title: Text content
              type: string
            - items:
                $ref: >-
                  #/components/schemas/ChatCompletionRequestToolMessageContentPart
              minItems: 1
              title: Array of content parts
              type: array
        role:
          type: string
          const: tool
        tool_call_id:
          type: string
      required:
        - role
        - content
        - tool_call_id
      title: Tool message
      type: object
    ChatCompletionRequestFunctionMessage:
      deprecated: true
      properties:
        content:
          anyOf:
            - type: string
            - type: 'null'
        name:
          type: string
        role:
          const: function
          type: string
      required:
        - role
        - content
        - name
      title: Function message
      type: object
    InferenceInputEasyInputMessage:
      properties:
        content:
          oneOf:
            - title: Text input
              type: string
            - $ref: '#/components/schemas/InferenceInputInputMessageContentList'
        phase:
          anyOf:
            - $ref: '#/components/schemas/MessagePhase'
            - type: 'null'
        role:
          enum:
            - user
            - assistant
            - system
            - developer
          type: string
        type:
          enum:
            - message
          type: string
      required:
        - role
        - content
      title: Input message
      type: object
    InferenceInputItem:
      oneOf:
        - $ref: '#/components/schemas/InferenceInputInputMessage'
        - $ref: '#/components/schemas/InferenceInputOutputMessage'
        - $ref: '#/components/schemas/FileSearchToolCall'
        - $ref: '#/components/schemas/ComputerToolCall'
        - $ref: '#/components/schemas/ComputerCallOutputItemParam'
        - $ref: '#/components/schemas/WebSearchToolCall'
        - $ref: '#/components/schemas/FunctionToolCall'
        - $ref: '#/components/schemas/FunctionCallOutputItemParam'
        - $ref: '#/components/schemas/ToolSearchCallItemParam'
        - $ref: '#/components/schemas/ToolSearchOutputItemParam'
        - $ref: '#/components/schemas/AdditionalToolsItemParam'
        - $ref: '#/components/schemas/ResponseConfigurationUpdateItemParam'
        - $ref: '#/components/schemas/InferenceInputReasoningItem'
        - $ref: '#/components/schemas/CompactionSummaryItemParam'
        - $ref: '#/components/schemas/ImageGenToolCall'
        - $ref: '#/components/schemas/CodeInterpreterToolCall'
        - $ref: '#/components/schemas/LocalShellToolCall'
        - $ref: '#/components/schemas/LocalShellToolCallOutput'
        - $ref: '#/components/schemas/FunctionShellCallItemParam'
        - $ref: '#/components/schemas/FunctionShellCallOutputItemParam'
        - $ref: '#/components/schemas/ApplyPatchToolCallItemParam'
        - $ref: '#/components/schemas/ApplyPatchToolCallOutputItemParam'
        - $ref: '#/components/schemas/MCPListTools'
        - $ref: '#/components/schemas/MCPApprovalRequest'
        - $ref: '#/components/schemas/MCPApprovalResponse'
        - $ref: '#/components/schemas/MCPToolCall'
        - $ref: '#/components/schemas/InferenceInputCustomToolCallOutput'
        - $ref: '#/components/schemas/CustomToolCall'
      type: object
    CompactionTriggerItemParam:
      properties:
        id:
          anyOf:
            - type: string
            - type: 'null'
        type:
          default: compaction_trigger
          enum:
            - compaction_trigger
          type: string
      required:
        - type
      title: Compaction trigger
      type: object
    ItemReferenceParam:
      properties:
        id:
          type: string
        type:
          anyOf:
            - default: item_reference
              enum:
                - item_reference
              type: string
            - type: 'null'
      required:
        - id
      title: Item reference
      type: object
    ProgramItemParam:
      properties:
        call_id:
          maxLength: 64
          minLength: 1
          type: string
        code:
          maxLength: 10485760
          type: string
        fingerprint:
          maxLength: 10485760
          type: string
        id:
          type: string
        type:
          default: program
          enum:
            - program
          type: string
      required:
        - id
        - type
        - call_id
        - code
        - fingerprint
      type: object
    ProgramOutputItemParam:
      properties:
        call_id:
          maxLength: 64
          minLength: 1
          type: string
        id:
          type: string
        result:
          maxLength: 10485760
          type: string
        status:
          $ref: '#/components/schemas/ProgramOutputItemStatus'
        type:
          default: program_output
          enum:
            - program_output
          type: string
      required:
        - id
        - type
        - call_id
        - result
        - status
      type: object
    InputTextContent:
      properties:
        prompt_cache_breakpoint:
          $ref: '#/components/schemas/PromptCacheBreakpointConfig'
        text:
          type: string
        type:
          default: input_text
          enum:
            - input_text
          type: string
      required:
        - type
        - text
      title: Input text
      type: object
    InputImageContent:
      properties:
        detail:
          $ref: '#/components/schemas/ImageDetail'
        file_id:
          anyOf:
            - type: string
            - type: 'null'
        image_url:
          anyOf:
            - format: uri
              type: string
            - type: 'null'
        prompt_cache_breakpoint:
          $ref: '#/components/schemas/PromptCacheBreakpointConfig'
        type:
          default: input_image
          enum:
            - input_image
          type: string
      required:
        - type
        - detail
      title: Input image
      type: object
    InputFileContent:
      properties:
        detail:
          $ref: '#/components/schemas/FileInputDetail'
        file_data:
          type: string
        file_id:
          anyOf:
            - type: string
            - type: 'null'
        file_url:
          format: uri
          type: string
        filename:
          type: string
        prompt_cache_breakpoint:
          $ref: '#/components/schemas/PromptCacheBreakpointConfig'
        type:
          default: input_file
          enum:
            - input_file
          type: string
      required:
        - type
      title: Input file
      type: object
    ResponseFormatText:
      properties:
        type:
          type: string
          const: text
      required:
        - type
      title: Text
      type: object
    TextResponseFormatJsonSchema:
      properties:
        description:
          type: string
        name:
          type: string
        schema:
          $ref: '#/components/schemas/ResponseFormatJsonSchemaSchema'
        strict:
          anyOf:
            - type: boolean
              default: false
            - type: 'null'
        type:
          enum:
            - json_schema
          type: string
      required:
        - type
        - schema
        - name
      title: JSON schema
      type: object
    ResponseFormatJsonObject:
      properties:
        type:
          const: json_object
          type: string
      required:
        - type
      title: JSON object
      type: object
    FunctionTool:
      properties:
        allowed_callers:
          anyOf:
            - items:
                $ref: '#/components/schemas/CallableToolAllowedCaller'
              type: array
            - type: 'null'
        async:
          type: boolean
        defer_loading:
          type: boolean
        description:
          anyOf:
            - type: string
            - type: 'null'
        name:
          type: string
        output_schema:
          anyOf:
            - additionalProperties: {}
              type: object
            - type: 'null'
        parameters:
          anyOf:
            - additionalProperties: {}
              type: object
            - type: 'null'
        strict:
          anyOf:
            - type: boolean
            - type: 'null'
        type:
          default: function
          enum:
            - function
          type: string
      required:
        - type
        - name
        - strict
        - parameters
      title: Function
      type: object
    FileSearchTool:
      properties:
        filters:
          anyOf:
            - $ref: '#/components/schemas/Filters'
            - type: 'null'
        max_num_results:
          type: integer
        ranking_options:
          $ref: '#/components/schemas/RankingOptions'
        type:
          default: file_search
          enum:
            - file_search
          type: string
        vector_store_ids:
          items:
            type: string
          type: array
      required:
        - type
        - vector_store_ids
      title: File search
      type: object
    ComputerTool:
      properties:
        type:
          default: computer
          enum:
            - computer
          type: string
      required:
        - type
      title: Computer
      type: object
    ComputerUsePreviewTool:
      properties:
        display_height:
          type: integer
        display_width:
          type: integer
        environment:
          $ref: '#/components/schemas/ComputerEnvironment'
        type:
          default: computer_use_preview
          enum:
            - computer_use_preview
          type: string
      required:
        - type
        - environment
        - display_width
        - display_height
      title: Computer use preview
      type: object
    WebSearchTool:
      properties:
        external_web_access:
          type: boolean
          default: true
        filters:
          anyOf:
            - properties:
                allowed_domains:
                  anyOf:
                    - default: []
                      items:
                        type: string
                      title: Allowed domains for the search.
                      type: array
                    - type: 'null'
              type: object
            - type: 'null'
        search_context_size:
          default: medium
          enum:
            - low
            - medium
            - high
          type: string
        type:
          default: web_search
          enum:
            - web_search
            - web_search_2025_08_26
          type: string
        user_location:
          $ref: '#/components/schemas/WebSearchApproximateLocation'
      required:
        - type
      title: Web search
      type: object
    MCPTool:
      properties:
        allowed_callers:
          anyOf:
            - items:
                $ref: '#/components/schemas/CallableToolAllowedCaller'
              minItems: 1
              type: array
            - type: 'null'
        allowed_tools:
          anyOf:
            - oneOf:
                - items:
                    type: string
                  title: MCP allowed tools
                  type: array
                - $ref: '#/components/schemas/MCPToolFilter'
            - type: 'null'
        authorization:
          type: string
        connector_id:
          deprecated: true
          enum:
            - connector_dropbox
            - connector_gmail
            - connector_googlecalendar
            - connector_googledrive
            - connector_microsoftteams
            - connector_outlookcalendar
            - connector_outlookemail
            - connector_sharepoint
          type: string
        defer_loading:
          type: boolean
        headers:
          anyOf:
            - type: object
              additionalProperties:
                type: string
            - type: 'null'
        require_approval:
          anyOf:
            - default: always
              oneOf:
                - additionalProperties: false
                  properties:
                    always:
                      $ref: '#/components/schemas/MCPToolFilter'
                    never:
                      $ref: '#/components/schemas/MCPToolFilter'
                  title: MCP tool approval filter
                  type: object
                - enum:
                    - always
                    - never
                  title: MCP tool approval setting
                  type: string
            - type: 'null'
        server_description:
          type: string
        server_label:
          type: string
        server_url:
          format: uri
          type: string
        tunnel_id:
          pattern: ^tunnel_[a-z0-9]{32}$
          type: string
        type:
          const: mcp
          type: string
      required:
        - type
        - server_label
      title: MCP tool
      type: object
    CodeInterpreterTool:
      properties:
        allowed_callers:
          anyOf:
            - items:
                $ref: '#/components/schemas/CallableToolAllowedCaller'
              minItems: 1
              type: array
            - type: 'null'
        container:
          oneOf:
            - type: string
            - $ref: '#/components/schemas/AutoCodeInterpreterToolParam'
        type:
          enum:
            - code_interpreter
          type: string
      required:
        - type
        - container
      title: Code interpreter
      type: object
    ProgrammaticToolCallingParam:
      properties:
        type:
          default: programmatic_tool_calling
          enum:
            - programmatic_tool_calling
          type: string
      required:
        - type
      type: object
    ImageGenTool:
      properties:
        action:
          $ref: '#/components/schemas/ImageGenActionEnum'
        background:
          default: auto
          enum:
            - transparent
            - opaque
            - auto
          type: string
        complexity:
          enum:
            - low
            - medium
            - high
          type: string
        frame_count:
          default: 9
          maximum: 16
          minimum: 2
          type: integer
        frame_duration_ms:
          default: 200
          maximum: 2000
          minimum: 20
          type: integer
        input_fidelity:
          anyOf:
            - $ref: '#/components/schemas/InputFidelity'
            - type: 'null'
        input_image_mask:
          additionalProperties: false
          properties:
            file_id:
              type: string
            image_url:
              type: string
          required: []
          type: object
        model:
          anyOf:
            - type: string
            - default: gpt-image-2.6-sunburst
              enum:
                - gpt-image-1
                - gpt-image-1-mini
                - gpt-image-2
                - gpt-image-2-2026-04-21
                - gpt-image-2.5-sunburst
                - gpt-image-2.5-sunburst-2026-09-08
                - gpt-image-2.5-flare
                - gpt-image-2.5-flare-2026-09-08
                - gpt-image-2.6-sunburst
                - gpt-image-2.6-flare
                - gpt-image-1.5
                - chatgpt-image-latest
              type: string
        moderation:
          default: auto
          enum:
            - auto
            - low
          type: string
        output_compression:
          default: 100
          maximum: 100
          minimum: 0
          type: integer
        output_format:
          default: png
          enum:
            - png
            - webp
            - jpeg
            - gif
            - svg
          type: string
        partial_images:
          default: 0
          maximum: 3
          minimum: 0
          type: integer
        quality:
          default: auto
          enum:
            - low
            - medium
            - high
            - xhigh
            - max
            - auto
          type: string
        size:
          anyOf:
            - type: string
            - enum:
                - 1024x1024
                - 1024x1536
                - 1536x1024
                - auto
              type: string
          default: auto
        svg:
          $ref: '#/components/schemas/SvgParam'
        type:
          enum:
            - image_generation
          type: string
      required:
        - type
      title: Image generation tool
      type: object
    LocalShellToolParam:
      properties:
        type:
          default: local_shell
          enum:
            - local_shell
          type: string
      required:
        - type
      title: Local shell tool
      type: object
    FunctionShellToolParam:
      properties:
        allowed_callers:
          anyOf:
            - items:
                $ref: '#/components/schemas/CallableToolAllowedCaller'
              minItems: 1
              type: array
            - type: 'null'
        environment:
          anyOf:
            - oneOf:
                - $ref: '#/components/schemas/ContainerAutoParam'
                - $ref: '#/components/schemas/LocalEnvironmentParam'
                - $ref: '#/components/schemas/ContainerReferenceParam'
            - type: 'null'
        type:
          default: shell
          enum:
            - shell
          type: string
      required:
        - type
      title: Shell tool
      type: object
    CustomToolParam:
      properties:
        allowed_callers:
          anyOf:
            - items:
                $ref: '#/components/schemas/CallableToolAllowedCaller'
              minItems: 1
              type: array
            - type: 'null'
        async:
          type: boolean
        defer_loading:
          type: boolean
        description:
          type: string
        format:
          oneOf:
            - $ref: '#/components/schemas/CustomTextFormatParam'
            - $ref: '#/components/schemas/CustomGrammarFormatParam'
        name:
          type: string
        type:
          default: custom
          enum:
            - custom
          type: string
      required:
        - type
        - name
      title: Custom tool
      type: object
    NamespaceToolParam:
      properties:
        description:
          type: string
        name:
          type: string
          minLength: 1
        tools:
          items:
            oneOf:
              - $ref: '#/components/schemas/FunctionToolParam'
              - $ref: '#/components/schemas/CustomToolParam'
          minItems: 1
          type: array
        type:
          default: namespace
          enum:
            - namespace
          type: string
      required:
        - type
        - name
        - description
        - tools
      title: Namespace
      type: object
    ToolSearchToolParam:
      properties:
        description:
          anyOf:
            - type: string
            - type: 'null'
        execution:
          $ref: '#/components/schemas/ToolSearchExecutionType'
        parameters:
          anyOf:
            - $ref: '#/components/schemas/EmptyModelParam'
            - type: 'null'
        type:
          default: tool_search
          enum:
            - tool_search
          type: string
      required:
        - type
      title: Tool search tool
      type: object
    WebSearchPreviewTool:
      properties:
        search_content_types:
          items:
            $ref: '#/components/schemas/SearchContentType'
          type: array
        search_context_size:
          $ref: '#/components/schemas/SearchContextSize'
        type:
          default: web_search_preview
          enum:
            - web_search_preview
            - web_search_preview_2025_03_11
          type: string
        user_location:
          anyOf:
            - $ref: '#/components/schemas/ApproximateLocation'
            - type: 'null'
      required:
        - type
      title: Web search preview
      type: object
    ApplyPatchToolParam:
      properties:
        allowed_callers:
          anyOf:
            - items:
                $ref: '#/components/schemas/CallableToolAllowedCaller'
              minItems: 1
              type: array
            - type: 'null'
        type:
          default: apply_patch
          enum:
            - apply_patch
          type: string
      required:
        - type
      title: Apply patch tool
      type: object
    OutputMessageContent:
      oneOf:
        - $ref: '#/components/schemas/OutputTextContent'
        - $ref: '#/components/schemas/RefusalContent'
    MessagePhase:
      enum:
        - commentary
        - final_answer
      type: string
    VectorStoreFileAttributes:
      anyOf:
        - additionalProperties:
            oneOf:
              - maxLength: 512
                type: string
              - type: number
              - type: boolean
          maxProperties: 16
          propertyNames:
            maxLength: 64
            type: string
          type: object
        - type: 'null'
    ToolCallCaller:
      oneOf:
        - $ref: '#/components/schemas/DirectToolCallCaller'
        - $ref: '#/components/schemas/ProgramToolCallCaller'
    FunctionToolCallOutput:
      properties:
        call_id:
          type: string
        caller:
          anyOf:
            - $ref: '#/components/schemas/ToolCallCallerParam'
            - type: 'null'
        id:
          type: string
        name:
          type: string
        namespace:
          type: string
        output:
          oneOf:
            - title: string output
              type: string
            - items:
                $ref: '#/components/schemas/FunctionAndCustomToolCallOutput'
              title: output content list
              type: array
        status:
          enum:
            - in_progress
            - completed
            - incomplete
          type: string
        type:
          const: function_call_output
          type: string
      required:
        - type
        - output
      title: Function tool call output
      type: object
    FunctionCallOutputStatusEnum:
      enum:
        - in_progress
        - completed
        - incomplete
      type: string
    WebSearchActionSearch:
      properties:
        queries:
          items:
            type: string
          title: Search queries
          type: array
        query:
          deprecated: true
          type: string
        sources:
          items:
            properties:
              type:
                type: string
                const: url
              url:
                format: uri
                type: string
            required:
              - type
              - url
            title: Web search source
            type: object
          title: Web search sources
          type: array
        type:
          const: search
          type: string
      required:
        - type
      title: Search action
      type: object
    WebSearchActionOpenPage:
      properties:
        type:
          const: open_page
          type: string
        url:
          anyOf:
            - format: uri
              type: string
            - type: 'null'
      required:
        - type
      title: Open page action
      type: object
    WebSearchActionFind:
      properties:
        pattern:
          type: string
        type:
          const: find_in_page
          type: string
        url:
          anyOf:
            - format: uri
              type: string
            - type: 'null'
      required:
        - type
        - pattern
      title: Find action
      type: object
    WebSearchCallStatus:
      enum:
        - in_progress
        - searching
        - completed
        - failed
        - incomplete
      type: string
    ComputerAction:
      oneOf:
        - $ref: '#/components/schemas/ClickParam'
        - $ref: '#/components/schemas/DoubleClickAction'
        - $ref: '#/components/schemas/DragParam'
        - $ref: '#/components/schemas/KeyPressAction'
        - $ref: '#/components/schemas/MoveParam'
        - $ref: '#/components/schemas/ScreenshotParam'
        - $ref: '#/components/schemas/ScrollParam'
        - $ref: '#/components/schemas/TypeParam'
        - $ref: '#/components/schemas/WaitParam'
    ComputerActionList:
      items:
        $ref: '#/components/schemas/ComputerAction'
      title: Computer Action List
      type: array
    ComputerCallSafetyCheckParam:
      properties:
        code:
          anyOf:
            - type: string
            - type: 'null'
        id:
          type: string
        message:
          anyOf:
            - type: string
            - type: 'null'
      required:
        - id
      type: object
    ComputerToolCallOutput:
      properties:
        acknowledged_safety_checks:
          items:
            $ref: '#/components/schemas/ComputerCallSafetyCheckParam'
          type: array
        call_id:
          type: string
        id:
          type: string
        output:
          $ref: '#/components/schemas/ComputerScreenshotImage'
        status:
          enum:
            - in_progress
            - completed
            - incomplete
          type: string
        type:
          const: computer_call_output
          default: computer_call_output
          type: string
      required:
        - type
        - call_id
        - output
      title: Computer tool call output
      type: object
    ComputerCallOutputStatus:
      enum:
        - completed
        - incomplete
        - failed
      type: string
    ReasoningTextContent:
      properties:
        text:
          type: string
        type:
          default: reasoning_text
          enum:
            - reasoning_text
          type: string
      required:
        - type
        - text
      title: Reasoning text
      type: object
    SummaryTextContent:
      properties:
        text:
          type: string
        type:
          default: summary_text
          enum:
            - summary_text
          type: string
      required:
        - type
        - text
      title: Summary text
      type: object
    ProgramOutputStatus:
      enum:
        - completed
        - incomplete
      type: string
    ToolSearchExecutionType:
      enum:
        - server
        - client
      type: string
    FunctionCallStatus:
      enum:
        - in_progress
        - completed
        - incomplete
      type: string
    MessageRole:
      enum:
        - unknown
        - user
        - assistant
        - system
        - critic
        - discriminator
        - developer
        - tool
      type: string
    ImageGenActionEnum:
      enum:
        - generate
        - edit
        - auto
      type: string
    ImageBackground:
      enum:
        - transparent
        - opaque
        - auto
      type: string
    ImageGenToolCallError:
      properties:
        code:
          anyOf:
            - type: string
            - type: 'null'
        message:
          type: string
        moderation_details:
          $ref: '#/components/schemas/ImageGenToolCallModerationDetails'
        param:
          anyOf:
            - type: string
            - type: 'null'
        type:
          type: string
      required:
        - code
        - type
        - message
        - param
      type: object
    ImageOutputFormat:
      enum:
        - png
        - webp
        - jpeg
        - gif
        - svg
      type: string
    SvgUsage:
      properties:
        input_tokens:
          type: integer
        model:
          type: string
        output_tokens:
          type: integer
        reasoning_tokens:
          type: integer
        total_tokens:
          type: integer
      required:
        - model
        - input_tokens
        - output_tokens
        - total_tokens
        - reasoning_tokens
      type: object
    CodeInterpreterOutputLogs:
      properties:
        logs:
          type: string
        type:
          default: logs
          enum:
            - logs
          type: string
      required:
        - type
        - logs
      title: Code interpreter output logs
      type: object
    CodeInterpreterOutputImage:
      properties:
        type:
          default: image
          enum:
            - image
          type: string
        url:
          format: uri
          type: string
      required:
        - type
        - url
      title: Code interpreter output image
      type: object
    LocalShellExecAction:
      properties:
        command:
          items:
            type: string
          type: array
        env:
          type: object
          additionalProperties:
            type: string
        timeout_ms:
          anyOf:
            - type: integer
            - type: 'null'
        type:
          default: exec
          enum:
            - exec
          type: string
        user:
          anyOf:
            - type: string
            - type: 'null'
        working_directory:
          anyOf:
            - type: string
            - type: 'null'
      required:
        - type
        - command
        - env
      title: Local shell exec action
      type: object
    FunctionShellAction:
      properties:
        commands:
          items:
            type: string
          type: array
        max_output_length:
          anyOf:
            - type: integer
            - type: 'null'
        timeout_ms:
          anyOf:
            - type: integer
            - type: 'null'
      required:
        - commands
        - timeout_ms
        - max_output_length
      title: Shell exec action
      type: object
    LocalEnvironmentResource:
      properties:
        type:
          default: local
          enum:
            - local
          type: string
      required:
        - type
      title: Local Environment
      type: object
    ContainerReferenceResource:
      properties:
        container_id:
          type: string
        type:
          default: container_reference
          enum:
            - container_reference
          type: string
      required:
        - type
        - container_id
      title: Container Reference
      type: object
    FunctionShellCallStatus:
      enum:
        - in_progress
        - completed
        - incomplete
      type: string
    FunctionShellCallOutputContent:
      properties:
        created_by:
          type: string
        outcome:
          oneOf:
            - $ref: '#/components/schemas/FunctionShellCallOutputTimeoutOutcome'
            - $ref: '#/components/schemas/FunctionShellCallOutputExitOutcome'
          title: Shell call outcome
        stderr:
          type: string
        stdout:
          type: string
      required:
        - stdout
        - stderr
        - outcome
      title: Shell call output content
      type: object
    FunctionShellCallOutputStatusEnum:
      enum:
        - in_progress
        - completed
        - incomplete
      type: string
    ApplyPatchCreateFileOperation:
      properties:
        diff:
          type: string
        path:
          type: string
        type:
          default: create_file
          enum:
            - create_file
          type: string
      required:
        - type
        - path
        - diff
      title: Apply patch create file operation
      type: object
    ApplyPatchDeleteFileOperation:
      properties:
        path:
          type: string
        type:
          default: delete_file
          enum:
            - delete_file
          type: string
      required:
        - type
        - path
      title: Apply patch delete file operation
      type: object
    ApplyPatchUpdateFileOperation:
      properties:
        diff:
          type: string
        path:
          type: string
        type:
          default: update_file
          enum:
            - update_file
          type: string
      required:
        - type
        - path
        - diff
      title: Apply patch update file operation
      type: object
    ApplyPatchCallStatus:
      enum:
        - in_progress
        - completed
      type: string
    ApplyPatchCallOutputStatus:
      enum:
        - completed
        - failed
      type: string
    MCPToolCallError:
      oneOf:
        - $ref: '#/components/schemas/MCPProtocolError'
        - $ref: '#/components/schemas/MCPToolExecutionError'
        - $ref: '#/components/schemas/HTTPError'
    MCPToolCallStatus:
      enum:
        - in_progress
        - completed
        - incomplete
        - calling
        - failed
      type: string
    MCPListToolsTool:
      properties:
        annotations:
          anyOf:
            - type: object
            - type: 'null'
        description:
          anyOf:
            - type: string
            - type: 'null'
        input_schema:
          type: object
        name:
          type: string
      required:
        - name
        - input_schema
      title: MCP list tools tool
      type: object
    CustomToolCallOutput:
      properties:
        call_id:
          type: string
        caller:
          anyOf:
            - $ref: '#/components/schemas/ToolCallCallerParam'
            - type: 'null'
        id:
          type: string
        output:
          oneOf:
            - title: string output
              type: string
            - items:
                $ref: '#/components/schemas/FunctionAndCustomToolCallOutput'
              title: output content list
              type: array
        type:
          enum:
            - custom_tool_call_output
          type: string
      required:
        - type
        - call_id
        - output
      title: Custom tool call output
      type: object
    ChatCompletionRequestMessageContentPartText:
      properties:
        prompt_cache_breakpoint:
          $ref: '#/components/schemas/PromptCacheBreakpointParam'
        text:
          type: string
        type:
          type: string
          const: text
      required:
        - type
        - text
      title: Text content part
      type: object
    ChatCompletionRequestSystemMessageContentPart:
      oneOf:
        - $ref: '#/components/schemas/ChatCompletionRequestMessageContentPartText'
    ChatCompletionRequestUserMessageContentPart:
      oneOf:
        - $ref: '#/components/schemas/ChatCompletionRequestMessageContentPartText'
        - $ref: '#/components/schemas/ChatCompletionRequestMessageContentPartImage'
        - $ref: '#/components/schemas/ChatCompletionRequestMessageContentPartAudio'
        - $ref: '#/components/schemas/ChatCompletionRequestMessageContentPartFile'
        - $ref: '#/components/schemas/InferenceChatCompletionContentPartAudioParam'
        - $ref: '#/components/schemas/InferenceChatCompletionContentPartVideoParam'
        - $ref: >-
            #/components/schemas/InferenceChatCompletionContentPartImageEmbedsParam
    ChatCompletionRequestAssistantMessageContentPart:
      oneOf:
        - $ref: '#/components/schemas/ChatCompletionRequestMessageContentPartText'
        - $ref: '#/components/schemas/ChatCompletionRequestMessageContentPartRefusal'
    ChatCompletionMessageToolCalls:
      items:
        oneOf:
          - $ref: '#/components/schemas/ChatCompletionMessageToolCall'
          - $ref: '#/components/schemas/ChatCompletionMessageCustomToolCall'
      type: array
    ChatCompletionRequestToolMessageContentPart:
      oneOf:
        - $ref: '#/components/schemas/ChatCompletionRequestMessageContentPartText'
    InferenceInputInputMessageContentList:
      items:
        $ref: '#/components/schemas/InferenceInputInputContent'
      title: Input item content list
      type: array
    InferenceInputInputMessage:
      properties:
        content:
          $ref: '#/components/schemas/InferenceInputInputMessageContentList'
        role:
          enum:
            - user
            - system
            - developer
          type: string
        status:
          enum:
            - in_progress
            - completed
            - incomplete
          type: string
        type:
          type: string
          const: message
      required:
        - role
        - content
      title: Input message
      type: object
    InferenceInputOutputMessage:
      properties:
        content:
          items:
            $ref: '#/components/schemas/InferenceInputOutputMessageContent'
          type: array
        id:
          type: string
        phase:
          anyOf:
            - $ref: '#/components/schemas/MessagePhase'
            - type: 'null'
        role:
          type: string
          const: assistant
        status:
          enum:
            - in_progress
            - completed
            - incomplete
          type: string
          default: completed
        type:
          type: string
          const: message
      required:
        - type
        - role
        - content
      title: Output message
      type: object
    ComputerCallOutputItemParam:
      properties:
        acknowledged_safety_checks:
          anyOf:
            - items:
                $ref: '#/components/schemas/ComputerCallSafetyCheckParam'
              type: array
            - type: 'null'
        call_id:
          maxLength: 64
          minLength: 1
          type: string
        id:
          anyOf:
            - type: string
            - type: 'null'
        output:
          $ref: '#/components/schemas/ComputerScreenshotImage'
        status:
          anyOf:
            - $ref: '#/components/schemas/FunctionCallItemStatus'
            - type: 'null'
        type:
          default: computer_call_output
          enum:
            - computer_call_output
          type: string
      required:
        - call_id
        - type
        - output
      title: Computer tool call output
      type: object
    FunctionCallOutputItemParam:
      properties:
        call_id:
          anyOf:
            - maxLength: 64
              minLength: 1
              type: string
            - type: 'null'
        caller:
          anyOf:
            - $ref: '#/components/schemas/ToolCallCallerParam'
            - type: 'null'
        id:
          anyOf:
            - type: string
            - type: 'null'
        name:
          anyOf:
            - maxLength: 128
              minLength: 1
              type: string
            - type: 'null'
        namespace:
          anyOf:
            - maxLength: 128
              minLength: 1
              pattern: ^[a-zA-Z0-9_-]+$
              type: string
            - type: 'null'
        output:
          oneOf:
            - maxLength: 10485760
              type: string
            - items:
                oneOf:
                  - $ref: '#/components/schemas/InputTextContentParam'
                  - $ref: '#/components/schemas/InputImageContentParamAutoParam'
                  - $ref: '#/components/schemas/InputFileContentParam'
              type: array
        status:
          anyOf:
            - $ref: '#/components/schemas/FunctionCallItemStatus'
            - type: 'null'
        type:
          default: function_call_output
          enum:
            - function_call_output
          type: string
      required:
        - type
        - output
      title: Function tool call output
      type: object
    ToolSearchCallItemParam:
      properties:
        arguments:
          $ref: '#/components/schemas/EmptyModelParam'
        call_id:
          anyOf:
            - maxLength: 64
              minLength: 1
              type: string
            - type: 'null'
        execution:
          $ref: '#/components/schemas/ToolSearchExecutionType'
        id:
          anyOf:
            - type: string
            - type: 'null'
        status:
          anyOf:
            - $ref: '#/components/schemas/FunctionCallItemStatus'
            - type: 'null'
        type:
          default: tool_search_call
          enum:
            - tool_search_call
          type: string
      required:
        - type
        - arguments
      type: object
    ToolSearchOutputItemParam:
      properties:
        call_id:
          anyOf:
            - maxLength: 64
              minLength: 1
              type: string
            - type: 'null'
        execution:
          $ref: '#/components/schemas/ToolSearchExecutionType'
        id:
          anyOf:
            - type: string
            - type: 'null'
        status:
          anyOf:
            - $ref: '#/components/schemas/FunctionCallItemStatus'
            - type: 'null'
        tools:
          items:
            $ref: '#/components/schemas/ToolSearchOutputTool'
          type: array
        type:
          default: tool_search_output
          enum:
            - tool_search_output
          type: string
      required:
        - type
        - tools
      type: object
    AdditionalToolsItemParam:
      properties:
        id:
          anyOf:
            - type: string
            - type: 'null'
        role:
          default: developer
          enum:
            - developer
          type: string
        tools:
          items:
            $ref: '#/components/schemas/Tool'
          type: array
        type:
          default: additional_tools
          enum:
            - additional_tools
          type: string
      required:
        - type
        - role
        - tools
      type: object
    ResponseConfigurationUpdateItemParam:
      properties:
        id:
          anyOf:
            - type: string
            - type: 'null'
        reasoning:
          properties:
            effort:
              $ref: '#/components/schemas/ReasoningEffort'
          type: object
        text:
          properties:
            format:
              oneOf:
                - $ref: '#/components/schemas/ResponseFormatText'
                - $ref: '#/components/schemas/TextResponseFormatJsonSchema'
          required:
            - format
          type: object
        type:
          const: configuration_update
          default: configuration_update
          type: string
      required:
        - type
      type: object
    InferenceInputReasoningItem:
      properties:
        content:
          items:
            $ref: '#/components/schemas/ReasoningTextContent'
          type: array
        encrypted_content:
          anyOf:
            - type: string
            - type: 'null'
        id:
          type: string
        status:
          enum:
            - in_progress
            - completed
            - incomplete
          type: string
        summary:
          items:
            $ref: '#/components/schemas/SummaryTextContent'
          type: array
        type:
          enum:
            - reasoning
          type: string
      required:
        - summary
        - type
      title: Reasoning
      type: object
    CompactionSummaryItemParam:
      properties:
        encrypted_content:
          maxLength: 104857600
          type: string
        id:
          anyOf:
            - type: string
            - type: 'null'
        type:
          default: compaction
          enum:
            - compaction
          type: string
      required:
        - type
        - encrypted_content
      title: Compaction item
      type: object
    FunctionShellCallItemParam:
      properties:
        action:
          $ref: '#/components/schemas/FunctionShellActionParam'
        call_id:
          maxLength: 64
          minLength: 1
          type: string
        caller:
          anyOf:
            - $ref: '#/components/schemas/ToolCallCallerParam'
            - type: 'null'
        environment:
          anyOf:
            - oneOf:
                - $ref: '#/components/schemas/LocalEnvironmentParam'
                - $ref: '#/components/schemas/ContainerReferenceParam'
            - type: 'null'
        id:
          anyOf:
            - type: string
            - type: 'null'
        status:
          anyOf:
            - $ref: '#/components/schemas/FunctionShellCallItemStatus'
            - type: 'null'
        type:
          default: shell_call
          enum:
            - shell_call
          type: string
      required:
        - call_id
        - type
        - action
      title: Shell tool call
      type: object
    FunctionShellCallOutputItemParam:
      properties:
        call_id:
          maxLength: 64
          minLength: 1
          type: string
        caller:
          anyOf:
            - $ref: '#/components/schemas/ToolCallCallerParam'
            - type: 'null'
        id:
          anyOf:
            - type: string
            - type: 'null'
        max_output_length:
          anyOf:
            - type: integer
            - type: 'null'
        output:
          items:
            $ref: '#/components/schemas/FunctionShellCallOutputContentParam'
          type: array
        status:
          anyOf:
            - $ref: '#/components/schemas/FunctionShellCallItemStatus'
            - type: 'null'
        type:
          default: shell_call_output
          enum:
            - shell_call_output
          type: string
      required:
        - call_id
        - type
        - output
      title: Shell tool call output
      type: object
    ApplyPatchToolCallItemParam:
      properties:
        call_id:
          maxLength: 64
          minLength: 1
          type: string
        caller:
          anyOf:
            - $ref: '#/components/schemas/ToolCallCallerParam'
            - type: 'null'
        id:
          anyOf:
            - type: string
            - type: 'null'
        operation:
          $ref: '#/components/schemas/ApplyPatchOperationParam'
        status:
          $ref: '#/components/schemas/ApplyPatchCallStatusParam'
        type:
          default: apply_patch_call
          enum:
            - apply_patch_call
          type: string
      required:
        - type
        - call_id
        - status
        - operation
      title: Apply patch tool call
      type: object
    ApplyPatchToolCallOutputItemParam:
      properties:
        call_id:
          maxLength: 64
          minLength: 1
          type: string
        caller:
          anyOf:
            - $ref: '#/components/schemas/ToolCallCallerParam'
            - type: 'null'
        id:
          anyOf:
            - type: string
            - type: 'null'
        output:
          anyOf:
            - maxLength: 10485760
              type: string
            - type: 'null'
        status:
          $ref: '#/components/schemas/ApplyPatchCallOutputStatusParam'
        type:
          default: apply_patch_call_output
          enum:
            - apply_patch_call_output
          type: string
      required:
        - type
        - call_id
        - status
      title: Apply patch tool call output
      type: object
    MCPApprovalResponse:
      properties:
        approval_request_id:
          type: string
        approve:
          type: boolean
        id:
          anyOf:
            - type: string
            - type: 'null'
        reason:
          anyOf:
            - type: string
            - type: 'null'
        type:
          const: mcp_approval_response
          type: string
      required:
        - type
        - request_id
        - approve
        - approval_request_id
      title: MCP approval response
      type: object
    InferenceInputCustomToolCallOutput:
      properties:
        call_id:
          type: string
        caller:
          anyOf:
            - $ref: '#/components/schemas/ToolCallCallerParam'
            - type: 'null'
        id:
          type: string
        output:
          oneOf:
            - title: string output
              type: string
            - items:
                $ref: >-
                  #/components/schemas/InferenceInputFunctionAndCustomToolCallOutput
              title: output content list
              type: array
        type:
          enum:
            - custom_tool_call_output
          type: string
      required:
        - type
        - call_id
        - output
      title: Custom tool call output
      type: object
    ProgramOutputItemStatus:
      enum:
        - completed
        - incomplete
      type: string
    PromptCacheBreakpointConfig:
      properties:
        mode:
          default: explicit
          enum:
            - explicit
          type: string
        ttl:
          enum:
            - 30m
            - 12h
          type: string
      required:
        - mode
      title: Prompt cache breakpoint
      type: object
    ImageDetail:
      enum:
        - low
        - high
        - auto
        - original
      type: string
    FileInputDetail:
      enum:
        - auto
        - low
        - high
      type: string
    ResponseFormatJsonSchemaSchema:
      additionalProperties: true
      title: JSON schema
      type: object
    CallableToolAllowedCaller:
      enum:
        - direct
        - programmatic
      type: string
    Filters:
      anyOf:
        - $ref: '#/components/schemas/ComparisonFilter'
        - $ref: '#/components/schemas/CompoundFilter'
    RankingOptions:
      properties:
        hybrid_search:
          $ref: '#/components/schemas/HybridSearchOptions'
        ranker:
          $ref: '#/components/schemas/RankerVersionType'
        score_threshold:
          type: number
      required: []
      type: object
    ComputerEnvironment:
      enum:
        - windows
        - mac
        - linux
        - ubuntu
        - browser
      type: string
    WebSearchApproximateLocation:
      anyOf:
        - properties:
            city:
              anyOf:
                - type: string
                - type: 'null'
            country:
              anyOf:
                - type: string
                - type: 'null'
            region:
              anyOf:
                - type: string
                - type: 'null'
            timezone:
              anyOf:
                - type: string
                - type: 'null'
            type:
              const: approximate
              default: approximate
              type: string
          title: Web search approximate location
          type: object
        - type: 'null'
    MCPToolFilter:
      additionalProperties: false
      properties:
        read_only:
          type: boolean
        tool_names:
          items:
            type: string
          title: MCP allowed tools
          type: array
      required: []
      title: MCP tool filter
      type: object
    AutoCodeInterpreterToolParam:
      properties:
        file_ids:
          items:
            type: string
          maxItems: 50
          type: array
        memory_limit:
          anyOf:
            - $ref: '#/components/schemas/ContainerMemoryLimit'
            - type: 'null'
        network_policy:
          oneOf:
            - $ref: '#/components/schemas/ContainerNetworkPolicyDisabledParam'
            - $ref: '#/components/schemas/ContainerNetworkPolicyAllowlistParam'
        type:
          default: auto
          enum:
            - auto
          type: string
      required:
        - type
      title: CodeInterpreterToolAuto
      type: object
    InputFidelity:
      enum:
        - high
        - low
      type: string
    SvgParam:
      properties:
        model:
          type: string
          minLength: 1
        reasoning:
          anyOf:
            - $ref: '#/components/schemas/SvgReasoningParam'
            - type: 'null'
      required: []
      type: object
    ContainerAutoParam:
      properties:
        file_ids:
          items:
            type: string
          maxItems: 50
          type: array
        memory_limit:
          anyOf:
            - $ref: '#/components/schemas/ContainerMemoryLimit'
            - type: 'null'
        network_policy:
          oneOf:
            - $ref: '#/components/schemas/ContainerNetworkPolicyDisabledParam'
            - $ref: '#/components/schemas/ContainerNetworkPolicyAllowlistParam'
        skills:
          items:
            oneOf:
              - $ref: '#/components/schemas/SkillReferenceParam'
              - $ref: '#/components/schemas/InlineSkillParam'
          maxItems: 200
          type: array
        type:
          default: container_auto
          enum:
            - container_auto
          type: string
      required:
        - type
      type: object
    LocalEnvironmentParam:
      properties:
        skills:
          items:
            $ref: '#/components/schemas/LocalSkillParam'
          maxItems: 200
          type: array
        type:
          default: local
          enum:
            - local
          type: string
      required:
        - type
      type: object
    ContainerReferenceParam:
      properties:
        container_id:
          type: string
        type:
          default: container_reference
          enum:
            - container_reference
          type: string
      required:
        - type
        - container_id
      type: object
    CustomTextFormatParam:
      properties:
        type:
          default: text
          enum:
            - text
          type: string
      required:
        - type
      title: Text format
      type: object
    CustomGrammarFormatParam:
      properties:
        definition:
          type: string
        syntax:
          $ref: '#/components/schemas/GrammarSyntax1'
        type:
          default: grammar
          enum:
            - grammar
          type: string
      required:
        - type
        - syntax
        - definition
      title: Grammar format
      type: object
    FunctionToolParam:
      properties:
        allowed_callers:
          anyOf:
            - items:
                $ref: '#/components/schemas/CallableToolAllowedCaller'
              minItems: 1
              type: array
            - type: 'null'
        async:
          type: boolean
        defer_loading:
          type: boolean
        description:
          anyOf:
            - type: string
            - type: 'null'
        name:
          maxLength: 128
          minLength: 1
          pattern: ^[a-zA-Z0-9_-]+$
          type: string
        output_schema:
          anyOf:
            - additionalProperties: {}
              type: object
            - type: 'null'
        parameters:
          anyOf:
            - $ref: '#/components/schemas/EmptyModelParam'
            - type: 'null'
        strict:
          anyOf:
            - type: boolean
            - type: 'null'
        type:
          default: function
          enum:
            - function
          type: string
      required:
        - name
        - type
      type: object
    EmptyModelParam:
      properties: {}
      required: []
      type: object
    SearchContentType:
      enum:
        - text
        - image
      type: string
    SearchContextSize:
      enum:
        - low
        - medium
        - high
      type: string
    ApproximateLocation:
      properties:
        city:
          anyOf:
            - type: string
            - type: 'null'
        country:
          anyOf:
            - type: string
            - type: 'null'
        region:
          anyOf:
            - type: string
            - type: 'null'
        timezone:
          anyOf:
            - type: string
            - type: 'null'
        type:
          default: approximate
          enum:
            - approximate
          type: string
      required:
        - type
      type: object
    OutputTextContent:
      properties:
        annotations:
          items:
            $ref: '#/components/schemas/Annotation'
          type: array
        logprobs:
          anyOf:
            - items:
                $ref: '#/components/schemas/LogProb'
              type: array
            - type: 'null'
        text:
          type: string
        type:
          default: output_text
          enum:
            - output_text
          type: string
      required:
        - type
        - text
        - annotations
      title: Output text
      type: object
    RefusalContent:
      properties:
        refusal:
          type: string
        type:
          default: refusal
          enum:
            - refusal
          type: string
      required:
        - type
        - refusal
      title: Refusal
      type: object
    DirectToolCallCaller:
      properties:
        type:
          default: direct
          enum:
            - direct
          type: string
      required:
        - type
      type: object
    ProgramToolCallCaller:
      properties:
        caller_id:
          type: string
        type:
          default: program
          enum:
            - program
          type: string
      required:
        - type
        - caller_id
      type: object
    ToolCallCallerParam:
      oneOf:
        - $ref: '#/components/schemas/DirectToolCallCallerParam'
        - $ref: '#/components/schemas/ProgramToolCallCallerParam'
    FunctionAndCustomToolCallOutput:
      oneOf:
        - $ref: '#/components/schemas/InputTextContent'
        - $ref: '#/components/schemas/InputImageContent'
        - $ref: '#/components/schemas/InputFileContent'
    ClickParam:
      properties:
        button:
          $ref: '#/components/schemas/ClickButtonType'
        keys:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
        type:
          default: click
          enum:
            - click
          type: string
        x:
          type: integer
        'y':
          type: integer
      required:
        - type
        - button
        - x
        - 'y'
      title: Click
      type: object
    DoubleClickAction:
      properties:
        keys:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
        type:
          default: double_click
          enum:
            - double_click
          type: string
        x:
          type: integer
        'y':
          type: integer
      required:
        - type
        - x
        - 'y'
        - keys
      title: DoubleClick
      type: object
    DragParam:
      properties:
        keys:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
        path:
          items:
            $ref: '#/components/schemas/CoordParam'
          type: array
        type:
          default: drag
          enum:
            - drag
          type: string
      required:
        - type
        - path
      title: Drag
      type: object
    KeyPressAction:
      properties:
        keys:
          items:
            type: string
          type: array
        type:
          default: keypress
          enum:
            - keypress
          type: string
      required:
        - type
        - keys
      title: KeyPress
      type: object
    MoveParam:
      properties:
        keys:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
        type:
          default: move
          enum:
            - move
          type: string
        x:
          type: integer
        'y':
          type: integer
      required:
        - type
        - x
        - 'y'
      title: Move
      type: object
    ScreenshotParam:
      properties:
        type:
          default: screenshot
          enum:
            - screenshot
          type: string
      required:
        - type
      title: Screenshot
      type: object
    ScrollParam:
      properties:
        keys:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
        scroll_x:
          type: integer
        scroll_y:
          type: integer
        type:
          default: scroll
          enum:
            - scroll
          type: string
        x:
          type: integer
        'y':
          type: integer
      required:
        - type
        - x
        - 'y'
        - scroll_x
        - scroll_y
      title: Scroll
      type: object
    TypeParam:
      properties:
        text:
          type: string
        type:
          default: type
          enum:
            - type
          type: string
      required:
        - type
        - text
      title: Type
      type: object
    WaitParam:
      properties:
        type:
          default: wait
          enum:
            - wait
          type: string
      required:
        - type
      title: Wait
      type: object
    ComputerScreenshotImage:
      properties:
        file_id:
          type: string
        image_url:
          format: uri
          type: string
        type:
          const: computer_screenshot
          default: computer_screenshot
          type: string
      required:
        - type
      type: object
    ImageGenToolCallModerationDetails:
      properties:
        categories:
          items:
            type: string
          type: array
        moderation_stage:
          enum:
            - input
            - output
            - unknown
          type: string
      required:
        - moderation_stage
        - categories
      type: object
    FunctionShellCallOutputTimeoutOutcome:
      properties:
        type:
          default: timeout
          enum:
            - timeout
          type: string
      required:
        - type
      title: Shell call timeout outcome
      type: object
    FunctionShellCallOutputExitOutcome:
      properties:
        exit_code:
          type: integer
        type:
          default: exit
          enum:
            - exit
          type: string
      required:
        - type
        - exit_code
      title: Shell call exit outcome
      type: object
    MCPProtocolError:
      properties:
        code:
          type: integer
        message:
          type: string
        type:
          default: mcp_protocol_error
          enum:
            - mcp_protocol_error
          type: string
      required:
        - type
        - code
        - message
      type: object
    MCPToolExecutionError:
      properties:
        content: {}
        type:
          default: mcp_tool_execution_error
          enum:
            - mcp_tool_execution_error
          type: string
      required:
        - type
        - content
      type: object
    HTTPError:
      properties:
        code:
          type: integer
        message:
          type: string
        type:
          default: http_error
          enum:
            - http_error
          type: string
      required:
        - type
        - code
        - message
      type: object
    PromptCacheBreakpointParam:
      properties:
        mode:
          default: explicit
          enum:
            - explicit
          type: string
        ttl:
          enum:
            - 30m
            - 12h
          type: string
      required:
        - mode
      title: Prompt cache breakpoint
      type: object
    ChatCompletionRequestMessageContentPartImage:
      properties:
        image_url:
          properties:
            detail:
              default: auto
              enum:
                - auto
                - low
                - high
                - original
              type: string
            url:
              format: uri
              type: string
          required:
            - url
          type: object
        prompt_cache_breakpoint:
          $ref: '#/components/schemas/PromptCacheBreakpointParam'
        type:
          const: image_url
          type: string
      required:
        - type
        - image_url
      title: Image content part
      type: object
    ChatCompletionRequestMessageContentPartAudio:
      properties:
        input_audio:
          properties:
            data:
              type: string
            format:
              enum:
                - wav
                - mp3
              type: string
          required:
            - data
            - format
          type: object
        prompt_cache_breakpoint:
          $ref: '#/components/schemas/PromptCacheBreakpointParam'
        type:
          const: input_audio
          type: string
      required:
        - type
        - input_audio
      title: Audio content part
      type: object
    ChatCompletionRequestMessageContentPartFile:
      properties:
        file:
          properties:
            file_data:
              type: string
            file_id:
              type: string
            filename:
              type: string
          type: object
        prompt_cache_breakpoint:
          $ref: '#/components/schemas/PromptCacheBreakpointParam'
        type:
          const: file
          type: string
      required:
        - type
        - file
      title: File content part
      type: object
    InferenceChatCompletionContentPartAudioParam:
      type: object
      properties:
        audio_url:
          $ref: '#/components/schemas/InferenceAudioURL'
        type:
          enum:
            - audio_url
          type: string
      required:
        - audio_url
        - type
      description: Multimodal input. Supported input types depend on the selected model.
    InferenceChatCompletionContentPartVideoParam:
      type: object
      properties:
        video_url:
          $ref: '#/components/schemas/InferenceVideoURL'
        type:
          enum:
            - video_url
          type: string
      required:
        - video_url
        - type
      description: Multimodal input. Supported input types depend on the selected model.
    InferenceChatCompletionContentPartImageEmbedsParam:
      type: object
      properties:
        image_embeds:
          anyOf:
            - anyOf:
                - type: string
                - type: object
                  additionalProperties:
                    anyOf:
                      - type: string
                      - type: array
                        items:
                          anyOf:
                            - type: integer
                            - type: number
            - type: 'null'
        type:
          enum:
            - image_embeds
          type: string
        uuid:
          anyOf:
            - type: string
            - type: 'null'
      required:
        - type
      description: Multimodal input. Supported input types depend on the selected model.
    ChatCompletionRequestMessageContentPartRefusal:
      properties:
        refusal:
          type: string
        type:
          const: refusal
          type: string
      required:
        - type
        - refusal
      title: Refusal content part
      type: object
    ChatCompletionMessageToolCall:
      properties:
        function:
          properties:
            arguments:
              type: string
            name:
              type: string
          required:
            - name
            - arguments
          type: object
        id:
          type: string
        type:
          const: function
          type: string
      required:
        - id
        - type
        - function
      title: Function tool call
      type: object
    ChatCompletionMessageCustomToolCall:
      properties:
        custom:
          properties:
            input:
              type: string
            name:
              type: string
          required:
            - name
            - input
          type: object
        id:
          type: string
        type:
          const: custom
          type: string
      required:
        - id
        - type
        - custom
      title: Custom tool call
      type: object
    InferenceInputInputContent:
      oneOf:
        - $ref: '#/components/schemas/InputTextContent'
        - $ref: '#/components/schemas/InferenceInputInputImageContent'
        - $ref: '#/components/schemas/InputFileContent'
    InferenceInputOutputMessageContent:
      oneOf:
        - $ref: '#/components/schemas/InferenceInputOutputTextContent'
        - $ref: '#/components/schemas/RefusalContent'
    FunctionCallItemStatus:
      enum:
        - in_progress
        - completed
        - incomplete
      type: string
    InputTextContentParam:
      properties:
        prompt_cache_breakpoint:
          anyOf:
            - $ref: '#/components/schemas/PromptCacheBreakpointParam'
            - type: 'null'
        text:
          maxLength: 10485760
          type: string
        type:
          default: input_text
          enum:
            - input_text
          type: string
      required:
        - type
        - text
      title: Input text
      type: object
    InputImageContentParamAutoParam:
      properties:
        detail:
          anyOf:
            - $ref: '#/components/schemas/DetailEnum'
            - type: 'null'
        file_id:
          anyOf:
            - type: string
            - type: 'null'
        image_url:
          anyOf:
            - format: uri
              maxLength: 20971520
              type: string
            - type: 'null'
        prompt_cache_breakpoint:
          anyOf:
            - $ref: '#/components/schemas/PromptCacheBreakpointParam'
            - type: 'null'
        type:
          default: input_image
          enum:
            - input_image
          type: string
      required:
        - type
      title: Input image
      type: object
    InputFileContentParam:
      properties:
        detail:
          $ref: '#/components/schemas/FileDetailEnum'
        file_data:
          anyOf:
            - maxLength: 73400320
              type: string
            - type: 'null'
        file_id:
          anyOf:
            - type: string
            - type: 'null'
        file_url:
          anyOf:
            - format: uri
              type: string
            - type: 'null'
        filename:
          anyOf:
            - type: string
            - type: 'null'
        prompt_cache_breakpoint:
          anyOf:
            - $ref: '#/components/schemas/PromptCacheBreakpointParam'
            - type: 'null'
        type:
          default: input_file
          enum:
            - input_file
          type: string
      required:
        - type
      title: Input file
      type: object
    ToolSearchOutputTool:
      oneOf:
        - $ref: '#/components/schemas/FunctionTool'
        - $ref: '#/components/schemas/FileSearchTool'
        - $ref: '#/components/schemas/ComputerTool'
        - $ref: '#/components/schemas/ComputerUsePreviewTool'
        - $ref: '#/components/schemas/WebSearchTool'
        - $ref: '#/components/schemas/MCPTool'
        - $ref: '#/components/schemas/CodeInterpreterTool'
        - $ref: '#/components/schemas/ProgrammaticToolCallingParam'
        - $ref: '#/components/schemas/ImageGenTool'
        - $ref: '#/components/schemas/LocalShellToolParam'
        - $ref: '#/components/schemas/FunctionShellToolParam'
        - $ref: '#/components/schemas/CustomToolParam'
        - $ref: '#/components/schemas/ToolSearchOutputNamespaceToolParam'
        - $ref: '#/components/schemas/ToolSearchToolParam'
        - $ref: '#/components/schemas/WebSearchPreviewTool'
        - $ref: '#/components/schemas/ApplyPatchToolParam'
    FunctionShellActionParam:
      properties:
        commands:
          items:
            type: string
          type: array
        max_output_length:
          anyOf:
            - type: integer
            - type: 'null'
        timeout_ms:
          anyOf:
            - type: integer
            - type: 'null'
      required:
        - commands
      title: Shell action
      type: object
    FunctionShellCallItemStatus:
      enum:
        - in_progress
        - completed
        - incomplete
      title: Shell call status
      type: string
    FunctionShellCallOutputContentParam:
      properties:
        outcome:
          $ref: '#/components/schemas/FunctionShellCallOutputOutcomeParam'
        stderr:
          maxLength: 10485760
          type: string
        stdout:
          maxLength: 10485760
          type: string
      required:
        - stdout
        - stderr
        - outcome
      title: Shell output content
      type: object
    ApplyPatchOperationParam:
      oneOf:
        - $ref: '#/components/schemas/ApplyPatchCreateFileOperationParam'
        - $ref: '#/components/schemas/ApplyPatchDeleteFileOperationParam'
        - $ref: '#/components/schemas/ApplyPatchUpdateFileOperationParam'
      title: Apply patch operation
    ApplyPatchCallStatusParam:
      enum:
        - in_progress
        - completed
      title: Apply patch call status
      type: string
    ApplyPatchCallOutputStatusParam:
      enum:
        - completed
        - failed
      title: Apply patch call output status
      type: string
    InferenceInputFunctionAndCustomToolCallOutput:
      oneOf:
        - $ref: '#/components/schemas/InputTextContent'
        - $ref: '#/components/schemas/InferenceInputInputImageContent'
        - $ref: '#/components/schemas/InputFileContent'
    ComparisonFilter:
      additionalProperties: false
      properties:
        key:
          type: string
        type:
          default: eq
          enum:
            - eq
            - ne
            - gt
            - gte
            - lt
            - lte
            - in
            - nin
          type: string
        value:
          oneOf:
            - type: string
            - type: number
            - type: boolean
            - items:
                oneOf:
                  - type: string
                  - type: number
              type: array
      required:
        - type
        - key
        - value
      title: Comparison Filter
      type: object
    CompoundFilter:
      additionalProperties: false
      properties:
        filters:
          items:
            oneOf:
              - $ref: '#/components/schemas/ComparisonFilter'
              - $ref: '#/components/schemas/CompoundFilter'
          type: array
        type:
          enum:
            - and
            - or
          type: string
      required:
        - type
        - filters
      title: Compound Filter
      type: object
    HybridSearchOptions:
      properties:
        embedding_weight:
          type: number
        text_weight:
          type: number
      required:
        - embedding_weight
        - text_weight
      type: object
    RankerVersionType:
      enum:
        - auto
        - default-2024-11-15
      type: string
    ContainerMemoryLimit:
      enum:
        - 1g
        - 4g
        - 16g
        - 64g
      type: string
    ContainerNetworkPolicyDisabledParam:
      properties:
        type:
          default: disabled
          enum:
            - disabled
          type: string
      required:
        - type
      type: object
    ContainerNetworkPolicyAllowlistParam:
      properties:
        allowed_domains:
          items:
            type: string
          minItems: 1
          type: array
        domain_secrets:
          items:
            $ref: '#/components/schemas/ContainerNetworkPolicyDomainSecretParam'
          minItems: 1
          type: array
        type:
          default: allowlist
          enum:
            - allowlist
          type: string
      required:
        - type
        - allowed_domains
      type: object
    SvgReasoningParam:
      properties:
        effort:
          oneOf:
            - $ref: '#/components/schemas/ReasoningEffortEnum'
      required: []
      type: object
    SkillReferenceParam:
      properties:
        skill_id:
          maxLength: 64
          minLength: 1
          type: string
        type:
          default: skill_reference
          enum:
            - skill_reference
          type: string
        version:
          type: string
      required:
        - type
        - skill_id
      type: object
    InlineSkillParam:
      properties:
        description:
          type: string
        name:
          type: string
        source:
          $ref: '#/components/schemas/InlineSkillSourceParam'
        type:
          default: inline
          enum:
            - inline
          type: string
      required:
        - type
        - name
        - description
        - source
      type: object
    LocalSkillParam:
      properties:
        description:
          type: string
        name:
          type: string
        path:
          type: string
      required:
        - name
        - description
        - path
      type: object
    GrammarSyntax1:
      enum:
        - lark
        - regex
      type: string
    Annotation:
      oneOf:
        - $ref: '#/components/schemas/FileCitationBody'
        - $ref: '#/components/schemas/UrlCitationBody'
        - $ref: '#/components/schemas/ContainerFileCitationBody'
        - $ref: '#/components/schemas/FilePath'
    LogProb:
      properties:
        bytes:
          type: array
          items:
            type: integer
        logprob:
          type: number
        token:
          type: string
        top_logprobs:
          items:
            $ref: '#/components/schemas/TopLogProb'
          type: array
      required:
        - token
        - logprob
        - bytes
        - top_logprobs
      title: Log probability
      type: object
    DirectToolCallCallerParam:
      properties:
        type:
          default: direct
          enum:
            - direct
          type: string
      required:
        - type
      type: object
    ProgramToolCallCallerParam:
      properties:
        caller_id:
          maxLength: 64
          minLength: 1
          type: string
        type:
          default: program
          enum:
            - program
          type: string
      required:
        - type
        - caller_id
      type: object
    ClickButtonType:
      enum:
        - left
        - right
        - wheel
        - back
        - forward
      type: string
    CoordParam:
      properties:
        x:
          type: integer
        'y':
          type: integer
      required:
        - x
        - 'y'
      title: Coordinate
      type: object
    InferenceAudioURL:
      type: object
      properties:
        url:
          type: string
      required:
        - url
    InferenceVideoURL:
      type: object
      properties:
        url:
          type: string
      required:
        - url
    InferenceInputInputImageContent:
      properties:
        detail:
          $ref: '#/components/schemas/ImageDetail'
          default: auto
        file_id:
          anyOf:
            - type: string
            - type: 'null'
        image_url:
          anyOf:
            - format: uri
              type: string
            - type: 'null'
        prompt_cache_breakpoint:
          $ref: '#/components/schemas/PromptCacheBreakpointConfig'
        type:
          default: input_image
          enum:
            - input_image
          type: string
      required:
        - type
      title: Input image
      type: object
    InferenceInputOutputTextContent:
      properties:
        annotations:
          items:
            $ref: '#/components/schemas/Annotation'
          type: array
          default: []
        logprobs:
          items:
            $ref: '#/components/schemas/LogProb'
          type: array
        text:
          type: string
        type:
          default: output_text
          enum:
            - output_text
          type: string
      required:
        - type
        - text
      title: Output text
      type: object
    DetailEnum:
      enum:
        - low
        - high
        - auto
        - original
      type: string
    FileDetailEnum:
      enum:
        - auto
        - low
        - high
      type: string
    ToolSearchOutputNamespaceToolParam:
      properties:
        description:
          type: string
        name:
          type: string
          minLength: 1
        tools:
          items:
            oneOf:
              - $ref: '#/components/schemas/ToolSearchOutputFunctionToolParam'
              - $ref: '#/components/schemas/CustomToolParam'
          minItems: 1
          type: array
        type:
          default: namespace
          enum:
            - namespace
          type: string
      required:
        - type
        - name
        - description
        - tools
      title: Namespace
      type: object
    FunctionShellCallOutputOutcomeParam:
      oneOf:
        - $ref: '#/components/schemas/FunctionShellCallOutputTimeoutOutcomeParam'
        - $ref: '#/components/schemas/FunctionShellCallOutputExitOutcomeParam'
      title: Shell call outcome
    ApplyPatchCreateFileOperationParam:
      properties:
        diff:
          maxLength: 10485760
          type: string
        path:
          type: string
          minLength: 1
        type:
          default: create_file
          enum:
            - create_file
          type: string
      required:
        - type
        - path
        - diff
      title: Apply patch create file operation
      type: object
    ApplyPatchDeleteFileOperationParam:
      properties:
        path:
          type: string
          minLength: 1
        type:
          default: delete_file
          enum:
            - delete_file
          type: string
      required:
        - type
        - path
      title: Apply patch delete file operation
      type: object
    ApplyPatchUpdateFileOperationParam:
      properties:
        diff:
          maxLength: 10485760
          type: string
        path:
          type: string
          minLength: 1
        type:
          default: update_file
          enum:
            - update_file
          type: string
      required:
        - type
        - path
        - diff
      title: Apply patch update file operation
      type: object
    ContainerNetworkPolicyDomainSecretParam:
      properties:
        domain:
          type: string
          minLength: 1
        name:
          type: string
          minLength: 1
        value:
          maxLength: 10485760
          minLength: 1
          type: string
      required:
        - domain
        - name
        - value
      type: object
    ReasoningEffortEnum:
      enum:
        - none
        - minimal
        - low
        - medium
        - high
        - xhigh
        - max
      type: string
    InlineSkillSourceParam:
      properties:
        data:
          maxLength: 70254592
          minLength: 1
          type: string
        media_type:
          default: application/zip
          enum:
            - application/zip
          type: string
        type:
          default: base64
          enum:
            - base64
          type: string
      required:
        - type
        - media_type
        - data
      type: object
    FileCitationBody:
      properties:
        file_id:
          type: string
        filename:
          type: string
        index:
          type: integer
        type:
          default: file_citation
          enum:
            - file_citation
          type: string
      required:
        - type
        - file_id
        - index
        - filename
      title: File citation
      type: object
    UrlCitationBody:
      properties:
        end_index:
          type: integer
        start_index:
          type: integer
        title:
          type: string
        type:
          default: url_citation
          enum:
            - url_citation
          type: string
        url:
          format: uri
          type: string
      required:
        - type
        - url
        - start_index
        - end_index
        - title
      title: URL citation
      type: object
    ContainerFileCitationBody:
      properties:
        container_id:
          type: string
        end_index:
          type: integer
        file_id:
          type: string
        filename:
          type: string
        start_index:
          type: integer
        type:
          default: container_file_citation
          enum:
            - container_file_citation
          type: string
      required:
        - type
        - container_id
        - file_id
        - start_index
        - end_index
        - filename
      title: Container file citation
      type: object
    FilePath:
      properties:
        file_id:
          type: string
        index:
          type: integer
        type:
          enum:
            - file_path
          type: string
      required:
        - type
        - file_id
        - index
      title: File path
      type: object
    TopLogProb:
      properties:
        bytes:
          type: array
          items:
            type: integer
        logprob:
          type: number
        token:
          type: string
      required:
        - token
        - logprob
        - bytes
      title: Top log probability
      type: object
    ToolSearchOutputFunctionToolParam:
      properties:
        allowed_callers:
          anyOf:
            - items:
                $ref: '#/components/schemas/CallableToolAllowedCaller'
              minItems: 1
              type: array
            - type: 'null'
        async:
          type: boolean
        defer_loading:
          type: boolean
        description:
          anyOf:
            - type: string
            - type: 'null'
        name:
          maxLength: 128
          minLength: 1
          pattern: ^(?![\s\S]*[\r\n])[a-zA-Z0-9_.-]+$
          type: string
        output_schema:
          anyOf:
            - additionalProperties: {}
              type: object
            - type: 'null'
        parameters:
          anyOf:
            - $ref: '#/components/schemas/EmptyModelParam'
            - type: 'null'
        strict:
          anyOf:
            - type: boolean
            - type: 'null'
        type:
          default: function
          enum:
            - function
          type: string
      required:
        - name
        - type
      type: object
    FunctionShellCallOutputTimeoutOutcomeParam:
      properties:
        type:
          default: timeout
          enum:
            - timeout
          type: string
      required:
        - type
      title: Shell call timeout outcome
      type: object
    FunctionShellCallOutputExitOutcomeParam:
      properties:
        exit_code:
          type: integer
        type:
          default: exit
          enum:
            - exit
          type: string
      required:
        - type
        - exit_code
      title: Shell call exit outcome
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Nscale bearer token supplied in the Authorization header.

````