> ## 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/messages

> 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/messages
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/messages:
    post:
      tags:
        - Forwarding
      summary: POST /v1/messages
      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_GenerateContentRequestBody2'
        required: true
      responses:
        2XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Output_GenerateContentResponseBody2'
            text/event-stream:
              schema:
                type: string
              x-event-schema:
                $ref: '#/components/schemas/Output_StreamEvent2'
          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_GenerateContentRequestBody2:
      additionalProperties: true
      properties:
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        compaction:
          anyOf:
            - $ref: '#/components/schemas/Input_CompactionConfig'
            - type: 'null'
        container:
          anyOf:
            - $ref: '#/components/schemas/Input_ContainerParam'
            - type: 'null'
        context_management:
          anyOf:
            - $ref: '#/components/schemas/Input_ContextManagementConfig'
            - type: 'null'
        diagnostics:
          anyOf:
            - $ref: '#/components/schemas/Input_DiagnosticsParam'
            - type: 'null'
        fallback_credit_token:
          anyOf:
            - $ref: '#/components/schemas/Input_FallbackCreditTokenParam'
            - type: 'null'
        fallbacks:
          anyOf:
            - $ref: '#/components/schemas/Input_FallbacksParam'
            - type: 'null'
        inference_geo:
          type:
            - string
            - 'null'
        max_tokens:
          format: int64
          type: integer
        mcp_servers:
          items:
            $ref: '#/components/schemas/Input_McpServerUrlDefinition'
          type:
            - array
            - 'null'
        messages:
          items:
            $ref: '#/components/schemas/Input_Message'
          type: array
        metadata:
          anyOf:
            - $ref: '#/components/schemas/Input_Metadata'
            - type: 'null'
        model:
          type: string
        output_config:
          anyOf:
            - $ref: '#/components/schemas/Input_OutputConfig'
            - type: 'null'
        output_format:
          anyOf:
            - $ref: '#/components/schemas/Input_JsonOutputFormat'
            - type: 'null'
        service_tier:
          anyOf:
            - $ref: '#/components/schemas/Input_ServiceTier3'
            - type: 'null'
        speed:
          anyOf:
            - $ref: '#/components/schemas/Input_Speed'
            - type: 'null'
        stop_sequences:
          items:
            type: string
          type:
            - array
            - 'null'
        stream:
          type:
            - boolean
            - 'null'
        system:
          anyOf:
            - $ref: '#/components/schemas/Input_SystemPrompt'
            - type: 'null'
        thinking:
          anyOf:
            - $ref: '#/components/schemas/Input_ThinkingConfig'
            - type: 'null'
        tool_choice:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolChoice2'
            - type: 'null'
        tools:
          items:
            $ref: '#/components/schemas/Input_ToolUnion'
          type:
            - array
            - 'null'
      required:
        - max_tokens
        - messages
        - model
      type: object
    Output_GenerateContentResponseBody2:
      additionalProperties: true
      properties:
        container:
          anyOf:
            - $ref: '#/components/schemas/Output_ResponseContainer'
            - type: 'null'
        content:
          items:
            $ref: '#/components/schemas/Output_ResponseContentBlock'
          type: array
        context_management:
          anyOf:
            - $ref: '#/components/schemas/Output_ContextManagementResponse'
            - type: 'null'
        diagnostics:
          anyOf:
            - $ref: '#/components/schemas/Output_DiagnosticsResponse'
            - type: 'null'
        id:
          type: string
        input_transformations:
          items:
            $ref: '#/components/schemas/Output_InputTransformation'
          type:
            - array
            - 'null'
        model:
          type: string
        role:
          $ref: '#/components/schemas/Output_ResponseRole'
        stop_details:
          anyOf:
            - $ref: '#/components/schemas/Output_RefusalStopDetails'
            - type: 'null'
        stop_reason:
          $ref: '#/components/schemas/Output_StopReason'
        stop_sequence:
          type:
            - string
            - 'null'
        type:
          $ref: '#/components/schemas/Output_GenerateContentResponseBodyType'
        usage:
          $ref: '#/components/schemas/Output_Usage'
      required:
        - type
        - id
        - content
        - model
        - role
        - stop_reason
        - usage
      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_CacheControl:
      additionalProperties: true
      properties:
        ttl:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheTtl'
            - type: 'null'
        type:
          $ref: '#/components/schemas/Input_CacheControlType'
      required:
        - type
      type: object
    Input_CompactionConfig:
      additionalProperties: true
      properties:
        instructions:
          type:
            - string
            - 'null'
        type:
          $ref: '#/components/schemas/Input_CompactionConfigType'
      required:
        - type
      type: object
    Input_ContainerParam:
      anyOf:
        - type: string
        - $ref: '#/components/schemas/Input_ContainerParams'
    Input_ContextManagementConfig:
      additionalProperties: true
      properties:
        edits:
          items:
            $ref: '#/components/schemas/Input_ContextEdit'
          type:
            - array
            - 'null'
      type: object
    Input_DiagnosticsParam:
      additionalProperties: true
      properties:
        previous_message_id:
          type:
            - string
            - 'null'
      type: object
    Input_FallbackCreditTokenParam:
      anyOf:
        - type: string
        - $ref: '#/components/schemas/Input_FallbackCreditToken'
    Input_FallbacksParam:
      anyOf:
        - items:
            $ref: '#/components/schemas/Input_FallbackParam'
          type: array
        - $ref: '#/components/schemas/Input_DefaultFallbacks'
    Input_McpServerUrlDefinition:
      additionalProperties: true
      properties:
        authorization_token:
          type:
            - string
            - 'null'
        name:
          type: string
        tool_configuration:
          anyOf:
            - $ref: '#/components/schemas/Input_McpToolConfiguration'
            - type: 'null'
        type:
          $ref: '#/components/schemas/Input_McpServerType'
        url:
          type: string
      required:
        - name
        - type
        - url
      type: object
    Input_Message:
      additionalProperties: true
      properties:
        clear_at:
          anyOf:
            - $ref: '#/components/schemas/Input_SystemMessageClearAt'
            - type: 'null'
        content:
          $ref: '#/components/schemas/Input_MessageContent2'
          description: >-
            Required for user and assistant messages; system messages may omit
            it.
        output_config:
          anyOf:
            - $ref: '#/components/schemas/Input_SystemMessageOutputConfig'
            - type: 'null'
        role:
          $ref: '#/components/schemas/Input_Role'
      required:
        - role
      type: object
    Input_Metadata:
      additionalProperties: true
      properties:
        user_id:
          type:
            - string
            - 'null'
      type: object
    Input_OutputConfig:
      additionalProperties: true
      properties:
        effort:
          anyOf:
            - $ref: '#/components/schemas/Input_Effort'
            - type: 'null'
        format:
          anyOf:
            - $ref: '#/components/schemas/Input_JsonOutputFormat'
            - type: 'null'
        task_budget:
          anyOf:
            - $ref: '#/components/schemas/Input_TokenTaskBudget'
            - type: 'null'
      type: object
    Input_JsonOutputFormat:
      additionalProperties: true
      properties:
        schema: true
        type:
          $ref: '#/components/schemas/Input_JsonOutputFormatType'
      required:
        - type
        - schema
      type: object
    Input_ServiceTier3:
      enum:
        - auto
        - standard_only
      type: string
    Input_Speed:
      enum:
        - standard
        - fast
      type: string
    Input_SystemPrompt:
      anyOf:
        - type: string
        - items:
            $ref: '#/components/schemas/Input_TextBlock'
          type: array
    Input_ThinkingConfig:
      oneOf:
        - $ref: '#/components/schemas/Input_ThinkingEnabled'
          properties:
            type:
              const: enabled
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_ThinkingDisabled'
          properties:
            type:
              const: disabled
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_ThinkingAdaptive'
          properties:
            type:
              const: adaptive
              type: string
          required:
            - type
          type: object
        - description: >-
            No up-front thinking; progress updates between tool calls (Sonnet
            5.5).
          properties:
            type:
              const: between_tools
              type: string
          required:
            - type
          type: object
    Input_ToolChoice2:
      oneOf:
        - $ref: '#/components/schemas/Input_ToolChoiceAuto'
          properties:
            type:
              const: auto
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_ToolChoiceAny'
          properties:
            type:
              const: any
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_ToolChoiceTool'
          properties:
            type:
              const: tool
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_ToolChoiceNone'
          properties:
            type:
              const: none
              type: string
          required:
            - type
          type: object
    Input_ToolUnion:
      anyOf:
        - $ref: '#/components/schemas/Input_BrowserToolset20260801'
        - $ref: '#/components/schemas/Input_ComputerToolset20260801'
        - $ref: '#/components/schemas/Input_Tool2'
        - $ref: '#/components/schemas/Input_McpToolset'
        - $ref: '#/components/schemas/Input_BashTool20241022'
        - $ref: '#/components/schemas/Input_BashTool20250124'
        - $ref: '#/components/schemas/Input_CodeExecutionTool20250522'
        - $ref: '#/components/schemas/Input_CodeExecutionTool20250825'
        - $ref: '#/components/schemas/Input_CodeExecutionTool20260120'
        - $ref: '#/components/schemas/Input_CodeExecutionTool20260521'
        - $ref: '#/components/schemas/Input_ComputerTool20241022'
        - $ref: '#/components/schemas/Input_MemoryTool20250818'
        - $ref: '#/components/schemas/Input_ComputerTool20250124'
        - $ref: '#/components/schemas/Input_TextEditorTool20241022'
        - $ref: '#/components/schemas/Input_ComputerTool20251124'
        - $ref: '#/components/schemas/Input_TextEditorTool20250124'
        - $ref: '#/components/schemas/Input_TextEditorTool20250429'
        - $ref: '#/components/schemas/Input_TextEditorTool20250728'
        - $ref: '#/components/schemas/Input_WebSearchTool20250305'
        - $ref: '#/components/schemas/Input_WebFetchTool20250910'
        - $ref: '#/components/schemas/Input_WebSearchTool20260209'
        - $ref: '#/components/schemas/Input_WebFetchTool20260209'
        - $ref: '#/components/schemas/Input_WebFetchTool20260309'
        - $ref: '#/components/schemas/Input_WebSearchTool20260318'
        - $ref: '#/components/schemas/Input_WebFetchTool20260318'
        - $ref: '#/components/schemas/Input_AdvisorTool20260301'
        - $ref: '#/components/schemas/Input_ToolSearchBm25Tool20251119'
        - $ref: '#/components/schemas/Input_ToolSearchRegexTool20251119'
    Output_ResponseContainer:
      additionalProperties: true
      properties:
        expires_at:
          type: string
        id:
          type: string
        skills:
          items:
            $ref: '#/components/schemas/Output_ResponseSkill'
          type:
            - array
            - 'null'
      required:
        - id
        - expires_at
      type: object
    Output_ResponseContentBlock:
      anyOf:
        - $ref: '#/components/schemas/Output_ResponseTextBlock'
        - $ref: '#/components/schemas/Output_ThinkingBlock'
        - $ref: '#/components/schemas/Output_RedactedThinkingBlock'
        - $ref: '#/components/schemas/Output_ResponseToolUseBlock'
        - $ref: '#/components/schemas/Output_ResponseServerToolUseBlock'
        - $ref: '#/components/schemas/Output_ResponseWebSearchToolResultBlock'
        - $ref: '#/components/schemas/Output_ResponseWebFetchToolResultBlock'
        - $ref: '#/components/schemas/Output_ResponseAdvisorToolResultBlock'
        - $ref: '#/components/schemas/Output_ResponseCodeExecutionToolResultBlock'
        - $ref: '#/components/schemas/Output_ResponseBashCodeExecutionToolResultBlock'
        - $ref: >-
            #/components/schemas/Output_ResponseTextEditorCodeExecutionToolResultBlock
        - $ref: '#/components/schemas/Output_ResponseToolSearchToolResultBlock'
        - $ref: '#/components/schemas/Output_McpToolListingBlock'
        - $ref: '#/components/schemas/Output_ResponseMcpToolUseBlock'
        - $ref: '#/components/schemas/Output_ResponseMcpToolResultBlock'
        - $ref: '#/components/schemas/Output_ResponseContainerUploadBlock'
        - $ref: '#/components/schemas/Output_ResponseCompactionBlock'
        - $ref: '#/components/schemas/Output_ResponseFallbackBlock'
    Output_ContextManagementResponse:
      additionalProperties: true
      properties:
        applied_edits:
          items:
            $ref: '#/components/schemas/Output_ContextEditResponse'
          type: array
      required:
        - applied_edits
      type: object
    Output_DiagnosticsResponse:
      additionalProperties: true
      properties:
        cache_miss_reason:
          anyOf:
            - $ref: '#/components/schemas/Output_CacheMissReason2'
            - type: 'null'
      type: object
    Output_InputTransformation:
      additionalProperties: true
      properties:
        path:
          type: string
        reason:
          $ref: '#/components/schemas/Output_ThinkingBindingMismatchReason'
        type:
          $ref: '#/components/schemas/Output_InputTransformationType'
      required:
        - type
        - path
        - reason
      type: object
    Output_ResponseRole:
      enum:
        - assistant
      type: string
    Output_RefusalStopDetails:
      additionalProperties: true
      properties:
        category:
          anyOf:
            - $ref: '#/components/schemas/Output_RefusalCategory'
            - type: 'null'
        explanation:
          type:
            - string
            - 'null'
        fallback_credit_token:
          type:
            - string
            - 'null'
        fallback_has_prefill_claim:
          type:
            - boolean
            - 'null'
        recommended_model:
          type:
            - string
            - 'null'
        type:
          $ref: '#/components/schemas/Output_RefusalStopDetailsType'
      required:
        - type
      type: object
    Output_StopReason:
      enum:
        - end_turn
        - max_tokens
        - stop_sequence
        - tool_use
        - pause_turn
        - compaction
        - refusal
        - model_context_window_exceeded
      type: string
    Output_GenerateContentResponseBodyType:
      enum:
        - message
      type: string
    Output_Usage:
      additionalProperties: true
      properties:
        cache_creation:
          anyOf:
            - $ref: '#/components/schemas/Output_CacheCreation'
            - type: 'null'
        cache_creation_input_tokens:
          format: int64
          type:
            - integer
            - 'null'
        cache_read_input_tokens:
          format: int64
          type:
            - integer
            - 'null'
        fallback_credit:
          anyOf:
            - $ref: '#/components/schemas/Output_FallbackCreditUsage'
            - type: 'null'
        inference_geo:
          type:
            - string
            - 'null'
        input_tokens:
          format: int64
          type: integer
        iterations:
          items:
            $ref: '#/components/schemas/Output_IterationUsage'
          type:
            - array
            - 'null'
        output_tokens:
          format: int64
          type: integer
        output_tokens_details:
          anyOf:
            - $ref: '#/components/schemas/Output_OutputTokensDetails'
            - type: 'null'
        server_tool_use:
          anyOf:
            - $ref: '#/components/schemas/Output_ServerToolUsage'
            - type: 'null'
        service_tier:
          anyOf:
            - $ref: '#/components/schemas/Output_ResponseServiceTier'
            - type: 'null'
        speed:
          anyOf:
            - $ref: '#/components/schemas/Output_Speed'
            - type: 'null'
      required:
        - input_tokens
        - output_tokens
      type: object
    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_CacheTtl:
      enum:
        - 5m
        - 1h
      type: string
    Input_CacheControlType:
      enum:
        - ephemeral
      type: string
    Input_CompactionConfigType:
      enum:
        - summarize
      type: string
    Input_ContainerParams:
      additionalProperties: true
      properties:
        id:
          type:
            - string
            - 'null'
        skills:
          items:
            $ref: '#/components/schemas/Input_SkillParam'
          type:
            - array
            - 'null'
      type: object
    Input_ContextEdit:
      anyOf:
        - $ref: '#/components/schemas/Input_ClearToolUsesEdit'
        - $ref: '#/components/schemas/Input_ClearThinkingEdit'
        - $ref: '#/components/schemas/Input_CompactEdit'
    Input_FallbackCreditToken:
      additionalProperties: true
      properties:
        mode:
          anyOf:
            - $ref: '#/components/schemas/Input_FallbackCreditMode'
            - type: 'null'
        token:
          type: string
      required:
        - token
      type: object
    Input_FallbackParam:
      additionalProperties: true
      properties:
        max_tokens:
          format: int64
          type:
            - integer
            - 'null'
        model:
          type: string
        output_config:
          anyOf:
            - $ref: '#/components/schemas/Input_OutputConfig'
            - type: 'null'
        speed:
          anyOf:
            - $ref: '#/components/schemas/Input_Speed'
            - type: 'null'
        thinking:
          anyOf:
            - $ref: '#/components/schemas/Input_ThinkingConfig'
            - type: 'null'
      required:
        - model
      type: object
    Input_DefaultFallbacks:
      enum:
        - default
      type: string
    Input_McpToolConfiguration:
      additionalProperties: true
      properties:
        allowed_tools:
          items:
            type: string
          type:
            - array
            - 'null'
        enabled:
          type:
            - boolean
            - 'null'
      type: object
    Input_McpServerType:
      enum:
        - url
      type: string
    Input_SystemMessageClearAt:
      enum:
        - next_user_message
        - never
      type: string
    Input_MessageContent2:
      anyOf:
        - type: string
        - items:
            $ref: '#/components/schemas/Input_ContentBlock'
          type: array
    Input_SystemMessageOutputConfig:
      additionalProperties: true
      properties:
        effort:
          anyOf:
            - $ref: '#/components/schemas/Input_Effort'
            - type: 'null'
      type: object
    Input_Role:
      enum:
        - user
        - assistant
        - system
      type: string
    Input_Effort:
      enum:
        - low
        - medium
        - high
        - xhigh
        - max
      type: string
    Input_TokenTaskBudget:
      additionalProperties: true
      properties:
        remaining:
          format: int64
          type:
            - integer
            - 'null'
        total:
          format: int64
          type: integer
        type:
          $ref: '#/components/schemas/Input_TokenTaskBudgetType'
      required:
        - total
        - type
      type: object
    Input_JsonOutputFormatType:
      enum:
        - json_schema
      type: string
    Input_TextBlock:
      additionalProperties: true
      properties:
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        citations:
          items:
            $ref: '#/components/schemas/Input_TextCitation'
          type:
            - array
            - 'null'
        text:
          type: string
        type:
          $ref: '#/components/schemas/Input_TextBlockType'
      required:
        - type
        - text
      type: object
    Input_ThinkingEnabled:
      additionalProperties: true
      properties:
        block_binding:
          anyOf:
            - $ref: '#/components/schemas/Input_ThinkingBlockBinding'
            - type: 'null'
        budget_tokens:
          format: int64
          type: integer
        display:
          anyOf:
            - $ref: '#/components/schemas/Input_ThinkingDisplay'
            - type: 'null'
      required:
        - budget_tokens
      type: object
    Input_ThinkingDisabled:
      additionalProperties: true
      type: object
    Input_ThinkingAdaptive:
      additionalProperties: true
      properties:
        block_binding:
          anyOf:
            - $ref: '#/components/schemas/Input_ThinkingBlockBinding'
            - type: 'null'
        display:
          anyOf:
            - $ref: '#/components/schemas/Input_ThinkingDisplay'
            - type: 'null'
      type: object
    Input_ToolChoiceAuto:
      additionalProperties: true
      properties:
        disable_parallel_tool_use:
          type:
            - boolean
            - 'null'
      type: object
    Input_ToolChoiceAny:
      additionalProperties: true
      properties:
        disable_parallel_tool_use:
          type:
            - boolean
            - 'null'
      type: object
    Input_ToolChoiceTool:
      additionalProperties: true
      properties:
        disable_parallel_tool_use:
          type:
            - boolean
            - 'null'
        name:
          type: string
      required:
        - name
      type: object
    Input_ToolChoiceNone:
      additionalProperties: true
      type: object
    Input_BrowserToolset20260801:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller2'
          type:
            - array
            - 'null'
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        configs:
          anyOf:
            - $ref: '#/components/schemas/Input_BrowserToolsetConfigs'
            - type: 'null'
        type:
          $ref: '#/components/schemas/Input_BrowserToolset20260801Type'
      required:
        - type
      type: object
    Input_ComputerToolset20260801:
      additionalProperties: true
      properties:
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        configs:
          anyOf:
            - $ref: '#/components/schemas/Input_ComputerToolsetConfigs'
            - type: 'null'
        type:
          $ref: '#/components/schemas/Input_ComputerToolset20260801Type'
      required:
        - type
      type: object
    Input_Tool2:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller2'
          type:
            - array
            - 'null'
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        description:
          type:
            - string
            - 'null'
        eager_input_streaming:
          type:
            - boolean
            - 'null'
        input_examples:
          items: true
          type:
            - array
            - 'null'
        input_schema:
          $ref: '#/components/schemas/Input_JsonSchema'
        name:
          type: string
        strict:
          type:
            - boolean
            - 'null'
        type:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolType'
            - type: 'null'
      required:
        - input_schema
        - name
      type: object
    Input_McpToolset:
      additionalProperties: true
      properties:
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        configs:
          additionalProperties:
            $ref: '#/components/schemas/Input_McpToolConfig'
          type:
            - object
            - 'null'
        default_config:
          anyOf:
            - $ref: '#/components/schemas/Input_McpToolDefaultConfig'
            - type: 'null'
        mcp_server_name:
          type: string
        tools:
          items:
            $ref: '#/components/schemas/Input_McpListedTool'
          type:
            - array
            - 'null'
        type:
          $ref: '#/components/schemas/Input_McpToolsetType'
      required:
        - mcp_server_name
        - type
      type: object
    Input_BashTool20241022:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller2'
          type:
            - array
            - 'null'
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        input_examples:
          items: true
          type:
            - array
            - 'null'
        name:
          $ref: '#/components/schemas/Input_BashTool20241022Name'
        strict:
          type:
            - boolean
            - 'null'
        type:
          $ref: '#/components/schemas/Input_BashTool20241022Type'
      required:
        - name
        - type
      type: object
    Input_BashTool20250124:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller2'
          type:
            - array
            - 'null'
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        input_examples:
          items: true
          type:
            - array
            - 'null'
        name:
          $ref: '#/components/schemas/Input_BashTool20250124Name'
        strict:
          type:
            - boolean
            - 'null'
        type:
          $ref: '#/components/schemas/Input_BashTool20250124Type'
      required:
        - name
        - type
      type: object
    Input_CodeExecutionTool20250522:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller2'
          type:
            - array
            - 'null'
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        name:
          $ref: '#/components/schemas/Input_CodeExecutionTool20250522Name'
        strict:
          type:
            - boolean
            - 'null'
        type:
          $ref: '#/components/schemas/Input_CodeExecutionTool20250522Type'
      required:
        - name
        - type
      type: object
    Input_CodeExecutionTool20250825:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller2'
          type:
            - array
            - 'null'
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        name:
          $ref: '#/components/schemas/Input_CodeExecutionTool20250825Name'
        strict:
          type:
            - boolean
            - 'null'
        type:
          $ref: '#/components/schemas/Input_CodeExecutionTool20250825Type'
      required:
        - name
        - type
      type: object
    Input_CodeExecutionTool20260120:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller2'
          type:
            - array
            - 'null'
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        name:
          $ref: '#/components/schemas/Input_CodeExecutionTool20260120Name'
        strict:
          type:
            - boolean
            - 'null'
        type:
          $ref: '#/components/schemas/Input_CodeExecutionTool20260120Type'
      required:
        - name
        - type
      type: object
    Input_CodeExecutionTool20260521:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller2'
          type:
            - array
            - 'null'
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        name:
          $ref: '#/components/schemas/Input_CodeExecutionTool20260521Name'
        strict:
          type:
            - boolean
            - 'null'
        type:
          $ref: '#/components/schemas/Input_CodeExecutionTool20260521Type'
      required:
        - name
        - type
      type: object
    Input_ComputerTool20241022:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller2'
          type:
            - array
            - 'null'
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        display_height_px:
          format: int64
          type: integer
        display_number:
          format: int64
          type:
            - integer
            - 'null'
        display_width_px:
          format: int64
          type: integer
        input_examples:
          items: true
          type:
            - array
            - 'null'
        name:
          $ref: '#/components/schemas/Input_ComputerTool20241022Name'
        strict:
          type:
            - boolean
            - 'null'
        type:
          $ref: '#/components/schemas/Input_ComputerTool20241022Type'
      required:
        - name
        - type
        - display_height_px
        - display_width_px
      type: object
    Input_MemoryTool20250818:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller2'
          type:
            - array
            - 'null'
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        input_examples:
          items: true
          type:
            - array
            - 'null'
        name:
          $ref: '#/components/schemas/Input_MemoryTool20250818Name'
        strict:
          type:
            - boolean
            - 'null'
        type:
          $ref: '#/components/schemas/Input_MemoryTool20250818Type'
      required:
        - name
        - type
      type: object
    Input_ComputerTool20250124:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller2'
          type:
            - array
            - 'null'
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        display_height_px:
          format: int64
          type: integer
        display_number:
          format: int64
          type:
            - integer
            - 'null'
        display_width_px:
          format: int64
          type: integer
        input_examples:
          items: true
          type:
            - array
            - 'null'
        name:
          $ref: '#/components/schemas/Input_ComputerTool20250124Name'
        strict:
          type:
            - boolean
            - 'null'
        type:
          $ref: '#/components/schemas/Input_ComputerTool20250124Type'
      required:
        - name
        - type
        - display_height_px
        - display_width_px
      type: object
    Input_TextEditorTool20241022:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller2'
          type:
            - array
            - 'null'
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        input_examples:
          items: true
          type:
            - array
            - 'null'
        name:
          $ref: '#/components/schemas/Input_TextEditorTool20241022Name'
        strict:
          type:
            - boolean
            - 'null'
        type:
          $ref: '#/components/schemas/Input_TextEditorTool20241022Type'
      required:
        - name
        - type
      type: object
    Input_ComputerTool20251124:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller2'
          type:
            - array
            - 'null'
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        display_height_px:
          format: int64
          type: integer
        display_number:
          format: int64
          type:
            - integer
            - 'null'
        display_width_px:
          format: int64
          type: integer
        enable_zoom:
          type:
            - boolean
            - 'null'
        input_examples:
          items: true
          type:
            - array
            - 'null'
        name:
          $ref: '#/components/schemas/Input_ComputerTool20251124Name'
        strict:
          type:
            - boolean
            - 'null'
        type:
          $ref: '#/components/schemas/Input_ComputerTool20251124Type'
      required:
        - name
        - type
        - display_height_px
        - display_width_px
      type: object
    Input_TextEditorTool20250124:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller2'
          type:
            - array
            - 'null'
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        input_examples:
          items: true
          type:
            - array
            - 'null'
        name:
          $ref: '#/components/schemas/Input_TextEditorTool20250124Name'
        strict:
          type:
            - boolean
            - 'null'
        type:
          $ref: '#/components/schemas/Input_TextEditorTool20250124Type'
      required:
        - name
        - type
      type: object
    Input_TextEditorTool20250429:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller2'
          type:
            - array
            - 'null'
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        input_examples:
          items: true
          type:
            - array
            - 'null'
        name:
          $ref: '#/components/schemas/Input_TextEditorTool20250429Name'
        strict:
          type:
            - boolean
            - 'null'
        type:
          $ref: '#/components/schemas/Input_TextEditorTool20250429Type'
      required:
        - name
        - type
      type: object
    Input_TextEditorTool20250728:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller2'
          type:
            - array
            - 'null'
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        input_examples:
          items: true
          type:
            - array
            - 'null'
        max_characters:
          format: int64
          type:
            - integer
            - 'null'
        name:
          $ref: '#/components/schemas/Input_TextEditorTool20250728Name'
        strict:
          type:
            - boolean
            - 'null'
        type:
          $ref: '#/components/schemas/Input_TextEditorTool20250728Type'
      required:
        - name
        - type
      type: object
    Input_WebSearchTool20250305:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller2'
          type:
            - array
            - 'null'
        allowed_domains:
          items:
            type: string
          type:
            - array
            - 'null'
        blocked_domains:
          items:
            type: string
          type:
            - array
            - 'null'
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        max_uses:
          format: int64
          type:
            - integer
            - 'null'
        name:
          $ref: '#/components/schemas/Input_WebSearchTool20250305Name'
        strict:
          type:
            - boolean
            - 'null'
        type:
          $ref: '#/components/schemas/Input_WebSearchTool20250305Type'
        user_location:
          anyOf:
            - $ref: '#/components/schemas/Input_UserLocation2'
            - type: 'null'
      required:
        - name
        - type
      type: object
    Input_WebFetchTool20250910:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller2'
          type:
            - array
            - 'null'
        allowed_domains:
          items:
            type: string
          type:
            - array
            - 'null'
        blocked_domains:
          items:
            type: string
          type:
            - array
            - 'null'
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        citations:
          anyOf:
            - $ref: '#/components/schemas/Input_CitationsConfig'
            - type: 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        max_content_tokens:
          format: int64
          type:
            - integer
            - 'null'
        max_uses:
          format: int64
          type:
            - integer
            - 'null'
        name:
          $ref: '#/components/schemas/Input_WebFetchTool20250910Name'
        strict:
          type:
            - boolean
            - 'null'
        type:
          $ref: '#/components/schemas/Input_WebFetchTool20250910Type'
      required:
        - name
        - type
      type: object
    Input_WebSearchTool20260209:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller2'
          type:
            - array
            - 'null'
        allowed_domains:
          items:
            type: string
          type:
            - array
            - 'null'
        blocked_domains:
          items:
            type: string
          type:
            - array
            - 'null'
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        max_uses:
          format: int64
          type:
            - integer
            - 'null'
        name:
          $ref: '#/components/schemas/Input_WebSearchTool20260209Name'
        strict:
          type:
            - boolean
            - 'null'
        type:
          $ref: '#/components/schemas/Input_WebSearchTool20260209Type'
        user_location:
          anyOf:
            - $ref: '#/components/schemas/Input_UserLocation2'
            - type: 'null'
      required:
        - name
        - type
      type: object
    Input_WebFetchTool20260209:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller2'
          type:
            - array
            - 'null'
        allowed_domains:
          items:
            type: string
          type:
            - array
            - 'null'
        blocked_domains:
          items:
            type: string
          type:
            - array
            - 'null'
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        citations:
          anyOf:
            - $ref: '#/components/schemas/Input_CitationsConfig'
            - type: 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        max_content_tokens:
          format: int64
          type:
            - integer
            - 'null'
        max_uses:
          format: int64
          type:
            - integer
            - 'null'
        name:
          $ref: '#/components/schemas/Input_WebFetchTool20260209Name'
        strict:
          type:
            - boolean
            - 'null'
        type:
          $ref: '#/components/schemas/Input_WebFetchTool20260209Type'
      required:
        - name
        - type
      type: object
    Input_WebFetchTool20260309:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller2'
          type:
            - array
            - 'null'
        allowed_domains:
          items:
            type: string
          type:
            - array
            - 'null'
        blocked_domains:
          items:
            type: string
          type:
            - array
            - 'null'
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        citations:
          anyOf:
            - $ref: '#/components/schemas/Input_CitationsConfig'
            - type: 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        max_content_tokens:
          format: int64
          type:
            - integer
            - 'null'
        max_uses:
          format: int64
          type:
            - integer
            - 'null'
        name:
          $ref: '#/components/schemas/Input_WebFetchTool20260309Name'
        strict:
          type:
            - boolean
            - 'null'
        type:
          $ref: '#/components/schemas/Input_WebFetchTool20260309Type'
        use_cache:
          type:
            - boolean
            - 'null'
      required:
        - name
        - type
      type: object
    Input_WebSearchTool20260318:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller2'
          type:
            - array
            - 'null'
        allowed_domains:
          items:
            type: string
          type:
            - array
            - 'null'
        blocked_domains:
          items:
            type: string
          type:
            - array
            - 'null'
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        max_uses:
          format: int64
          type:
            - integer
            - 'null'
        name:
          $ref: '#/components/schemas/Input_WebSearchTool20260318Name'
        response_inclusion:
          anyOf:
            - $ref: '#/components/schemas/Input_ResponseInclusion'
            - type: 'null'
        strict:
          type:
            - boolean
            - 'null'
        type:
          $ref: '#/components/schemas/Input_WebSearchTool20260318Type'
        user_location:
          anyOf:
            - $ref: '#/components/schemas/Input_UserLocation2'
            - type: 'null'
      required:
        - name
        - type
      type: object
    Input_WebFetchTool20260318:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller2'
          type:
            - array
            - 'null'
        allowed_domains:
          items:
            type: string
          type:
            - array
            - 'null'
        blocked_domains:
          items:
            type: string
          type:
            - array
            - 'null'
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        citations:
          anyOf:
            - $ref: '#/components/schemas/Input_CitationsConfig'
            - type: 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        max_content_tokens:
          format: int64
          type:
            - integer
            - 'null'
        max_uses:
          format: int64
          type:
            - integer
            - 'null'
        name:
          $ref: '#/components/schemas/Input_WebFetchTool20260318Name'
        response_inclusion:
          anyOf:
            - $ref: '#/components/schemas/Input_ResponseInclusion'
            - type: 'null'
        strict:
          type:
            - boolean
            - 'null'
        type:
          $ref: '#/components/schemas/Input_WebFetchTool20260318Type'
        use_cache:
          type:
            - boolean
            - 'null'
      required:
        - name
        - type
      type: object
    Input_AdvisorTool20260301:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller2'
          type:
            - array
            - 'null'
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        caching:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        max_tokens:
          format: int64
          type:
            - integer
            - 'null'
        max_uses:
          format: int64
          type:
            - integer
            - 'null'
        model:
          type: string
        name:
          $ref: '#/components/schemas/Input_AdvisorTool20260301Name'
        strict:
          type:
            - boolean
            - 'null'
        type:
          $ref: '#/components/schemas/Input_AdvisorTool20260301Type'
      required:
        - name
        - type
        - model
      type: object
    Input_ToolSearchBm25Tool20251119:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller2'
          type:
            - array
            - 'null'
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        name:
          $ref: '#/components/schemas/Input_ToolSearchBm25Tool20251119Name'
        strict:
          type:
            - boolean
            - 'null'
        type:
          $ref: '#/components/schemas/Input_ToolSearchBm25Tool20251119Type'
      required:
        - name
        - type
      type: object
    Input_ToolSearchRegexTool20251119:
      additionalProperties: true
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/Input_AllowedCaller2'
          type:
            - array
            - 'null'
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        defer_loading:
          type:
            - boolean
            - 'null'
        name:
          $ref: '#/components/schemas/Input_ToolSearchRegexTool20251119Name'
        strict:
          type:
            - boolean
            - 'null'
        type:
          $ref: '#/components/schemas/Input_ToolSearchRegexTool20251119Type'
      required:
        - name
        - type
      type: object
    Output_ResponseSkill:
      additionalProperties: true
      properties:
        skill_id:
          type: string
        type:
          $ref: '#/components/schemas/Output_SkillType'
        version:
          type: string
      required:
        - skill_id
        - type
        - version
      type: object
    Output_ResponseTextBlock:
      additionalProperties: true
      properties:
        citations:
          items:
            $ref: '#/components/schemas/Output_ResponseTextCitation'
          type:
            - array
            - 'null'
        text:
          type: string
        type:
          $ref: '#/components/schemas/Output_ResponseTextBlockType'
      required:
        - type
        - text
      type: object
    Output_ThinkingBlock:
      additionalProperties: true
      properties:
        signature:
          type: string
        thinking:
          type: string
        type:
          $ref: '#/components/schemas/Output_ThinkingBlockType'
      required:
        - type
        - signature
        - thinking
      type: object
    Output_RedactedThinkingBlock:
      additionalProperties: true
      properties:
        data:
          type: string
        type:
          $ref: '#/components/schemas/Output_RedactedThinkingBlockType'
      required:
        - type
        - data
      type: object
    Output_ResponseToolUseBlock:
      additionalProperties: true
      properties:
        caller:
          anyOf:
            - $ref: '#/components/schemas/Output_Caller2'
            - type: 'null'
        id:
          type: string
        input:
          additionalProperties: true
          type: object
        name:
          type: string
        toolset_name:
          type:
            - string
            - 'null'
        type:
          $ref: '#/components/schemas/Output_ResponseToolUseBlockType'
      required:
        - type
        - id
        - input
        - name
      type: object
    Output_ResponseServerToolUseBlock:
      additionalProperties: true
      properties:
        caller:
          anyOf:
            - $ref: '#/components/schemas/Output_Caller2'
            - type: 'null'
        id:
          type: string
        input:
          additionalProperties: true
          type: object
        name:
          $ref: '#/components/schemas/Output_ServerToolName'
        type:
          $ref: '#/components/schemas/Output_ResponseServerToolUseBlockType'
      required:
        - type
        - id
        - input
        - name
      type: object
    Output_ResponseWebSearchToolResultBlock:
      additionalProperties: true
      properties:
        caller:
          anyOf:
            - $ref: '#/components/schemas/Output_Caller2'
            - type: 'null'
        content:
          $ref: '#/components/schemas/Output_ResponseWebSearchResultContent'
        tool_use_id:
          type: string
        type:
          $ref: '#/components/schemas/Output_ResponseWebSearchToolResultBlockType'
      required:
        - type
        - content
        - tool_use_id
      type: object
    Output_ResponseWebFetchToolResultBlock:
      additionalProperties: true
      properties:
        caller:
          anyOf:
            - $ref: '#/components/schemas/Output_Caller2'
            - type: 'null'
        content:
          $ref: '#/components/schemas/Output_ResponseWebFetchResultContent'
        tool_use_id:
          type: string
        type:
          $ref: '#/components/schemas/Output_ResponseWebFetchToolResultBlockType'
      required:
        - type
        - content
        - tool_use_id
      type: object
    Output_ResponseAdvisorToolResultBlock:
      additionalProperties: true
      properties:
        content:
          $ref: '#/components/schemas/Output_ResponseAdvisorResultContent'
        tool_use_id:
          type: string
        type:
          $ref: '#/components/schemas/Output_ResponseAdvisorToolResultBlockType'
      required:
        - type
        - content
        - tool_use_id
      type: object
    Output_ResponseCodeExecutionToolResultBlock:
      additionalProperties: true
      properties:
        content:
          $ref: '#/components/schemas/Output_CodeExecutionResultContent'
        tool_use_id:
          type: string
        type:
          $ref: '#/components/schemas/Output_ResponseCodeExecutionToolResultBlockType'
      required:
        - type
        - content
        - tool_use_id
      type: object
    Output_ResponseBashCodeExecutionToolResultBlock:
      additionalProperties: true
      properties:
        content:
          $ref: '#/components/schemas/Output_BashCodeExecutionResultContent'
        tool_use_id:
          type: string
        type:
          $ref: >-
            #/components/schemas/Output_ResponseBashCodeExecutionToolResultBlockType
      required:
        - type
        - content
        - tool_use_id
      type: object
    Output_ResponseTextEditorCodeExecutionToolResultBlock:
      additionalProperties: true
      properties:
        content:
          $ref: '#/components/schemas/Output_ResponseTextEditorResultContent'
        tool_use_id:
          type: string
        type:
          $ref: >-
            #/components/schemas/Output_ResponseTextEditorCodeExecutionToolResultBlockType
      required:
        - type
        - content
        - tool_use_id
      type: object
    Output_ResponseToolSearchToolResultBlock:
      additionalProperties: true
      properties:
        content:
          $ref: '#/components/schemas/Output_ResponseToolSearchResultContent'
        tool_use_id:
          type: string
        type:
          $ref: '#/components/schemas/Output_ResponseToolSearchToolResultBlockType'
      required:
        - type
        - content
        - tool_use_id
      type: object
    Output_McpToolListingBlock:
      additionalProperties: true
      properties:
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Output_CacheControl'
            - type: 'null'
        mcp_server_name:
          type: string
        tools:
          items:
            $ref: '#/components/schemas/Output_McpListedTool'
          type: array
        type:
          $ref: '#/components/schemas/Output_McpToolListingType'
      required:
        - type
        - mcp_server_name
        - tools
      type: object
    Output_ResponseMcpToolUseBlock:
      additionalProperties: true
      properties:
        id:
          type: string
        input:
          additionalProperties: true
          type: object
        name:
          type: string
        server_name:
          type: string
        type:
          $ref: '#/components/schemas/Output_ResponseMcpToolUseBlockType'
      required:
        - type
        - id
        - input
        - name
        - server_name
      type: object
    Output_ResponseMcpToolResultBlock:
      additionalProperties: true
      properties:
        content:
          $ref: '#/components/schemas/Output_ResponseMcpResultContent'
        is_error:
          type: boolean
        tool_use_id:
          type: string
        type:
          $ref: '#/components/schemas/Output_ResponseMcpToolResultBlockType'
      required:
        - type
        - content
        - is_error
        - tool_use_id
      type: object
    Output_ResponseContainerUploadBlock:
      additionalProperties: true
      properties:
        file_id:
          type: string
        type:
          $ref: '#/components/schemas/Output_ResponseContainerUploadBlockType'
      required:
        - type
        - file_id
      type: object
    Output_ResponseCompactionBlock:
      additionalProperties: true
      properties:
        content:
          type:
            - string
            - 'null'
        encrypted_content:
          type:
            - string
            - 'null'
        signature:
          type:
            - string
            - 'null'
        type:
          $ref: '#/components/schemas/Output_ResponseCompactionBlockType'
      required:
        - type
      type: object
    Output_ResponseFallbackBlock:
      additionalProperties: true
      properties:
        from:
          $ref: '#/components/schemas/Output_FallbackInfo'
        to:
          $ref: '#/components/schemas/Output_FallbackInfo'
        trigger:
          $ref: '#/components/schemas/Output_FallbackRefusalTrigger'
        type:
          $ref: '#/components/schemas/Output_ResponseFallbackBlockType'
      required:
        - type
        - from
        - to
        - trigger
      type: object
    Output_ContextEditResponse:
      anyOf:
        - $ref: '#/components/schemas/Output_ClearedTools'
        - $ref: '#/components/schemas/Output_ClearedThinking'
    Output_CacheMissReason2:
      anyOf:
        - $ref: '#/components/schemas/Output_CacheMissModelChanged'
        - $ref: '#/components/schemas/Output_CacheMissSystemChanged'
        - $ref: '#/components/schemas/Output_CacheMissToolsChanged'
        - $ref: '#/components/schemas/Output_CacheMissMessagesChanged'
        - $ref: '#/components/schemas/Output_CacheMissPreviousMessageNotFound'
        - $ref: '#/components/schemas/Output_CacheMissUnavailable'
    Output_ThinkingBindingMismatchReason:
      enum:
        - model_binding_mismatch
        - prefix_binding_mismatch
        - organization_binding_mismatch
        - end_user_binding_mismatch
        - unknown
      type: string
    Output_InputTransformationType:
      enum:
        - thinking_dropped
        - thinking_mismatch_allowed
        - unknown
      type: string
    Output_RefusalCategory:
      enum:
        - cyber
        - bio
        - frontier_llm
        - reasoning_extraction
        - general_harms
      type: string
    Output_RefusalStopDetailsType:
      enum:
        - refusal
      type: string
    Output_CacheCreation:
      additionalProperties: true
      properties:
        ephemeral_1h_input_tokens:
          format: int64
          type: integer
        ephemeral_5m_input_tokens:
          format: int64
          type: integer
      required:
        - ephemeral_1h_input_tokens
        - ephemeral_5m_input_tokens
      type: object
    Output_FallbackCreditUsage:
      additionalProperties: true
      properties:
        status:
          $ref: '#/components/schemas/Output_FallbackCreditStatus'
      required:
        - status
      type: object
    Output_IterationUsage:
      anyOf:
        - $ref: '#/components/schemas/Output_MessageIterationUsage'
        - $ref: '#/components/schemas/Output_CompactionIterationUsage'
        - $ref: '#/components/schemas/Output_AdvisorMessageIterationUsage'
        - $ref: '#/components/schemas/Output_FallbackMessageIterationUsage'
    Output_OutputTokensDetails:
      additionalProperties: true
      properties:
        thinking_tokens:
          format: int64
          type: integer
      required:
        - thinking_tokens
      type: object
    Output_ServerToolUsage:
      additionalProperties: true
      properties:
        web_fetch_requests:
          format: int64
          type: integer
        web_search_requests:
          format: int64
          type: integer
      required:
        - web_fetch_requests
        - web_search_requests
      type: object
    Output_ResponseServiceTier:
      enum:
        - standard
        - priority
        - batch
      type: string
    Output_Speed:
      enum:
        - standard
        - fast
      type: string
    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_SkillParam:
      additionalProperties: true
      properties:
        skill_id:
          type: string
        type:
          $ref: '#/components/schemas/Input_SkillType'
        version:
          type:
            - string
            - 'null'
      required:
        - skill_id
        - type
      type: object
    Input_ClearToolUsesEdit:
      additionalProperties: true
      properties:
        clear_at_least:
          anyOf:
            - $ref: '#/components/schemas/Input_InputTokensThreshold'
            - type: 'null'
        clear_tool_inputs:
          anyOf:
            - $ref: '#/components/schemas/Input_ClearToolInputs'
            - type: 'null'
        exclude_tools:
          items:
            type: string
          type:
            - array
            - 'null'
        keep:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolUsesKeep'
            - type: 'null'
        trigger:
          anyOf:
            - $ref: '#/components/schemas/Input_ContextTrigger'
            - type: 'null'
        type:
          $ref: '#/components/schemas/Input_ClearToolUsesType'
      required:
        - type
      type: object
    Input_ClearThinkingEdit:
      additionalProperties: true
      properties:
        keep:
          anyOf:
            - $ref: '#/components/schemas/Input_ThinkingKeep'
            - type: 'null'
        type:
          $ref: '#/components/schemas/Input_ClearThinkingType'
      required:
        - type
      type: object
    Input_CompactEdit:
      additionalProperties: true
      properties:
        instructions:
          type:
            - string
            - 'null'
        pause_after_compaction:
          type:
            - boolean
            - 'null'
        trigger:
          anyOf:
            - $ref: '#/components/schemas/Input_InputTokensThreshold'
            - type: 'null'
        type:
          $ref: '#/components/schemas/Input_CompactType'
      required:
        - type
      type: object
    Input_FallbackCreditMode:
      enum:
        - strict
        - best_effort
      type: string
    Input_ContentBlock:
      anyOf:
        - $ref: '#/components/schemas/Input_TextBlock'
        - $ref: '#/components/schemas/Input_ImageBlock'
        - $ref: '#/components/schemas/Input_DocumentBlock'
        - $ref: '#/components/schemas/Input_ThinkingBlock'
        - $ref: '#/components/schemas/Input_RedactedThinkingBlock'
        - $ref: '#/components/schemas/Input_ToolUseBlock'
        - $ref: '#/components/schemas/Input_ToolResultBlock'
        - $ref: '#/components/schemas/Input_ServerToolUseBlock'
        - $ref: '#/components/schemas/Input_SearchResultBlock'
        - $ref: '#/components/schemas/Input_WebSearchToolResultBlock'
        - $ref: '#/components/schemas/Input_WebFetchToolResultBlock'
        - $ref: '#/components/schemas/Input_AdvisorToolResultBlock'
        - $ref: '#/components/schemas/Input_CodeExecutionToolResultBlock'
        - $ref: '#/components/schemas/Input_BashCodeExecutionToolResultBlock'
        - $ref: '#/components/schemas/Input_TextEditorCodeExecutionToolResultBlock'
        - $ref: '#/components/schemas/Input_ToolSearchToolResultBlock'
        - $ref: '#/components/schemas/Input_McpToolListingBlock'
        - $ref: '#/components/schemas/Input_McpToolUseBlock'
        - $ref: '#/components/schemas/Input_McpToolResultBlock'
        - $ref: '#/components/schemas/Input_ContainerUploadBlock'
        - $ref: '#/components/schemas/Input_CompactionBlock'
        - $ref: '#/components/schemas/Input_MidConversationSystemBlock'
        - $ref: '#/components/schemas/Input_ToolAdditionBlock'
        - $ref: '#/components/schemas/Input_ToolRemovalBlock'
        - $ref: '#/components/schemas/Input_FallbackBlock'
    Input_TokenTaskBudgetType:
      enum:
        - tokens
      type: string
    Input_TextCitation:
      oneOf:
        - $ref: '#/components/schemas/Input_CharCitation'
          properties:
            type:
              const: char_location
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_PageCitation'
          properties:
            type:
              const: page_location
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_ContentBlockCitation'
          properties:
            type:
              const: content_block_location
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_WebCitation'
          properties:
            type:
              const: web_search_result_location
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_SearchCitation'
          properties:
            type:
              const: search_result_location
              type: string
          required:
            - type
          type: object
    Input_TextBlockType:
      enum:
        - text
      type: string
    Input_ThinkingBlockBinding:
      additionalProperties: true
      properties:
        prefix_mismatch_behavior:
          anyOf:
            - $ref: '#/components/schemas/Input_ThinkingPrefixMismatchBehavior'
            - type: 'null'
      type: object
    Input_ThinkingDisplay:
      enum:
        - summarized
        - omitted
        - updates
      type: string
    Input_AllowedCaller2:
      enum:
        - direct
        - code_execution_20250825
        - code_execution_20260120
        - code_execution_20260521
      type: string
    Input_BrowserToolsetConfigs:
      additionalProperties: true
      properties:
        close_tab:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        double_click:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        file_upload:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        find:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        form_input:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        get_page_text:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        hold_key:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        hover:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        javascript_exec:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        key:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        left_click:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        left_click_drag:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        left_mouse_down:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        left_mouse_up:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        list_tabs:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        middle_click:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        mouse_move:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        navigate:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        new_tab:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        read_console:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        read_network:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        read_page:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        right_click:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        screenshot:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        scroll:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        scroll_to:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        switch_tab:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        triple_click:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        type:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        wait:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        zoom:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
      type: object
    Input_BrowserToolset20260801Type:
      enum:
        - browser_toolset_20260801
      type: string
    Input_ComputerToolsetConfigs:
      additionalProperties: true
      properties:
        cursor_position:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        double_click:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        hold_key:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        key:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        left_click:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        left_click_drag:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        left_mouse_down:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        left_mouse_up:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        middle_click:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        mouse_move:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        right_click:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        screenshot:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        scroll:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        triple_click:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        type:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        wait:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
        zoom:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolsetMemberConfig'
            - type: 'null'
      type: object
    Input_ComputerToolset20260801Type:
      enum:
        - computer_toolset_20260801
      type: string
    Input_JsonSchema:
      additionalProperties: true
      properties:
        $ref: e6637de9-b337-4b7c-a1e7-434e7abb0e09
        $anchor:
          type:
            - string
            - 'null'
        $comment:
          type:
            - string
            - 'null'
        $defs: true
        $dynamicAnchor:
          type:
            - string
            - 'null'
        $dynamicRef:
          type:
            - string
            - 'null'
        $id:
          type:
            - string
            - 'null'
        $schema:
          type:
            - string
            - 'null'
        additionalProperties: true
        allOf:
          items: true
          type:
            - array
            - 'null'
        anyOf:
          items: true
          type:
            - array
            - 'null'
        const: true
        default: true
        definitions: true
        dependencies: true
        dependentRequired: true
        dependentSchemas: true
        deprecated:
          type:
            - boolean
            - 'null'
        description:
          type:
            - string
            - 'null'
        else: true
        enum:
          items: true
          type:
            - array
            - 'null'
        examples:
          items: true
          type:
            - array
            - 'null'
        if: true
        maxProperties:
          format: uint64
          minimum: 0
          type:
            - integer
            - 'null'
        minProperties:
          format: uint64
          minimum: 0
          type:
            - integer
            - 'null'
        not: true
        oneOf:
          items: true
          type:
            - array
            - 'null'
        patternProperties: true
        properties: true
        propertyNames: true
        readOnly:
          type:
            - boolean
            - 'null'
        required:
          items:
            type: string
          type:
            - array
            - 'null'
        then: true
        title:
          type:
            - string
            - 'null'
        type:
          $ref: '#/components/schemas/Input_JsonSchemaType'
        unevaluatedProperties: true
        writeOnly:
          type:
            - boolean
            - 'null'
      required:
        - type
      type: object
    Input_ToolType:
      enum:
        - custom
      type: string
    Input_McpToolConfig:
      additionalProperties: true
      properties:
        defer_loading:
          type:
            - boolean
            - 'null'
        enabled:
          type:
            - boolean
            - 'null'
      type: object
    Input_McpToolDefaultConfig:
      additionalProperties: true
      properties:
        defer_loading:
          type:
            - boolean
            - 'null'
        enabled:
          type:
            - boolean
            - 'null'
      type: object
    Input_McpListedTool:
      additionalProperties: true
      properties:
        description:
          type:
            - string
            - 'null'
        input_schema:
          $ref: '#/components/schemas/Input_JsonSchema'
        name:
          type: string
      required:
        - name
        - input_schema
      type: object
    Input_McpToolsetType:
      enum:
        - mcp_toolset
      type: string
    Input_BashTool20241022Name:
      enum:
        - bash
      type: string
    Input_BashTool20241022Type:
      enum:
        - bash_20241022
      type: string
    Input_BashTool20250124Name:
      enum:
        - bash
      type: string
    Input_BashTool20250124Type:
      enum:
        - bash_20250124
      type: string
    Input_CodeExecutionTool20250522Name:
      enum:
        - code_execution
      type: string
    Input_CodeExecutionTool20250522Type:
      enum:
        - code_execution_20250522
      type: string
    Input_CodeExecutionTool20250825Name:
      enum:
        - code_execution
      type: string
    Input_CodeExecutionTool20250825Type:
      enum:
        - code_execution_20250825
      type: string
    Input_CodeExecutionTool20260120Name:
      enum:
        - code_execution
      type: string
    Input_CodeExecutionTool20260120Type:
      enum:
        - code_execution_20260120
      type: string
    Input_CodeExecutionTool20260521Name:
      enum:
        - code_execution
      type: string
    Input_CodeExecutionTool20260521Type:
      enum:
        - code_execution_20260521
      type: string
    Input_ComputerTool20241022Name:
      enum:
        - computer
      type: string
    Input_ComputerTool20241022Type:
      enum:
        - computer_20241022
      type: string
    Input_MemoryTool20250818Name:
      enum:
        - memory
      type: string
    Input_MemoryTool20250818Type:
      enum:
        - memory_20250818
      type: string
    Input_ComputerTool20250124Name:
      enum:
        - computer
      type: string
    Input_ComputerTool20250124Type:
      enum:
        - computer_20250124
      type: string
    Input_TextEditorTool20241022Name:
      enum:
        - str_replace_editor
      type: string
    Input_TextEditorTool20241022Type:
      enum:
        - text_editor_20241022
      type: string
    Input_ComputerTool20251124Name:
      enum:
        - computer
      type: string
    Input_ComputerTool20251124Type:
      enum:
        - computer_20251124
      type: string
    Input_TextEditorTool20250124Name:
      enum:
        - str_replace_editor
      type: string
    Input_TextEditorTool20250124Type:
      enum:
        - text_editor_20250124
      type: string
    Input_TextEditorTool20250429Name:
      enum:
        - str_replace_based_edit_tool
      type: string
    Input_TextEditorTool20250429Type:
      enum:
        - text_editor_20250429
      type: string
    Input_TextEditorTool20250728Name:
      enum:
        - str_replace_based_edit_tool
      type: string
    Input_TextEditorTool20250728Type:
      enum:
        - text_editor_20250728
      type: string
    Input_WebSearchTool20250305Name:
      enum:
        - web_search
      type: string
    Input_WebSearchTool20250305Type:
      enum:
        - web_search_20250305
      type: string
    Input_UserLocation2:
      additionalProperties: true
      properties:
        city:
          type:
            - string
            - 'null'
        country:
          type:
            - string
            - 'null'
        region:
          type:
            - string
            - 'null'
        timezone:
          type:
            - string
            - 'null'
        type:
          $ref: '#/components/schemas/Input_UserLocationType2'
      required:
        - type
      type: object
    Input_CitationsConfig:
      additionalProperties: true
      properties:
        enabled:
          type:
            - boolean
            - 'null'
      type: object
    Input_WebFetchTool20250910Name:
      enum:
        - web_fetch
      type: string
    Input_WebFetchTool20250910Type:
      enum:
        - web_fetch_20250910
      type: string
    Input_WebSearchTool20260209Name:
      enum:
        - web_search
      type: string
    Input_WebSearchTool20260209Type:
      enum:
        - web_search_20260209
      type: string
    Input_WebFetchTool20260209Name:
      enum:
        - web_fetch
      type: string
    Input_WebFetchTool20260209Type:
      enum:
        - web_fetch_20260209
      type: string
    Input_WebFetchTool20260309Name:
      enum:
        - web_fetch
      type: string
    Input_WebFetchTool20260309Type:
      enum:
        - web_fetch_20260309
      type: string
    Input_WebSearchTool20260318Name:
      enum:
        - web_search
      type: string
    Input_ResponseInclusion:
      enum:
        - full
        - excluded
      type: string
    Input_WebSearchTool20260318Type:
      enum:
        - web_search_20260318
      type: string
    Input_WebFetchTool20260318Name:
      enum:
        - web_fetch
      type: string
    Input_WebFetchTool20260318Type:
      enum:
        - web_fetch_20260318
      type: string
    Input_AdvisorTool20260301Name:
      enum:
        - advisor
      type: string
    Input_AdvisorTool20260301Type:
      enum:
        - advisor_20260301
      type: string
    Input_ToolSearchBm25Tool20251119Name:
      enum:
        - tool_search_tool_bm25
      type: string
    Input_ToolSearchBm25Tool20251119Type:
      enum:
        - tool_search_tool_bm25_20251119
        - tool_search_tool_bm25
      type: string
    Input_ToolSearchRegexTool20251119Name:
      enum:
        - tool_search_tool_regex
      type: string
    Input_ToolSearchRegexTool20251119Type:
      enum:
        - tool_search_tool_regex_20251119
        - tool_search_tool_regex
      type: string
    Output_SkillType:
      enum:
        - anthropic
        - custom
      type: string
    Output_ResponseTextCitation:
      anyOf:
        - $ref: '#/components/schemas/Output_ResponseCharCitation'
        - $ref: '#/components/schemas/Output_ResponsePageCitation'
        - $ref: '#/components/schemas/Output_ResponseContentBlockCitation'
        - $ref: '#/components/schemas/Output_ResponseWebCitation'
        - $ref: '#/components/schemas/Output_ResponseSearchCitation'
    Output_ResponseTextBlockType:
      enum:
        - text
      type: string
    Output_ThinkingBlockType:
      enum:
        - thinking
      type: string
    Output_RedactedThinkingBlockType:
      enum:
        - redacted_thinking
      type: string
    Output_Caller2:
      oneOf:
        - $ref: '#/components/schemas/Output_DirectCaller2'
          properties:
            type:
              const: direct
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Output_ServerCaller'
          properties:
            type:
              const: code_execution_20250825
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Output_ServerCaller20260120'
          properties:
            type:
              const: code_execution_20260120
              type: string
          required:
            - type
          type: object
    Output_ResponseToolUseBlockType:
      enum:
        - tool_use
      type: string
    Output_ServerToolName:
      enum:
        - advisor
        - web_search
        - web_fetch
        - code_execution
        - bash_code_execution
        - text_editor_code_execution
        - tool_search_tool_regex
        - tool_search_tool_bm25
      type: string
    Output_ResponseServerToolUseBlockType:
      enum:
        - server_tool_use
      type: string
    Output_ResponseWebSearchResultContent:
      anyOf:
        - $ref: '#/components/schemas/Output_WebSearchError'
        - items:
            $ref: '#/components/schemas/Output_ResponseWebSearchResult'
          type: array
    Output_ResponseWebSearchToolResultBlockType:
      enum:
        - web_search_tool_result
      type: string
    Output_ResponseWebFetchResultContent:
      anyOf:
        - $ref: '#/components/schemas/Output_WebFetchError'
        - $ref: '#/components/schemas/Output_ResponseWebFetchResult'
    Output_ResponseWebFetchToolResultBlockType:
      enum:
        - web_fetch_tool_result
      type: string
    Output_ResponseAdvisorResultContent:
      anyOf:
        - $ref: '#/components/schemas/Output_AdvisorError'
        - $ref: '#/components/schemas/Output_ResponseAdvisorResult'
        - $ref: '#/components/schemas/Output_ResponseAdvisorRedactedResult'
    Output_ResponseAdvisorToolResultBlockType:
      enum:
        - advisor_tool_result
      type: string
    Output_CodeExecutionResultContent:
      anyOf:
        - $ref: '#/components/schemas/Output_CodeExecutionError'
        - $ref: '#/components/schemas/Output_CodeExecutionResult'
        - $ref: '#/components/schemas/Output_EncryptedCodeExecutionResult'
    Output_ResponseCodeExecutionToolResultBlockType:
      enum:
        - code_execution_tool_result
      type: string
    Output_BashCodeExecutionResultContent:
      anyOf:
        - $ref: '#/components/schemas/Output_BashCodeExecutionError'
        - $ref: '#/components/schemas/Output_BashCodeExecutionResult'
    Output_ResponseBashCodeExecutionToolResultBlockType:
      enum:
        - bash_code_execution_tool_result
      type: string
    Output_ResponseTextEditorResultContent:
      anyOf:
        - $ref: '#/components/schemas/Output_ResponseTextEditorError'
        - $ref: '#/components/schemas/Output_ResponseTextEditorViewResult'
        - $ref: '#/components/schemas/Output_TextEditorCreateResult'
        - $ref: '#/components/schemas/Output_ResponseTextEditorReplaceResult'
    Output_ResponseTextEditorCodeExecutionToolResultBlockType:
      enum:
        - text_editor_code_execution_tool_result
      type: string
    Output_ResponseToolSearchResultContent:
      anyOf:
        - $ref: '#/components/schemas/Output_ResponseToolSearchError'
        - $ref: '#/components/schemas/Output_ResponseToolSearchResults'
    Output_ResponseToolSearchToolResultBlockType:
      enum:
        - tool_search_tool_result
      type: string
    Output_CacheControl:
      additionalProperties: true
      properties:
        ttl:
          anyOf:
            - $ref: '#/components/schemas/Output_CacheTtl'
            - type: 'null'
        type:
          $ref: '#/components/schemas/Output_CacheControlType'
      required:
        - type
      type: object
    Output_McpListedTool:
      additionalProperties: true
      properties:
        description:
          type:
            - string
            - 'null'
        input_schema:
          $ref: '#/components/schemas/Output_JsonSchema'
        name:
          type: string
      required:
        - name
        - input_schema
      type: object
    Output_McpToolListingType:
      enum:
        - mcp_tool_listing
      type: string
    Output_ResponseMcpToolUseBlockType:
      enum:
        - mcp_tool_use
      type: string
    Output_ResponseMcpResultContent:
      anyOf:
        - type: string
        - items:
            $ref: '#/components/schemas/Output_ResponseTextBlock'
          type: array
    Output_ResponseMcpToolResultBlockType:
      enum:
        - mcp_tool_result
      type: string
    Output_ResponseContainerUploadBlockType:
      enum:
        - container_upload
      type: string
    Output_ResponseCompactionBlockType:
      enum:
        - compaction
      type: string
    Output_FallbackInfo:
      additionalProperties: true
      properties:
        model:
          type: string
      required:
        - model
      type: object
    Output_FallbackRefusalTrigger:
      additionalProperties: true
      properties:
        category:
          anyOf:
            - $ref: '#/components/schemas/Output_RefusalCategory'
            - type: 'null'
        type:
          $ref: '#/components/schemas/Output_FallbackRefusalTriggerType'
      required:
        - type
      type: object
    Output_ResponseFallbackBlockType:
      enum:
        - fallback
      type: string
    Output_ClearedTools:
      additionalProperties: true
      properties:
        cleared_input_tokens:
          format: int64
          type: integer
        cleared_tool_uses:
          format: int64
          type: integer
        type:
          $ref: '#/components/schemas/Output_ClearedToolsType'
      required:
        - type
        - cleared_input_tokens
        - cleared_tool_uses
      type: object
    Output_ClearedThinking:
      additionalProperties: true
      properties:
        cleared_input_tokens:
          format: int64
          type: integer
        cleared_thinking_turns:
          format: int64
          type: integer
        type:
          $ref: '#/components/schemas/Output_ClearedThinkingType'
      required:
        - type
        - cleared_input_tokens
        - cleared_thinking_turns
      type: object
    Output_CacheMissModelChanged:
      additionalProperties: true
      properties:
        cache_missed_input_tokens:
          format: int64
          type: integer
        type:
          $ref: '#/components/schemas/Output_CacheMissModelChangedType'
      required:
        - type
        - cache_missed_input_tokens
      type: object
    Output_CacheMissSystemChanged:
      additionalProperties: true
      properties:
        cache_missed_input_tokens:
          format: int64
          type: integer
        type:
          $ref: '#/components/schemas/Output_CacheMissSystemChangedType'
      required:
        - type
        - cache_missed_input_tokens
      type: object
    Output_CacheMissToolsChanged:
      additionalProperties: true
      properties:
        cache_missed_input_tokens:
          format: int64
          type: integer
        type:
          $ref: '#/components/schemas/Output_CacheMissToolsChangedType'
      required:
        - type
        - cache_missed_input_tokens
      type: object
    Output_CacheMissMessagesChanged:
      additionalProperties: true
      properties:
        cache_missed_input_tokens:
          format: int64
          type: integer
        type:
          $ref: '#/components/schemas/Output_CacheMissMessagesChangedType'
      required:
        - type
        - cache_missed_input_tokens
      type: object
    Output_CacheMissPreviousMessageNotFound:
      additionalProperties: true
      properties:
        type:
          $ref: '#/components/schemas/Output_CacheMissPreviousMessageNotFoundType'
      required:
        - type
      type: object
    Output_CacheMissUnavailable:
      additionalProperties: true
      properties:
        type:
          $ref: '#/components/schemas/Output_CacheMissUnavailableType'
      required:
        - type
      type: object
    Output_FallbackCreditStatus:
      anyOf:
        - $ref: '#/components/schemas/Output_FallbackRedeemed'
        - $ref: '#/components/schemas/Output_FallbackNotApplied'
    Output_MessageIterationUsage:
      additionalProperties: true
      properties:
        cache_creation:
          anyOf:
            - $ref: '#/components/schemas/Output_CacheCreation'
            - type: 'null'
        cache_creation_input_tokens:
          format: int64
          type: integer
        cache_read_input_tokens:
          format: int64
          type: integer
        input_tokens:
          format: int64
          type: integer
        model:
          type: string
        output_tokens:
          format: int64
          type: integer
        type:
          $ref: '#/components/schemas/Output_MessageIterationUsageType'
      required:
        - type
        - cache_creation_input_tokens
        - cache_read_input_tokens
        - input_tokens
        - model
        - output_tokens
      type: object
    Output_CompactionIterationUsage:
      additionalProperties: true
      properties:
        cache_creation:
          anyOf:
            - $ref: '#/components/schemas/Output_CacheCreation'
            - type: 'null'
        cache_creation_input_tokens:
          format: int64
          type: integer
        cache_read_input_tokens:
          format: int64
          type: integer
        input_tokens:
          format: int64
          type: integer
        output_tokens:
          format: int64
          type: integer
        type:
          $ref: '#/components/schemas/Output_CompactionIterationUsageType'
      required:
        - type
        - cache_creation_input_tokens
        - cache_read_input_tokens
        - input_tokens
        - output_tokens
      type: object
    Output_AdvisorMessageIterationUsage:
      additionalProperties: true
      properties:
        cache_creation:
          anyOf:
            - $ref: '#/components/schemas/Output_CacheCreation'
            - type: 'null'
        cache_creation_input_tokens:
          format: int64
          type: integer
        cache_read_input_tokens:
          format: int64
          type: integer
        input_tokens:
          format: int64
          type: integer
        model:
          type: string
        output_tokens:
          format: int64
          type: integer
        type:
          $ref: '#/components/schemas/Output_AdvisorMessageIterationUsageType'
      required:
        - type
        - cache_creation_input_tokens
        - cache_read_input_tokens
        - input_tokens
        - model
        - output_tokens
      type: object
    Output_FallbackMessageIterationUsage:
      additionalProperties: true
      properties:
        cache_creation:
          anyOf:
            - $ref: '#/components/schemas/Output_CacheCreation'
            - type: 'null'
        cache_creation_input_tokens:
          format: int64
          type: integer
        cache_read_input_tokens:
          format: int64
          type: integer
        input_tokens:
          format: int64
          type: integer
        model:
          type: string
        output_tokens:
          format: int64
          type: integer
        type:
          $ref: '#/components/schemas/Output_FallbackMessageIterationUsageType'
      required:
        - type
        - cache_creation_input_tokens
        - cache_read_input_tokens
        - input_tokens
        - model
        - output_tokens
      type: object
    Input_SkillType:
      enum:
        - anthropic
        - custom
      type: string
    Input_InputTokensThreshold:
      additionalProperties: true
      properties:
        type:
          $ref: '#/components/schemas/Input_InputTokensType'
        value:
          format: int64
          type: integer
      required:
        - type
        - value
      type: object
    Input_ClearToolInputs:
      anyOf:
        - type: boolean
        - items:
            type: string
          type: array
    Input_ToolUsesKeep:
      additionalProperties: true
      properties:
        type:
          $ref: '#/components/schemas/Input_ToolUsesType'
        value:
          format: int64
          type: integer
      required:
        - type
        - value
      type: object
    Input_ContextTrigger:
      anyOf:
        - $ref: '#/components/schemas/Input_InputTokensThreshold'
        - $ref: '#/components/schemas/Input_ToolUsesKeep'
    Input_ClearToolUsesType:
      enum:
        - clear_tool_uses_20250919
      type: string
    Input_ThinkingKeep:
      anyOf:
        - $ref: '#/components/schemas/Input_ThinkingTurns'
        - $ref: '#/components/schemas/Input_AllThinkingTurns'
        - $ref: '#/components/schemas/Input_AllStringThinkingTurns'
    Input_ClearThinkingType:
      enum:
        - clear_thinking_20251015
      type: string
    Input_CompactType:
      enum:
        - compact_20260112
      type: string
    Input_ImageBlock:
      additionalProperties: true
      properties:
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        source:
          $ref: '#/components/schemas/Input_ImageSource'
        type:
          $ref: '#/components/schemas/Input_ImageBlockType'
      required:
        - type
        - source
      type: object
    Input_DocumentBlock:
      additionalProperties: true
      properties:
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        citations:
          anyOf:
            - $ref: '#/components/schemas/Input_CitationsConfig'
            - type: 'null'
        context:
          type:
            - string
            - 'null'
        source:
          $ref: '#/components/schemas/Input_DocumentSource'
        title:
          type:
            - string
            - 'null'
        type:
          $ref: '#/components/schemas/Input_DocumentBlockType'
      required:
        - type
        - source
      type: object
    Input_ThinkingBlock:
      additionalProperties: true
      properties:
        signature:
          type: string
        thinking:
          type: string
        type:
          $ref: '#/components/schemas/Input_ThinkingBlockType'
      required:
        - type
        - signature
        - thinking
      type: object
    Input_RedactedThinkingBlock:
      additionalProperties: true
      properties:
        data:
          type: string
        type:
          $ref: '#/components/schemas/Input_RedactedThinkingBlockType'
      required:
        - type
        - data
      type: object
    Input_ToolUseBlock:
      additionalProperties: true
      properties:
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        caller:
          anyOf:
            - $ref: '#/components/schemas/Input_Caller2'
            - type: 'null'
        id:
          type: string
        input: true
        name:
          type: string
        toolset_name:
          type:
            - string
            - 'null'
        type:
          $ref: '#/components/schemas/Input_ToolUseBlockType'
      required:
        - type
        - id
        - input
        - name
      type: object
    Input_ToolResultBlock:
      additionalProperties: true
      properties:
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        content:
          anyOf:
            - $ref: '#/components/schemas/Input_ToolResultContent'
            - type: 'null'
        is_error:
          type:
            - boolean
            - 'null'
        tool_use_id:
          type: string
        toolset_name:
          type:
            - string
            - 'null'
        type:
          $ref: '#/components/schemas/Input_ToolResultBlockType'
      required:
        - type
        - tool_use_id
      type: object
    Input_ServerToolUseBlock:
      additionalProperties: true
      properties:
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        caller:
          anyOf:
            - $ref: '#/components/schemas/Input_Caller2'
            - type: 'null'
        id:
          type: string
        input: true
        name:
          $ref: '#/components/schemas/Input_ServerToolName'
        type:
          $ref: '#/components/schemas/Input_ServerToolUseBlockType'
      required:
        - type
        - id
        - input
        - name
      type: object
    Input_SearchResultBlock:
      additionalProperties: true
      properties:
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        citations:
          anyOf:
            - $ref: '#/components/schemas/Input_CitationsConfig'
            - type: 'null'
        content:
          items:
            $ref: '#/components/schemas/Input_TextBlock'
          type: array
        source:
          type: string
        title:
          type: string
        type:
          $ref: '#/components/schemas/Input_SearchResultBlockType'
      required:
        - type
        - content
        - source
        - title
      type: object
    Input_WebSearchToolResultBlock:
      additionalProperties: true
      properties:
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        caller:
          anyOf:
            - $ref: '#/components/schemas/Input_Caller2'
            - type: 'null'
        content:
          $ref: '#/components/schemas/Input_WebSearchResultContent'
        tool_use_id:
          type: string
        type:
          $ref: '#/components/schemas/Input_WebSearchToolResultType'
      required:
        - type
        - content
        - tool_use_id
      type: object
    Input_WebFetchToolResultBlock:
      additionalProperties: true
      properties:
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        caller:
          anyOf:
            - $ref: '#/components/schemas/Input_Caller2'
            - type: 'null'
        content:
          $ref: '#/components/schemas/Input_WebFetchResultContent'
        tool_use_id:
          type: string
        type:
          $ref: '#/components/schemas/Input_WebFetchToolResultType'
      required:
        - type
        - content
        - tool_use_id
      type: object
    Input_AdvisorToolResultBlock:
      additionalProperties: true
      properties:
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        content:
          $ref: '#/components/schemas/Input_AdvisorResultContent'
        tool_use_id:
          type: string
        type:
          $ref: '#/components/schemas/Input_AdvisorToolResultType'
      required:
        - type
        - content
        - tool_use_id
      type: object
    Input_CodeExecutionToolResultBlock:
      additionalProperties: true
      properties:
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        content:
          $ref: '#/components/schemas/Input_CodeExecutionResultContent'
        tool_use_id:
          type: string
        type:
          $ref: '#/components/schemas/Input_CodeExecutionToolResultType'
      required:
        - type
        - content
        - tool_use_id
      type: object
    Input_BashCodeExecutionToolResultBlock:
      additionalProperties: true
      properties:
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        content:
          $ref: '#/components/schemas/Input_BashCodeExecutionResultContent'
        tool_use_id:
          type: string
        type:
          $ref: '#/components/schemas/Input_BashCodeExecutionToolResultType'
      required:
        - type
        - content
        - tool_use_id
      type: object
    Input_TextEditorCodeExecutionToolResultBlock:
      additionalProperties: true
      properties:
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        content:
          $ref: '#/components/schemas/Input_TextEditorResultContent'
        tool_use_id:
          type: string
        type:
          $ref: '#/components/schemas/Input_TextEditorCodeExecutionToolResultType'
      required:
        - type
        - content
        - tool_use_id
      type: object
    Input_ToolSearchToolResultBlock:
      additionalProperties: true
      properties:
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        content:
          $ref: '#/components/schemas/Input_ToolSearchResultContent'
        tool_use_id:
          type: string
        type:
          $ref: '#/components/schemas/Input_ToolSearchToolResultType'
      required:
        - type
        - content
        - tool_use_id
      type: object
    Input_McpToolListingBlock:
      additionalProperties: true
      properties:
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        mcp_server_name:
          type: string
        tools:
          items:
            $ref: '#/components/schemas/Input_McpListedTool'
          type: array
        type:
          $ref: '#/components/schemas/Input_McpToolListingType'
      required:
        - type
        - mcp_server_name
        - tools
      type: object
    Input_McpToolUseBlock:
      additionalProperties: true
      properties:
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        id:
          type: string
        input: true
        name:
          type: string
        server_name:
          type: string
        type:
          $ref: '#/components/schemas/Input_McpToolUseType'
      required:
        - type
        - id
        - input
        - name
        - server_name
      type: object
    Input_McpToolResultBlock:
      additionalProperties: true
      properties:
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        content:
          anyOf:
            - $ref: '#/components/schemas/Input_McpResultContent'
            - type: 'null'
        is_error:
          type:
            - boolean
            - 'null'
        tool_use_id:
          type: string
        type:
          $ref: '#/components/schemas/Input_McpToolResultType'
      required:
        - type
        - tool_use_id
      type: object
    Input_ContainerUploadBlock:
      additionalProperties: true
      properties:
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        file_id:
          type: string
        type:
          $ref: '#/components/schemas/Input_ContainerUploadType'
      required:
        - type
        - file_id
      type: object
    Input_CompactionBlock:
      additionalProperties: true
      properties:
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        content:
          type:
            - string
            - 'null'
        encrypted_content:
          type:
            - string
            - 'null'
        signature:
          type:
            - string
            - 'null'
        type:
          $ref: '#/components/schemas/Input_CompactionType2'
      required:
        - type
      type: object
    Input_MidConversationSystemBlock:
      additionalProperties: true
      properties:
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        content:
          items:
            $ref: '#/components/schemas/Input_MidConversationContent'
          type: array
        type:
          $ref: '#/components/schemas/Input_MidConversationSystemType'
      required:
        - type
        - content
      type: object
    Input_ToolAdditionBlock:
      additionalProperties: true
      properties:
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        tool:
          $ref: '#/components/schemas/Input_ToolAdditionReference'
        type:
          $ref: '#/components/schemas/Input_ToolAdditionType'
      required:
        - type
        - tool
      type: object
    Input_ToolRemovalBlock:
      additionalProperties: true
      properties:
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        tool:
          $ref: '#/components/schemas/Input_ToolChangeReference'
        type:
          $ref: '#/components/schemas/Input_ToolRemovalType'
      required:
        - type
        - tool
      type: object
    Input_FallbackBlock:
      additionalProperties: true
      properties:
        from:
          $ref: '#/components/schemas/Input_FallbackInfo'
        to:
          $ref: '#/components/schemas/Input_FallbackInfo'
        trigger: true
        type:
          $ref: '#/components/schemas/Input_FallbackType'
      required:
        - type
        - from
        - to
      type: object
    Input_CharCitation:
      additionalProperties: true
      properties:
        cited_text:
          type: string
        document_index:
          format: int64
          type: integer
        document_title:
          description: Required key; the reference allows null.
          type:
            - string
            - 'null'
        end_char_index:
          format: int64
          type: integer
        start_char_index:
          format: int64
          type: integer
      required:
        - cited_text
        - document_index
        - end_char_index
        - start_char_index
      type: object
    Input_PageCitation:
      additionalProperties: true
      properties:
        cited_text:
          type: string
        document_index:
          format: int64
          type: integer
        document_title:
          description: Required key; the reference allows null.
          type:
            - string
            - 'null'
        end_page_number:
          format: int64
          type: integer
        start_page_number:
          format: int64
          type: integer
      required:
        - cited_text
        - document_index
        - end_page_number
        - start_page_number
      type: object
    Input_ContentBlockCitation:
      additionalProperties: true
      properties:
        cited_text:
          type: string
        document_index:
          format: int64
          type: integer
        document_title:
          description: Required key; the reference allows null.
          type:
            - string
            - 'null'
        end_block_index:
          format: int64
          type: integer
        start_block_index:
          format: int64
          type: integer
      required:
        - cited_text
        - document_index
        - end_block_index
        - start_block_index
      type: object
    Input_WebCitation:
      additionalProperties: true
      properties:
        cited_text:
          type: string
        encrypted_index:
          type: string
        title:
          type: string
        url:
          type: string
      required:
        - cited_text
        - encrypted_index
        - title
        - url
      type: object
    Input_SearchCitation:
      additionalProperties: true
      properties:
        cited_text:
          type: string
        end_block_index:
          format: int64
          type: integer
        search_result_index:
          format: int64
          type: integer
        source:
          type: string
        start_block_index:
          format: int64
          type: integer
        title:
          type: string
      required:
        - cited_text
        - end_block_index
        - search_result_index
        - source
        - start_block_index
        - title
      type: object
    Input_ThinkingPrefixMismatchBehavior:
      enum:
        - error
        - drop_block
      type: string
    Input_ToolsetMemberConfig:
      additionalProperties: true
      properties:
        defer_loading:
          type:
            - boolean
            - 'null'
        enabled:
          type:
            - boolean
            - 'null'
      type: object
    Input_JsonSchemaType:
      enum:
        - object
      type: string
    Input_UserLocationType2:
      enum:
        - approximate
      type: string
    Output_ResponseCharCitation:
      additionalProperties: true
      properties:
        cited_text:
          type: string
        document_index:
          format: int64
          type: integer
        document_title:
          type:
            - string
            - 'null'
        end_char_index:
          format: int64
          type: integer
        file_id:
          type:
            - string
            - 'null'
        start_char_index:
          format: int64
          type: integer
        type:
          $ref: '#/components/schemas/Output_ResponseCharCitationType'
      required:
        - type
        - cited_text
        - document_index
        - end_char_index
        - start_char_index
      type: object
    Output_ResponsePageCitation:
      additionalProperties: true
      properties:
        cited_text:
          type: string
        document_index:
          format: int64
          type: integer
        document_title:
          type:
            - string
            - 'null'
        end_page_number:
          format: int64
          type: integer
        file_id:
          type:
            - string
            - 'null'
        start_page_number:
          format: int64
          type: integer
        type:
          $ref: '#/components/schemas/Output_ResponsePageCitationType'
      required:
        - type
        - cited_text
        - document_index
        - end_page_number
        - start_page_number
      type: object
    Output_ResponseContentBlockCitation:
      additionalProperties: true
      properties:
        cited_text:
          type: string
        document_index:
          format: int64
          type: integer
        document_title:
          type:
            - string
            - 'null'
        end_block_index:
          format: int64
          type: integer
        file_id:
          type:
            - string
            - 'null'
        start_block_index:
          format: int64
          type: integer
        type:
          $ref: '#/components/schemas/Output_ResponseContentBlockCitationType'
      required:
        - type
        - cited_text
        - document_index
        - end_block_index
        - start_block_index
      type: object
    Output_ResponseWebCitation:
      additionalProperties: true
      properties:
        cited_text:
          type: string
        encrypted_index:
          type: string
        title:
          type:
            - string
            - 'null'
        type:
          $ref: '#/components/schemas/Output_ResponseWebCitationType'
        url:
          type: string
      required:
        - type
        - cited_text
        - encrypted_index
        - url
      type: object
    Output_ResponseSearchCitation:
      additionalProperties: true
      properties:
        cited_text:
          type: string
        end_block_index:
          format: int64
          type: integer
        search_result_index:
          format: int64
          type: integer
        source:
          type: string
        start_block_index:
          format: int64
          type: integer
        title:
          type:
            - string
            - 'null'
        type:
          $ref: '#/components/schemas/Output_ResponseSearchCitationType'
      required:
        - type
        - cited_text
        - end_block_index
        - search_result_index
        - source
        - start_block_index
      type: object
    Output_DirectCaller2:
      additionalProperties: true
      type: object
    Output_ServerCaller:
      additionalProperties: true
      properties:
        tool_id:
          type: string
      required:
        - tool_id
      type: object
    Output_ServerCaller20260120:
      additionalProperties: true
      properties:
        tool_id:
          type: string
      required:
        - tool_id
      type: object
    Output_WebSearchError:
      additionalProperties: true
      properties:
        error_code:
          $ref: '#/components/schemas/Output_WebSearchErrorCode'
        type:
          $ref: '#/components/schemas/Output_WebSearchErrorType'
      required:
        - type
        - error_code
      type: object
    Output_ResponseWebSearchResult:
      additionalProperties: true
      properties:
        encrypted_content:
          type: string
        page_age:
          type:
            - string
            - 'null'
        title:
          type: string
        type:
          $ref: '#/components/schemas/Output_ResponseWebSearchResultType'
        url:
          type: string
      required:
        - type
        - encrypted_content
        - title
        - url
      type: object
    Output_WebFetchError:
      additionalProperties: true
      properties:
        error_code:
          $ref: '#/components/schemas/Output_WebFetchErrorCode'
        type:
          $ref: '#/components/schemas/Output_WebFetchErrorType'
      required:
        - type
        - error_code
      type: object
    Output_ResponseWebFetchResult:
      additionalProperties: true
      properties:
        content:
          $ref: '#/components/schemas/Output_ResponseDocumentBlock'
        retrieved_at:
          type:
            - string
            - 'null'
        type:
          $ref: '#/components/schemas/Output_ResponseWebFetchResultType'
        url:
          type: string
      required:
        - type
        - content
        - url
      type: object
    Output_AdvisorError:
      additionalProperties: true
      properties:
        error_code:
          $ref: '#/components/schemas/Output_AdvisorErrorCode'
        type:
          $ref: '#/components/schemas/Output_AdvisorErrorType'
      required:
        - type
        - error_code
      type: object
    Output_ResponseAdvisorResult:
      additionalProperties: true
      properties:
        stop_reason:
          type:
            - string
            - 'null'
        text:
          type: string
        type:
          $ref: '#/components/schemas/Output_ResponseAdvisorResultType'
      required:
        - type
        - text
      type: object
    Output_ResponseAdvisorRedactedResult:
      additionalProperties: true
      properties:
        encrypted_content:
          type: string
        stop_reason:
          type:
            - string
            - 'null'
        type:
          $ref: '#/components/schemas/Output_ResponseAdvisorRedactedResultType'
      required:
        - type
        - encrypted_content
      type: object
    Output_CodeExecutionError:
      additionalProperties: true
      properties:
        error_code:
          $ref: '#/components/schemas/Output_CodeExecutionErrorCode'
        type:
          $ref: '#/components/schemas/Output_CodeExecutionErrorType'
      required:
        - type
        - error_code
      type: object
    Output_CodeExecutionResult:
      additionalProperties: true
      properties:
        content:
          items:
            $ref: '#/components/schemas/Output_CodeExecutionOutput'
          type: array
        return_code:
          format: int64
          type: integer
        stderr:
          type: string
        stdout:
          type: string
        type:
          $ref: '#/components/schemas/Output_CodeExecutionResultType'
      required:
        - type
        - content
        - return_code
        - stderr
        - stdout
      type: object
    Output_EncryptedCodeExecutionResult:
      additionalProperties: true
      properties:
        content:
          items:
            $ref: '#/components/schemas/Output_CodeExecutionOutput'
          type: array
        encrypted_stdout:
          type: string
        return_code:
          format: int64
          type: integer
        stderr:
          type: string
        type:
          $ref: '#/components/schemas/Output_EncryptedCodeExecutionResultType'
      required:
        - type
        - content
        - encrypted_stdout
        - return_code
        - stderr
      type: object
    Output_BashCodeExecutionError:
      additionalProperties: true
      properties:
        error_code:
          $ref: '#/components/schemas/Output_BashCodeExecutionErrorCode'
        type:
          $ref: '#/components/schemas/Output_BashCodeExecutionErrorType'
      required:
        - type
        - error_code
      type: object
    Output_BashCodeExecutionResult:
      additionalProperties: true
      properties:
        content:
          items:
            $ref: '#/components/schemas/Output_BashCodeExecutionOutput'
          type: array
        return_code:
          format: int64
          type: integer
        stderr:
          type: string
        stdout:
          type: string
        type:
          $ref: '#/components/schemas/Output_BashCodeExecutionResultType'
      required:
        - type
        - content
        - return_code
        - stderr
        - stdout
      type: object
    Output_ResponseTextEditorError:
      additionalProperties: true
      properties:
        error_code:
          $ref: '#/components/schemas/Output_TextEditorErrorCode'
        error_message:
          type:
            - string
            - 'null'
        type:
          $ref: '#/components/schemas/Output_ResponseTextEditorErrorType'
      required:
        - type
        - error_code
      type: object
    Output_ResponseTextEditorViewResult:
      additionalProperties: true
      properties:
        content:
          type: string
        file_type:
          $ref: '#/components/schemas/Output_TextEditorFileType'
        num_lines:
          format: int64
          type:
            - integer
            - 'null'
        start_line:
          format: int64
          type:
            - integer
            - 'null'
        total_lines:
          format: int64
          type:
            - integer
            - 'null'
        type:
          $ref: '#/components/schemas/Output_ResponseTextEditorViewResultType'
      required:
        - type
        - content
        - file_type
      type: object
    Output_TextEditorCreateResult:
      additionalProperties: true
      properties:
        is_file_update:
          type: boolean
        type:
          $ref: '#/components/schemas/Output_TextEditorCreateResultType'
      required:
        - type
        - is_file_update
      type: object
    Output_ResponseTextEditorReplaceResult:
      additionalProperties: true
      properties:
        lines:
          items:
            type: string
          type:
            - array
            - 'null'
        new_lines:
          format: int64
          type:
            - integer
            - 'null'
        new_start:
          format: int64
          type:
            - integer
            - 'null'
        old_lines:
          format: int64
          type:
            - integer
            - 'null'
        old_start:
          format: int64
          type:
            - integer
            - 'null'
        type:
          $ref: '#/components/schemas/Output_ResponseTextEditorReplaceResultType'
      required:
        - type
      type: object
    Output_ResponseToolSearchError:
      additionalProperties: true
      properties:
        error_code:
          $ref: '#/components/schemas/Output_ToolSearchErrorCode'
        error_message:
          type:
            - string
            - 'null'
        type:
          $ref: '#/components/schemas/Output_ResponseToolSearchErrorType'
      required:
        - type
        - error_code
      type: object
    Output_ResponseToolSearchResults:
      additionalProperties: true
      properties:
        tool_references:
          items:
            $ref: '#/components/schemas/Output_ResponseToolReferenceBlock'
          type: array
        type:
          $ref: '#/components/schemas/Output_ResponseToolSearchResultsType'
      required:
        - type
        - tool_references
      type: object
    Output_CacheTtl:
      enum:
        - 5m
        - 1h
      type: string
    Output_CacheControlType:
      enum:
        - ephemeral
      type: string
    Output_JsonSchema:
      additionalProperties: true
      properties:
        $ref: 19aff465-03dd-4842-b166-d93f9e7b29d8
        $anchor:
          type:
            - string
            - 'null'
        $comment:
          type:
            - string
            - 'null'
        $defs: true
        $dynamicAnchor:
          type:
            - string
            - 'null'
        $dynamicRef:
          type:
            - string
            - 'null'
        $id:
          type:
            - string
            - 'null'
        $schema:
          type:
            - string
            - 'null'
        additionalProperties: true
        allOf:
          items: true
          type:
            - array
            - 'null'
        anyOf:
          items: true
          type:
            - array
            - 'null'
        const: true
        default: true
        definitions: true
        dependencies: true
        dependentRequired: true
        dependentSchemas: true
        deprecated:
          type:
            - boolean
            - 'null'
        description:
          type:
            - string
            - 'null'
        else: true
        enum:
          items: true
          type:
            - array
            - 'null'
        examples:
          items: true
          type:
            - array
            - 'null'
        if: true
        maxProperties:
          format: uint64
          minimum: 0
          type:
            - integer
            - 'null'
        minProperties:
          format: uint64
          minimum: 0
          type:
            - integer
            - 'null'
        not: true
        oneOf:
          items: true
          type:
            - array
            - 'null'
        patternProperties: true
        properties: true
        propertyNames: true
        readOnly:
          type:
            - boolean
            - 'null'
        required:
          items:
            type: string
          type:
            - array
            - 'null'
        then: true
        title:
          type:
            - string
            - 'null'
        type:
          $ref: '#/components/schemas/Output_JsonSchemaType'
        unevaluatedProperties: true
        writeOnly:
          type:
            - boolean
            - 'null'
      required:
        - type
      type: object
    Output_FallbackRefusalTriggerType:
      enum:
        - refusal
      type: string
    Output_ClearedToolsType:
      enum:
        - clear_tool_uses_20250919
      type: string
    Output_ClearedThinkingType:
      enum:
        - clear_thinking_20251015
      type: string
    Output_CacheMissModelChangedType:
      enum:
        - model_changed
      type: string
    Output_CacheMissSystemChangedType:
      enum:
        - system_changed
      type: string
    Output_CacheMissToolsChangedType:
      enum:
        - tools_changed
      type: string
    Output_CacheMissMessagesChangedType:
      enum:
        - messages_changed
      type: string
    Output_CacheMissPreviousMessageNotFoundType:
      enum:
        - previous_message_not_found
      type: string
    Output_CacheMissUnavailableType:
      enum:
        - unavailable
      type: string
    Output_FallbackRedeemed:
      additionalProperties: true
      properties:
        type:
          $ref: '#/components/schemas/Output_FallbackRedeemedType'
      required:
        - type
      type: object
    Output_FallbackNotApplied:
      additionalProperties: true
      properties:
        reason:
          $ref: '#/components/schemas/Output_FallbackNotAppliedReason'
        remove_to_redeem:
          items:
            type: string
          type:
            - array
            - 'null'
        type:
          $ref: '#/components/schemas/Output_FallbackNotAppliedType'
      required:
        - type
        - reason
      type: object
    Output_MessageIterationUsageType:
      enum:
        - message
      type: string
    Output_CompactionIterationUsageType:
      enum:
        - compaction
      type: string
    Output_AdvisorMessageIterationUsageType:
      enum:
        - advisor_message
      type: string
    Output_FallbackMessageIterationUsageType:
      enum:
        - fallback_message
      type: string
    Input_InputTokensType:
      enum:
        - input_tokens
      type: string
    Input_ToolUsesType:
      enum:
        - tool_uses
      type: string
    Input_ThinkingTurns:
      additionalProperties: true
      properties:
        type:
          $ref: '#/components/schemas/Input_ThinkingTurnsType'
        value:
          format: int64
          type: integer
      required:
        - type
        - value
      type: object
    Input_AllThinkingTurns:
      additionalProperties: true
      properties:
        type:
          $ref: '#/components/schemas/Input_AllThinkingType'
      required:
        - type
      type: object
    Input_AllStringThinkingTurns:
      enum:
        - all
      type: string
    Input_ImageSource:
      oneOf:
        - $ref: '#/components/schemas/Input_Base64Source'
          properties:
            type:
              const: base64
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_UrlSource'
          properties:
            type:
              const: url
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_FileSource'
          properties:
            type:
              const: file
              type: string
          required:
            - type
          type: object
    Input_ImageBlockType:
      enum:
        - image
      type: string
    Input_DocumentSource:
      oneOf:
        - $ref: '#/components/schemas/Input_PdfBase64Source'
          properties:
            type:
              const: base64
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_PlainTextSource'
          properties:
            type:
              const: text
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_UrlSource'
          properties:
            type:
              const: url
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_FileSource'
          properties:
            type:
              const: file
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_ContentSource'
          properties:
            type:
              const: content
              type: string
          required:
            - type
          type: object
    Input_DocumentBlockType:
      enum:
        - document
      type: string
    Input_ThinkingBlockType:
      enum:
        - thinking
      type: string
    Input_RedactedThinkingBlockType:
      enum:
        - redacted_thinking
      type: string
    Input_Caller2:
      oneOf:
        - $ref: '#/components/schemas/Input_DirectCaller2'
          properties:
            type:
              const: direct
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_ServerCaller'
          properties:
            type:
              const: code_execution_20250825
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_ServerCaller20260120'
          properties:
            type:
              const: code_execution_20260120
              type: string
          required:
            - type
          type: object
    Input_ToolUseBlockType:
      enum:
        - tool_use
      type: string
    Input_ToolResultContent:
      anyOf:
        - type: string
        - items:
            $ref: '#/components/schemas/Input_ToolResultContentBlock'
          type: array
    Input_ToolResultBlockType:
      enum:
        - tool_result
      type: string
    Input_ServerToolName:
      enum:
        - advisor
        - web_search
        - web_fetch
        - code_execution
        - bash_code_execution
        - text_editor_code_execution
        - tool_search_tool_regex
        - tool_search_tool_bm25
      type: string
    Input_ServerToolUseBlockType:
      enum:
        - server_tool_use
      type: string
    Input_SearchResultBlockType:
      enum:
        - search_result
      type: string
    Input_WebSearchResultContent:
      anyOf:
        - items:
            $ref: '#/components/schemas/Input_WebSearchResult'
          type: array
        - $ref: '#/components/schemas/Input_WebSearchError'
    Input_WebSearchToolResultType:
      enum:
        - web_search_tool_result
      type: string
    Input_WebFetchResultContent:
      anyOf:
        - $ref: '#/components/schemas/Input_WebFetchError'
        - $ref: '#/components/schemas/Input_WebFetchResult'
    Input_WebFetchToolResultType:
      enum:
        - web_fetch_tool_result
      type: string
    Input_AdvisorResultContent:
      anyOf:
        - $ref: '#/components/schemas/Input_AdvisorError'
        - $ref: '#/components/schemas/Input_AdvisorResult'
        - $ref: '#/components/schemas/Input_AdvisorRedactedResult'
    Input_AdvisorToolResultType:
      enum:
        - advisor_tool_result
      type: string
    Input_CodeExecutionResultContent:
      anyOf:
        - $ref: '#/components/schemas/Input_CodeExecutionError'
        - $ref: '#/components/schemas/Input_CodeExecutionResult'
        - $ref: '#/components/schemas/Input_EncryptedCodeExecutionResult'
    Input_CodeExecutionToolResultType:
      enum:
        - code_execution_tool_result
      type: string
    Input_BashCodeExecutionResultContent:
      anyOf:
        - $ref: '#/components/schemas/Input_BashCodeExecutionError'
        - $ref: '#/components/schemas/Input_BashCodeExecutionResult'
    Input_BashCodeExecutionToolResultType:
      enum:
        - bash_code_execution_tool_result
      type: string
    Input_TextEditorResultContent:
      anyOf:
        - $ref: '#/components/schemas/Input_TextEditorError'
        - $ref: '#/components/schemas/Input_TextEditorViewResult'
        - $ref: '#/components/schemas/Input_TextEditorCreateResult'
        - $ref: '#/components/schemas/Input_TextEditorReplaceResult'
    Input_TextEditorCodeExecutionToolResultType:
      enum:
        - text_editor_code_execution_tool_result
      type: string
    Input_ToolSearchResultContent:
      anyOf:
        - $ref: '#/components/schemas/Input_ToolSearchError'
        - $ref: '#/components/schemas/Input_ToolSearchResults'
    Input_ToolSearchToolResultType:
      enum:
        - tool_search_tool_result
      type: string
    Input_McpToolListingType:
      enum:
        - mcp_tool_listing
      type: string
    Input_McpToolUseType:
      enum:
        - mcp_tool_use
      type: string
    Input_McpResultContent:
      anyOf:
        - type: string
        - items:
            $ref: '#/components/schemas/Input_TextBlock'
          type: array
    Input_McpToolResultType:
      enum:
        - mcp_tool_result
      type: string
    Input_ContainerUploadType:
      enum:
        - container_upload
      type: string
    Input_CompactionType2:
      enum:
        - compaction
      type: string
    Input_MidConversationContent:
      anyOf:
        - $ref: '#/components/schemas/Input_TextBlock'
        - $ref: '#/components/schemas/Input_ToolAdditionBlock'
        - $ref: '#/components/schemas/Input_ToolRemovalBlock'
    Input_MidConversationSystemType:
      enum:
        - mid_conv_system
      type: string
    Input_ToolAdditionReference:
      anyOf:
        - $ref: '#/components/schemas/Input_ToolReference'
        - $ref: '#/components/schemas/Input_McpToolReference'
        - $ref: '#/components/schemas/Input_McpToolsetReference'
        - $ref: '#/components/schemas/Input_ToolDefinition'
    Input_ToolAdditionType:
      enum:
        - tool_addition
      type: string
    Input_ToolChangeReference:
      anyOf:
        - $ref: '#/components/schemas/Input_ToolReference'
        - $ref: '#/components/schemas/Input_McpToolReference'
        - $ref: '#/components/schemas/Input_McpToolsetReference'
    Input_ToolRemovalType:
      enum:
        - tool_removal
      type: string
    Input_FallbackInfo:
      additionalProperties: true
      properties:
        model:
          type: string
      required:
        - model
      type: object
    Input_FallbackType:
      enum:
        - fallback
      type: string
    Output_ResponseCharCitationType:
      enum:
        - char_location
      type: string
    Output_ResponsePageCitationType:
      enum:
        - page_location
      type: string
    Output_ResponseContentBlockCitationType:
      enum:
        - content_block_location
      type: string
    Output_ResponseWebCitationType:
      enum:
        - web_search_result_location
      type: string
    Output_ResponseSearchCitationType:
      enum:
        - search_result_location
      type: string
    Output_WebSearchErrorCode:
      enum:
        - invalid_tool_input
        - unavailable
        - max_uses_exceeded
        - too_many_requests
        - query_too_long
        - request_too_large
      type: string
    Output_WebSearchErrorType:
      enum:
        - web_search_tool_result_error
      type: string
    Output_ResponseWebSearchResultType:
      enum:
        - web_search_result
      type: string
    Output_WebFetchErrorCode:
      enum:
        - invalid_tool_input
        - url_too_long
        - url_not_allowed
        - url_not_in_prior_context
        - url_not_accessible
        - unsupported_content_type
        - too_many_requests
        - max_uses_exceeded
        - unavailable
      type: string
    Output_WebFetchErrorType:
      enum:
        - web_fetch_tool_result_error
      type: string
    Output_ResponseDocumentBlock:
      additionalProperties: true
      properties:
        citations:
          anyOf:
            - $ref: '#/components/schemas/Output_ResponseCitationConfig'
            - type: 'null'
        source:
          $ref: '#/components/schemas/Output_ResponseDocumentSource'
        title:
          type:
            - string
            - 'null'
        type:
          $ref: '#/components/schemas/Output_ResponseDocumentBlockType'
      required:
        - type
        - source
      type: object
    Output_ResponseWebFetchResultType:
      enum:
        - web_fetch_result
      type: string
    Output_AdvisorErrorCode:
      enum:
        - max_uses_exceeded
        - prompt_too_long
        - too_many_requests
        - overloaded
        - unavailable
        - execution_time_exceeded
        - model_not_found
      type: string
    Output_AdvisorErrorType:
      enum:
        - advisor_tool_result_error
      type: string
    Output_ResponseAdvisorResultType:
      enum:
        - advisor_result
      type: string
    Output_ResponseAdvisorRedactedResultType:
      enum:
        - advisor_redacted_result
      type: string
    Output_CodeExecutionErrorCode:
      enum:
        - invalid_tool_input
        - unavailable
        - too_many_requests
        - execution_time_exceeded
      type: string
    Output_CodeExecutionErrorType:
      enum:
        - code_execution_tool_result_error
      type: string
    Output_CodeExecutionOutput:
      additionalProperties: true
      properties:
        file_id:
          type: string
        type:
          $ref: '#/components/schemas/Output_CodeExecutionOutputType'
      required:
        - type
        - file_id
      type: object
    Output_CodeExecutionResultType:
      enum:
        - code_execution_result
      type: string
    Output_EncryptedCodeExecutionResultType:
      enum:
        - encrypted_code_execution_result
      type: string
    Output_BashCodeExecutionErrorCode:
      enum:
        - invalid_tool_input
        - unavailable
        - too_many_requests
        - execution_time_exceeded
        - output_file_too_large
      type: string
    Output_BashCodeExecutionErrorType:
      enum:
        - bash_code_execution_tool_result_error
      type: string
    Output_BashCodeExecutionOutput:
      additionalProperties: true
      properties:
        file_id:
          type: string
        type:
          $ref: '#/components/schemas/Output_BashCodeExecutionOutputType'
      required:
        - type
        - file_id
      type: object
    Output_BashCodeExecutionResultType:
      enum:
        - bash_code_execution_result
      type: string
    Output_TextEditorErrorCode:
      enum:
        - invalid_tool_input
        - unavailable
        - too_many_requests
        - execution_time_exceeded
        - file_not_found
      type: string
    Output_ResponseTextEditorErrorType:
      enum:
        - text_editor_code_execution_tool_result_error
      type: string
    Output_TextEditorFileType:
      enum:
        - text
        - image
        - pdf
      type: string
    Output_ResponseTextEditorViewResultType:
      enum:
        - text_editor_code_execution_view_result
      type: string
    Output_TextEditorCreateResultType:
      enum:
        - text_editor_code_execution_create_result
      type: string
    Output_ResponseTextEditorReplaceResultType:
      enum:
        - text_editor_code_execution_str_replace_result
      type: string
    Output_ToolSearchErrorCode:
      enum:
        - invalid_tool_input
        - unavailable
        - too_many_requests
        - execution_time_exceeded
      type: string
    Output_ResponseToolSearchErrorType:
      enum:
        - tool_search_tool_result_error
      type: string
    Output_ResponseToolReferenceBlock:
      additionalProperties: true
      properties:
        tool_name:
          type: string
        type:
          $ref: '#/components/schemas/Output_ResponseToolReferenceBlockType'
      required:
        - type
        - tool_name
      type: object
    Output_ResponseToolSearchResultsType:
      enum:
        - tool_search_tool_search_result
      type: string
    Output_JsonSchemaType:
      enum:
        - object
      type: string
    Output_FallbackRedeemedType:
      enum:
        - redeemed
      type: string
    Output_FallbackNotAppliedReason:
      enum:
        - body_mismatch
        - continuation_excluded
        - continuation_only
        - expired
        - invalid_target_model
        - not_enabled
        - reprice_unavailable
        - temporarily_unavailable
        - variant_fields_present
        - wrong_organization
        - wrong_platform
        - wrong_workspace
      type: string
    Output_FallbackNotAppliedType:
      enum:
        - not_applied
      type: string
    Input_ThinkingTurnsType:
      enum:
        - thinking_turns
      type: string
    Input_AllThinkingType:
      enum:
        - all
      type: string
    Input_Base64Source:
      additionalProperties: true
      properties:
        data:
          type: string
        media_type:
          $ref: '#/components/schemas/Input_ImageMediaType'
      required:
        - data
        - media_type
      type: object
    Input_UrlSource:
      additionalProperties: true
      properties:
        url:
          type: string
      required:
        - url
      type: object
    Input_FileSource:
      additionalProperties: true
      properties:
        file_id:
          type: string
      required:
        - file_id
      type: object
    Input_PdfBase64Source:
      additionalProperties: true
      properties:
        data:
          type: string
        media_type:
          $ref: '#/components/schemas/Input_PdfMediaType'
      required:
        - data
        - media_type
      type: object
    Input_PlainTextSource:
      additionalProperties: true
      properties:
        data:
          type: string
        media_type:
          $ref: '#/components/schemas/Input_TextMediaType'
      required:
        - data
        - media_type
      type: object
    Input_ContentSource:
      additionalProperties: true
      properties:
        content:
          $ref: '#/components/schemas/Input_DocumentContent'
      required:
        - content
      type: object
    Input_DirectCaller2:
      additionalProperties: true
      type: object
    Input_ServerCaller:
      additionalProperties: true
      properties:
        tool_id:
          type: string
      required:
        - tool_id
      type: object
    Input_ServerCaller20260120:
      additionalProperties: true
      properties:
        tool_id:
          type: string
      required:
        - tool_id
      type: object
    Input_ToolResultContentBlock:
      anyOf:
        - $ref: '#/components/schemas/Input_BrowserStateBlock'
        - $ref: '#/components/schemas/Input_TextBlock'
        - $ref: '#/components/schemas/Input_ImageBlock'
        - $ref: '#/components/schemas/Input_SearchResultBlock'
        - $ref: '#/components/schemas/Input_DocumentBlock'
        - $ref: '#/components/schemas/Input_ToolReferenceBlock'
    Input_WebSearchResult:
      additionalProperties: true
      properties:
        encrypted_content:
          type: string
        page_age:
          type:
            - string
            - 'null'
        title:
          type: string
        type:
          $ref: '#/components/schemas/Input_WebSearchResultType'
        url:
          type: string
      required:
        - type
        - encrypted_content
        - title
        - url
      type: object
    Input_WebSearchError:
      additionalProperties: true
      properties:
        error_code:
          $ref: '#/components/schemas/Input_WebSearchErrorCode'
        type:
          $ref: '#/components/schemas/Input_WebSearchErrorType'
      required:
        - type
        - error_code
      type: object
    Input_WebFetchError:
      additionalProperties: true
      properties:
        error_code:
          $ref: '#/components/schemas/Input_WebFetchErrorCode'
        type:
          $ref: '#/components/schemas/Input_WebFetchErrorType'
      required:
        - type
        - error_code
      type: object
    Input_WebFetchResult:
      additionalProperties: true
      properties:
        content:
          $ref: '#/components/schemas/Input_DocumentBlock'
        retrieved_at:
          type:
            - string
            - 'null'
        type:
          $ref: '#/components/schemas/Input_WebFetchResultType'
        url:
          type: string
      required:
        - type
        - content
        - url
      type: object
    Input_AdvisorError:
      additionalProperties: true
      properties:
        error_code:
          $ref: '#/components/schemas/Input_AdvisorErrorCode'
        type:
          $ref: '#/components/schemas/Input_AdvisorErrorType'
      required:
        - type
        - error_code
      type: object
    Input_AdvisorResult:
      additionalProperties: true
      properties:
        stop_reason:
          type:
            - string
            - 'null'
        text:
          type: string
        type:
          $ref: '#/components/schemas/Input_AdvisorResultType'
      required:
        - type
        - text
      type: object
    Input_AdvisorRedactedResult:
      additionalProperties: true
      properties:
        encrypted_content:
          type: string
        stop_reason:
          type:
            - string
            - 'null'
        type:
          $ref: '#/components/schemas/Input_AdvisorRedactedResultType'
      required:
        - type
        - encrypted_content
      type: object
    Input_CodeExecutionError:
      additionalProperties: true
      properties:
        error_code:
          $ref: '#/components/schemas/Input_CodeExecutionErrorCode'
        type:
          $ref: '#/components/schemas/Input_CodeExecutionErrorType'
      required:
        - type
        - error_code
      type: object
    Input_CodeExecutionResult:
      additionalProperties: true
      properties:
        content:
          items:
            $ref: '#/components/schemas/Input_CodeExecutionOutput'
          type: array
        return_code:
          format: int64
          type: integer
        stderr:
          type: string
        stdout:
          type: string
        type:
          $ref: '#/components/schemas/Input_CodeExecutionResultType'
      required:
        - type
        - content
        - return_code
        - stderr
        - stdout
      type: object
    Input_EncryptedCodeExecutionResult:
      additionalProperties: true
      properties:
        content:
          items:
            $ref: '#/components/schemas/Input_CodeExecutionOutput'
          type: array
        encrypted_stdout:
          type: string
        return_code:
          format: int64
          type: integer
        stderr:
          type: string
        type:
          $ref: '#/components/schemas/Input_EncryptedCodeExecutionResultType'
      required:
        - type
        - content
        - encrypted_stdout
        - return_code
        - stderr
      type: object
    Input_BashCodeExecutionError:
      additionalProperties: true
      properties:
        error_code:
          $ref: '#/components/schemas/Input_BashCodeExecutionErrorCode'
        type:
          $ref: '#/components/schemas/Input_BashCodeExecutionErrorType'
      required:
        - type
        - error_code
      type: object
    Input_BashCodeExecutionResult:
      additionalProperties: true
      properties:
        content:
          items:
            $ref: '#/components/schemas/Input_BashCodeExecutionOutput'
          type: array
        return_code:
          format: int64
          type: integer
        stderr:
          type: string
        stdout:
          type: string
        type:
          $ref: '#/components/schemas/Input_BashCodeExecutionResultType'
      required:
        - type
        - content
        - return_code
        - stderr
        - stdout
      type: object
    Input_TextEditorError:
      additionalProperties: true
      properties:
        error_code:
          $ref: '#/components/schemas/Input_TextEditorErrorCode'
        error_message:
          type:
            - string
            - 'null'
        type:
          $ref: '#/components/schemas/Input_TextEditorErrorType'
      required:
        - type
        - error_code
      type: object
    Input_TextEditorViewResult:
      additionalProperties: true
      properties:
        content:
          type: string
        file_type:
          $ref: '#/components/schemas/Input_TextEditorFileType'
        num_lines:
          format: int64
          type:
            - integer
            - 'null'
        start_line:
          format: int64
          type:
            - integer
            - 'null'
        total_lines:
          format: int64
          type:
            - integer
            - 'null'
        type:
          $ref: '#/components/schemas/Input_TextEditorViewResultType'
      required:
        - type
        - content
        - file_type
      type: object
    Input_TextEditorCreateResult:
      additionalProperties: true
      properties:
        is_file_update:
          type: boolean
        type:
          $ref: '#/components/schemas/Input_TextEditorCreateResultType'
      required:
        - type
        - is_file_update
      type: object
    Input_TextEditorReplaceResult:
      additionalProperties: true
      properties:
        lines:
          items:
            type: string
          type:
            - array
            - 'null'
        new_lines:
          format: int64
          type:
            - integer
            - 'null'
        new_start:
          format: int64
          type:
            - integer
            - 'null'
        old_lines:
          format: int64
          type:
            - integer
            - 'null'
        old_start:
          format: int64
          type:
            - integer
            - 'null'
        type:
          $ref: '#/components/schemas/Input_TextEditorReplaceResultType'
      required:
        - type
      type: object
    Input_ToolSearchError:
      additionalProperties: true
      properties:
        error_code:
          $ref: '#/components/schemas/Input_ToolSearchErrorCode'
        error_message:
          type:
            - string
            - 'null'
        type:
          $ref: '#/components/schemas/Input_ToolSearchErrorType'
      required:
        - type
        - error_code
      type: object
    Input_ToolSearchResults:
      additionalProperties: true
      properties:
        tool_references:
          items:
            $ref: '#/components/schemas/Input_ToolReferenceBlock'
          type: array
        type:
          $ref: '#/components/schemas/Input_ToolSearchResultsType'
      required:
        - type
        - tool_references
      type: object
    Input_ToolReference:
      additionalProperties: true
      properties:
        name:
          type: string
        type:
          $ref: '#/components/schemas/Input_ToolReferenceType'
      required:
        - name
        - type
      type: object
    Input_McpToolReference:
      additionalProperties: true
      properties:
        name:
          type: string
        server_name:
          type: string
        type:
          $ref: '#/components/schemas/Input_McpToolReferenceType'
      required:
        - name
        - server_name
        - type
      type: object
    Input_McpToolsetReference:
      additionalProperties: true
      properties:
        server_name:
          type: string
        type:
          $ref: '#/components/schemas/Input_McpToolsetReferenceType'
      required:
        - server_name
        - type
      type: object
    Input_ToolDefinition:
      additionalProperties: true
      properties:
        definition:
          $ref: '#/components/schemas/Input_ToolUnion'
        type:
          $ref: '#/components/schemas/Input_ToolDefinitionType'
      required:
        - type
        - definition
      type: object
    Output_ResponseCitationConfig:
      additionalProperties: true
      properties:
        enabled:
          type: boolean
      required:
        - enabled
      type: object
    Output_ResponseDocumentSource:
      oneOf:
        - $ref: '#/components/schemas/Output_PdfBase64Source'
          properties:
            type:
              const: base64
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Output_PlainTextSource'
          properties:
            type:
              const: text
              type: string
          required:
            - type
          type: object
    Output_ResponseDocumentBlockType:
      enum:
        - document
      type: string
    Output_CodeExecutionOutputType:
      enum:
        - code_execution_output
      type: string
    Output_BashCodeExecutionOutputType:
      enum:
        - bash_code_execution_output
      type: string
    Output_ResponseToolReferenceBlockType:
      enum:
        - tool_reference
      type: string
    Input_ImageMediaType:
      enum:
        - image/jpeg
        - image/png
        - image/gif
        - image/webp
      type: string
    Input_PdfMediaType:
      enum:
        - application/pdf
      type: string
    Input_TextMediaType:
      enum:
        - text/plain
      type: string
    Input_DocumentContent:
      anyOf:
        - type: string
        - items:
            $ref: '#/components/schemas/Input_DocumentContentBlock'
          type: array
    Input_BrowserStateBlock:
      additionalProperties: true
      properties:
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        state_changes:
          items:
            $ref: '#/components/schemas/Input_BrowserStateChange'
          type:
            - array
            - 'null'
        tabs:
          items:
            $ref: '#/components/schemas/Input_BrowserStateTab'
          type: array
        type:
          $ref: '#/components/schemas/Input_BrowserStateType'
      required:
        - type
        - tabs
      type: object
    Input_ToolReferenceBlock:
      additionalProperties: true
      properties:
        cache_control:
          anyOf:
            - $ref: '#/components/schemas/Input_CacheControl'
            - type: 'null'
        tool_name:
          type: string
        type:
          $ref: '#/components/schemas/Input_ToolReferenceBlockType'
      required:
        - type
        - tool_name
      type: object
    Input_WebSearchResultType:
      enum:
        - web_search_result
      type: string
    Input_WebSearchErrorCode:
      enum:
        - invalid_tool_input
        - unavailable
        - max_uses_exceeded
        - too_many_requests
        - query_too_long
        - request_too_large
      type: string
    Input_WebSearchErrorType:
      enum:
        - web_search_tool_result_error
      type: string
    Input_WebFetchErrorCode:
      enum:
        - invalid_tool_input
        - url_too_long
        - url_not_allowed
        - url_not_in_prior_context
        - url_not_accessible
        - unsupported_content_type
        - too_many_requests
        - max_uses_exceeded
        - unavailable
      type: string
    Input_WebFetchErrorType:
      enum:
        - web_fetch_tool_result_error
      type: string
    Input_WebFetchResultType:
      enum:
        - web_fetch_result
      type: string
    Input_AdvisorErrorCode:
      enum:
        - max_uses_exceeded
        - prompt_too_long
        - too_many_requests
        - overloaded
        - unavailable
        - execution_time_exceeded
        - model_not_found
      type: string
    Input_AdvisorErrorType:
      enum:
        - advisor_tool_result_error
      type: string
    Input_AdvisorResultType:
      enum:
        - advisor_result
      type: string
    Input_AdvisorRedactedResultType:
      enum:
        - advisor_redacted_result
      type: string
    Input_CodeExecutionErrorCode:
      enum:
        - invalid_tool_input
        - unavailable
        - too_many_requests
        - execution_time_exceeded
      type: string
    Input_CodeExecutionErrorType:
      enum:
        - code_execution_tool_result_error
      type: string
    Input_CodeExecutionOutput:
      additionalProperties: true
      properties:
        file_id:
          type: string
        type:
          $ref: '#/components/schemas/Input_CodeExecutionOutputType'
      required:
        - type
        - file_id
      type: object
    Input_CodeExecutionResultType:
      enum:
        - code_execution_result
      type: string
    Input_EncryptedCodeExecutionResultType:
      enum:
        - encrypted_code_execution_result
      type: string
    Input_BashCodeExecutionErrorCode:
      enum:
        - invalid_tool_input
        - unavailable
        - too_many_requests
        - execution_time_exceeded
        - output_file_too_large
      type: string
    Input_BashCodeExecutionErrorType:
      enum:
        - bash_code_execution_tool_result_error
      type: string
    Input_BashCodeExecutionOutput:
      additionalProperties: true
      properties:
        file_id:
          type: string
        type:
          $ref: '#/components/schemas/Input_BashCodeExecutionOutputType'
      required:
        - type
        - file_id
      type: object
    Input_BashCodeExecutionResultType:
      enum:
        - bash_code_execution_result
      type: string
    Input_TextEditorErrorCode:
      enum:
        - invalid_tool_input
        - unavailable
        - too_many_requests
        - execution_time_exceeded
        - file_not_found
      type: string
    Input_TextEditorErrorType:
      enum:
        - text_editor_code_execution_tool_result_error
      type: string
    Input_TextEditorFileType:
      enum:
        - text
        - image
        - pdf
      type: string
    Input_TextEditorViewResultType:
      enum:
        - text_editor_code_execution_view_result
      type: string
    Input_TextEditorCreateResultType:
      enum:
        - text_editor_code_execution_create_result
      type: string
    Input_TextEditorReplaceResultType:
      enum:
        - text_editor_code_execution_str_replace_result
      type: string
    Input_ToolSearchErrorCode:
      enum:
        - invalid_tool_input
        - unavailable
        - too_many_requests
        - execution_time_exceeded
      type: string
    Input_ToolSearchErrorType:
      enum:
        - tool_search_tool_result_error
      type: string
    Input_ToolSearchResultsType:
      enum:
        - tool_search_tool_search_result
      type: string
    Input_ToolReferenceType:
      enum:
        - tool_reference
      type: string
    Input_McpToolReferenceType:
      enum:
        - mcp_tool_reference
      type: string
    Input_McpToolsetReferenceType:
      enum:
        - mcp_toolset_reference
      type: string
    Input_ToolDefinitionType:
      enum:
        - tool_definition
      type: string
    Output_PdfBase64Source:
      additionalProperties: true
      properties:
        data:
          type: string
        media_type:
          $ref: '#/components/schemas/Output_PdfMediaType'
      required:
        - data
        - media_type
      type: object
    Output_PlainTextSource:
      additionalProperties: true
      properties:
        data:
          type: string
        media_type:
          $ref: '#/components/schemas/Output_TextMediaType'
      required:
        - data
        - media_type
      type: object
    Input_DocumentContentBlock:
      anyOf:
        - $ref: '#/components/schemas/Input_TextBlock'
        - $ref: '#/components/schemas/Input_ImageBlock'
    Input_BrowserStateChange:
      oneOf:
        - $ref: '#/components/schemas/Input_BrowserTabOpened'
          properties:
            type:
              const: tab_opened
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_BrowserDownloadStarted'
          properties:
            type:
              const: download_started
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_BrowserDownloadCompleted'
          properties:
            type:
              const: download_completed
              type: string
          required:
            - type
          type: object
        - $ref: '#/components/schemas/Input_BrowserDownloadFailed'
          properties:
            type:
              const: download_failed
              type: string
          required:
            - type
          type: object
    Input_BrowserStateTab:
      additionalProperties: true
      properties:
        active:
          type:
            - boolean
            - 'null'
        tab_id:
          type: string
        title:
          type: string
        url:
          type: string
      required:
        - tab_id
        - title
        - url
      type: object
    Input_BrowserStateType:
      enum:
        - browser_state
      type: string
    Input_ToolReferenceBlockType:
      enum:
        - tool_reference
      type: string
    Input_CodeExecutionOutputType:
      enum:
        - code_execution_output
      type: string
    Input_BashCodeExecutionOutputType:
      enum:
        - bash_code_execution_output
      type: string
    Output_PdfMediaType:
      enum:
        - application/pdf
      type: string
    Output_TextMediaType:
      enum:
        - text/plain
      type: string
    Input_BrowserTabOpened:
      additionalProperties: true
      properties:
        tab_id:
          type: string
      required:
        - tab_id
      type: object
    Input_BrowserDownloadStarted:
      additionalProperties: true
      properties:
        download_id:
          type: string
        url:
          type: string
      required:
        - download_id
        - url
      type: object
    Input_BrowserDownloadCompleted:
      additionalProperties: true
      properties:
        download_id:
          type: string
        path:
          type:
            - string
            - 'null'
        size_bytes:
          format: uint64
          minimum: 0
          type:
            - integer
            - 'null'
        url:
          type: string
      required:
        - download_id
        - url
      type: object
    Input_BrowserDownloadFailed:
      additionalProperties: true
      properties:
        download_id:
          type: string
        error:
          type:
            - string
            - 'null'
        url:
          type: string
      required:
        - download_id
        - url
      type: object
  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

- [POST /v1/messages/count_tokens](https://gproxy.leenhawk.com/api-reference/forwarding/post-v1messagescount_tokens.md)
- [Routing & Endpoints](https://gproxy.leenhawk.com/reference/routing-table.md)
- [POST /v1/chat/completions](https://gproxy.leenhawk.com/api-reference/forwarding/post-v1chatcompletions.md)
- [POST /v1/videos](https://gproxy.leenhawk.com/api-reference/forwarding/post-v1videos.md)
- [POST /v1/embeddings](https://gproxy.leenhawk.com/api-reference/forwarding/post-v1embeddings.md)


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