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

# POST /v1/responses/input_tokens

> Available at the instance root or under a provider/namespace prefix. Shared paths select the wire dialect from client headers; without dialect evidence, the first listed route wins.



## OpenAPI

````yaml /generated/openapi.json post /v1/responses/input_tokens
openapi: 3.1.0
info:
  description: >-
    Forwarding, management, portal and OAuth APIs generated from Rust types.
    Input and output schemas preserve their respective Serde contracts.
    Streaming events and WebSocket messages are documented alongside HTTP
    payloads.
  title: GPROXY HTTP API
  version: 4.2.1
servers: []
security:
  - bearer: []
  - anthropicKey: []
  - googleKey: []
  - queryKey: []
paths:
  /v1/responses/input_tokens:
    post:
      tags:
        - Forwarding
      summary: POST /v1/responses/input_tokens
      description: >-
        Available at the instance root or under a provider/namespace prefix.
        Shared paths select the wire dialect from client headers; without
        dialect evidence, the first listed route wins.
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Input_CountTokensRequestBody'
        required: true
      responses:
        2XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Output_CountTokensResponseBody'
          description: Successful protocol response
        default:
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/Output_Envelope'
                  - properties:
                      error:
                        $ref: '#/components/schemas/Output_ErrorDetail'
                    required:
                      - error
                    type: object
                  - allOf:
                      - $ref: '#/components/schemas/Output_ErrorEvent'
                      - properties:
                          type:
                            const: error
                        required:
                          - type
                        type: object
                  - properties:
                      error:
                        $ref: '#/components/schemas/Output_GenerateContentError'
                    required:
                      - error
                    type: object
            text/plain:
              schema:
                type: string
          description: Gateway or upstream error
components:
  schemas:
    Input_CountTokensRequestBody:
      additionalProperties: true
      properties:
        conversation:
          anyOf:
            - $ref: '#/components/schemas/Input_ConversationParam'
            - type: 'null'
        input:
          anyOf:
            - $ref: '#/components/schemas/Input_Input'
            - type: 'null'
        instructions:
          type:
            - string
            - 'null'
        model:
          type:
            - string
            - 'null'
        parallel_tool_calls:
          type:
            - boolean
            - 'null'
        personality:
          type:
            - string
            - 'null'
        previous_response_id:
          type:
            - string
            - 'null'
        reasoning:
          anyOf:
            - $ref: '#/components/schemas/Input_ReasoningConfig'
            - type: 'null'
        text:
          anyOf:
            - $ref: '#/components/schemas/Input_TextConfig'
            - type: 'null'
        tool_choice:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolChoice'
            - type: 'null'
        tools:
          items:
            $ref: '#/components/schemas/Input_Tool'
          type:
            - array
            - 'null'
        truncation:
          anyOf:
            - $ref: '#/components/schemas/Input_Truncation'
            - type: 'null'
      type: object
    Output_CountTokensResponseBody:
      additionalProperties: true
      properties:
        input_tokens:
          format: int64
          type: integer
        object:
          $ref: '#/components/schemas/Output_CountTokensObject'
      required:
        - input_tokens
        - object
      type: object
    Output_Envelope:
      properties:
        error:
          $ref: '#/components/schemas/Output_EnvelopeBody'
      required:
        - error
      type: object
    Output_ErrorDetail:
      properties:
        code:
          type:
            - string
            - 'null'
        message:
          type: string
        param:
          type:
            - string
            - 'null'
        type:
          type:
            - string
            - 'null'
      required:
        - message
      type: object
    Output_ErrorEvent:
      additionalProperties: true
      properties:
        error:
          $ref: '#/components/schemas/Output_StreamError'
        request_id:
          type:
            - string
            - 'null'
      required:
        - error
      type: object
    Output_GenerateContentError:
      additionalProperties: true
      properties:
        code:
          format: int64
          type: integer
        details:
          items: true
          type:
            - array
            - 'null'
        message:
          type: string
        status:
          type:
            - string
            - 'null'
      required:
        - code
        - message
      type: object
    Input_ConversationParam:
      anyOf:
        - type: string
        - $ref: '#/components/schemas/Input_ResponseConversationParam'
    Input_Input:
      anyOf:
        - type: string
        - items:
            $ref: '#/components/schemas/Input_InputItem'
          type: array
    Input_ReasoningConfig:
      additionalProperties: true
      properties:
        context:
          anyOf:
            - $ref: '#/components/schemas/Input_ReasoningContext'
            - type: 'null'
        effort:
          anyOf:
            - $ref: '#/components/schemas/Input_ReasoningEffort'
            - type: 'null'
        generate_summary:
          anyOf:
            - $ref: '#/components/schemas/Input_ReasoningSummary'
            - type: 'null'
        mode:
          type:
            - string
            - 'null'
        summary:
          anyOf:
            - $ref: '#/components/schemas/Input_ReasoningSummary'
            - type: 'null'
      type: object
    Input_TextConfig:
      additionalProperties: true
      properties:
        format:
          anyOf:
            - $ref: '#/components/schemas/Input_TextFormat'
            - type: 'null'
        verbosity:
          anyOf:
            - $ref: '#/components/schemas/Input_TextVerbosity'
            - type: 'null'
      type: object
    Input_ToolChoice:
      anyOf:
        - $ref: '#/components/schemas/Input_ToolChoiceMode'
        - $ref: '#/components/schemas/Input_ToolChoiceAllowed'
        - $ref: '#/components/schemas/Input_ToolChoiceHosted'
        - $ref: '#/components/schemas/Input_ToolChoiceFunction'
        - $ref: '#/components/schemas/Input_ToolChoiceMcp'
        - $ref: '#/components/schemas/Input_ToolChoiceCustom'
        - $ref: '#/components/schemas/Input_ToolChoiceProgrammatic'
        - $ref: '#/components/schemas/Input_ToolChoiceApplyPatch'
        - $ref: '#/components/schemas/Input_ToolChoiceShell'
    Input_Tool:
      oneOf:
        - $ref: '#/components/schemas/Input_FunctionTool'
          properties:
            type:
              const: function
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_FileSearchTool'
          properties:
            type:
              const: file_search
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_ComputerTool'
          properties:
            type:
              const: computer_use_preview
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_ToolMarker'
          properties:
            type:
              const: computer
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_WebSearchPreviewTool'
          properties:
            type:
              const: web_search_preview
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_WebSearchPreviewTool'
          properties:
            type:
              const: web_search_preview_2025_03_11
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_WebSearchTool'
          properties:
            type:
              const: web_search
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_WebSearchTool'
          properties:
            type:
              const: web_search_2025_08_26
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_CodeInterpreterTool'
          properties:
            type:
              const: code_interpreter
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_CustomTool'
          properties:
            type:
              const: custom
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_NamespaceTool'
          properties:
            type:
              const: namespace
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_ToolMarker'
          properties:
            type:
              const: local_shell
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_ShellTool'
          properties:
            type:
              const: shell
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_ImageGenerationTool'
          properties:
            type:
              const: image_generation
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_McpTool'
          properties:
            type:
              const: mcp
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_ToolMarker'
          properties:
            type:
              const: programmatic_tool_calling
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_ApplyPatchTool'
          properties:
            type:
              const: apply_patch
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_ToolSearchTool'
          properties:
            type:
              const: tool_search
              type: string
          required:
            - type
          type: object
    Input_Truncation:
      enum:
        - auto
        - disabled
      type: string
    Output_CountTokensObject:
      enum:
        - response.input_tokens
      type: string
    Output_EnvelopeBody:
      properties:
        code:
          type: string
        message:
          type: string
      required:
        - code
        - message
      type: object
    Output_StreamError:
      additionalProperties: true
      properties:
        message:
          type: string
        type:
          $ref: '#/components/schemas/Output_StreamErrorType'
      required:
        - type
        - message
      type: object
    Input_ResponseConversationParam:
      additionalProperties: true
      properties:
        id:
          type: string
      required:
        - id
      type: object
    Input_InputItem:
      anyOf:
        - $ref: '#/components/schemas/Input_MultiAgentCall'
        - $ref: '#/components/schemas/Input_MultiAgentCallOutput'
        - $ref: '#/components/schemas/Input_AgentMessage'
        - $ref: '#/components/schemas/Input_ConfigurationUpdate'
        - $ref: '#/components/schemas/Input_ResponseOutputMessage'
        - $ref: '#/components/schemas/Input_InputMessage'
        - $ref: '#/components/schemas/Input_EasyInputMessage'
        - $ref: '#/components/schemas/Input_FunctionCall'
        - $ref: '#/components/schemas/Input_FunctionCallOutput'
        - $ref: '#/components/schemas/Input_ReasoningItem'
        - $ref: '#/components/schemas/Input_ItemReference'
        - $ref: '#/components/schemas/Input_Compaction'
        - $ref: '#/components/schemas/Input_ComputerCall'
        - $ref: '#/components/schemas/Input_ComputerCallOutput'
        - $ref: '#/components/schemas/Input_WebSearchCall'
        - $ref: '#/components/schemas/Input_FileSearchCall'
        - $ref: '#/components/schemas/Input_ImageGenerationCall'
        - $ref: '#/components/schemas/Input_CodeInterpreterCall'
        - $ref: '#/components/schemas/Input_CustomToolCall'
        - $ref: '#/components/schemas/Input_CustomToolCallOutput'
        - $ref: '#/components/schemas/Input_ToolSearchCall'
        - $ref: '#/components/schemas/Input_ToolSearchOutput'
        - $ref: '#/components/schemas/Input_AdditionalTools'
        - $ref: '#/components/schemas/Input_LocalShellCall'
        - $ref: '#/components/schemas/Input_LocalShellCallOutput'
        - $ref: '#/components/schemas/Input_ShellCall'
        - $ref: '#/components/schemas/Input_ShellCallOutput'
        - $ref: '#/components/schemas/Input_ApplyPatchCall'
        - $ref: '#/components/schemas/Input_ApplyPatchCallOutput'
        - $ref: '#/components/schemas/Input_McpListTools'
        - $ref: '#/components/schemas/Input_McpApprovalRequest'
        - $ref: '#/components/schemas/Input_McpApprovalResponse'
        - $ref: '#/components/schemas/Input_McpCall'
        - $ref: '#/components/schemas/Input_CompactionTrigger'
        - $ref: '#/components/schemas/Input_Program'
        - $ref: '#/components/schemas/Input_ProgramOutput'
    Input_ReasoningContext:
      enum:
        - auto
        - current_turn
        - all_turns
      type: string
    Input_ReasoningEffort:
      anyOf:
        - enum:
            - none
            - minimal
            - low
            - medium
            - high
            - xhigh
            - max
          type: string
        - description: Codex custom effort is serialized as an unsigned JSON integer.
          format: uint64
          minimum: 0
          type: integer
    Input_ReasoningSummary:
      enum:
        - auto
        - concise
        - detailed
      type: string
    Input_TextFormat:
      oneOf:
        - $ref: '#/components/schemas/Input_TextFormatText'
          properties:
            type:
              const: text
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_TextFormatJsonSchema'
          properties:
            type:
              const: json_schema
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_TextFormatJsonObject'
          properties:
            type:
              const: json_object
              type: string
          required:
            - type
          type: object
    Input_TextVerbosity:
      enum:
        - low
        - medium
        - high
      type: string
    Input_ToolChoiceMode:
      enum:
        - none
        - auto
        - required
      type: string
    Input_ToolChoiceAllowed:
      additionalProperties: true
      properties:
        mode:
          $ref: '#/components/schemas/Input_AllowedToolChoiceMode'
        tools:
          items:
            additionalProperties: true
            type: object
          type: array
        type:
          $ref: '#/components/schemas/Input_ToolChoiceAllowedType'
      required:
        - type
        - mode
        - tools
      type: object
    Input_ToolChoiceHosted:
      additionalProperties: true
      properties:
        type:
          $ref: '#/components/schemas/Input_ToolChoiceHostedType'
      required:
        - type
      type: object
    Input_ToolChoiceFunction:
      additionalProperties: true
      properties:
        name:
          type: string
        type:
          $ref: '#/components/schemas/Input_ToolChoiceFunctionType'
      required:
        - type
        - name
      type: object
    Input_ToolChoiceMcp:
      additionalProperties: true
      properties:
        name:
          type:
            - string
            - 'null'
        server_label:
          type: string
        type:
          $ref: '#/components/schemas/Input_ToolChoiceMcpType'
      required:
        - type
        - server_label
      type: object
    Input_ToolChoiceCustom:
      additionalProperties: true
      properties:
        name:
          type: string
        type:
          $ref: '#/components/schemas/Input_ToolChoiceCustomType'
      required:
        - type
        - name
      type: object
    Input_ToolChoiceProgrammatic:
      additionalProperties: true
      properties:
        type:
          $ref: '#/components/schemas/Input_ToolChoiceProgrammaticType'
      required:
        - type
      type: object
    Input_ToolChoiceApplyPatch:
      additionalProperties: true
      properties:
        type:
          $ref: '#/components/schemas/Input_ToolChoiceApplyPatchType'
      required:
        - type
      type: object
    Input_ToolChoiceShell:
      additionalProperties: true
      properties:
        type:
          $ref: '#/components/schemas/Input_ToolChoiceShellType'
      required:
        - type
      type: object
    Input_FunctionTool:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller'
          type:
            - array
            - 'null'
        async:
          type:
            - boolean
            - 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        description:
          type:
            - string
            - 'null'
        name:
          type: string
        output_schema:
          additionalProperties: true
          type:
            - object
            - 'null'
        parameters:
          additionalProperties: true
          type:
            - object
            - 'null'
        strict:
          default: null
          type:
            - boolean
            - 'null'
      required:
        - name
        - parameters
      type: object
    Input_FileSearchTool:
      additionalProperties: true
      properties:
        filters:
          anyOf:
            - $ref: '#/components/schemas/Input_FileSearchFilter'
            - type: 'null'
        max_num_results:
          type:
            - number
            - 'null'
        ranking_options:
          anyOf:
            - $ref: '#/components/schemas/Input_RankingOptions'
            - type: 'null'
        vector_store_ids:
          items:
            type: string
          type: array
      required:
        - vector_store_ids
      type: object
    Input_ComputerTool:
      additionalProperties: true
      properties:
        display_height:
          format: int64
          type: integer
        display_width:
          format: int64
          type: integer
        environment:
          $ref: '#/components/schemas/Input_ComputerEnvironment'
      required:
        - display_height
        - display_width
        - environment
      type: object
    Input_ToolMarker:
      additionalProperties: true
      type: object
    Input_WebSearchPreviewTool:
      additionalProperties: true
      properties:
        search_content_types:
          items:
            $ref: '#/components/schemas/Input_SearchContentType'
          type:
            - array
            - 'null'
        search_context_size:
          anyOf:
            - $ref: '#/components/schemas/Input_SearchContextSize'
            - type: 'null'
        user_location:
          anyOf:
            - $ref: '#/components/schemas/Input_PreviewUserLocation'
            - type: 'null'
      type: object
    Input_WebSearchTool:
      additionalProperties: true
      properties:
        filters:
          anyOf:
            - $ref: '#/components/schemas/Input_WebSearchFilters'
            - type: 'null'
        search_context_size:
          anyOf:
            - $ref: '#/components/schemas/Input_SearchContextSize'
            - type: 'null'
        user_location:
          anyOf:
            - $ref: '#/components/schemas/Input_UserLocation'
            - type: 'null'
      type: object
    Input_CodeInterpreterTool:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller'
          type:
            - array
            - 'null'
        container:
          $ref: '#/components/schemas/Input_CodeInterpreterContainer'
      required:
        - container
      type: object
    Input_CustomTool:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller'
          type:
            - array
            - 'null'
        async:
          type:
            - boolean
            - 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        description:
          type:
            - string
            - 'null'
        format:
          anyOf:
            - $ref: '#/components/schemas/Input_CustomToolFormat'
            - type: 'null'
        name:
          type: string
      required:
        - name
      type: object
    Input_NamespaceTool:
      additionalProperties: true
      properties:
        description:
          type: string
        name:
          type: string
        tools:
          items:
            $ref: '#/components/schemas/Input_NamespaceToolDefinition'
          type: array
      required:
        - description
        - name
        - tools
      type: object
    Input_ShellTool:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller'
          type:
            - array
            - 'null'
        environment:
          anyOf:
            - $ref: '#/components/schemas/Input_ShellEnvironment'
            - type: 'null'
      type: object
    Input_ImageGenerationTool:
      additionalProperties: true
      properties:
        action:
          anyOf:
            - $ref: '#/components/schemas/Input_ImageAction'
            - type: 'null'
        background:
          anyOf:
            - $ref: '#/components/schemas/Input_ImageBackground'
            - type: 'null'
        input_fidelity:
          anyOf:
            - $ref: '#/components/schemas/Input_InputFidelity'
            - type: 'null'
        input_image_mask:
          anyOf:
            - $ref: '#/components/schemas/Input_InputImageMask'
            - type: 'null'
        model:
          type:
            - string
            - 'null'
        moderation:
          anyOf:
            - $ref: '#/components/schemas/Input_Moderation'
            - type: 'null'
        output_compression:
          type:
            - number
            - 'null'
        output_format:
          anyOf:
            - $ref: '#/components/schemas/Input_ImageOutputFormat'
            - type: 'null'
        partial_images:
          format: int64
          type:
            - integer
            - 'null'
        quality:
          anyOf:
            - $ref: '#/components/schemas/Input_ImageQuality'
            - type: 'null'
        size:
          type:
            - string
            - 'null'
      type: object
    Input_McpTool:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller'
          type:
            - array
            - 'null'
        allowed_tools:
          anyOf:
            - $ref: '#/components/schemas/Input_McpAllowedTools'
            - type: 'null'
        authorization:
          type:
            - string
            - 'null'
        connector_id:
          anyOf:
            - $ref: '#/components/schemas/Input_ConnectorId'
            - type: 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        headers:
          additionalProperties:
            type: string
          type:
            - object
            - 'null'
        require_approval:
          anyOf:
            - $ref: '#/components/schemas/Input_McpApproval'
            - type: 'null'
        server_description:
          type:
            - string
            - 'null'
        server_label:
          type: string
        server_url:
          type:
            - string
            - 'null'
        tunnel_id:
          type:
            - string
            - 'null'
      required:
        - server_label
      type: object
    Input_ApplyPatchTool:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller'
          type:
            - array
            - 'null'
      type: object
    Input_ToolSearchTool:
      additionalProperties: true
      properties:
        description:
          type:
            - string
            - 'null'
        execution:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolExecution'
            - type: 'null'
        parameters: true
      type: object
    Output_StreamErrorType:
      enum:
        - api_error
        - authentication_error
        - billing_error
        - invalid_request_error
        - not_found_error
        - overloaded_error
        - permission_error
        - rate_limit_error
        - timeout_error
        - conflict_error
        - request_too_large
      type: string
    Input_MultiAgentCall:
      additionalProperties: true
      properties:
        action:
          $ref: '#/components/schemas/Input_Action'
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        arguments:
          type: string
        call_id:
          type: string
        id:
          type:
            - string
            - 'null'
        type:
          $ref: '#/components/schemas/Input_MultiAgentCallType'
      required:
        - type
        - action
        - arguments
        - call_id
      type: object
    Input_MultiAgentCallOutput:
      additionalProperties: true
      properties:
        action:
          $ref: '#/components/schemas/Input_Action'
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        call_id:
          type: string
        id:
          type:
            - string
            - 'null'
        output:
          items:
            $ref: '#/components/schemas/Input_ReplayOutputText'
          type: array
        type:
          $ref: '#/components/schemas/Input_MultiAgentCallOutputType'
      required:
        - type
        - action
        - call_id
        - output
      type: object
    Input_AgentMessage:
      additionalProperties: true
      properties:
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        author:
          type: string
        content:
          items:
            $ref: '#/components/schemas/Input_AgentContent'
          type: array
        id:
          type:
            - string
            - 'null'
        recipient:
          type: string
        type:
          $ref: '#/components/schemas/Input_AgentMessageType'
      required:
        - type
        - author
        - recipient
        - content
      type: object
    Input_ConfigurationUpdate:
      additionalProperties: true
      properties:
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        id:
          type:
            - string
            - 'null'
        reasoning:
          anyOf:
            - $ref: '#/components/schemas/Input_ConfigurationReasoning'
            - type: 'null'
        type:
          $ref: '#/components/schemas/Input_ConfigurationUpdateType'
      required:
        - type
      type: object
    Input_ResponseOutputMessage:
      additionalProperties: true
      properties:
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        content:
          items:
            $ref: '#/components/schemas/Input_OutputContent'
          type: array
        id:
          type: string
        phase:
          anyOf:
            - $ref: '#/components/schemas/Input_MessagePhase'
            - type: 'null'
        role:
          $ref: '#/components/schemas/Input_OutputMessageRole'
        status:
          $ref: '#/components/schemas/Input_OutputMessageStatus'
        type:
          $ref: '#/components/schemas/Input_MessageType'
      required:
        - id
        - content
        - role
        - status
        - type
      type: object
    Input_InputMessage:
      additionalProperties: true
      properties:
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        content:
          items:
            $ref: '#/components/schemas/Input_InputContent'
          type: array
        role:
          $ref: '#/components/schemas/Input_InputMessageRole'
        status:
          anyOf:
            - $ref: '#/components/schemas/Input_OutputMessageStatus'
            - type: 'null'
        type:
          anyOf:
            - $ref: '#/components/schemas/Input_MessageType'
            - type: 'null'
      required:
        - content
        - role
      type: object
    Input_EasyInputMessage:
      additionalProperties: true
      properties:
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        content:
          $ref: '#/components/schemas/Input_MessageContent'
        phase:
          anyOf:
            - $ref: '#/components/schemas/Input_MessagePhase'
            - type: 'null'
        role:
          $ref: '#/components/schemas/Input_MessageRole'
        type:
          anyOf:
            - $ref: '#/components/schemas/Input_MessageType'
            - type: 'null'
      required:
        - content
        - role
      type: object
    Input_FunctionCall:
      additionalProperties: true
      properties:
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        arguments:
          type: string
        async:
          type:
            - boolean
            - 'null'
        call_id:
          type: string
        caller:
          anyOf:
            - $ref: '#/components/schemas/Input_Caller'
            - type: 'null'
        id:
          type:
            - string
            - 'null'
        name:
          type: string
        namespace:
          type:
            - string
            - 'null'
        status:
          anyOf:
            - $ref: '#/components/schemas/Input_ItemStatus'
            - type: 'null'
        type:
          $ref: '#/components/schemas/Input_FunctionCallType'
      required:
        - type
        - arguments
        - call_id
        - name
      type: object
    Input_FunctionCallOutput:
      additionalProperties: true
      properties:
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        call_id:
          type:
            - string
            - 'null'
        caller:
          anyOf:
            - $ref: '#/components/schemas/Input_Caller'
            - type: 'null'
        id:
          type:
            - string
            - 'null'
        name:
          type:
            - string
            - 'null'
        namespace:
          type:
            - string
            - 'null'
        output:
          $ref: '#/components/schemas/Input_FunctionOutput'
        status:
          anyOf:
            - $ref: '#/components/schemas/Input_ItemStatus'
            - type: 'null'
        type:
          $ref: '#/components/schemas/Input_FunctionCallOutputType'
      required:
        - type
        - output
      type: object
    Input_ReasoningItem:
      additionalProperties: true
      properties:
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        content:
          items:
            $ref: '#/components/schemas/Input_ReasoningContent'
          type:
            - array
            - 'null'
        encrypted_content:
          type:
            - string
            - 'null'
        id:
          type: string
        status:
          anyOf:
            - $ref: '#/components/schemas/Input_ReasoningStatus'
            - type: 'null'
        summary:
          items:
            $ref: '#/components/schemas/Input_SummaryText'
          type: array
        type:
          $ref: '#/components/schemas/Input_ReasoningItemType'
      required:
        - type
        - id
        - summary
      type: object
    Input_ItemReference:
      additionalProperties: true
      properties:
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        id:
          type: string
        type:
          anyOf:
            - $ref: '#/components/schemas/Input_ItemReferenceType'
            - type: 'null'
      required:
        - id
      type: object
    Input_Compaction:
      additionalProperties: true
      properties:
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        encrypted_content:
          type: string
        id:
          type:
            - string
            - 'null'
        type:
          $ref: '#/components/schemas/Input_CompactionType'
      required:
        - type
        - encrypted_content
      type: object
    Input_ComputerCall:
      additionalProperties: true
      properties:
        action:
          anyOf:
            - $ref: '#/components/schemas/Input_ComputerAction'
            - type: 'null'
        actions:
          items:
            $ref: '#/components/schemas/Input_ComputerAction'
          type:
            - array
            - 'null'
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        call_id:
          type: string
        id:
          type: string
        pending_safety_checks:
          items:
            $ref: '#/components/schemas/Input_PendingSafetyCheck'
          type: array
        status:
          $ref: '#/components/schemas/Input_ItemStatus'
        type:
          $ref: '#/components/schemas/Input_ComputerCallType'
      required:
        - type
        - id
        - call_id
        - pending_safety_checks
        - status
      type: object
    Input_ComputerCallOutput:
      additionalProperties: true
      properties:
        acknowledged_safety_checks:
          items:
            $ref: '#/components/schemas/Input_PendingSafetyCheck'
          type:
            - array
            - 'null'
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        call_id:
          type: string
        id:
          type:
            - string
            - 'null'
        output:
          $ref: '#/components/schemas/Input_ComputerScreenshot'
        status:
          anyOf:
            - $ref: '#/components/schemas/Input_ItemStatus'
            - type: 'null'
        type:
          $ref: '#/components/schemas/Input_ComputerCallOutputType'
      required:
        - type
        - call_id
        - output
      type: object
    Input_WebSearchCall:
      additionalProperties: true
      properties:
        action:
          anyOf:
            - $ref: '#/components/schemas/Input_WebSearchAction'
            - type: 'null'
          description: The initial in-progress stream item precedes its search action.
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        id:
          type: string
        status:
          $ref: '#/components/schemas/Input_WebSearchStatus'
        type:
          $ref: '#/components/schemas/Input_WebSearchCallType'
      required:
        - type
        - id
        - status
      type: object
    Input_FileSearchCall:
      additionalProperties: true
      properties:
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        id:
          type: string
        queries:
          items:
            type: string
          type: array
        results:
          items:
            $ref: '#/components/schemas/Input_FileSearchResult'
          type:
            - array
            - 'null'
        status:
          $ref: '#/components/schemas/Input_FileSearchStatus'
        type:
          $ref: '#/components/schemas/Input_FileSearchCallType'
      required:
        - type
        - id
        - queries
        - status
      type: object
    Input_ImageGenerationCall:
      additionalProperties: true
      properties:
        action:
          anyOf:
            - $ref: '#/components/schemas/Input_ImageAction'
            - type: 'null'
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        background:
          anyOf:
            - $ref: '#/components/schemas/Input_ImageBackground'
            - type: 'null'
        error:
          anyOf:
            - $ref: '#/components/schemas/Input_ImageGenerationCallError'
            - type: 'null'
        id:
          type: string
        output_format:
          anyOf:
            - $ref: '#/components/schemas/Input_ImageOutputFormat'
            - type: 'null'
        quality:
          anyOf:
            - $ref: '#/components/schemas/Input_ImageQuality'
            - type: 'null'
        result:
          type:
            - string
            - 'null'
        revised_prompt:
          type:
            - string
            - 'null'
        size:
          type:
            - string
            - 'null'
        status:
          $ref: '#/components/schemas/Input_ImageGenerationStatus'
        type:
          $ref: '#/components/schemas/Input_ImageGenerationCallType'
      required:
        - type
        - id
        - status
        - result
      type: object
    Input_CodeInterpreterCall:
      additionalProperties: true
      properties:
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        code:
          type:
            - string
            - 'null'
        container_id:
          type: string
        id:
          type: string
        outputs:
          items:
            $ref: '#/components/schemas/Input_CodeInterpreterOutput'
          type:
            - array
            - 'null'
        status:
          $ref: '#/components/schemas/Input_CodeInterpreterStatus'
        type:
          $ref: '#/components/schemas/Input_CodeInterpreterCallType'
      required:
        - type
        - id
        - container_id
        - status
        - code
        - outputs
      type: object
    Input_CustomToolCall:
      additionalProperties: true
      properties:
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        async:
          type:
            - boolean
            - 'null'
        call_id:
          type: string
        caller:
          anyOf:
            - $ref: '#/components/schemas/Input_Caller'
            - type: 'null'
        id:
          type:
            - string
            - 'null'
        input:
          type: string
        name:
          type: string
        namespace:
          type:
            - string
            - 'null'
        type:
          $ref: '#/components/schemas/Input_CustomToolCallType'
      required:
        - type
        - call_id
        - input
        - name
      type: object
    Input_CustomToolCallOutput:
      additionalProperties: true
      properties:
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        call_id:
          type: string
        caller:
          anyOf:
            - $ref: '#/components/schemas/Input_Caller'
            - type: 'null'
        id:
          type:
            - string
            - 'null'
        output:
          $ref: '#/components/schemas/Input_CustomOutput'
        type:
          $ref: '#/components/schemas/Input_CustomToolCallOutputType'
      required:
        - type
        - call_id
        - output
      type: object
    Input_ToolSearchCall:
      additionalProperties: true
      properties:
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        arguments: true
        call_id:
          type:
            - string
            - 'null'
        execution:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolExecution'
            - type: 'null'
        id:
          type:
            - string
            - 'null'
        status:
          anyOf:
            - $ref: '#/components/schemas/Input_ItemStatus'
            - type: 'null'
        type:
          $ref: '#/components/schemas/Input_ToolSearchCallType'
      required:
        - type
        - arguments
      type: object
    Input_ToolSearchOutput:
      additionalProperties: true
      properties:
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        call_id:
          type:
            - string
            - 'null'
        execution:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolExecution'
            - type: 'null'
        id:
          type:
            - string
            - 'null'
        status:
          anyOf:
            - $ref: '#/components/schemas/Input_ItemStatus'
            - type: 'null'
        tools:
          items:
            $ref: '#/components/schemas/Input_Tool'
          type: array
        type:
          $ref: '#/components/schemas/Input_ToolSearchOutputType'
      required:
        - type
        - tools
      type: object
    Input_AdditionalTools:
      additionalProperties: true
      properties:
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        id:
          type:
            - string
            - 'null'
        role:
          $ref: '#/components/schemas/Input_AdditionalToolsRole'
        tools:
          items:
            $ref: '#/components/schemas/Input_Tool'
          type: array
        type:
          $ref: '#/components/schemas/Input_AdditionalToolsType'
      required:
        - type
        - role
        - tools
      type: object
    Input_LocalShellCall:
      additionalProperties: true
      properties:
        action:
          $ref: '#/components/schemas/Input_LocalShellAction'
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        call_id:
          type: string
        id:
          type: string
        status:
          $ref: '#/components/schemas/Input_ItemStatus'
        type:
          $ref: '#/components/schemas/Input_LocalShellCallType'
      required:
        - type
        - id
        - call_id
        - action
        - status
      type: object
    Input_LocalShellCallOutput:
      additionalProperties: true
      properties:
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        id:
          type: string
        output:
          type: string
        status:
          anyOf:
            - $ref: '#/components/schemas/Input_ItemStatus'
            - type: 'null'
        type:
          $ref: '#/components/schemas/Input_LocalShellCallOutputType'
      required:
        - type
        - id
        - output
      type: object
    Input_ShellCall:
      additionalProperties: true
      properties:
        action:
          $ref: '#/components/schemas/Input_ShellAction'
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        call_id:
          type: string
        caller:
          anyOf:
            - $ref: '#/components/schemas/Input_Caller'
            - type: 'null'
        environment:
          anyOf:
            - $ref: '#/components/schemas/Input_ShellCallEnvironment'
            - type: 'null'
        id:
          type:
            - string
            - 'null'
        status:
          anyOf:
            - $ref: '#/components/schemas/Input_ItemStatus'
            - type: 'null'
        type:
          $ref: '#/components/schemas/Input_ShellCallType'
      required:
        - type
        - call_id
        - action
      type: object
    Input_ShellCallOutput:
      additionalProperties: true
      properties:
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        call_id:
          type: string
        caller:
          anyOf:
            - $ref: '#/components/schemas/Input_Caller'
            - type: 'null'
        id:
          type:
            - string
            - 'null'
        max_output_length:
          format: int64
          type:
            - integer
            - 'null'
        output:
          items:
            $ref: '#/components/schemas/Input_ShellOutputContent'
          type: array
        status:
          anyOf:
            - $ref: '#/components/schemas/Input_ItemStatus'
            - type: 'null'
        type:
          $ref: '#/components/schemas/Input_ShellCallOutputType'
      required:
        - type
        - call_id
        - output
      type: object
    Input_ApplyPatchCall:
      additionalProperties: true
      properties:
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        call_id:
          type: string
        caller:
          anyOf:
            - $ref: '#/components/schemas/Input_Caller'
            - type: 'null'
        id:
          type:
            - string
            - 'null'
        operation:
          $ref: '#/components/schemas/Input_ApplyPatchOperation'
        status:
          $ref: '#/components/schemas/Input_ApplyPatchStatus'
        type:
          $ref: '#/components/schemas/Input_ApplyPatchCallType'
      required:
        - type
        - call_id
        - operation
        - status
      type: object
    Input_ApplyPatchCallOutput:
      additionalProperties: true
      properties:
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        call_id:
          type: string
        caller:
          anyOf:
            - $ref: '#/components/schemas/Input_Caller'
            - type: 'null'
        id:
          type:
            - string
            - 'null'
        output:
          type:
            - string
            - 'null'
        status:
          $ref: '#/components/schemas/Input_ApplyPatchOutputStatus'
        type:
          $ref: '#/components/schemas/Input_ApplyPatchCallOutputType'
      required:
        - type
        - call_id
        - status
      type: object
    Input_McpListTools:
      additionalProperties: true
      properties:
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        error:
          type:
            - string
            - 'null'
        id:
          type: string
        server_label:
          type: string
        tools:
          items:
            $ref: '#/components/schemas/Input_McpToolDefinition'
          type: array
        type:
          $ref: '#/components/schemas/Input_McpListToolsType'
      required:
        - type
        - id
        - server_label
        - tools
      type: object
    Input_McpApprovalRequest:
      additionalProperties: true
      properties:
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        arguments:
          type: string
        id:
          type: string
        name:
          type: string
        server_label:
          type: string
        type:
          $ref: '#/components/schemas/Input_McpApprovalRequestType'
      required:
        - type
        - id
        - arguments
        - name
        - server_label
      type: object
    Input_McpApprovalResponse:
      additionalProperties: true
      properties:
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        approval_request_id:
          type: string
        approve:
          type: boolean
        id:
          type:
            - string
            - 'null'
        reason:
          type:
            - string
            - 'null'
        type:
          $ref: '#/components/schemas/Input_McpApprovalResponseType'
      required:
        - type
        - approval_request_id
        - approve
      type: object
    Input_McpCall:
      additionalProperties: true
      properties:
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        approval_request_id:
          type:
            - string
            - 'null'
        arguments:
          type: string
        error:
          anyOf:
            - $ref: '#/components/schemas/Input_McpToolCallError'
            - type: 'null'
        id:
          type: string
        name:
          type: string
        output:
          type:
            - string
            - 'null'
        server_label:
          type: string
        status:
          anyOf:
            - $ref: '#/components/schemas/Input_McpCallStatus'
            - type: 'null'
        type:
          $ref: '#/components/schemas/Input_McpCallType'
      required:
        - type
        - id
        - arguments
        - name
        - server_label
      type: object
    Input_CompactionTrigger:
      additionalProperties: true
      properties:
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        type:
          $ref: '#/components/schemas/Input_CompactionTriggerType'
      required:
        - type
      type: object
    Input_Program:
      additionalProperties: true
      properties:
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        call_id:
          type: string
        code:
          type: string
        fingerprint:
          type: string
        id:
          type: string
        type:
          $ref: '#/components/schemas/Input_ProgramType'
      required:
        - type
        - id
        - call_id
        - code
        - fingerprint
      type: object
    Input_ProgramOutput:
      additionalProperties: true
      properties:
        agent:
          anyOf:
            - $ref: '#/components/schemas/Input_Agent'
            - type: 'null'
        call_id:
          type: string
        id:
          type: string
        result:
          type: string
        status:
          $ref: '#/components/schemas/Input_ProgramOutputStatus'
        type:
          $ref: '#/components/schemas/Input_ProgramOutputType'
      required:
        - type
        - id
        - call_id
        - result
        - status
      type: object
    Input_TextFormatText:
      additionalProperties: true
      type: object
    Input_TextFormatJsonSchema:
      additionalProperties: true
      properties:
        description:
          type:
            - string
            - 'null'
        name:
          type: string
        schema:
          additionalProperties: true
          type: object
        strict:
          type:
            - boolean
            - 'null'
      required:
        - name
        - schema
      type: object
    Input_TextFormatJsonObject:
      additionalProperties: true
      type: object
    Input_AllowedToolChoiceMode:
      enum:
        - auto
        - required
      type: string
    Input_ToolChoiceAllowedType:
      enum:
        - allowed_tools
      type: string
    Input_ToolChoiceHostedType:
      enum:
        - file_search
        - web_search_preview
        - computer
        - computer_use_preview
        - computer_use
        - code_interpreter
        - image_generation
        - web_search_preview_2025_03_11
      type: string
    Input_ToolChoiceFunctionType:
      enum:
        - function
      type: string
    Input_ToolChoiceMcpType:
      enum:
        - mcp
      type: string
    Input_ToolChoiceCustomType:
      enum:
        - custom
      type: string
    Input_ToolChoiceProgrammaticType:
      enum:
        - programmatic_tool_calling
      type: string
    Input_ToolChoiceApplyPatchType:
      enum:
        - apply_patch
      type: string
    Input_ToolChoiceShellType:
      enum:
        - shell
      type: string
    Input_AllowedCaller:
      enum:
        - direct
        - programmatic
      type: string
    Input_FileSearchFilter:
      anyOf:
        - $ref: '#/components/schemas/Input_ComparisonFilter'
        - $ref: '#/components/schemas/Input_CompoundFilter'
    Input_RankingOptions:
      additionalProperties: true
      properties:
        hybrid_search:
          anyOf:
            - $ref: '#/components/schemas/Input_HybridSearch'
            - type: 'null'
        ranker:
          anyOf:
            - $ref: '#/components/schemas/Input_Ranker'
            - type: 'null'
        score_threshold:
          type:
            - number
            - 'null'
      type: object
    Input_ComputerEnvironment:
      enum:
        - windows
        - mac
        - linux
        - ubuntu
        - browser
      type: string
    Input_SearchContentType:
      enum:
        - text
        - image
      type: string
    Input_SearchContextSize:
      enum:
        - low
        - medium
        - high
      type: string
    Input_PreviewUserLocation:
      additionalProperties: true
      properties:
        city:
          type:
            - string
            - 'null'
        country:
          type:
            - string
            - 'null'
        region:
          type:
            - string
            - 'null'
        timezone:
          type:
            - string
            - 'null'
        type:
          $ref: '#/components/schemas/Input_UserLocationType'
      required:
        - type
      type: object
    Input_WebSearchFilters:
      additionalProperties: true
      properties:
        allowed_domains:
          items:
            type: string
          type:
            - array
            - 'null'
      type: object
    Input_UserLocation:
      additionalProperties: true
      properties:
        city:
          type:
            - string
            - 'null'
        country:
          type:
            - string
            - 'null'
        region:
          type:
            - string
            - 'null'
        timezone:
          type:
            - string
            - 'null'
        type:
          anyOf:
            - $ref: '#/components/schemas/Input_UserLocationType'
            - type: 'null'
      type: object
    Input_CodeInterpreterContainer:
      anyOf:
        - type: string
        - $ref: '#/components/schemas/Input_CodeInterpreterAuto'
    Input_CustomToolFormat:
      anyOf:
        - $ref: '#/components/schemas/Input_CustomTextFormat'
        - $ref: '#/components/schemas/Input_GrammarFormat'
    Input_NamespaceToolDefinition:
      oneOf:
        - $ref: '#/components/schemas/Input_NamespaceFunctionTool'
          properties:
            type:
              const: function
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_NamespaceCustomTool'
          properties:
            type:
              const: custom
              type: string
          required:
            - type
          type: object
    Input_ShellEnvironment:
      anyOf:
        - $ref: '#/components/schemas/Input_ShellContainerAuto'
        - $ref: '#/components/schemas/Input_ShellLocalEnvironment'
        - $ref: '#/components/schemas/Input_ShellContainerReference'
    Input_ImageAction:
      enum:
        - generate
        - edit
        - auto
      type: string
    Input_ImageBackground:
      enum:
        - transparent
        - opaque
        - auto
      type: string
    Input_InputFidelity:
      enum:
        - low
        - high
      type: string
    Input_InputImageMask:
      additionalProperties: true
      properties:
        file_id:
          type:
            - string
            - 'null'
        image_url:
          type:
            - string
            - 'null'
      type: object
    Input_Moderation:
      enum:
        - auto
        - low
      type: string
    Input_ImageOutputFormat:
      enum:
        - png
        - webp
        - jpeg
      type: string
    Input_ImageQuality:
      enum:
        - xhigh
        - max
        - low
        - medium
        - high
        - auto
      type: string
    Input_McpAllowedTools:
      anyOf:
        - items:
            type: string
          type: array
        - $ref: '#/components/schemas/Input_McpToolFilter'
    Input_ConnectorId:
      enum:
        - connector_dropbox
        - connector_gmail
        - connector_googlecalendar
        - connector_googledrive
        - connector_microsoftteams
        - connector_outlookcalendar
        - connector_outlookemail
        - connector_sharepoint
      type: string
    Input_McpApproval:
      anyOf:
        - $ref: '#/components/schemas/Input_McpApprovalSetting'
        - $ref: '#/components/schemas/Input_McpToolApprovalFilter'
    Input_ToolExecution:
      enum:
        - server
        - client
      type: string
    Input_Action:
      enum:
        - spawn_agent
        - interrupt_agent
        - list_agents
        - send_message
        - followup_task
        - wait_agent
      type: string
    Input_Agent:
      additionalProperties: true
      properties:
        agent_name:
          type: string
      required:
        - agent_name
      type: object
    Input_MultiAgentCallType:
      enum:
        - multi_agent_call
      type: string
    Input_ReplayOutputText:
      additionalProperties: true
      properties:
        annotations:
          items:
            $ref: '#/components/schemas/Input_OutputAnnotation'
          type:
            - array
            - 'null'
        logprobs:
          items:
            $ref: '#/components/schemas/Input_OutputLogprob'
          type:
            - array
            - 'null'
        text:
          type: string
        type:
          $ref: '#/components/schemas/Input_ResponseOutputTextType'
      required:
        - type
        - text
      type: object
    Input_MultiAgentCallOutputType:
      enum:
        - multi_agent_call_output
      type: string
    Input_AgentContent:
      anyOf:
        - $ref: '#/components/schemas/Input_ResponseInputText'
        - $ref: '#/components/schemas/Input_ReplayOutputText'
        - $ref: '#/components/schemas/Input_AgentText'
        - $ref: '#/components/schemas/Input_SummaryText'
        - $ref: '#/components/schemas/Input_ReasoningContent'
        - $ref: '#/components/schemas/Input_ResponseOutputRefusal'
        - $ref: '#/components/schemas/Input_ResponseInputImage'
        - $ref: '#/components/schemas/Input_ComputerScreenshot'
        - $ref: '#/components/schemas/Input_ResponseInputFile'
        - $ref: '#/components/schemas/Input_EncryptedContent'
    Input_AgentMessageType:
      enum:
        - agent_message
      type: string
    Input_ConfigurationReasoning:
      additionalProperties: true
      properties:
        effort:
          anyOf:
            - $ref: '#/components/schemas/Input_ReasoningEffort'
            - type: 'null'
      type: object
    Input_ConfigurationUpdateType:
      enum:
        - configuration_update
      type: string
    Input_OutputContent:
      anyOf:
        - $ref: '#/components/schemas/Input_ResponseOutputText'
        - $ref: '#/components/schemas/Input_ResponseOutputRefusal'
    Input_MessagePhase:
      enum:
        - commentary
        - final_answer
      type: string
    Input_OutputMessageRole:
      enum:
        - assistant
      type: string
    Input_OutputMessageStatus:
      enum:
        - in_progress
        - completed
        - incomplete
      type: string
    Input_MessageType:
      enum:
        - message
      type: string
    Input_InputContent:
      anyOf:
        - $ref: '#/components/schemas/Input_ResponseInputText'
        - $ref: '#/components/schemas/Input_ResponseInputImage'
        - $ref: '#/components/schemas/Input_ResponseInputFile'
    Input_InputMessageRole:
      enum:
        - user
        - system
        - developer
      type: string
    Input_MessageContent:
      anyOf:
        - type: string
        - items:
            $ref: '#/components/schemas/Input_InputContent'
          type: array
    Input_MessageRole:
      enum:
        - user
        - system
        - developer
        - assistant
      type: string
    Input_Caller:
      oneOf:
        - $ref: '#/components/schemas/Input_DirectCaller'
          properties:
            type:
              const: direct
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_ProgramCaller'
          properties:
            type:
              const: program
              type: string
          required:
            - type
          type: object
    Input_ItemStatus:
      enum:
        - in_progress
        - completed
        - incomplete
      type: string
    Input_FunctionCallType:
      enum:
        - function_call
      type: string
    Input_FunctionOutput:
      anyOf:
        - type: string
        - items:
            $ref: '#/components/schemas/Input_FunctionOutputContent'
          type: array
    Input_FunctionCallOutputType:
      enum:
        - function_call_output
      type: string
    Input_ReasoningContent:
      additionalProperties: true
      properties:
        text:
          type: string
        type:
          $ref: '#/components/schemas/Input_ReasoningTextType'
      required:
        - type
        - text
      type: object
    Input_ReasoningStatus:
      enum:
        - in_progress
        - completed
        - incomplete
      type: string
    Input_SummaryText:
      additionalProperties: true
      properties:
        text:
          type: string
        type:
          $ref: '#/components/schemas/Input_SummaryTextType'
      required:
        - type
        - text
      type: object
    Input_ReasoningItemType:
      enum:
        - reasoning
      type: string
    Input_ItemReferenceType:
      enum:
        - item_reference
      type: string
    Input_CompactionType:
      enum:
        - compaction
      type: string
    Input_ComputerAction:
      oneOf:
        - $ref: '#/components/schemas/Input_ClickAction'
          properties:
            type:
              const: click
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_DoubleClickAction'
          properties:
            type:
              const: double_click
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_DragAction'
          properties:
            type:
              const: drag
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_KeypressAction'
          properties:
            type:
              const: keypress
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_MoveAction'
          properties:
            type:
              const: move
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_ScreenshotAction'
          properties:
            type:
              const: screenshot
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_ScrollAction'
          properties:
            type:
              const: scroll
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_TypeAction'
          properties:
            type:
              const: type
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_WaitAction'
          properties:
            type:
              const: wait
              type: string
          required:
            - type
          type: object
    Input_PendingSafetyCheck:
      additionalProperties: true
      properties:
        code:
          type:
            - string
            - 'null'
        id:
          type: string
        message:
          type:
            - string
            - 'null'
      required:
        - id
      type: object
    Input_ComputerCallType:
      enum:
        - computer_call
      type: string
    Input_ComputerScreenshot:
      additionalProperties: true
      properties:
        file_id:
          type:
            - string
            - 'null'
        image_url:
          type:
            - string
            - 'null'
        type:
          $ref: '#/components/schemas/Input_ComputerScreenshotType'
      required:
        - type
      type: object
    Input_ComputerCallOutputType:
      enum:
        - computer_call_output
      type: string
    Input_WebSearchAction:
      oneOf:
        - $ref: '#/components/schemas/Input_WebSearchQuery'
          properties:
            type:
              const: search
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_WebSearchOpenPage'
          properties:
            type:
              const: open_page
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_WebSearchFindInPage'
          properties:
            type:
              const: find_in_page
              type: string
          required:
            - type
          type: object
    Input_WebSearchStatus:
      enum:
        - in_progress
        - searching
        - completed
        - failed
        - incomplete
      type: string
    Input_WebSearchCallType:
      enum:
        - web_search_call
      type: string
    Input_FileSearchResult:
      additionalProperties: true
      properties:
        attributes:
          additionalProperties:
            $ref: '#/components/schemas/Input_FileAttributeValue'
          type:
            - object
            - 'null'
        file_id:
          type:
            - string
            - 'null'
        filename:
          type:
            - string
            - 'null'
        score:
          type:
            - number
            - 'null'
        text:
          type:
            - string
            - 'null'
      type: object
    Input_FileSearchStatus:
      enum:
        - in_progress
        - searching
        - completed
        - incomplete
        - failed
      type: string
    Input_FileSearchCallType:
      enum:
        - file_search_call
      type: string
    Input_ImageGenerationCallError:
      additionalProperties: true
      properties:
        code:
          type:
            - string
            - 'null'
        message:
          type: string
        moderation_details:
          anyOf:
            - $ref: '#/components/schemas/Input_ImageModerationDetails'
            - type: 'null'
        param:
          type:
            - string
            - 'null'
        type:
          type: string
      required:
        - message
        - type
        - code
        - param
      type: object
    Input_ImageGenerationStatus:
      enum:
        - in_progress
        - completed
        - generating
        - failed
      type: string
    Input_ImageGenerationCallType:
      enum:
        - image_generation_call
      type: string
    Input_CodeInterpreterOutput:
      oneOf:
        - $ref: '#/components/schemas/Input_CodeLogs'
          properties:
            type:
              const: logs
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_CodeImage'
          properties:
            type:
              const: image
              type: string
          required:
            - type
          type: object
    Input_CodeInterpreterStatus:
      enum:
        - in_progress
        - completed
        - incomplete
        - interpreting
        - failed
      type: string
    Input_CodeInterpreterCallType:
      enum:
        - code_interpreter_call
      type: string
    Input_CustomToolCallType:
      enum:
        - custom_tool_call
      type: string
    Input_CustomOutput:
      anyOf:
        - type: string
        - items:
            $ref: '#/components/schemas/Input_InputContent'
          type: array
    Input_CustomToolCallOutputType:
      enum:
        - custom_tool_call_output
      type: string
    Input_ToolSearchCallType:
      enum:
        - tool_search_call
      type: string
    Input_ToolSearchOutputType:
      enum:
        - tool_search_output
      type: string
    Input_AdditionalToolsRole:
      enum:
        - developer
      type: string
    Input_AdditionalToolsType:
      enum:
        - additional_tools
      type: string
    Input_LocalShellAction:
      additionalProperties: true
      properties:
        command:
          items:
            type: string
          type: array
        env:
          additionalProperties:
            type: string
          type: object
        timeout_ms:
          format: int64
          type:
            - integer
            - 'null'
        type:
          $ref: '#/components/schemas/Input_LocalShellActionType'
        user:
          type:
            - string
            - 'null'
        working_directory:
          type:
            - string
            - 'null'
      required:
        - command
        - env
        - type
      type: object
    Input_LocalShellCallType:
      enum:
        - local_shell_call
      type: string
    Input_LocalShellCallOutputType:
      enum:
        - local_shell_call_output
      type: string
    Input_ShellAction:
      additionalProperties: true
      properties:
        commands:
          items:
            type: string
          type: array
        max_output_length:
          format: int64
          type:
            - integer
            - 'null'
        timeout_ms:
          format: int64
          type:
            - integer
            - 'null'
      required:
        - commands
      type: object
    Input_ShellCallEnvironment:
      anyOf:
        - $ref: '#/components/schemas/Input_ShellLocalEnvironment'
        - $ref: '#/components/schemas/Input_ShellContainerReference'
    Input_ShellCallType:
      enum:
        - shell_call
      type: string
    Input_ShellOutputContent:
      additionalProperties: true
      properties:
        outcome:
          $ref: '#/components/schemas/Input_ShellOutputOutcome'
        stderr:
          type: string
        stdout:
          type: string
      required:
        - stdout
        - stderr
        - outcome
      type: object
    Input_ShellCallOutputType:
      enum:
        - shell_call_output
      type: string
    Input_ApplyPatchOperation:
      oneOf:
        - $ref: '#/components/schemas/Input_ApplyPatchCreate'
          properties:
            type:
              const: create_file
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_ApplyPatchDelete'
          properties:
            type:
              const: delete_file
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_ApplyPatchUpdate'
          properties:
            type:
              const: update_file
              type: string
          required:
            - type
          type: object
    Input_ApplyPatchStatus:
      enum:
        - in_progress
        - completed
      type: string
    Input_ApplyPatchCallType:
      enum:
        - apply_patch_call
      type: string
    Input_ApplyPatchOutputStatus:
      enum:
        - completed
        - failed
      type: string
    Input_ApplyPatchCallOutputType:
      enum:
        - apply_patch_call_output
      type: string
    Input_McpToolDefinition:
      additionalProperties: true
      properties:
        annotations: true
        description:
          type:
            - string
            - 'null'
        input_schema: true
        name:
          type: string
      required:
        - name
        - input_schema
      type: object
    Input_McpListToolsType:
      enum:
        - mcp_list_tools
      type: string
    Input_McpApprovalRequestType:
      enum:
        - mcp_approval_request
      type: string
    Input_McpApprovalResponseType:
      enum:
        - mcp_approval_response
      type: string
    Input_McpToolCallError:
      anyOf:
        - $ref: '#/components/schemas/Input_McpToolCallErrorDetails'
        - description: Earlier Responses references represented MCP errors as strings.
          type: string
    Input_McpCallStatus:
      enum:
        - in_progress
        - completed
        - incomplete
        - calling
        - failed
      type: string
    Input_McpCallType:
      enum:
        - mcp_call
      type: string
    Input_CompactionTriggerType:
      enum:
        - compaction_trigger
      type: string
    Input_ProgramType:
      enum:
        - program
      type: string
    Input_ProgramOutputStatus:
      enum:
        - completed
        - incomplete
      type: string
    Input_ProgramOutputType:
      enum:
        - program_output
      type: string
    Input_ComparisonFilter:
      additionalProperties: true
      properties:
        key:
          type: string
        type:
          $ref: '#/components/schemas/Input_ComparisonFilterType'
        value:
          $ref: '#/components/schemas/Input_FilterValue'
      required:
        - key
        - value
        - type
      type: object
    Input_CompoundFilter:
      additionalProperties: true
      properties:
        filters:
          items:
            $ref: '#/components/schemas/Input_FileSearchFilter'
          type: array
        type:
          $ref: '#/components/schemas/Input_CompoundFilterType'
      required:
        - filters
        - type
      type: object
    Input_HybridSearch:
      additionalProperties: true
      properties:
        embedding_weight:
          type: number
        text_weight:
          type: number
      required:
        - embedding_weight
        - text_weight
      type: object
    Input_Ranker:
      enum:
        - auto
        - default-2024-11-15
      type: string
    Input_UserLocationType:
      enum:
        - approximate
      type: string
    Input_CodeInterpreterAuto:
      additionalProperties: true
      properties:
        file_ids:
          items:
            type: string
          type:
            - array
            - 'null'
        memory_limit:
          anyOf:
            - $ref: '#/components/schemas/Input_MemoryLimit'
            - type: 'null'
        network_policy:
          anyOf:
            - $ref: '#/components/schemas/Input_ContainerNetworkPolicy'
            - type: 'null'
        type:
          $ref: '#/components/schemas/Input_AutoContainerType'
      required:
        - type
      type: object
    Input_CustomTextFormat:
      additionalProperties: true
      properties:
        type:
          $ref: '#/components/schemas/Input_TextFormatType'
      required:
        - type
      type: object
    Input_GrammarFormat:
      additionalProperties: true
      properties:
        definition:
          type: string
        syntax:
          $ref: '#/components/schemas/Input_GrammarSyntax'
        type:
          $ref: '#/components/schemas/Input_GrammarFormatType'
      required:
        - definition
        - syntax
        - type
      type: object
    Input_NamespaceFunctionTool:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller'
          type:
            - array
            - 'null'
        async:
          type:
            - boolean
            - 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        description:
          type:
            - string
            - 'null'
        name:
          type: string
        output_schema:
          additionalProperties: true
          type:
            - object
            - 'null'
        parameters: true
        strict:
          type:
            - boolean
            - 'null'
      required:
        - name
      type: object
    Input_NamespaceCustomTool:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller'
          type:
            - array
            - 'null'
        async:
          type:
            - boolean
            - 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        description:
          type:
            - string
            - 'null'
        format:
          anyOf:
            - $ref: '#/components/schemas/Input_CustomToolFormat'
            - type: 'null'
        name:
          type: string
      required:
        - name
      type: object
    Input_ShellContainerAuto:
      additionalProperties: true
      properties:
        file_ids:
          items:
            type: string
          type:
            - array
            - 'null'
        memory_limit:
          anyOf:
            - $ref: '#/components/schemas/Input_MemoryLimit'
            - type: 'null'
        network_policy:
          anyOf:
            - $ref: '#/components/schemas/Input_ContainerNetworkPolicy'
            - type: 'null'
        skills:
          items:
            $ref: '#/components/schemas/Input_ShellSkill'
          type:
            - array
            - 'null'
        type:
          $ref: '#/components/schemas/Input_ShellContainerAutoType'
      required:
        - type
      type: object
    Input_ShellLocalEnvironment:
      additionalProperties: true
      properties:
        skills:
          items:
            $ref: '#/components/schemas/Input_LocalSkill'
          type:
            - array
            - 'null'
        type:
          $ref: '#/components/schemas/Input_ShellLocalType'
      required:
        - type
      type: object
    Input_ShellContainerReference:
      additionalProperties: true
      properties:
        container_id:
          type: string
        type:
          $ref: '#/components/schemas/Input_ShellReferenceType'
      required:
        - type
        - container_id
      type: object
    Input_McpToolFilter:
      additionalProperties: true
      properties:
        read_only:
          type:
            - boolean
            - 'null'
        tool_names:
          items:
            type: string
          type:
            - array
            - 'null'
      type: object
    Input_McpApprovalSetting:
      enum:
        - always
        - never
      type: string
    Input_McpToolApprovalFilter:
      additionalProperties: true
      properties:
        always:
          anyOf:
            - $ref: '#/components/schemas/Input_McpToolFilter'
            - type: 'null'
        never:
          anyOf:
            - $ref: '#/components/schemas/Input_McpToolFilter'
            - type: 'null'
      type: object
    Input_OutputAnnotation:
      anyOf:
        - $ref: '#/components/schemas/Input_FileCitation'
        - $ref: '#/components/schemas/Input_UrlCitation'
        - $ref: '#/components/schemas/Input_ContainerFileCitation'
        - $ref: '#/components/schemas/Input_FilePath'
    Input_OutputLogprob:
      additionalProperties: true
      properties:
        bytes:
          items:
            format: int64
            type: integer
          type: array
        logprob:
          type: number
        token:
          type: string
        top_logprobs:
          items:
            $ref: '#/components/schemas/Input_TopLogprob'
          type: array
      required:
        - token
        - bytes
        - logprob
        - top_logprobs
      type: object
    Input_ResponseOutputTextType:
      enum:
        - output_text
      type: string
    Input_ResponseInputText:
      additionalProperties: true
      properties:
        prompt_cache_breakpoint:
          anyOf:
            - $ref: '#/components/schemas/Input_PromptCacheBreakpoint'
            - type: 'null'
        text:
          type: string
        type:
          $ref: '#/components/schemas/Input_ResponseInputTextType'
      required:
        - type
        - text
      type: object
    Input_AgentText:
      additionalProperties: true
      properties:
        text:
          type: string
        type:
          $ref: '#/components/schemas/Input_AgentTextType'
      required:
        - type
        - text
      type: object
    Input_ResponseOutputRefusal:
      additionalProperties: true
      properties:
        refusal:
          type: string
        type:
          $ref: '#/components/schemas/Input_ResponseOutputRefusalType'
      required:
        - type
        - refusal
      type: object
    Input_ResponseInputImage:
      additionalProperties: true
      properties:
        detail:
          $ref: '#/components/schemas/Input_ImageDetail'
        file_id:
          type:
            - string
            - 'null'
        image_url:
          type:
            - string
            - 'null'
        prompt_cache_breakpoint:
          anyOf:
            - $ref: '#/components/schemas/Input_PromptCacheBreakpoint'
            - type: 'null'
        type:
          $ref: '#/components/schemas/Input_ResponseInputImageType'
      required:
        - type
        - detail
      type: object
    Input_ResponseInputFile:
      additionalProperties: true
      properties:
        detail:
          anyOf:
            - $ref: '#/components/schemas/Input_FileDetail'
            - type: 'null'
        file_data:
          type:
            - string
            - 'null'
        file_id:
          type:
            - string
            - 'null'
        file_url:
          type:
            - string
            - 'null'
        filename:
          type:
            - string
            - 'null'
        prompt_cache_breakpoint:
          anyOf:
            - $ref: '#/components/schemas/Input_PromptCacheBreakpoint'
            - type: 'null'
        type:
          $ref: '#/components/schemas/Input_ResponseInputFileType'
      required:
        - type
      type: object
    Input_EncryptedContent:
      additionalProperties: true
      properties:
        encrypted_content:
          type: string
        type:
          $ref: '#/components/schemas/Input_EncryptedContentType'
      required:
        - type
        - encrypted_content
      type: object
    Input_ResponseOutputText:
      additionalProperties: true
      properties:
        annotations:
          items:
            $ref: '#/components/schemas/Input_OutputAnnotation'
          type: array
        logprobs:
          items:
            $ref: '#/components/schemas/Input_OutputLogprob'
          type: array
        text:
          type: string
        type:
          $ref: '#/components/schemas/Input_ResponseOutputTextType'
      required:
        - type
        - text
        - annotations
        - logprobs
      type: object
    Input_DirectCaller:
      additionalProperties: true
      type: object
    Input_ProgramCaller:
      additionalProperties: true
      properties:
        caller_id:
          type: string
      required:
        - caller_id
      type: object
    Input_FunctionOutputContent:
      anyOf:
        - $ref: '#/components/schemas/Input_FunctionOutputText'
        - $ref: '#/components/schemas/Input_FunctionOutputImage'
        - $ref: '#/components/schemas/Input_FunctionOutputFile'
    Input_ReasoningTextType:
      enum:
        - reasoning_text
      type: string
    Input_SummaryTextType:
      enum:
        - summary_text
      type: string
    Input_ClickAction:
      additionalProperties: true
      properties:
        button:
          $ref: '#/components/schemas/Input_ClickButton'
        keys:
          items:
            type: string
          type:
            - array
            - 'null'
        x:
          format: int64
          type: integer
        'y':
          format: int64
          type: integer
      required:
        - button
        - x
        - 'y'
      type: object
    Input_DoubleClickAction:
      additionalProperties: true
      properties:
        keys:
          items:
            type: string
          type:
            - array
            - 'null'
        x:
          format: int64
          type: integer
        'y':
          format: int64
          type: integer
      required:
        - x
        - 'y'
        - keys
      type: object
    Input_DragAction:
      additionalProperties: true
      properties:
        keys:
          items:
            type: string
          type:
            - array
            - 'null'
        path:
          items:
            $ref: '#/components/schemas/Input_Coordinate'
          type: array
      required:
        - path
      type: object
    Input_KeypressAction:
      additionalProperties: true
      properties:
        keys:
          items:
            type: string
          type: array
      required:
        - keys
      type: object
    Input_MoveAction:
      additionalProperties: true
      properties:
        keys:
          items:
            type: string
          type:
            - array
            - 'null'
        x:
          format: int64
          type: integer
        'y':
          format: int64
          type: integer
      required:
        - x
        - 'y'
      type: object
    Input_ScreenshotAction:
      additionalProperties: true
      type: object
    Input_ScrollAction:
      additionalProperties: true
      properties:
        keys:
          items:
            type: string
          type:
            - array
            - 'null'
        scroll_x:
          format: int64
          type: integer
        scroll_y:
          format: int64
          type: integer
        x:
          format: int64
          type: integer
        'y':
          format: int64
          type: integer
      required:
        - scroll_x
        - scroll_y
        - x
        - 'y'
      type: object
    Input_TypeAction:
      additionalProperties: true
      properties:
        text:
          type: string
      required:
        - text
      type: object
    Input_WaitAction:
      additionalProperties: true
      type: object
    Input_ComputerScreenshotType:
      enum:
        - computer_screenshot
      type: string
    Input_WebSearchQuery:
      additionalProperties: true
      properties:
        queries:
          items:
            type: string
          type:
            - array
            - 'null'
        query:
          type:
            - string
            - 'null'
        sources:
          items:
            $ref: '#/components/schemas/Input_WebSearchSource'
          type:
            - array
            - 'null'
      type: object
    Input_WebSearchOpenPage:
      additionalProperties: true
      properties:
        url:
          type:
            - string
            - 'null'
      type: object
    Input_WebSearchFindInPage:
      additionalProperties: true
      properties:
        pattern:
          type: string
        url:
          type:
            - string
            - 'null'
      required:
        - pattern
      type: object
    Input_FileAttributeValue:
      anyOf:
        - type: string
        - type: number
        - type: boolean
    Input_ImageModerationDetails:
      additionalProperties: true
      properties:
        categories:
          items:
            type: string
          type: array
        moderation_stage:
          $ref: '#/components/schemas/Input_ImageModerationStage'
      required:
        - categories
        - moderation_stage
      type: object
    Input_CodeLogs:
      additionalProperties: true
      properties:
        logs:
          type: string
      required:
        - logs
      type: object
    Input_CodeImage:
      additionalProperties: true
      properties:
        url:
          type: string
      required:
        - url
      type: object
    Input_LocalShellActionType:
      enum:
        - exec
      type: string
    Input_ShellOutputOutcome:
      oneOf:
        - $ref: '#/components/schemas/Input_ShellTimeout'
          properties:
            type:
              const: timeout
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_ShellExit'
          properties:
            type:
              const: exit
              type: string
          required:
            - type
          type: object
    Input_ApplyPatchCreate:
      additionalProperties: true
      properties:
        diff:
          type: string
        path:
          type: string
      required:
        - path
        - diff
      type: object
    Input_ApplyPatchDelete:
      additionalProperties: true
      properties:
        path:
          type: string
      required:
        - path
      type: object
    Input_ApplyPatchUpdate:
      additionalProperties: true
      properties:
        diff:
          type: string
        path:
          type: string
      required:
        - path
        - diff
      type: object
    Input_McpToolCallErrorDetails:
      oneOf:
        - additionalProperties: true
          properties:
            code:
              format: int64
              type: integer
            message:
              type: string
            type:
              const: mcp_protocol_error
              type: string
          required:
            - type
            - code
            - message
          type: object
        - additionalProperties: true
          properties:
            content: true
            type:
              const: mcp_tool_execution_error
              type: string
          required:
            - type
            - content
          type: object
        - additionalProperties: true
          properties:
            code:
              format: int64
              type: integer
            message:
              type: string
            type:
              const: http_error
              type: string
          required:
            - type
            - code
            - message
          type: object
    Input_ComparisonFilterType:
      enum:
        - eq
        - ne
        - gt
        - gte
        - lt
        - lte
        - in
        - nin
      type: string
    Input_FilterValue:
      anyOf:
        - type: string
        - type: number
        - type: boolean
        - items:
            $ref: '#/components/schemas/Input_FilterArrayValue'
          type: array
    Input_CompoundFilterType:
      enum:
        - and
        - or
      type: string
    Input_MemoryLimit:
      enum:
        - 1g
        - 4g
        - 16g
        - 64g
      type: string
    Input_ContainerNetworkPolicy:
      anyOf:
        - $ref: '#/components/schemas/Input_NetworkDisabled'
        - $ref: '#/components/schemas/Input_NetworkAllowlist'
    Input_AutoContainerType:
      enum:
        - auto
      type: string
    Input_TextFormatType:
      enum:
        - text
      type: string
    Input_GrammarSyntax:
      enum:
        - lark
        - regex
      type: string
    Input_GrammarFormatType:
      enum:
        - grammar
      type: string
    Input_ShellSkill:
      anyOf:
        - $ref: '#/components/schemas/Input_SkillReference'
        - $ref: '#/components/schemas/Input_InlineSkill'
    Input_ShellContainerAutoType:
      enum:
        - container_auto
      type: string
    Input_LocalSkill:
      additionalProperties: true
      properties:
        description:
          type: string
        name:
          type: string
        path:
          type: string
      required:
        - description
        - name
        - path
      type: object
    Input_ShellLocalType:
      enum:
        - local
      type: string
    Input_ShellReferenceType:
      enum:
        - container_reference
      type: string
    Input_FileCitation:
      additionalProperties: true
      properties:
        file_id:
          type: string
        filename:
          type: string
        index:
          format: int64
          type: integer
        type:
          $ref: '#/components/schemas/Input_FileCitationType'
      required:
        - file_id
        - filename
        - index
        - type
      type: object
    Input_UrlCitation:
      additionalProperties: true
      properties:
        end_index:
          format: int64
          type: integer
        start_index:
          format: int64
          type: integer
        title:
          type: string
        type:
          $ref: '#/components/schemas/Input_UrlCitationType'
        url:
          type: string
      required:
        - end_index
        - start_index
        - title
        - url
        - type
      type: object
    Input_ContainerFileCitation:
      additionalProperties: true
      properties:
        container_id:
          type: string
        end_index:
          format: int64
          type: integer
        file_id:
          type: string
        filename:
          type: string
        start_index:
          format: int64
          type: integer
        type:
          $ref: '#/components/schemas/Input_ContainerFileCitationType'
      required:
        - container_id
        - end_index
        - file_id
        - filename
        - start_index
        - type
      type: object
    Input_FilePath:
      additionalProperties: true
      properties:
        file_id:
          type: string
        index:
          format: int64
          type: integer
        type:
          $ref: '#/components/schemas/Input_FilePathType'
      required:
        - file_id
        - index
        - type
      type: object
    Input_TopLogprob:
      additionalProperties: true
      properties:
        bytes:
          items:
            format: int64
            type: integer
          type: array
        logprob:
          type: number
        token:
          type: string
      required:
        - token
        - bytes
        - logprob
      type: object
    Input_PromptCacheBreakpoint:
      additionalProperties: true
      properties:
        mode:
          $ref: '#/components/schemas/Input_PromptCacheMode'
        ttl:
          anyOf:
            - $ref: '#/components/schemas/Input_PromptCacheBreakpointTtl'
            - type: 'null'
          description: >-
            Minimum lifetime of this breakpoint; omitted inherits the request
            TTL.

            OpenAI OpenAPI: PromptCacheBreakpointParam (2026-10-21).
      required:
        - mode
      type: object
    Input_ResponseInputTextType:
      enum:
        - input_text
      type: string
    Input_AgentTextType:
      enum:
        - text
      type: string
    Input_ResponseOutputRefusalType:
      enum:
        - refusal
      type: string
    Input_ImageDetail:
      enum:
        - low
        - high
        - auto
        - original
      type: string
    Input_ResponseInputImageType:
      enum:
        - input_image
      type: string
    Input_FileDetail:
      enum:
        - auto
        - low
        - high
      type: string
    Input_ResponseInputFileType:
      enum:
        - input_file
      type: string
    Input_EncryptedContentType:
      enum:
        - encrypted_content
      type: string
    Input_FunctionOutputText:
      additionalProperties: true
      properties:
        prompt_cache_breakpoint:
          anyOf:
            - $ref: '#/components/schemas/Input_PromptCacheBreakpoint'
            - type: 'null'
        text:
          type: string
        type:
          $ref: '#/components/schemas/Input_ResponseInputTextType'
      required:
        - type
        - text
      type: object
    Input_FunctionOutputImage:
      additionalProperties: true
      properties:
        detail:
          anyOf:
            - $ref: '#/components/schemas/Input_ImageDetail'
            - type: 'null'
        file_id:
          type:
            - string
            - 'null'
        image_url:
          type:
            - string
            - 'null'
        prompt_cache_breakpoint:
          anyOf:
            - $ref: '#/components/schemas/Input_PromptCacheBreakpoint'
            - type: 'null'
        type:
          $ref: '#/components/schemas/Input_ResponseInputImageType'
      required:
        - type
      type: object
    Input_FunctionOutputFile:
      additionalProperties: true
      properties:
        detail:
          anyOf:
            - $ref: '#/components/schemas/Input_FileDetail'
            - type: 'null'
        file_data:
          type:
            - string
            - 'null'
        file_id:
          type:
            - string
            - 'null'
        file_url:
          type:
            - string
            - 'null'
        filename:
          type:
            - string
            - 'null'
        prompt_cache_breakpoint:
          anyOf:
            - $ref: '#/components/schemas/Input_PromptCacheBreakpoint'
            - type: 'null'
        type:
          $ref: '#/components/schemas/Input_ResponseInputFileType'
      required:
        - type
      type: object
    Input_ClickButton:
      enum:
        - left
        - right
        - wheel
        - back
        - forward
      type: string
    Input_Coordinate:
      additionalProperties: true
      properties:
        x:
          format: int64
          type: integer
        'y':
          format: int64
          type: integer
      required:
        - x
        - 'y'
      type: object
    Input_WebSearchSource:
      additionalProperties: true
      properties:
        type:
          $ref: '#/components/schemas/Input_WebSearchSourceType'
        url:
          type: string
      required:
        - type
        - url
      type: object
    Input_ImageModerationStage:
      enum:
        - input
        - output
        - unknown
      type: string
    Input_ShellTimeout:
      additionalProperties: true
      type: object
    Input_ShellExit:
      additionalProperties: true
      properties:
        exit_code:
          format: int64
          type: integer
      required:
        - exit_code
      type: object
    Input_FilterArrayValue:
      anyOf:
        - type: string
        - type: number
    Input_NetworkDisabled:
      additionalProperties: true
      properties:
        type:
          $ref: '#/components/schemas/Input_NetworkDisabledType'
      required:
        - type
      type: object
    Input_NetworkAllowlist:
      additionalProperties: true
      properties:
        allowed_domains:
          items:
            type: string
          type: array
        domain_secrets:
          items:
            $ref: '#/components/schemas/Input_DomainSecret'
          type:
            - array
            - 'null'
        type:
          $ref: '#/components/schemas/Input_NetworkAllowlistType'
      required:
        - allowed_domains
        - type
      type: object
    Input_SkillReference:
      additionalProperties: true
      properties:
        skill_id:
          type: string
        type:
          $ref: '#/components/schemas/Input_SkillReferenceType'
        version:
          type:
            - string
            - 'null'
      required:
        - skill_id
        - type
      type: object
    Input_InlineSkill:
      additionalProperties: true
      properties:
        description:
          type: string
        name:
          type: string
        source:
          $ref: '#/components/schemas/Input_InlineSkillSource'
        type:
          $ref: '#/components/schemas/Input_InlineSkillType'
      required:
        - description
        - name
        - source
        - type
      type: object
    Input_FileCitationType:
      enum:
        - file_citation
      type: string
    Input_UrlCitationType:
      enum:
        - url_citation
      type: string
    Input_ContainerFileCitationType:
      enum:
        - container_file_citation
      type: string
    Input_FilePathType:
      enum:
        - file_path
      type: string
    Input_PromptCacheMode:
      enum:
        - explicit
      type: string
    Input_PromptCacheBreakpointTtl:
      description: >-
        Explicit cache-breakpoint lifetimes from OpenAI's
        PromptCacheBreakpointParam.

        Separate from the request-wide PromptCacheTTLEnum and legacy retention
        policy.
      enum:
        - 30m
        - 12h
      type: string
    Input_WebSearchSourceType:
      enum:
        - url
      type: string
    Input_NetworkDisabledType:
      enum:
        - disabled
      type: string
    Input_DomainSecret:
      additionalProperties: true
      properties:
        domain:
          type: string
        name:
          type: string
        value:
          type: string
      required:
        - domain
        - name
        - value
      type: object
    Input_NetworkAllowlistType:
      enum:
        - allowlist
      type: string
    Input_SkillReferenceType:
      enum:
        - skill_reference
      type: string
    Input_InlineSkillSource:
      additionalProperties: true
      properties:
        data:
          type: string
        media_type:
          $ref: '#/components/schemas/Input_ZipMediaType'
        type:
          $ref: '#/components/schemas/Input_Base64SourceType'
      required:
        - data
        - media_type
        - type
      type: object
    Input_InlineSkillType:
      enum:
        - inline
      type: string
    Input_ZipMediaType:
      enum:
        - application/zip
      type: string
    Input_Base64SourceType:
      enum:
        - base64
      type: string
  securitySchemes:
    bearer:
      scheme: bearer
      type: http
    anthropicKey:
      in: header
      name: x-api-key
      type: apiKey
    googleKey:
      in: header
      name: x-goog-api-key
      type: apiKey
    queryKey:
      in: query
      name: key
      type: apiKey

````

## Related topics

- [Routing & Endpoints](https://gproxy.leenhawk.com/reference/routing-table.md)
- [POST /v1/responses](https://gproxy.leenhawk.com/api-reference/forwarding/post-v1responses.md)
- [POST /v1/responses/compact](https://gproxy.leenhawk.com/api-reference/forwarding/post-v1responsescompact.md)
- [POST /v1/oauth/token](https://gproxy.leenhawk.com/api-reference/oauth/post-v1oauthtoken.md)
- [POST /v1/messages/count_tokens](https://gproxy.leenhawk.com/api-reference/forwarding/post-v1messagescount_tokens.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.