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

# Create a Message

> Send a structured list of input messages with text and/or image content, and the model will generate the next message in the conversation.

The Messages API can be used for either single queries or stateless multi-turn conversations.

Learn more about the Messages API in our [user guide](https://docs.claude.com/en/docs/initial-setup)



## OpenAPI

````yaml /openapi.json post /v1/messages
openapi: 3.1.0
info:
  title: AIHubMix Gateway API
  description: |
    Unified multi-protocol gateway. Exposes three native shapes side-by-side:
      - OpenAI (`/v1/chat/completions`, `/v1/responses`, ...)
      - Anthropic (`/v1/messages`)
      - Gemini (`/v1beta/models/{model}:generateContent`)
    Each vendor's native SDK connects directly. Gateway-only fields are
    marked with `x-source.authority: gateway`.
  contact:
    name: AIHubMix Team
  version: 2.1.1
  x-upstream:
    vendorSpecs:
      packageVersion: 0.1.1
      installedFrom: npm
    sources:
      openai/official:
        version: '2026-05-31'
        hash: >-
          sha256:a203971a0bc0cd3b903b9488e3ac40eaa161a274dfaf172c1da73eee029147a8
      anthropic/official:
        version: '2026-05-31'
        hash: >-
          sha256:f9d488f9290d78a081bed62fa0c040476b5d009f3db92c06c8e279e69df73fc9
    layers:
      - role: L0-base
        source: avs://openai/official
        protocol: openai
        authority: official
      - role: L0-base
        source: avs://anthropic/official
        protocol: anthropic
        authority: official
      - role: gateway-other
        source: gateway/anthropic-mappings.yml
        protocol: all
        authority: gateway
      - role: horizontal-auth
        source: gateway/auth.yml
        protocol: all
        authority: gateway
      - role: horizontal-errors
        source: gateway/errors.yml
        protocol: all
        authority: gateway
      - role: L3-gateway
        source: gateway/openai-gateway.yml
        protocol: openai
        authority: gateway
      - role: gateway-other
        source: gateway/openai-image-mappings.yml
        protocol: all
        authority: gateway
      - role: gateway-other
        source: gateway/openai-mappings.yml
        protocol: all
        authority: gateway
      - role: L2-passthrough
        source: gateway/openai-passthrough.yml
        protocol: openai
        authority: gateway
servers:
  - url: https://aihubmix.com
    description: Production
  - url: https://api.inferera.com
    description: Backup (use when the primary domain is unreachable)
security:
  - gatewayBearer: []
tags:
  - name: OpenAI Compatible
    description: >-
      OpenAI-compatible endpoints (chat, completions, embeddings, images, audio,
      videos, moderations).
  - name: Anthropic Compatible
    description: Anthropic-native endpoints (messages with Anthropic protocol).
  - name: Google Vertex AI Compatible
    description: Google Gemini / Vertex AI endpoints.
paths:
  /v1/messages:
    post:
      tags:
        - Anthropic Compatible
      summary: Create a Message
      description: >-
        Send a structured list of input messages with text and/or image content,
        and the model will generate the next message in the conversation.


        The Messages API can be used for either single queries or stateless
        multi-turn conversations.


        Learn more about the Messages API in our [user
        guide](https://docs.claude.com/en/docs/initial-setup)
      operationId: messages_post
      parameters:
        - name: anthropic-version
          in: header
          required: false
          schema:
            type: string
            description: >-
              The version of the Claude API you want to use.


              Read more about versioning and our version history
              [here](https://docs.claude.com/en/api/versioning).
            title: Anthropic-Version
          description: >-
            The version of the Claude API you want to use.


            Read more about versioning and our version history
            [here](https://docs.claude.com/en/api/versioning).
          x-source:
            from: avs://anthropic/official
            authority: official
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AnthropicCreateMessageParams'
        required: true
      responses:
        '200':
          description: Message object.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AnthropicMessage'
            text/event-stream:
              schema:
                $ref: '#/components/schemas/AnthropicMessageStreamEvent'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
        '401':
          description: Authentication failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
        '403':
          description: Permission denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
        5XX:
          description: Server / upstream error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
      security:
        - gatewayAnthropicKey: []
        - gatewayBearer: []
components:
  schemas:
    AnthropicCreateMessageParams:
      additionalProperties: false
      example:
        max_tokens: 1024
        messages:
          - content: Hello, world
            role: user
        model: claude-opus-4-6
      properties:
        model:
          $ref: '#/components/schemas/AnthropicModel'
        messages:
          description: >-
            Input messages.


            Our models are trained to operate on alternating `user` and
            `assistant` conversational turns. When creating a new `Message`, you
            specify the prior conversational turns with the `messages`
            parameter, and the model then generates the next `Message` in the
            conversation. Consecutive `user` or `assistant` turns in your
            request will be combined into a single turn.


            Each input message must be an object with a `role` and `content`.
            You can specify a single `user`-role message, or you can include
            multiple `user` and `assistant` messages.


            If the final message uses the `assistant` role, the response content
            will continue immediately from the content in that message. This can
            be used to constrain part of the model's response.


            Example with a single `user` message:


            ```json

            [{"role": "user", "content": "Hello, Claude"}]

            ```


            Example with multiple conversational turns:


            ```json

            [
              {"role": "user", "content": "Hello there."},
              {"role": "assistant", "content": "Hi, I'm Claude. How can I help you?"},
              {"role": "user", "content": "Can you explain LLMs in plain English?"},
            ]

            ```


            Example with a partially-filled response from Claude:


            ```json

            [
              {"role": "user", "content": "What's the Greek name for Sun? (A) Sol (B) Helios (C) Sun"},
              {"role": "assistant", "content": "The best answer is ("},
            ]

            ```


            Each input message `content` may be either a single `string` or an
            array of content blocks, where each block has a specific `type`.
            Using a `string` for `content` is shorthand for an array of one
            content block of type `"text"`. The following input messages are
            equivalent:


            ```json

            {"role": "user", "content": "Hello, Claude"}

            ```


            ```json

            {"role": "user", "content": [{"type": "text", "text": "Hello,
            Claude"}]}

            ```


            See [input
            examples](https://docs.claude.com/en/api/messages-examples).


            Note that if you want to include a [system
            prompt](https://docs.claude.com/en/docs/system-prompts), you can use
            the top-level `system` parameter — there is no `"system"` role for
            input messages in the Messages API.


            There is a limit of 100,000 messages in a single request.
          items:
            $ref: '#/components/schemas/AnthropicInputMessage'
          title: Messages
          type: array
          x-providers:
            openai:
              transform: anthropic_messages_to_openai_messages
            azure:
              transform: anthropic_messages_to_openai_messages
            gemini:
              to:
                - contents
              transform: anthropic_messages_to_gemini_contents
            vertex:
              to:
                - contents
              transform: anthropic_messages_to_gemini_contents
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/AnthropicCacheControlEphemeral'
            - type: 'null'
          description: >-
            Top-level cache control automatically applies a cache_control marker
            to the last cacheable block in the request.
          title: Cache Control
          x-providers-default: drop
          x-providers:
            anthropic: {}
            bedrock: {}
        container:
          anyOf:
            - type: string
            - type: 'null'
          description: Container identifier for reuse across requests.
          title: Container
          x-providers-default: drop
          x-providers:
            anthropic: {}
            bedrock: {}
        inference_geo:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Specifies the geographic region for inference processing. If not
            specified, the workspace's `default_inference_geo` is used.
          title: Inference Geo
          x-providers-default: drop
          x-providers:
            anthropic: {}
        max_tokens:
          description: >-
            The maximum number of tokens to generate before stopping.


            Note that our models may stop _before_ reaching this maximum. This
            parameter only specifies the absolute maximum number of tokens to
            generate.


            Set to `0` to populate the [prompt
            cache](https://docs.claude.com/en/docs/build-with-claude/prompt-caching#pre-warming-the-cache)
            without generating a response.


            Different models have different maximum values for this parameter. 
            See [models](https://docs.claude.com/en/docs/models-overview) for
            details.
          examples:
            - 1024
          minimum: 0
          title: Max Tokens
          type: integer
          x-providers:
            gemini:
              to:
                - generationConfig
                - maxOutputTokens
            vertex:
              to:
                - generationConfig
                - maxOutputTokens
        metadata:
          $ref: '#/components/schemas/AnthropicMetadata'
          description: An object describing metadata about the request.
        output_config:
          $ref: '#/components/schemas/AnthropicOutputConfig'
          description: >-
            Configuration options for the model's output, such as the output
            format.
          x-providers-default: drop
          x-providers:
            anthropic: {}
        service_tier:
          description: >-
            Determines whether to use priority capacity (if available) or
            standard capacity for this request.


            Anthropic offers different levels of service for your API requests.
            See [service-tiers](https://docs.claude.com/en/api/service-tiers)
            for details.
          enum:
            - auto
            - standard_only
          title: Service Tier
          type: string
          x-providers-default: drop
          x-providers:
            anthropic: {}
            bedrock: {}
        stop_sequences:
          description: >-
            Custom text sequences that will cause the model to stop generating.


            Our models will normally stop when they have naturally completed
            their turn, which will result in a response `stop_reason` of
            `"end_turn"`.


            If you want the model to stop generating when it encounters custom
            strings of text, you can use the `stop_sequences` parameter. If the
            model encounters one of the custom sequences, the response
            `stop_reason` value will be `"stop_sequence"` and the response
            `stop_sequence` value will contain the matched stop sequence.
          items:
            type: string
          title: Stop Sequences
          type: array
          x-providers:
            openai:
              to:
                - stop
            azure:
              to:
                - stop
            gemini:
              to:
                - generationConfig
                - stopSequences
            vertex:
              to:
                - generationConfig
                - stopSequences
        stream:
          description: >-
            Whether to incrementally stream the response using server-sent
            events.


            See [streaming](https://docs.claude.com/en/api/messages-streaming)
            for details.
          title: Stream
          type: boolean
        system:
          anyOf:
            - type: string
            - items:
                $ref: '#/components/schemas/AnthropicRequestTextBlock'
              type: array
          description: >-
            System prompt.


            A system prompt is a way of providing context and instructions to
            Claude, such as specifying a particular goal or role. See our [guide
            to system prompts](https://docs.claude.com/en/docs/system-prompts).
          examples:
            - - text: Today's date is 2024-06-01.
                type: text
            - Today's date is 2023-01-01.
          title: System
          x-providers-default: drop
          x-providers:
            anthropic: {}
            bedrock: {}
            openai:
              transform: anthropic_system_to_openai_system_message
            azure:
              transform: anthropic_system_to_openai_system_message
            gemini:
              to:
                - systemInstruction
              transform: anthropic_system_to_gemini_system_instruction
            vertex:
              to:
                - systemInstruction
              transform: anthropic_system_to_gemini_system_instruction
        temperature:
          deprecated: true
          description: >-
            Amount of randomness injected into the response.


            Defaults to `1.0`. Ranges from `0.0` to `1.0`. Use `temperature`
            closer to `0.0` for analytical / multiple choice, and closer to
            `1.0` for creative and generative tasks.


            Note that even with `temperature` of `0.0`, the results will not be
            fully deterministic.
          examples:
            - 1
          maximum: 1
          minimum: 0
          title: Temperature
          type: number
          x-providers:
            gemini:
              to:
                - generationConfig
                - temperature
            vertex:
              to:
                - generationConfig
                - temperature
        thinking:
          $ref: '#/components/schemas/AnthropicThinkingConfigParam'
          x-providers-default: drop
          x-providers:
            anthropic: {}
            bedrock: {}
        tool_choice:
          $ref: '#/components/schemas/AnthropicToolChoice'
          x-providers:
            openai:
              transform: anthropic_tool_choice_to_openai_tool_choice
            azure:
              transform: anthropic_tool_choice_to_openai_tool_choice
            gemini:
              to:
                - toolConfig
              transform: anthropic_tool_choice_to_gemini_tool_config
            vertex:
              to:
                - toolConfig
              transform: anthropic_tool_choice_to_gemini_tool_config
        tools:
          description: >-
            Definitions of tools that the model may use.


            If you include `tools` in your API request, the model may return
            `tool_use` content blocks that represent the model's use of those
            tools. You can then run those tools using the tool input generated
            by the model and then optionally return results back to the model
            using `tool_result` content blocks.


            There are two types of tools: **client tools** and **server tools**.
            The behavior described below applies to client tools. For [server
            tools](https://docs.claude.com/en/docs/agents-and-tools/tool-use/overview\#server-tools),
            see their individual documentation as each has its own behavior
            (e.g., the [web search
            tool](https://docs.claude.com/en/docs/agents-and-tools/tool-use/web-search-tool)).


            Each tool definition includes:


            * `name`: Name of the tool.

            * `description`: Optional, but strongly-recommended description of
            the tool.

            * `input_schema`: [JSON
            schema](https://json-schema.org/draft/2020-12) for the tool `input`
            shape that the model will produce in `tool_use` output content
            blocks.


            For example, if you defined `tools` as:


            ```json

            [
              {
                "name": "get_stock_price",
                "description": "Get the current stock price for a given ticker symbol.",
                "input_schema": {
                  "type": "object",
                  "properties": {
                    "ticker": {
                      "type": "string",
                      "description": "The stock ticker symbol, e.g. AAPL for Apple Inc."
                    }
                  },
                  "required": ["ticker"]
                }
              }
            ]

            ```


            And then asked the model "What's the S&P 500 at today?", the model
            might produce `tool_use` content blocks in the response like this:


            ```json

            [
              {
                "type": "tool_use",
                "id": "toolu_01D7FLrfh4GYq7yT1ULFeyMV",
                "name": "get_stock_price",
                "input": { "ticker": "^GSPC" }
              }
            ]

            ```


            You might then run your `get_stock_price` tool with `{"ticker":
            "^GSPC"}` as an input, and return the following back to the model in
            a subsequent `user` message:


            ```json

            [
              {
                "type": "tool_result",
                "tool_use_id": "toolu_01D7FLrfh4GYq7yT1ULFeyMV",
                "content": "259.75 USD"
              }
            ]

            ```


            Tools can be used for workflows that include running client-side
            tools and functions, or more generally whenever you want the model
            to produce a particular JSON structure of output.


            See our [guide](https://docs.claude.com/en/docs/tool-use) for more
            details.
          examples:
            - description: Get the current weather in a given location
              input_schema:
                properties:
                  location:
                    description: The city and state, e.g. San Francisco, CA
                    type: string
                  unit:
                    description: Unit for the output - one of (celsius, fahrenheit)
                    type: string
                required:
                  - location
                type: object
              name: get_weather
          items:
            oneOf:
              - $ref: '#/components/schemas/AnthropicTool'
              - $ref: '#/components/schemas/AnthropicBashTool_20250124'
              - $ref: '#/components/schemas/AnthropicCodeExecutionTool_20250522'
              - $ref: '#/components/schemas/AnthropicCodeExecutionTool_20250825'
              - $ref: '#/components/schemas/AnthropicCodeExecutionTool_20260120'
              - $ref: '#/components/schemas/AnthropicMemoryTool_20250818'
              - $ref: '#/components/schemas/AnthropicTextEditor_20250124'
              - $ref: '#/components/schemas/AnthropicTextEditor_20250429'
              - $ref: '#/components/schemas/AnthropicTextEditor_20250728'
              - $ref: '#/components/schemas/AnthropicWebSearchTool_20250305'
              - $ref: '#/components/schemas/AnthropicWebFetchTool_20250910'
              - $ref: '#/components/schemas/AnthropicWebSearchTool_20260209'
              - $ref: '#/components/schemas/AnthropicWebFetchTool_20260209'
              - $ref: '#/components/schemas/AnthropicWebFetchTool_20260309'
              - $ref: '#/components/schemas/AnthropicToolSearchToolBM25_20251119'
              - $ref: '#/components/schemas/AnthropicToolSearchToolRegex_20251119'
          title: Tools
          type: array
          x-providers:
            openai:
              transform: anthropic_tools_to_openai_tools
            azure:
              transform: anthropic_tools_to_openai_tools
            gemini:
              to:
                - tools
              transform: anthropic_tools_to_gemini_tools
            vertex:
              to:
                - tools
              transform: anthropic_tools_to_gemini_tools
        top_k:
          deprecated: true
          description: >-
            Only sample from the top K options for each subsequent token.


            Used to remove "long tail" low probability responses. [Learn more
            technical details
            here](https://towardsdatascience.com/how-to-sample-from-language-models-682bceb97277).


            Recommended for advanced use cases only.
          examples:
            - 5
          minimum: 0
          title: Top K
          type: integer
          x-providers-default: drop
          x-providers:
            anthropic: {}
            bedrock: {}
            cohere: {}
            gemini:
              to:
                - generationConfig
                - topK
            vertex:
              to:
                - generationConfig
                - topK
        top_p:
          deprecated: true
          description: >-
            Use nucleus sampling.


            In nucleus sampling, we compute the cumulative distribution over all
            the options for each subsequent token in decreasing probability
            order and cut it off once it reaches a particular probability
            specified by `top_p`.


            Recommended for advanced use cases only.
          examples:
            - 0.7
          maximum: 1
          minimum: 0
          title: Top P
          type: number
          x-providers:
            gemini:
              to:
                - generationConfig
                - topP
            vertex:
              to:
                - generationConfig
                - topP
      required:
        - model
        - messages
        - max_tokens
      title: CreateMessageParams
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicMessage:
      examples:
        - content:
            - citations: null
              text: Hi! My name is Claude.
              type: text
          id: msg_013Zva2CMHLNnXjNJJKqJ2EF
          model: claude-opus-4-6
          role: assistant
          stop_details: null
          stop_reason: end_turn
          stop_sequence: null
          type: message
          usage:
            input_tokens: 2095
            output_tokens: 503
      properties:
        id:
          description: |-
            Unique object identifier.

            The format and length of IDs may change over time.
          examples:
            - msg_013Zva2CMHLNnXjNJJKqJ2EF
          title: Id
          type: string
        type:
          const: message
          default: message
          description: |-
            Object type.

            For Messages, this is always `"message"`.
          title: Type
          type: string
        role:
          const: assistant
          default: assistant
          description: |-
            Conversational role of the generated message.

            This will always be `"assistant"`.
          title: Role
          type: string
        content:
          description: >-
            Content generated by the model.


            This is an array of content blocks, each of which has a `type` that
            determines its shape.


            Example:


            ```json

            [{"type": "text", "text": "Hi, I'm Claude."}]

            ```


            If the request input `messages` ended with an `assistant` turn, then
            the response `content` will continue directly from that last turn.
            You can use this to constrain the model's output.


            For example, if the input `messages` were:

            ```json

            [
              {"role": "user", "content": "What's the Greek name for Sun? (A) Sol (B) Helios (C) Sun"},
              {"role": "assistant", "content": "The best answer is ("}
            ]

            ```


            Then the response `content` might be:


            ```json

            [{"type": "text", "text": "B)"}]

            ```
          examples:
            - - citations: null
                text: Hi! My name is Claude.
                type: text
          items:
            $ref: '#/components/schemas/AnthropicContentBlock'
          title: Content
          type: array
        model:
          $ref: '#/components/schemas/AnthropicModel'
        stop_reason:
          anyOf:
            - $ref: '#/components/schemas/AnthropicStopReason'
            - type: 'null'
          description: >-
            The reason that we stopped.


            This may be one the following values:

            * `"end_turn"`: the model reached a natural stopping point

            * `"max_tokens"`: we exceeded the requested `max_tokens` or the
            model's maximum

            * `"stop_sequence"`: one of your provided custom `stop_sequences`
            was generated

            * `"tool_use"`: the model invoked one or more tools

            * `"pause_turn"`: we paused a long-running turn. You may provide the
            response back as-is in a subsequent request to let the model
            continue.

            * `"refusal"`: when streaming classifiers intervene to handle
            potential policy violations


            In non-streaming mode this value is always non-null. In streaming
            mode, it is null in the `message_start` event and non-null
            otherwise.
          title: Stop Reason
        stop_sequence:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            Which custom stop sequence was generated, if any.


            This value will be a non-null string if one of your custom stop
            sequences was generated.
          title: Stop Sequence
        stop_details:
          anyOf:
            - $ref: '#/components/schemas/AnthropicRefusalStopDetails'
            - type: 'null'
          default: null
          description: >-
            Structured information about why model output stopped.


            This is `null` when the `stop_reason` has no additional detail to
            report.
        usage:
          $ref: '#/components/schemas/AnthropicUsage'
          description: >-
            Billing and rate-limit usage.


            Anthropic's API bills and rate-limits by token counts, as tokens
            represent the underlying cost to our systems.


            Under the hood, the API transforms requests into a format suitable
            for the model. The model's output then goes through a parsing stage
            before becoming an API response. As a result, the token counts in
            `usage` will not match one-to-one with the exact visible content of
            an API request or response.


            For example, `output_tokens` will be non-zero, even for an empty
            string response from Claude.


            Total input tokens in a request is the summation of `input_tokens`,
            `cache_creation_input_tokens`, and `cache_read_input_tokens`.
          examples:
            - input_tokens: 2095
              output_tokens: 503
        container:
          anyOf:
            - $ref: '#/components/schemas/AnthropicContainer'
            - type: 'null'
          default: null
          description: >-
            Information about the container used in this request.


            This will be non-null if a container tool (e.g. code execution) was
            used.
      required:
        - id
        - type
        - role
        - content
        - model
        - stop_reason
        - stop_sequence
        - stop_details
        - usage
        - container
      title: Message
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicMessageStreamEvent:
      discriminator:
        mapping:
          content_block_delta: '#/components/schemas/ContentBlockDeltaEvent'
          content_block_start: '#/components/schemas/ContentBlockStartEvent'
          content_block_stop: '#/components/schemas/ContentBlockStopEvent'
          message_delta: '#/components/schemas/MessageDeltaEvent'
          message_start: '#/components/schemas/MessageStartEvent'
          message_stop: '#/components/schemas/MessageStopEvent'
        propertyName: type
      oneOf:
        - $ref: '#/components/schemas/AnthropicMessageStartEvent'
        - $ref: '#/components/schemas/AnthropicMessageDeltaEvent'
        - $ref: '#/components/schemas/AnthropicMessageStopEvent'
        - $ref: '#/components/schemas/AnthropicContentBlockStartEvent'
        - $ref: '#/components/schemas/AnthropicContentBlockDeltaEvent'
        - $ref: '#/components/schemas/AnthropicContentBlockStopEvent'
      title: MessageStreamEvent
      x-source:
        from: avs://anthropic/official
        authority: official
    GatewayError:
      type: object
      description: |
        OpenAI-compatible error envelope. Top-level `error` object carrying
        `message` / `type` / `param` / `code`. `request_id` lives in the
        `X-Request-Id` response header, not in the body. The legacy `upstream`
        field is no longer emitted.
      x-source:
        from: gateway
        authority: gateway
      required:
        - error
      properties:
        error:
          type: object
          required:
            - message
          properties:
            message:
              type: string
              description: Human-readable error message.
            type:
              type: string
              nullable: true
              description: >
                Error category. OpenAI-compatible values include

                invalid_request_error / authentication_error / permission_error
                /

                not_found_error / rate_limit_error, etc. The upstream value is

                passed through verbatim; the enum is not fixed.
            param:
              type: string
              nullable: true
              description: Name of the offending field, when applicable.
            code:
              nullable: true
              description: |
                Sub-error code. May be a string or integer (the gateway treats
                `code` as an arbitrary type).
    AnthropicModel:
      title: Model
      description: >-
        The model that will complete your prompt.


        See [models](https://docs.anthropic.com/en/docs/models-overview) for
        additional details and options.
      anyOf:
        - type: string
        - const: claude-opus-4-8
          description: Frontier intelligence for long-running agents and coding
        - const: claude-opus-4-7
          description: Frontier intelligence for long-running agents and coding
        - const: claude-mythos-preview
          description: New class of intelligence, strongest in coding and cybersecurity
        - const: claude-opus-4-6
          description: Frontier intelligence for long-running agents and coding
        - const: claude-sonnet-4-6
          description: Best combination of speed and intelligence
        - const: claude-haiku-4-5
          description: Fastest model with near-frontier intelligence
        - const: claude-haiku-4-5-20251001
          description: Fastest model with near-frontier intelligence
        - const: claude-opus-4-5
          description: >-
            Premium model combining maximum intelligence with practical
            performance
        - const: claude-opus-4-5-20251101
          description: >-
            Premium model combining maximum intelligence with practical
            performance
        - const: claude-sonnet-4-5
          description: High-performance model for agents and coding
        - const: claude-sonnet-4-5-20250929
          description: High-performance model for agents and coding
        - const: claude-opus-4-1
          description: Exceptional model for specialized complex tasks
        - const: claude-opus-4-1-20250805
          description: Exceptional model for specialized complex tasks
        - const: claude-opus-4-0
          description: Powerful model for complex tasks
          deprecated: true
        - const: claude-opus-4-20250514
          description: Powerful model for complex tasks
          deprecated: true
        - const: claude-sonnet-4-0
          description: High-performance model with extended thinking
          deprecated: true
        - const: claude-sonnet-4-20250514
          description: High-performance model with extended thinking
          deprecated: true
        - const: claude-3-haiku-20240307
          description: Fast and cost-effective model
          deprecated: true
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicInputMessage:
      additionalProperties: false
      properties:
        content:
          anyOf:
            - type: string
            - items:
                $ref: '#/components/schemas/AnthropicInputContentBlock'
              type: array
              example:
                - type: text
                  text: What is a quaternion?
          title: Content
        role:
          enum:
            - user
            - assistant
            - system
          title: Role
          type: string
      required:
        - content
        - role
      title: InputMessage
      type: object
      discriminator:
        propertyName: role
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicCacheControlEphemeral:
      additionalProperties: false
      properties:
        ttl:
          description: |-
            The time-to-live for the cache control breakpoint.

            This may be one the following values:
            - `5m`: 5 minutes
            - `1h`: 1 hour

            Defaults to `5m`.
          enum:
            - 5m
            - 1h
          title: Ttl
          type: string
        type:
          const: ephemeral
          title: Type
          type: string
      required:
        - type
      title: CacheControlEphemeral
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicMetadata:
      additionalProperties: false
      properties:
        user_id:
          anyOf:
            - type: string
              maxLength: 512
            - type: 'null'
          description: >-
            An external identifier for the user who is associated with the
            request.


            This should be a uuid, hash value, or other opaque identifier.
            Anthropic may use this id to help detect abuse. Do not include any
            identifying information such as name, email address, or phone
            number.
          examples:
            - 13803d75-b4b5-4c3e-b2a2-6f21399b021b
          title: User Id
      title: Metadata
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicOutputConfig:
      additionalProperties: false
      properties:
        effort:
          anyOf:
            - $ref: '#/components/schemas/AnthropicEffortLevel'
            - type: 'null'
          description: >-
            How much effort the model should put into its response. Higher
            effort levels may result in more thorough analysis but take longer.


            Valid values are `low`, `medium`, `high`, `xhigh`, or `max`.
        format:
          anyOf:
            - $ref: '#/components/schemas/AnthropicJsonOutputFormat'
            - type: 'null'
          description: >-
            A schema to specify Claude's output format in responses. See
            [structured
            outputs](https://platform.claude.com/docs/en/build-with-claude/structured-outputs)
      title: OutputConfig
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestTextBlock:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/AnthropicCacheControlEphemeral'
            - type: 'null'
          description: Create a cache control breakpoint at this content block.
          title: Cache Control
        citations:
          anyOf:
            - items:
                discriminator:
                  mapping:
                    char_location: '#/components/schemas/RequestCharLocationCitation'
                    content_block_location: '#/components/schemas/RequestContentBlockLocationCitation'
                    page_location: '#/components/schemas/RequestPageLocationCitation'
                    search_result_location: '#/components/schemas/RequestSearchResultLocationCitation'
                    web_search_result_location: >-
                      #/components/schemas/RequestWebSearchResultLocationCitation
                  propertyName: type
                oneOf:
                  - $ref: '#/components/schemas/AnthropicRequestCharLocationCitation'
                  - $ref: '#/components/schemas/AnthropicRequestPageLocationCitation'
                  - $ref: >-
                      #/components/schemas/AnthropicRequestContentBlockLocationCitation
                  - $ref: >-
                      #/components/schemas/AnthropicRequestWebSearchResultLocationCitation
                  - $ref: >-
                      #/components/schemas/AnthropicRequestSearchResultLocationCitation
              type: array
            - type: 'null'
          title: Citations
        text:
          minLength: 1
          title: Text
          type: string
        type:
          const: text
          title: Type
          type: string
      required:
        - text
        - type
      title: RequestTextBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicThinkingConfigParam:
      description: >-
        Configuration for enabling Claude's extended thinking.


        When enabled, responses include `thinking` content blocks showing
        Claude's thinking process before the final answer. Requires a minimum
        budget of 1,024 tokens and counts towards your `max_tokens` limit.


        See [extended
        thinking](https://docs.claude.com/en/docs/build-with-claude/extended-thinking)
        for details.
      discriminator:
        mapping:
          adaptive: '#/components/schemas/ThinkingConfigAdaptive'
          disabled: '#/components/schemas/ThinkingConfigDisabled'
          enabled: '#/components/schemas/ThinkingConfigEnabled'
        propertyName: type
      examples:
        - type: adaptive
      oneOf:
        - $ref: '#/components/schemas/AnthropicThinkingConfigEnabled'
        - $ref: '#/components/schemas/AnthropicThinkingConfigDisabled'
        - $ref: '#/components/schemas/AnthropicThinkingConfigAdaptive'
      title: Thinking
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicToolChoice:
      description: >-
        How the model should use the provided tools. The model can use a
        specific tool, any available tool, decide by itself, or not use tools at
        all.
      discriminator:
        mapping:
          any: '#/components/schemas/ToolChoiceAny'
          auto: '#/components/schemas/ToolChoiceAuto'
          none: '#/components/schemas/ToolChoiceNone'
          tool: '#/components/schemas/ToolChoiceTool'
        propertyName: type
      oneOf:
        - $ref: '#/components/schemas/AnthropicToolChoiceAuto'
        - $ref: '#/components/schemas/AnthropicToolChoiceAny'
        - $ref: '#/components/schemas/AnthropicToolChoiceTool'
        - $ref: '#/components/schemas/AnthropicToolChoiceNone'
      title: Tool Choice
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicTool:
      additionalProperties: false
      properties:
        type:
          anyOf:
            - type: 'null'
            - const: custom
              type: string
          title: Type
        description:
          description: >-
            Description of what this tool does.


            Tool descriptions should be as detailed as possible. The more
            information that the model has about what the tool is and how to use
            it, the better it will perform. You can use natural language
            descriptions to reinforce important aspects of the tool input JSON
            schema.
          examples:
            - Get the current weather in a given location
          title: Description
          type: string
        name:
          description: >-
            Name of the tool.


            This is how the tool will be called by the model and in `tool_use`
            blocks.
          maxLength: 128
          minLength: 1
          pattern: ^[a-zA-Z0-9_-]{1,128}$
          title: Name
          type: string
        input_schema:
          $ref: '#/components/schemas/AnthropicInputSchema'
          description: >-
            [JSON schema](https://json-schema.org/draft/2020-12) for this tool's
            input.


            This defines the shape of the `input` that your tool accepts and
            that the model will produce.
          examples:
            - properties:
                location:
                  description: The city and state, e.g. San Francisco, CA
                  type: string
                unit:
                  description: Unit for the output - one of (celsius, fahrenheit)
                  type: string
              required:
                - location
              type: object
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/AnthropicCacheControlEphemeral'
            - type: 'null'
          description: Create a cache control breakpoint at this content block.
          title: Cache Control
        strict:
          description: When true, guarantees schema validation on tool names and inputs
          title: Strict
          type: boolean
        eager_input_streaming:
          anyOf:
            - type: boolean
            - type: 'null'
          description: >-
            Enable eager input streaming for this tool. When true, tool input
            parameters will be streamed incrementally as they are generated, and
            types will be inferred on-the-fly rather than buffering the full
            JSON output. When false, streaming is disabled for this tool even if
            the fine-grained-tool-streaming beta is active. When null (default),
            uses the default behavior based on beta headers.
          title: Eager Input Streaming
        allowed_callers:
          items:
            $ref: '#/components/schemas/AnthropicAllowedCaller'
          title: Allowed Callers
          type: array
        defer_loading:
          description: >-
            If true, tool will not be included in initial system prompt. Only
            loaded when returned via tool_reference from tool search.
          title: Defer Loading
          type: boolean
        input_examples:
          items:
            additionalProperties:
              $ref: '#/components/schemas/AnthropicJsonValue'
            type: object
          title: Input Examples
          type: array
      required:
        - name
        - input_schema
      title: Tool
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicBashTool_20250124:
      additionalProperties: false
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/AnthropicAllowedCaller'
          title: Allowed Callers
          type: array
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/AnthropicCacheControlEphemeral'
            - type: 'null'
          description: Create a cache control breakpoint at this content block.
          title: Cache Control
        defer_loading:
          description: >-
            If true, tool will not be included in initial system prompt. Only
            loaded when returned via tool_reference from tool search.
          title: Defer Loading
          type: boolean
        input_examples:
          items:
            additionalProperties:
              $ref: '#/components/schemas/AnthropicJsonValue'
            type: object
          title: Input Examples
          type: array
        name:
          const: bash
          description: >-
            Name of the tool.


            This is how the tool will be called by the model and in `tool_use`
            blocks.
          title: Name
          type: string
        strict:
          description: When true, guarantees schema validation on tool names and inputs
          title: Strict
          type: boolean
        type:
          const: bash_20250124
          title: Type
          type: string
      required:
        - name
        - type
      title: BashTool_20250124
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicCodeExecutionTool_20250522:
      additionalProperties: false
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/AnthropicAllowedCaller'
          title: Allowed Callers
          type: array
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/AnthropicCacheControlEphemeral'
            - type: 'null'
          description: Create a cache control breakpoint at this content block.
          title: Cache Control
        defer_loading:
          description: >-
            If true, tool will not be included in initial system prompt. Only
            loaded when returned via tool_reference from tool search.
          title: Defer Loading
          type: boolean
        name:
          const: code_execution
          description: >-
            Name of the tool.


            This is how the tool will be called by the model and in `tool_use`
            blocks.
          title: Name
          type: string
        strict:
          description: When true, guarantees schema validation on tool names and inputs
          title: Strict
          type: boolean
        type:
          const: code_execution_20250522
          title: Type
          type: string
      required:
        - name
        - type
      title: CodeExecutionTool_20250522
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicCodeExecutionTool_20250825:
      additionalProperties: false
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/AnthropicAllowedCaller'
          title: Allowed Callers
          type: array
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/AnthropicCacheControlEphemeral'
            - type: 'null'
          description: Create a cache control breakpoint at this content block.
          title: Cache Control
        defer_loading:
          description: >-
            If true, tool will not be included in initial system prompt. Only
            loaded when returned via tool_reference from tool search.
          title: Defer Loading
          type: boolean
        name:
          const: code_execution
          description: >-
            Name of the tool.


            This is how the tool will be called by the model and in `tool_use`
            blocks.
          title: Name
          type: string
        strict:
          description: When true, guarantees schema validation on tool names and inputs
          title: Strict
          type: boolean
        type:
          const: code_execution_20250825
          title: Type
          type: string
      required:
        - name
        - type
      title: CodeExecutionTool_20250825
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicCodeExecutionTool_20260120:
      additionalProperties: false
      description: >-
        Code execution tool with REPL state persistence (daemon mode + gVisor
        checkpoint).
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/AnthropicAllowedCaller'
          title: Allowed Callers
          type: array
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/AnthropicCacheControlEphemeral'
            - type: 'null'
          description: Create a cache control breakpoint at this content block.
          title: Cache Control
        defer_loading:
          description: >-
            If true, tool will not be included in initial system prompt. Only
            loaded when returned via tool_reference from tool search.
          title: Defer Loading
          type: boolean
        name:
          const: code_execution
          description: >-
            Name of the tool.


            This is how the tool will be called by the model and in `tool_use`
            blocks.
          title: Name
          type: string
        strict:
          description: When true, guarantees schema validation on tool names and inputs
          title: Strict
          type: boolean
        type:
          const: code_execution_20260120
          title: Type
          type: string
      required:
        - name
        - type
      title: CodeExecutionTool_20260120
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicMemoryTool_20250818:
      additionalProperties: false
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/AnthropicAllowedCaller'
          title: Allowed Callers
          type: array
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/AnthropicCacheControlEphemeral'
            - type: 'null'
          description: Create a cache control breakpoint at this content block.
          title: Cache Control
        defer_loading:
          description: >-
            If true, tool will not be included in initial system prompt. Only
            loaded when returned via tool_reference from tool search.
          title: Defer Loading
          type: boolean
        input_examples:
          items:
            additionalProperties:
              $ref: '#/components/schemas/AnthropicJsonValue'
            type: object
          title: Input Examples
          type: array
        name:
          const: memory
          description: >-
            Name of the tool.


            This is how the tool will be called by the model and in `tool_use`
            blocks.
          title: Name
          type: string
        strict:
          description: When true, guarantees schema validation on tool names and inputs
          title: Strict
          type: boolean
        type:
          const: memory_20250818
          title: Type
          type: string
      required:
        - name
        - type
      title: MemoryTool_20250818
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicTextEditor_20250124:
      additionalProperties: false
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/AnthropicAllowedCaller'
          title: Allowed Callers
          type: array
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/AnthropicCacheControlEphemeral'
            - type: 'null'
          description: Create a cache control breakpoint at this content block.
          title: Cache Control
        defer_loading:
          description: >-
            If true, tool will not be included in initial system prompt. Only
            loaded when returned via tool_reference from tool search.
          title: Defer Loading
          type: boolean
        input_examples:
          items:
            additionalProperties:
              $ref: '#/components/schemas/AnthropicJsonValue'
            type: object
          title: Input Examples
          type: array
        name:
          const: str_replace_editor
          description: >-
            Name of the tool.


            This is how the tool will be called by the model and in `tool_use`
            blocks.
          title: Name
          type: string
        strict:
          description: When true, guarantees schema validation on tool names and inputs
          title: Strict
          type: boolean
        type:
          const: text_editor_20250124
          title: Type
          type: string
      required:
        - name
        - type
      title: TextEditor_20250124
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicTextEditor_20250429:
      additionalProperties: false
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/AnthropicAllowedCaller'
          title: Allowed Callers
          type: array
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/AnthropicCacheControlEphemeral'
            - type: 'null'
          description: Create a cache control breakpoint at this content block.
          title: Cache Control
        defer_loading:
          description: >-
            If true, tool will not be included in initial system prompt. Only
            loaded when returned via tool_reference from tool search.
          title: Defer Loading
          type: boolean
        input_examples:
          items:
            additionalProperties:
              $ref: '#/components/schemas/AnthropicJsonValue'
            type: object
          title: Input Examples
          type: array
        name:
          const: str_replace_based_edit_tool
          description: >-
            Name of the tool.


            This is how the tool will be called by the model and in `tool_use`
            blocks.
          title: Name
          type: string
        strict:
          description: When true, guarantees schema validation on tool names and inputs
          title: Strict
          type: boolean
        type:
          const: text_editor_20250429
          title: Type
          type: string
      required:
        - name
        - type
      title: TextEditor_20250429
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicTextEditor_20250728:
      additionalProperties: false
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/AnthropicAllowedCaller'
          title: Allowed Callers
          type: array
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/AnthropicCacheControlEphemeral'
            - type: 'null'
          description: Create a cache control breakpoint at this content block.
          title: Cache Control
        defer_loading:
          description: >-
            If true, tool will not be included in initial system prompt. Only
            loaded when returned via tool_reference from tool search.
          title: Defer Loading
          type: boolean
        input_examples:
          items:
            additionalProperties:
              $ref: '#/components/schemas/AnthropicJsonValue'
            type: object
          title: Input Examples
          type: array
        max_characters:
          anyOf:
            - minimum: 1
              type: integer
            - type: 'null'
          description: >-
            Maximum number of characters to display when viewing a file. If not
            specified, defaults to displaying the full file.
          title: Max Characters
        name:
          const: str_replace_based_edit_tool
          description: >-
            Name of the tool.


            This is how the tool will be called by the model and in `tool_use`
            blocks.
          title: Name
          type: string
        strict:
          description: When true, guarantees schema validation on tool names and inputs
          title: Strict
          type: boolean
        type:
          const: text_editor_20250728
          title: Type
          type: string
      required:
        - name
        - type
      title: TextEditor_20250728
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicWebSearchTool_20250305:
      additionalProperties: false
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/AnthropicAllowedCaller'
          title: Allowed Callers
          type: array
        allowed_domains:
          anyOf:
            - type: array
              items:
                type: string
            - type: 'null'
          description: >-
            If provided, only these domains will be included in results. Cannot
            be used alongside `blocked_domains`.
          title: Allowed Domains
        blocked_domains:
          anyOf:
            - type: array
              items:
                type: string
            - type: 'null'
          description: >-
            If provided, these domains will never appear in results. Cannot be
            used alongside `allowed_domains`.
          title: Blocked Domains
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/AnthropicCacheControlEphemeral'
            - type: 'null'
          description: Create a cache control breakpoint at this content block.
          title: Cache Control
        defer_loading:
          description: >-
            If true, tool will not be included in initial system prompt. Only
            loaded when returned via tool_reference from tool search.
          title: Defer Loading
          type: boolean
        max_uses:
          anyOf:
            - exclusiveMinimum: 0
              type: integer
            - type: 'null'
          description: Maximum number of times the tool can be used in the API request.
          title: Max Uses
        name:
          const: web_search
          description: >-
            Name of the tool.


            This is how the tool will be called by the model and in `tool_use`
            blocks.
          title: Name
          type: string
        strict:
          description: When true, guarantees schema validation on tool names and inputs
          title: Strict
          type: boolean
        type:
          const: web_search_20250305
          title: Type
          type: string
        user_location:
          anyOf:
            - $ref: '#/components/schemas/AnthropicUserLocation'
            - type: 'null'
          description: >-
            Parameters for the user's location. Used to provide more relevant
            search results.
      required:
        - name
        - type
      title: WebSearchTool_20250305
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicWebFetchTool_20250910:
      additionalProperties: false
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/AnthropicAllowedCaller'
          title: Allowed Callers
          type: array
        allowed_domains:
          anyOf:
            - type: array
              items:
                type: string
            - type: 'null'
          description: List of domains to allow fetching from
          title: Allowed Domains
        blocked_domains:
          anyOf:
            - type: array
              items:
                type: string
            - type: 'null'
          description: List of domains to block fetching from
          title: Blocked Domains
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/AnthropicCacheControlEphemeral'
            - type: 'null'
          description: Create a cache control breakpoint at this content block.
          title: Cache Control
        citations:
          anyOf:
            - $ref: '#/components/schemas/AnthropicRequestCitationsConfig'
            - type: 'null'
          description: >-
            Citations configuration for fetched documents. Citations are
            disabled by default.
        defer_loading:
          description: >-
            If true, tool will not be included in initial system prompt. Only
            loaded when returned via tool_reference from tool search.
          title: Defer Loading
          type: boolean
        max_content_tokens:
          anyOf:
            - exclusiveMinimum: 0
              type: integer
            - type: 'null'
          description: >-
            Maximum number of tokens used by including web page text content in
            the context. The limit is approximate and does not apply to binary
            content such as PDFs.
          title: Max Content Tokens
        max_uses:
          anyOf:
            - exclusiveMinimum: 0
              type: integer
            - type: 'null'
          description: Maximum number of times the tool can be used in the API request.
          title: Max Uses
        name:
          const: web_fetch
          description: >-
            Name of the tool.


            This is how the tool will be called by the model and in `tool_use`
            blocks.
          title: Name
          type: string
        strict:
          description: When true, guarantees schema validation on tool names and inputs
          title: Strict
          type: boolean
        type:
          const: web_fetch_20250910
          title: Type
          type: string
      required:
        - name
        - type
      title: WebFetchTool_20250910
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicWebSearchTool_20260209:
      additionalProperties: false
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/AnthropicAllowedCaller'
          title: Allowed Callers
          type: array
        allowed_domains:
          anyOf:
            - type: array
              items:
                type: string
            - type: 'null'
          description: >-
            If provided, only these domains will be included in results. Cannot
            be used alongside `blocked_domains`.
          title: Allowed Domains
        blocked_domains:
          anyOf:
            - type: array
              items:
                type: string
            - type: 'null'
          description: >-
            If provided, these domains will never appear in results. Cannot be
            used alongside `allowed_domains`.
          title: Blocked Domains
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/AnthropicCacheControlEphemeral'
            - type: 'null'
          description: Create a cache control breakpoint at this content block.
          title: Cache Control
        defer_loading:
          description: >-
            If true, tool will not be included in initial system prompt. Only
            loaded when returned via tool_reference from tool search.
          title: Defer Loading
          type: boolean
        max_uses:
          anyOf:
            - exclusiveMinimum: 0
              type: integer
            - type: 'null'
          description: Maximum number of times the tool can be used in the API request.
          title: Max Uses
        name:
          const: web_search
          description: >-
            Name of the tool.


            This is how the tool will be called by the model and in `tool_use`
            blocks.
          title: Name
          type: string
        strict:
          description: When true, guarantees schema validation on tool names and inputs
          title: Strict
          type: boolean
        type:
          const: web_search_20260209
          title: Type
          type: string
        user_location:
          anyOf:
            - $ref: '#/components/schemas/AnthropicUserLocation'
            - type: 'null'
          description: >-
            Parameters for the user's location. Used to provide more relevant
            search results.
      required:
        - name
        - type
      title: WebSearchTool_20260209
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicWebFetchTool_20260209:
      additionalProperties: false
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/AnthropicAllowedCaller'
          title: Allowed Callers
          type: array
        allowed_domains:
          anyOf:
            - type: array
              items:
                type: string
            - type: 'null'
          description: List of domains to allow fetching from
          title: Allowed Domains
        blocked_domains:
          anyOf:
            - type: array
              items:
                type: string
            - type: 'null'
          description: List of domains to block fetching from
          title: Blocked Domains
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/AnthropicCacheControlEphemeral'
            - type: 'null'
          description: Create a cache control breakpoint at this content block.
          title: Cache Control
        citations:
          anyOf:
            - $ref: '#/components/schemas/AnthropicRequestCitationsConfig'
            - type: 'null'
          description: >-
            Citations configuration for fetched documents. Citations are
            disabled by default.
        defer_loading:
          description: >-
            If true, tool will not be included in initial system prompt. Only
            loaded when returned via tool_reference from tool search.
          title: Defer Loading
          type: boolean
        max_content_tokens:
          anyOf:
            - exclusiveMinimum: 0
              type: integer
            - type: 'null'
          description: >-
            Maximum number of tokens used by including web page text content in
            the context. The limit is approximate and does not apply to binary
            content such as PDFs.
          title: Max Content Tokens
        max_uses:
          anyOf:
            - exclusiveMinimum: 0
              type: integer
            - type: 'null'
          description: Maximum number of times the tool can be used in the API request.
          title: Max Uses
        name:
          const: web_fetch
          description: >-
            Name of the tool.


            This is how the tool will be called by the model and in `tool_use`
            blocks.
          title: Name
          type: string
        strict:
          description: When true, guarantees schema validation on tool names and inputs
          title: Strict
          type: boolean
        type:
          const: web_fetch_20260209
          title: Type
          type: string
      required:
        - name
        - type
      title: WebFetchTool_20260209
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicWebFetchTool_20260309:
      additionalProperties: false
      description: Web fetch tool with use_cache parameter for bypassing cached content.
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/AnthropicAllowedCaller'
          title: Allowed Callers
          type: array
        allowed_domains:
          anyOf:
            - type: array
              items:
                type: string
            - type: 'null'
          description: List of domains to allow fetching from
          title: Allowed Domains
        blocked_domains:
          anyOf:
            - type: array
              items:
                type: string
            - type: 'null'
          description: List of domains to block fetching from
          title: Blocked Domains
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/AnthropicCacheControlEphemeral'
            - type: 'null'
          description: Create a cache control breakpoint at this content block.
          title: Cache Control
        citations:
          anyOf:
            - $ref: '#/components/schemas/AnthropicRequestCitationsConfig'
            - type: 'null'
          description: >-
            Citations configuration for fetched documents. Citations are
            disabled by default.
        defer_loading:
          description: >-
            If true, tool will not be included in initial system prompt. Only
            loaded when returned via tool_reference from tool search.
          title: Defer Loading
          type: boolean
        max_content_tokens:
          anyOf:
            - exclusiveMinimum: 0
              type: integer
            - type: 'null'
          description: >-
            Maximum number of tokens used by including web page text content in
            the context. The limit is approximate and does not apply to binary
            content such as PDFs.
          title: Max Content Tokens
        max_uses:
          anyOf:
            - exclusiveMinimum: 0
              type: integer
            - type: 'null'
          description: Maximum number of times the tool can be used in the API request.
          title: Max Uses
        name:
          const: web_fetch
          description: >-
            Name of the tool.


            This is how the tool will be called by the model and in `tool_use`
            blocks.
          title: Name
          type: string
        strict:
          description: When true, guarantees schema validation on tool names and inputs
          title: Strict
          type: boolean
        type:
          const: web_fetch_20260309
          title: Type
          type: string
        use_cache:
          description: >-
            Whether to use cached content. Set to false to bypass the cache and
            fetch fresh content. Only set to false when the user explicitly
            requests fresh content or when fetching rapidly-changing sources.
          title: Use Cache
          type: boolean
      required:
        - name
        - type
      title: WebFetchTool_20260309
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicToolSearchToolBM25_20251119:
      additionalProperties: false
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/AnthropicAllowedCaller'
          title: Allowed Callers
          type: array
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/AnthropicCacheControlEphemeral'
            - type: 'null'
          description: Create a cache control breakpoint at this content block.
          title: Cache Control
        defer_loading:
          description: >-
            If true, tool will not be included in initial system prompt. Only
            loaded when returned via tool_reference from tool search.
          title: Defer Loading
          type: boolean
        name:
          const: tool_search_tool_bm25
          description: >-
            Name of the tool.


            This is how the tool will be called by the model and in `tool_use`
            blocks.
          title: Name
          type: string
        strict:
          description: When true, guarantees schema validation on tool names and inputs
          title: Strict
          type: boolean
        type:
          enum:
            - tool_search_tool_bm25_20251119
            - tool_search_tool_bm25
          title: Type
          type: string
      required:
        - name
        - type
      title: ToolSearchToolBM25_20251119
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicToolSearchToolRegex_20251119:
      additionalProperties: false
      properties:
        allowed_callers:
          items:
            $ref: '#/components/schemas/AnthropicAllowedCaller'
          title: Allowed Callers
          type: array
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/AnthropicCacheControlEphemeral'
            - type: 'null'
          description: Create a cache control breakpoint at this content block.
          title: Cache Control
        defer_loading:
          description: >-
            If true, tool will not be included in initial system prompt. Only
            loaded when returned via tool_reference from tool search.
          title: Defer Loading
          type: boolean
        name:
          const: tool_search_tool_regex
          description: >-
            Name of the tool.


            This is how the tool will be called by the model and in `tool_use`
            blocks.
          title: Name
          type: string
        strict:
          description: When true, guarantees schema validation on tool names and inputs
          title: Strict
          type: boolean
        type:
          enum:
            - tool_search_tool_regex_20251119
            - tool_search_tool_regex
          title: Type
          type: string
      required:
        - name
        - type
      title: ToolSearchToolRegex_20251119
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicContentBlock:
      discriminator:
        mapping:
          bash_code_execution_tool_result: '#/components/schemas/ResponseBashCodeExecutionToolResultBlock'
          code_execution_tool_result: '#/components/schemas/ResponseCodeExecutionToolResultBlock'
          container_upload: '#/components/schemas/ResponseContainerUploadBlock'
          redacted_thinking: '#/components/schemas/ResponseRedactedThinkingBlock'
          server_tool_use: '#/components/schemas/ResponseServerToolUseBlock'
          text: '#/components/schemas/ResponseTextBlock'
          text_editor_code_execution_tool_result: '#/components/schemas/ResponseTextEditorCodeExecutionToolResultBlock'
          thinking: '#/components/schemas/ResponseThinkingBlock'
          tool_search_tool_result: '#/components/schemas/ResponseToolSearchToolResultBlock'
          tool_use: '#/components/schemas/ResponseToolUseBlock'
          web_fetch_tool_result: '#/components/schemas/ResponseWebFetchToolResultBlock'
          web_search_tool_result: '#/components/schemas/ResponseWebSearchToolResultBlock'
        propertyName: type
      oneOf:
        - $ref: '#/components/schemas/AnthropicResponseTextBlock'
        - $ref: '#/components/schemas/AnthropicResponseThinkingBlock'
        - $ref: '#/components/schemas/AnthropicResponseRedactedThinkingBlock'
        - $ref: '#/components/schemas/AnthropicResponseToolUseBlock'
        - $ref: '#/components/schemas/AnthropicResponseServerToolUseBlock'
        - $ref: '#/components/schemas/AnthropicResponseWebSearchToolResultBlock'
        - $ref: '#/components/schemas/AnthropicResponseWebFetchToolResultBlock'
        - $ref: '#/components/schemas/AnthropicResponseCodeExecutionToolResultBlock'
        - $ref: >-
            #/components/schemas/AnthropicResponseBashCodeExecutionToolResultBlock
        - $ref: >-
            #/components/schemas/AnthropicResponseTextEditorCodeExecutionToolResultBlock
        - $ref: '#/components/schemas/AnthropicResponseToolSearchToolResultBlock'
        - $ref: '#/components/schemas/AnthropicResponseContainerUploadBlock'
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicStopReason:
      enum:
        - end_turn
        - max_tokens
        - stop_sequence
        - tool_use
        - pause_turn
        - refusal
      type: string
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRefusalStopDetails:
      description: Structured information about a refusal.
      properties:
        category:
          anyOf:
            - enum:
                - cyber
                - bio
              type: string
            - type: 'null'
          default: null
          description: |-
            The policy category that triggered the refusal.

            `null` when the refusal doesn't map to a named category.
          title: Category
        explanation:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            Human-readable explanation of the refusal.


            This text is not guaranteed to be stable. `null` when no explanation
            is available for the category.
          title: Explanation
        type:
          const: refusal
          default: refusal
          title: Type
          type: string
      required:
        - category
        - explanation
        - type
      title: RefusalStopDetails
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicUsage:
      properties:
        cache_creation:
          anyOf:
            - $ref: '#/components/schemas/AnthropicCacheCreation'
            - type: 'null'
          default: null
          description: Breakdown of cached tokens by TTL
        cache_creation_input_tokens:
          anyOf:
            - minimum: 0
              type: integer
            - type: 'null'
          default: null
          description: The number of input tokens used to create the cache entry.
          examples:
            - 2051
          title: Cache Creation Input Tokens
        cache_read_input_tokens:
          anyOf:
            - minimum: 0
              type: integer
            - type: 'null'
          default: null
          description: The number of input tokens read from the cache.
          examples:
            - 2051
          title: Cache Read Input Tokens
        inference_geo:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            The geographic region where inference was performed for this
            request.
          title: Inference Geo
        input_tokens:
          description: The number of input tokens which were used.
          examples:
            - 2095
          minimum: 0
          title: Input Tokens
          type: integer
        output_tokens:
          description: The number of output tokens which were used.
          examples:
            - 503
          minimum: 0
          title: Output Tokens
          type: integer
        output_tokens_details:
          anyOf:
            - $ref: '#/components/schemas/AnthropicOutputTokensDetails'
            - type: 'null'
          default: null
          description: >-
            Breakdown of output tokens by category.


            `output_tokens` remains the inclusive, authoritative total used for
            billing.

            This object provides a read-only decomposition for observability —
            for example,

            how many of the billed output tokens were spent on internal
            reasoning that may

            have been summarized before being returned to you.
        server_tool_use:
          anyOf:
            - $ref: '#/components/schemas/AnthropicServerToolUsage'
            - type: 'null'
          default: null
          description: The number of server tool requests.
        service_tier:
          anyOf:
            - enum:
                - standard
                - priority
                - batch
              type: string
            - type: 'null'
          default: null
          description: If the request used the priority, standard, or batch tier.
          title: Service Tier
      required:
        - cache_creation
        - cache_creation_input_tokens
        - cache_read_input_tokens
        - inference_geo
        - input_tokens
        - output_tokens
        - output_tokens_details
        - server_tool_use
        - service_tier
      title: Usage
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicContainer:
      description: >-
        Information about the container used in the request (for the code
        execution tool)
      properties:
        expires_at:
          description: The time at which the container will expire.
          format: date-time
          title: Expires At
          type: string
        id:
          description: Identifier for the container used in this request
          title: Id
          type: string
      required:
        - expires_at
        - id
      title: Container
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicMessageStartEvent:
      properties:
        message:
          $ref: '#/components/schemas/AnthropicMessage'
        type:
          const: message_start
          default: message_start
          title: Type
          type: string
      required:
        - message
        - type
      title: MessageStartEvent
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicMessageDeltaEvent:
      properties:
        delta:
          $ref: '#/components/schemas/AnthropicMessageDelta'
        type:
          const: message_delta
          default: message_delta
          title: Type
          type: string
        usage:
          $ref: '#/components/schemas/AnthropicMessageDeltaUsage'
          description: >-
            Billing and rate-limit usage.


            Anthropic's API bills and rate-limits by token counts, as tokens
            represent the underlying cost to our systems.


            Under the hood, the API transforms requests into a format suitable
            for the model. The model's output then goes through a parsing stage
            before becoming an API response. As a result, the token counts in
            `usage` will not match one-to-one with the exact visible content of
            an API request or response.


            For example, `output_tokens` will be non-zero, even for an empty
            string response from Claude.


            Total input tokens in a request is the summation of `input_tokens`,
            `cache_creation_input_tokens`, and `cache_read_input_tokens`.
          examples:
            - output_tokens: 503
      required:
        - delta
        - type
        - usage
      title: MessageDeltaEvent
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicMessageStopEvent:
      properties:
        type:
          const: message_stop
          default: message_stop
          title: Type
          type: string
      required:
        - type
      title: MessageStopEvent
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicContentBlockStartEvent:
      properties:
        content_block:
          discriminator:
            mapping:
              bash_code_execution_tool_result: '#/components/schemas/ResponseBashCodeExecutionToolResultBlock'
              code_execution_tool_result: '#/components/schemas/ResponseCodeExecutionToolResultBlock'
              container_upload: '#/components/schemas/ResponseContainerUploadBlock'
              redacted_thinking: '#/components/schemas/ResponseRedactedThinkingBlock'
              server_tool_use: '#/components/schemas/ResponseServerToolUseBlock'
              text: '#/components/schemas/ResponseTextBlock'
              text_editor_code_execution_tool_result: >-
                #/components/schemas/ResponseTextEditorCodeExecutionToolResultBlock
              thinking: '#/components/schemas/ResponseThinkingBlock'
              tool_search_tool_result: '#/components/schemas/ResponseToolSearchToolResultBlock'
              tool_use: '#/components/schemas/ResponseToolUseBlock'
              web_fetch_tool_result: '#/components/schemas/ResponseWebFetchToolResultBlock'
              web_search_tool_result: '#/components/schemas/ResponseWebSearchToolResultBlock'
            propertyName: type
          oneOf:
            - $ref: '#/components/schemas/AnthropicResponseTextBlock'
            - $ref: '#/components/schemas/AnthropicResponseThinkingBlock'
            - $ref: '#/components/schemas/AnthropicResponseRedactedThinkingBlock'
            - $ref: '#/components/schemas/AnthropicResponseToolUseBlock'
            - $ref: '#/components/schemas/AnthropicResponseServerToolUseBlock'
            - $ref: '#/components/schemas/AnthropicResponseWebSearchToolResultBlock'
            - $ref: '#/components/schemas/AnthropicResponseWebFetchToolResultBlock'
            - $ref: >-
                #/components/schemas/AnthropicResponseCodeExecutionToolResultBlock
            - $ref: >-
                #/components/schemas/AnthropicResponseBashCodeExecutionToolResultBlock
            - $ref: >-
                #/components/schemas/AnthropicResponseTextEditorCodeExecutionToolResultBlock
            - $ref: '#/components/schemas/AnthropicResponseToolSearchToolResultBlock'
            - $ref: '#/components/schemas/AnthropicResponseContainerUploadBlock'
          title: Content Block
        index:
          title: Index
          type: integer
        type:
          const: content_block_start
          default: content_block_start
          title: Type
          type: string
      required:
        - content_block
        - index
        - type
      title: ContentBlockStartEvent
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicContentBlockDeltaEvent:
      properties:
        delta:
          discriminator:
            mapping:
              citations_delta: '#/components/schemas/CitationsDelta'
              input_json_delta: '#/components/schemas/InputJsonContentBlockDelta'
              signature_delta: '#/components/schemas/SignatureContentBlockDelta'
              text_delta: '#/components/schemas/TextContentBlockDelta'
              thinking_delta: '#/components/schemas/ThinkingContentBlockDelta'
            propertyName: type
          oneOf:
            - $ref: '#/components/schemas/AnthropicTextContentBlockDelta'
            - $ref: '#/components/schemas/AnthropicInputJsonContentBlockDelta'
            - $ref: '#/components/schemas/AnthropicCitationsDelta'
            - $ref: '#/components/schemas/AnthropicThinkingContentBlockDelta'
            - $ref: '#/components/schemas/AnthropicSignatureContentBlockDelta'
          title: Delta
        index:
          title: Index
          type: integer
        type:
          const: content_block_delta
          default: content_block_delta
          title: Type
          type: string
      required:
        - delta
        - index
        - type
      title: ContentBlockDeltaEvent
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicContentBlockStopEvent:
      properties:
        index:
          title: Index
          type: integer
        type:
          const: content_block_stop
          default: content_block_stop
          title: Type
          type: string
      required:
        - index
        - type
      title: ContentBlockStopEvent
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicInputContentBlock:
      discriminator:
        mapping:
          bash_code_execution_tool_result: '#/components/schemas/RequestBashCodeExecutionToolResultBlock'
          code_execution_tool_result: '#/components/schemas/RequestCodeExecutionToolResultBlock'
          container_upload: '#/components/schemas/RequestContainerUploadBlock'
          document: '#/components/schemas/RequestDocumentBlock'
          image: '#/components/schemas/RequestImageBlock'
          mid_conv_system: '#/components/schemas/RequestMidConvSystemBlock'
          redacted_thinking: '#/components/schemas/RequestRedactedThinkingBlock'
          search_result: '#/components/schemas/RequestSearchResultBlock'
          server_tool_use: '#/components/schemas/RequestServerToolUseBlock'
          text: '#/components/schemas/RequestTextBlock'
          text_editor_code_execution_tool_result: '#/components/schemas/RequestTextEditorCodeExecutionToolResultBlock'
          thinking: '#/components/schemas/RequestThinkingBlock'
          tool_result: '#/components/schemas/RequestToolResultBlock'
          tool_search_tool_result: '#/components/schemas/RequestToolSearchToolResultBlock'
          tool_use: '#/components/schemas/RequestToolUseBlock'
          web_fetch_tool_result: '#/components/schemas/RequestWebFetchToolResultBlock'
          web_search_tool_result: '#/components/schemas/RequestWebSearchToolResultBlock'
        propertyName: type
      oneOf:
        - $ref: '#/components/schemas/AnthropicRequestTextBlock'
          description: Regular text content.
        - $ref: '#/components/schemas/AnthropicRequestImageBlock'
          description: >-
            Image content specified directly as base64 data or as a reference
            via a URL.
        - $ref: '#/components/schemas/AnthropicRequestDocumentBlock'
          description: >-
            Document content, either specified directly as base64 data, as text,
            or as a reference via a URL.
        - $ref: '#/components/schemas/AnthropicRequestSearchResultBlock'
          description: >-
            A search result block containing source, title, and content from
            search operations.
        - $ref: '#/components/schemas/AnthropicRequestThinkingBlock'
          description: A block specifying internal thinking by the model.
        - $ref: '#/components/schemas/AnthropicRequestRedactedThinkingBlock'
          description: A block specifying internal, redacted thinking by the model.
        - $ref: '#/components/schemas/AnthropicRequestToolUseBlock'
          description: A block indicating a tool use by the model.
        - $ref: '#/components/schemas/AnthropicRequestToolResultBlock'
          description: A block specifying the results of a tool use by the model.
        - $ref: '#/components/schemas/AnthropicRequestServerToolUseBlock'
        - $ref: '#/components/schemas/AnthropicRequestWebSearchToolResultBlock'
        - $ref: '#/components/schemas/AnthropicRequestWebFetchToolResultBlock'
        - $ref: '#/components/schemas/AnthropicRequestCodeExecutionToolResultBlock'
        - $ref: >-
            #/components/schemas/AnthropicRequestBashCodeExecutionToolResultBlock
        - $ref: >-
            #/components/schemas/AnthropicRequestTextEditorCodeExecutionToolResultBlock
        - $ref: '#/components/schemas/AnthropicRequestToolSearchToolResultBlock'
        - $ref: '#/components/schemas/AnthropicRequestContainerUploadBlock'
        - $ref: '#/components/schemas/AnthropicRequestMidConvSystemBlock'
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicEffortLevel:
      description: All possible effort levels.
      enum:
        - low
        - medium
        - high
        - xhigh
        - max
      title: EffortLevel
      type: string
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicJsonOutputFormat:
      additionalProperties: false
      properties:
        schema:
          additionalProperties: true
          description: The JSON schema of the format
          title: Schema
          type: object
        type:
          const: json_schema
          title: Type
          type: string
      required:
        - schema
        - type
      title: JsonOutputFormat
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestCharLocationCitation:
      additionalProperties: false
      properties:
        cited_text:
          title: Cited Text
          type: string
        document_index:
          minimum: 0
          title: Document Index
          type: integer
        document_title:
          anyOf:
            - maxLength: 255
              minLength: 1
              type: string
            - type: 'null'
          title: Document Title
        end_char_index:
          title: End Char Index
          type: integer
        start_char_index:
          minimum: 0
          title: Start Char Index
          type: integer
        type:
          const: char_location
          title: Type
          type: string
      required:
        - cited_text
        - document_index
        - document_title
        - end_char_index
        - start_char_index
        - type
      title: RequestCharLocationCitation
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestPageLocationCitation:
      additionalProperties: false
      properties:
        cited_text:
          title: Cited Text
          type: string
        document_index:
          minimum: 0
          title: Document Index
          type: integer
        document_title:
          anyOf:
            - maxLength: 255
              minLength: 1
              type: string
            - type: 'null'
          title: Document Title
        end_page_number:
          title: End Page Number
          type: integer
        start_page_number:
          minimum: 1
          title: Start Page Number
          type: integer
        type:
          const: page_location
          title: Type
          type: string
      required:
        - cited_text
        - document_index
        - document_title
        - end_page_number
        - start_page_number
        - type
      title: RequestPageLocationCitation
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestContentBlockLocationCitation:
      additionalProperties: false
      properties:
        cited_text:
          description: >-
            The full text of the cited block range, concatenated.


            Always equals the contents of
            `content[start_block_index:end_block_index]` joined together. The
            text block is the minimal citable unit; this field is never a
            substring of a single block. Not counted toward output tokens, and
            not counted toward input tokens when sent back in subsequent turns.
          title: Cited Text
          type: string
        document_index:
          minimum: 0
          title: Document Index
          type: integer
        document_title:
          anyOf:
            - maxLength: 255
              minLength: 1
              type: string
            - type: 'null'
          title: Document Title
        end_block_index:
          description: >-
            Exclusive 0-based end index of the cited block range in the source's
            `content` array.


            Always greater than `start_block_index`; a single-block citation has
            `end_block_index = start_block_index + 1`.
          title: End Block Index
          type: integer
        start_block_index:
          description: >-
            0-based index of the first cited block in the source's `content`
            array.
          minimum: 0
          title: Start Block Index
          type: integer
        type:
          const: content_block_location
          title: Type
          type: string
      required:
        - cited_text
        - document_index
        - document_title
        - end_block_index
        - start_block_index
        - type
      title: RequestContentBlockLocationCitation
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestWebSearchResultLocationCitation:
      additionalProperties: false
      properties:
        cited_text:
          title: Cited Text
          type: string
        encrypted_index:
          title: Encrypted Index
          type: string
        title:
          anyOf:
            - maxLength: 512
              minLength: 1
              type: string
            - type: 'null'
          title: Title
        type:
          const: web_search_result_location
          title: Type
          type: string
        url:
          maxLength: 2048
          minLength: 1
          title: Url
          type: string
      required:
        - cited_text
        - encrypted_index
        - title
        - type
        - url
      title: RequestWebSearchResultLocationCitation
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestSearchResultLocationCitation:
      additionalProperties: false
      properties:
        cited_text:
          description: >-
            The full text of the cited block range, concatenated.


            Always equals the contents of
            `content[start_block_index:end_block_index]` joined together. The
            text block is the minimal citable unit; this field is never a
            substring of a single block. Not counted toward output tokens, and
            not counted toward input tokens when sent back in subsequent turns.
          title: Cited Text
          type: string
        end_block_index:
          description: >-
            Exclusive 0-based end index of the cited block range in the source's
            `content` array.


            Always greater than `start_block_index`; a single-block citation has
            `end_block_index = start_block_index + 1`.
          title: End Block Index
          type: integer
        search_result_index:
          description: >-
            0-based index of the cited search result among all `search_result`
            content blocks in the request, in the order they appear across
            messages and tool results.


            Counted separately from `document_index`; server-side web search
            results are not included in this count.
          minimum: 0
          title: Search Result Index
          type: integer
        source:
          title: Source
          type: string
        start_block_index:
          description: >-
            0-based index of the first cited block in the source's `content`
            array.
          minimum: 0
          title: Start Block Index
          type: integer
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
        type:
          const: search_result_location
          title: Type
          type: string
      required:
        - cited_text
        - end_block_index
        - search_result_index
        - source
        - start_block_index
        - title
        - type
      title: RequestSearchResultLocationCitation
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicThinkingConfigEnabled:
      additionalProperties: false
      properties:
        budget_tokens:
          description: >-
            Determines how many tokens Claude can use for its internal reasoning
            process. Larger budgets can enable more thorough analysis for
            complex problems, improving response quality.


            Must be ≥1024 and less than `max_tokens`.


            See [extended
            thinking](https://docs.claude.com/en/docs/build-with-claude/extended-thinking)
            for details.
          minimum: 1024
          title: Budget Tokens
          type: integer
        display:
          anyOf:
            - $ref: '#/components/schemas/AnthropicThinkingDisplayMode'
            - type: 'null'
          description: >-
            Controls how thinking content appears in the response. When set to
            `summarized`, thinking is returned normally. When set to `omitted`,
            thinking content is redacted but a signature is returned for
            multi-turn continuity. Defaults to `summarized`.
        type:
          const: enabled
          title: Type
          type: string
      required:
        - budget_tokens
        - type
      title: ThinkingConfigEnabled
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicThinkingConfigDisabled:
      additionalProperties: false
      properties:
        type:
          const: disabled
          title: Type
          type: string
      required:
        - type
      title: ThinkingConfigDisabled
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicThinkingConfigAdaptive:
      additionalProperties: false
      properties:
        display:
          anyOf:
            - $ref: '#/components/schemas/AnthropicThinkingDisplayMode'
            - type: 'null'
          description: >-
            Controls how thinking content appears in the response. When set to
            `summarized`, thinking is returned normally. When set to `omitted`,
            thinking content is redacted but a signature is returned for
            multi-turn continuity. Defaults to `summarized`.
        type:
          const: adaptive
          title: Type
          type: string
      required:
        - type
      title: ThinkingConfigAdaptive
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicToolChoiceAuto:
      additionalProperties: false
      description: The model will automatically decide whether to use tools.
      properties:
        disable_parallel_tool_use:
          description: >-
            Whether to disable parallel tool use.


            Defaults to `false`. If set to `true`, the model will output at most
            one tool use.
          title: Disable Parallel Tool Use
          type: boolean
        type:
          const: auto
          title: Type
          type: string
      required:
        - type
      title: ToolChoiceAuto
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicToolChoiceAny:
      additionalProperties: false
      description: The model will use any available tools.
      properties:
        disable_parallel_tool_use:
          description: >-
            Whether to disable parallel tool use.


            Defaults to `false`. If set to `true`, the model will output exactly
            one tool use.
          title: Disable Parallel Tool Use
          type: boolean
        type:
          const: any
          title: Type
          type: string
      required:
        - type
      title: ToolChoiceAny
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicToolChoiceTool:
      additionalProperties: false
      description: The model will use the specified tool with `tool_choice.name`.
      properties:
        disable_parallel_tool_use:
          description: >-
            Whether to disable parallel tool use.


            Defaults to `false`. If set to `true`, the model will output exactly
            one tool use.
          title: Disable Parallel Tool Use
          type: boolean
        name:
          description: The name of the tool to use.
          title: Name
          type: string
        type:
          const: tool
          title: Type
          type: string
      required:
        - name
        - type
      title: ToolChoiceTool
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicToolChoiceNone:
      additionalProperties: false
      description: The model will not be allowed to use tools.
      properties:
        type:
          const: none
          title: Type
          type: string
      required:
        - type
      title: ToolChoiceNone
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicInputSchema:
      additionalProperties: true
      properties:
        properties:
          anyOf:
            - type: object
              additionalProperties: true
            - type: 'null'
          title: Properties
        required:
          anyOf:
            - type: array
              items:
                type: string
            - type: 'null'
          title: Required
        type:
          const: object
          title: Type
          type: string
      required:
        - type
      title: InputSchema
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicAllowedCaller:
      description: |-
        Specifies who can invoke a tool.

        Values:
            direct: The model can call this tool directly.
            code_execution_20250825: The tool can be called from the code execution environment (v1).
            code_execution_20260120: The tool can be called from the code execution environment (v2 with persistence).
      enum:
        - direct
        - code_execution_20250825
        - code_execution_20260120
      title: AllowedCaller
      type: string
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicJsonValue:
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicUserLocation:
      additionalProperties: false
      properties:
        city:
          anyOf:
            - maxLength: 255
              minLength: 1
              type: string
            - type: 'null'
          description: The city of the user.
          examples:
            - New York
            - Tokyo
            - Los Angeles
          title: City
        country:
          anyOf:
            - maxLength: 2
              minLength: 2
              type: string
            - type: 'null'
          description: >-
            The two letter [ISO country
            code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the user.
          examples:
            - US
            - JP
            - GB
          title: Country
        region:
          anyOf:
            - maxLength: 255
              minLength: 1
              type: string
            - type: 'null'
          description: The region of the user.
          examples:
            - California
            - Ontario
            - Wales
          title: Region
        timezone:
          anyOf:
            - maxLength: 255
              minLength: 1
              type: string
            - type: 'null'
          description: The [IANA timezone](https://nodatime.org/TimeZones) of the user.
          examples:
            - America/New_York
            - Asia/Tokyo
            - Europe/London
          title: Timezone
        type:
          const: approximate
          title: Type
          type: string
      required:
        - type
      title: UserLocation
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestCitationsConfig:
      additionalProperties: false
      properties:
        enabled:
          title: Enabled
          type: boolean
      title: RequestCitationsConfig
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseTextBlock:
      properties:
        citations:
          anyOf:
            - items:
                discriminator:
                  mapping:
                    char_location: '#/components/schemas/ResponseCharLocationCitation'
                    content_block_location: '#/components/schemas/ResponseContentBlockLocationCitation'
                    page_location: '#/components/schemas/ResponsePageLocationCitation'
                    search_result_location: '#/components/schemas/ResponseSearchResultLocationCitation'
                    web_search_result_location: >-
                      #/components/schemas/ResponseWebSearchResultLocationCitation
                  propertyName: type
                oneOf:
                  - $ref: '#/components/schemas/AnthropicResponseCharLocationCitation'
                  - $ref: '#/components/schemas/AnthropicResponsePageLocationCitation'
                  - $ref: >-
                      #/components/schemas/AnthropicResponseContentBlockLocationCitation
                  - $ref: >-
                      #/components/schemas/AnthropicResponseWebSearchResultLocationCitation
                  - $ref: >-
                      #/components/schemas/AnthropicResponseSearchResultLocationCitation
              type: array
            - type: 'null'
          default: null
          description: >-
            Citations supporting the text block.


            The type of citation returned will depend on the type of document
            being cited. Citing a PDF results in `page_location`, plain text
            results in `char_location`, and content document results in
            `content_block_location`.
          title: Citations
        text:
          maxLength: 5000000
          minLength: 0
          title: Text
          type: string
        type:
          const: text
          default: text
          title: Type
          type: string
      required:
        - citations
        - text
        - type
      title: ResponseTextBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseThinkingBlock:
      properties:
        signature:
          title: Signature
          type: string
        thinking:
          title: Thinking
          type: string
        type:
          const: thinking
          default: thinking
          title: Type
          type: string
      required:
        - signature
        - thinking
        - type
      title: ResponseThinkingBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseRedactedThinkingBlock:
      properties:
        data:
          title: Data
          type: string
        type:
          const: redacted_thinking
          default: redacted_thinking
          title: Type
          type: string
      required:
        - data
        - type
      title: ResponseRedactedThinkingBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseToolUseBlock:
      properties:
        caller:
          default:
            type: direct
          discriminator:
            mapping:
              code_execution_20250825: '#/components/schemas/ServerToolCaller'
              code_execution_20260120: '#/components/schemas/ServerToolCaller_20260120'
              direct: '#/components/schemas/DirectCaller'
            propertyName: type
          oneOf:
            - $ref: '#/components/schemas/AnthropicDirectCaller'
            - $ref: '#/components/schemas/AnthropicServerToolCaller'
            - $ref: '#/components/schemas/AnthropicServerToolCaller_20260120'
          title: Caller
        id:
          pattern: ^[a-zA-Z0-9_-]+$
          title: Id
          type: string
        input:
          additionalProperties: true
          title: Input
          type: object
        name:
          minLength: 1
          title: Name
          type: string
        type:
          const: tool_use
          default: tool_use
          title: Type
          type: string
      required:
        - caller
        - id
        - input
        - name
        - type
      title: ResponseToolUseBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseServerToolUseBlock:
      properties:
        caller:
          default:
            type: direct
          discriminator:
            mapping:
              code_execution_20250825: '#/components/schemas/ServerToolCaller'
              code_execution_20260120: '#/components/schemas/ServerToolCaller_20260120'
              direct: '#/components/schemas/DirectCaller'
            propertyName: type
          oneOf:
            - $ref: '#/components/schemas/AnthropicDirectCaller'
            - $ref: '#/components/schemas/AnthropicServerToolCaller'
            - $ref: '#/components/schemas/AnthropicServerToolCaller_20260120'
          title: Caller
        id:
          pattern: ^srvtoolu_[a-zA-Z0-9_]+$
          title: Id
          type: string
        input:
          additionalProperties: true
          title: Input
          type: object
        name:
          enum:
            - web_search
            - web_fetch
            - code_execution
            - bash_code_execution
            - text_editor_code_execution
            - tool_search_tool_regex
            - tool_search_tool_bm25
          title: Name
          type: string
        type:
          const: server_tool_use
          default: server_tool_use
          title: Type
          type: string
      required:
        - caller
        - id
        - input
        - name
        - type
      title: ResponseServerToolUseBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseWebSearchToolResultBlock:
      properties:
        caller:
          default:
            type: direct
          discriminator:
            mapping:
              code_execution_20250825: '#/components/schemas/ServerToolCaller'
              code_execution_20260120: '#/components/schemas/ServerToolCaller_20260120'
              direct: '#/components/schemas/DirectCaller'
            propertyName: type
          oneOf:
            - $ref: '#/components/schemas/AnthropicDirectCaller'
            - $ref: '#/components/schemas/AnthropicServerToolCaller'
            - $ref: '#/components/schemas/AnthropicServerToolCaller_20260120'
          title: Caller
        content:
          anyOf:
            - $ref: '#/components/schemas/AnthropicResponseWebSearchToolResultError'
            - items:
                $ref: '#/components/schemas/AnthropicResponseWebSearchResultBlock'
              type: array
          title: Content
        tool_use_id:
          pattern: ^srvtoolu_[a-zA-Z0-9_]+$
          title: Tool Use Id
          type: string
        type:
          const: web_search_tool_result
          default: web_search_tool_result
          title: Type
          type: string
      required:
        - caller
        - content
        - tool_use_id
        - type
      title: ResponseWebSearchToolResultBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseWebFetchToolResultBlock:
      properties:
        caller:
          default:
            type: direct
          discriminator:
            mapping:
              code_execution_20250825: '#/components/schemas/ServerToolCaller'
              code_execution_20260120: '#/components/schemas/ServerToolCaller_20260120'
              direct: '#/components/schemas/DirectCaller'
            propertyName: type
          oneOf:
            - $ref: '#/components/schemas/AnthropicDirectCaller'
            - $ref: '#/components/schemas/AnthropicServerToolCaller'
            - $ref: '#/components/schemas/AnthropicServerToolCaller_20260120'
          title: Caller
        content:
          anyOf:
            - $ref: '#/components/schemas/AnthropicResponseWebFetchToolResultError'
            - $ref: '#/components/schemas/AnthropicResponseWebFetchResultBlock'
          title: Content
        tool_use_id:
          pattern: ^srvtoolu_[a-zA-Z0-9_]+$
          title: Tool Use Id
          type: string
        type:
          const: web_fetch_tool_result
          default: web_fetch_tool_result
          title: Type
          type: string
      required:
        - caller
        - content
        - tool_use_id
        - type
      title: ResponseWebFetchToolResultBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseCodeExecutionToolResultBlock:
      properties:
        content:
          anyOf:
            - $ref: >-
                #/components/schemas/AnthropicResponseCodeExecutionToolResultError
            - $ref: '#/components/schemas/AnthropicResponseCodeExecutionResultBlock'
            - $ref: >-
                #/components/schemas/AnthropicResponseEncryptedCodeExecutionResultBlock
          title: Content
        tool_use_id:
          pattern: ^srvtoolu_[a-zA-Z0-9_]+$
          title: Tool Use Id
          type: string
        type:
          const: code_execution_tool_result
          default: code_execution_tool_result
          title: Type
          type: string
      required:
        - content
        - tool_use_id
        - type
      title: ResponseCodeExecutionToolResultBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseBashCodeExecutionToolResultBlock:
      properties:
        content:
          anyOf:
            - $ref: >-
                #/components/schemas/AnthropicResponseBashCodeExecutionToolResultError
            - $ref: >-
                #/components/schemas/AnthropicResponseBashCodeExecutionResultBlock
          title: Content
        tool_use_id:
          pattern: ^srvtoolu_[a-zA-Z0-9_]+$
          title: Tool Use Id
          type: string
        type:
          const: bash_code_execution_tool_result
          default: bash_code_execution_tool_result
          title: Type
          type: string
      required:
        - content
        - tool_use_id
        - type
      title: ResponseBashCodeExecutionToolResultBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseTextEditorCodeExecutionToolResultBlock:
      properties:
        content:
          anyOf:
            - $ref: >-
                #/components/schemas/AnthropicResponseTextEditorCodeExecutionToolResultError
            - $ref: >-
                #/components/schemas/AnthropicResponseTextEditorCodeExecutionViewResultBlock
            - $ref: >-
                #/components/schemas/AnthropicResponseTextEditorCodeExecutionCreateResultBlock
            - $ref: >-
                #/components/schemas/AnthropicResponseTextEditorCodeExecutionStrReplaceResultBlock
          title: Content
        tool_use_id:
          pattern: ^srvtoolu_[a-zA-Z0-9_]+$
          title: Tool Use Id
          type: string
        type:
          const: text_editor_code_execution_tool_result
          default: text_editor_code_execution_tool_result
          title: Type
          type: string
      required:
        - content
        - tool_use_id
        - type
      title: ResponseTextEditorCodeExecutionToolResultBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseToolSearchToolResultBlock:
      properties:
        content:
          anyOf:
            - $ref: '#/components/schemas/AnthropicResponseToolSearchToolResultError'
            - $ref: >-
                #/components/schemas/AnthropicResponseToolSearchToolSearchResultBlock
          title: Content
        tool_use_id:
          pattern: ^srvtoolu_[a-zA-Z0-9_]+$
          title: Tool Use Id
          type: string
        type:
          const: tool_search_tool_result
          default: tool_search_tool_result
          title: Type
          type: string
      required:
        - content
        - tool_use_id
        - type
      title: ResponseToolSearchToolResultBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseContainerUploadBlock:
      description: Response model for a file uploaded to the container.
      properties:
        file_id:
          title: File Id
          type: string
        type:
          const: container_upload
          default: container_upload
          title: Type
          type: string
      required:
        - file_id
        - type
      title: ResponseContainerUploadBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicCacheCreation:
      properties:
        ephemeral_1h_input_tokens:
          default: 0
          description: The number of input tokens used to create the 1 hour cache entry.
          minimum: 0
          title: Ephemeral 1H Input Tokens
          type: integer
        ephemeral_5m_input_tokens:
          default: 0
          description: The number of input tokens used to create the 5 minute cache entry.
          minimum: 0
          title: Ephemeral 5M Input Tokens
          type: integer
      required:
        - ephemeral_1h_input_tokens
        - ephemeral_5m_input_tokens
      title: CacheCreation
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicOutputTokensDetails:
      properties:
        thinking_tokens:
          default: 0
          description: >-
            Number of output tokens the model generated as internal reasoning,
            including

            the thinking-block delimiter tokens.


            Reflects the raw reasoning the model produced, not the (possibly
            shorter)

            summarized thinking text returned in the response body. Computed by

            re-tokenizing the raw reasoning text, so it may differ from the
            model's exact

            generation count by a small number of tokens. Always ≤
            `output_tokens`;

            `output_tokens - thinking_tokens` approximates the non-reasoning
            output.
          minimum: 0
          title: Thinking Tokens
          type: integer
      required:
        - thinking_tokens
      title: OutputTokensDetails
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicServerToolUsage:
      properties:
        web_fetch_requests:
          default: 0
          description: The number of web fetch tool requests.
          examples:
            - 2
          minimum: 0
          title: Web Fetch Requests
          type: integer
        web_search_requests:
          default: 0
          description: The number of web search tool requests.
          examples:
            - 0
          minimum: 0
          title: Web Search Requests
          type: integer
      required:
        - web_fetch_requests
        - web_search_requests
      title: ServerToolUsage
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicMessageDelta:
      properties:
        container:
          anyOf:
            - $ref: '#/components/schemas/AnthropicContainer'
            - type: 'null'
          default: null
          description: >-
            Information about the container used in this request.


            This will be non-null if a container tool (e.g. code execution) was
            used.
        stop_details:
          anyOf:
            - $ref: '#/components/schemas/AnthropicRefusalStopDetails'
            - type: 'null'
          default: null
          description: >-
            Structured information about why model output stopped.


            This is `null` when the `stop_reason` has no additional detail to
            report.
        stop_reason:
          anyOf:
            - $ref: '#/components/schemas/AnthropicStopReason'
            - type: 'null'
          default: null
          title: Stop Reason
        stop_sequence:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Stop Sequence
      required:
        - container
        - stop_details
        - stop_reason
        - stop_sequence
      title: MessageDelta
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicMessageDeltaUsage:
      properties:
        cache_creation_input_tokens:
          anyOf:
            - minimum: 0
              type: integer
            - type: 'null'
          default: null
          description: >-
            The cumulative number of input tokens used to create the cache
            entry.
          examples:
            - 2051
          title: Cache Creation Input Tokens
        cache_read_input_tokens:
          anyOf:
            - minimum: 0
              type: integer
            - type: 'null'
          default: null
          description: The cumulative number of input tokens read from the cache.
          examples:
            - 2051
          title: Cache Read Input Tokens
        input_tokens:
          anyOf:
            - minimum: 0
              type: integer
            - type: 'null'
          default: null
          description: The cumulative number of input tokens which were used.
          examples:
            - 2095
          title: Input Tokens
        output_tokens:
          description: The cumulative number of output tokens which were used.
          examples:
            - 503
          title: Output Tokens
          type: integer
        output_tokens_details:
          anyOf:
            - $ref: '#/components/schemas/AnthropicOutputTokensDetails'
            - type: 'null'
          default: null
          description: >-
            Breakdown of output tokens by category.


            `output_tokens` remains the inclusive, authoritative total used for
            billing.

            This object provides a read-only decomposition for observability —
            for example,

            how many of the billed output tokens were spent on internal
            reasoning that may

            have been summarized before being returned to you.
        server_tool_use:
          anyOf:
            - $ref: '#/components/schemas/AnthropicServerToolUsage'
            - type: 'null'
          default: null
          description: The number of server tool requests.
      required:
        - cache_creation_input_tokens
        - cache_read_input_tokens
        - input_tokens
        - output_tokens
        - output_tokens_details
        - server_tool_use
      title: MessageDeltaUsage
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicTextContentBlockDelta:
      properties:
        text:
          title: Text
          type: string
        type:
          const: text_delta
          default: text_delta
          title: Type
          type: string
      required:
        - text
        - type
      title: TextContentBlockDelta
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicInputJsonContentBlockDelta:
      properties:
        partial_json:
          title: Partial Json
          type: string
        type:
          const: input_json_delta
          default: input_json_delta
          title: Type
          type: string
      required:
        - partial_json
        - type
      title: InputJsonContentBlockDelta
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicCitationsDelta:
      properties:
        citation:
          discriminator:
            mapping:
              char_location: '#/components/schemas/ResponseCharLocationCitation'
              content_block_location: '#/components/schemas/ResponseContentBlockLocationCitation'
              page_location: '#/components/schemas/ResponsePageLocationCitation'
              search_result_location: '#/components/schemas/ResponseSearchResultLocationCitation'
              web_search_result_location: '#/components/schemas/ResponseWebSearchResultLocationCitation'
            propertyName: type
          oneOf:
            - $ref: '#/components/schemas/AnthropicResponseCharLocationCitation'
            - $ref: '#/components/schemas/AnthropicResponsePageLocationCitation'
            - $ref: >-
                #/components/schemas/AnthropicResponseContentBlockLocationCitation
            - $ref: >-
                #/components/schemas/AnthropicResponseWebSearchResultLocationCitation
            - $ref: >-
                #/components/schemas/AnthropicResponseSearchResultLocationCitation
          title: Citation
        type:
          const: citations_delta
          default: citations_delta
          title: Type
          type: string
      required:
        - citation
        - type
      title: CitationsDelta
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicThinkingContentBlockDelta:
      properties:
        thinking:
          title: Thinking
          type: string
        type:
          const: thinking_delta
          default: thinking_delta
          title: Type
          type: string
      required:
        - thinking
        - type
      title: ThinkingContentBlockDelta
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicSignatureContentBlockDelta:
      properties:
        signature:
          title: Signature
          type: string
        type:
          const: signature_delta
          default: signature_delta
          title: Type
          type: string
      required:
        - signature
        - type
      title: SignatureContentBlockDelta
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestImageBlock:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/AnthropicCacheControlEphemeral'
            - type: 'null'
          description: Create a cache control breakpoint at this content block.
          title: Cache Control
        source:
          discriminator:
            mapping:
              base64: '#/components/schemas/Base64ImageSource'
              url: '#/components/schemas/URLImageSource'
            propertyName: type
          oneOf:
            - $ref: '#/components/schemas/AnthropicBase64ImageSource'
            - $ref: '#/components/schemas/AnthropicURLImageSource'
          title: Source
        type:
          const: image
          title: Type
          type: string
      required:
        - source
        - type
      title: RequestImageBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestDocumentBlock:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/AnthropicCacheControlEphemeral'
            - type: 'null'
          description: Create a cache control breakpoint at this content block.
          title: Cache Control
        citations:
          anyOf:
            - $ref: '#/components/schemas/AnthropicRequestCitationsConfig'
            - type: 'null'
        context:
          anyOf:
            - minLength: 1
              type: string
            - type: 'null'
          title: Context
        source:
          discriminator:
            mapping:
              base64: '#/components/schemas/Base64PDFSource'
              content: '#/components/schemas/ContentBlockSource'
              text: '#/components/schemas/PlainTextSource'
              url: '#/components/schemas/URLPDFSource'
            propertyName: type
          oneOf:
            - $ref: '#/components/schemas/AnthropicBase64PDFSource'
            - $ref: '#/components/schemas/AnthropicPlainTextSource'
            - $ref: '#/components/schemas/AnthropicContentBlockSource'
            - $ref: '#/components/schemas/AnthropicURLPDFSource'
          title: Source
        title:
          anyOf:
            - maxLength: 500
              minLength: 1
              type: string
            - type: 'null'
          title: Title
        type:
          const: document
          title: Type
          type: string
      required:
        - source
        - type
      title: RequestDocumentBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestSearchResultBlock:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/AnthropicCacheControlEphemeral'
            - type: 'null'
          description: Create a cache control breakpoint at this content block.
          title: Cache Control
        citations:
          $ref: '#/components/schemas/AnthropicRequestCitationsConfig'
        content:
          items:
            $ref: '#/components/schemas/AnthropicRequestTextBlock'
          title: Content
          type: array
        source:
          title: Source
          type: string
        title:
          title: Title
          type: string
        type:
          const: search_result
          title: Type
          type: string
      required:
        - content
        - source
        - title
        - type
      title: RequestSearchResultBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestThinkingBlock:
      additionalProperties: false
      properties:
        signature:
          title: Signature
          type: string
        thinking:
          title: Thinking
          type: string
        type:
          const: thinking
          title: Type
          type: string
      required:
        - signature
        - thinking
        - type
      title: RequestThinkingBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestRedactedThinkingBlock:
      additionalProperties: false
      properties:
        data:
          title: Data
          type: string
        type:
          const: redacted_thinking
          title: Type
          type: string
      required:
        - data
        - type
      title: RequestRedactedThinkingBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestToolUseBlock:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/AnthropicCacheControlEphemeral'
            - type: 'null'
          description: Create a cache control breakpoint at this content block.
          title: Cache Control
        caller:
          discriminator:
            mapping:
              code_execution_20250825: '#/components/schemas/ServerToolCaller'
              code_execution_20260120: '#/components/schemas/ServerToolCaller_20260120'
              direct: '#/components/schemas/DirectCaller'
            propertyName: type
          oneOf:
            - $ref: '#/components/schemas/AnthropicDirectCaller'
            - $ref: '#/components/schemas/AnthropicServerToolCaller'
            - $ref: '#/components/schemas/AnthropicServerToolCaller_20260120'
          title: Caller
        id:
          pattern: ^[a-zA-Z0-9_-]+$
          title: Id
          type: string
        input:
          additionalProperties: true
          title: Input
          type: object
        name:
          maxLength: 200
          minLength: 1
          title: Name
          type: string
        type:
          const: tool_use
          title: Type
          type: string
      required:
        - id
        - input
        - name
        - type
      title: RequestToolUseBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestToolResultBlock:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/AnthropicCacheControlEphemeral'
            - type: 'null'
          description: Create a cache control breakpoint at this content block.
          title: Cache Control
        content:
          anyOf:
            - type: string
            - items:
                discriminator:
                  mapping:
                    document: '#/components/schemas/RequestDocumentBlock'
                    image: '#/components/schemas/RequestImageBlock'
                    search_result: '#/components/schemas/RequestSearchResultBlock'
                    text: '#/components/schemas/RequestTextBlock'
                    tool_reference: '#/components/schemas/RequestToolReferenceBlock'
                  propertyName: type
                oneOf:
                  - $ref: '#/components/schemas/AnthropicRequestTextBlock'
                  - $ref: '#/components/schemas/AnthropicRequestImageBlock'
                  - $ref: '#/components/schemas/AnthropicRequestSearchResultBlock'
                  - $ref: '#/components/schemas/AnthropicRequestDocumentBlock'
                  - $ref: '#/components/schemas/AnthropicRequestToolReferenceBlock'
                title: Block
              type: array
          title: Content
        is_error:
          title: Is Error
          type: boolean
        tool_use_id:
          pattern: ^[a-zA-Z0-9_-]+$
          title: Tool Use Id
          type: string
        type:
          const: tool_result
          title: Type
          type: string
      required:
        - tool_use_id
        - type
      title: RequestToolResultBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestServerToolUseBlock:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/AnthropicCacheControlEphemeral'
            - type: 'null'
          description: Create a cache control breakpoint at this content block.
          title: Cache Control
        caller:
          discriminator:
            mapping:
              code_execution_20250825: '#/components/schemas/ServerToolCaller'
              code_execution_20260120: '#/components/schemas/ServerToolCaller_20260120'
              direct: '#/components/schemas/DirectCaller'
            propertyName: type
          oneOf:
            - $ref: '#/components/schemas/AnthropicDirectCaller'
            - $ref: '#/components/schemas/AnthropicServerToolCaller'
            - $ref: '#/components/schemas/AnthropicServerToolCaller_20260120'
          title: Caller
        id:
          pattern: ^srvtoolu_[a-zA-Z0-9_]+$
          title: Id
          type: string
        input:
          additionalProperties: true
          title: Input
          type: object
        name:
          enum:
            - web_search
            - web_fetch
            - code_execution
            - bash_code_execution
            - text_editor_code_execution
            - tool_search_tool_regex
            - tool_search_tool_bm25
          title: Name
          type: string
        type:
          const: server_tool_use
          title: Type
          type: string
      required:
        - id
        - input
        - name
        - type
      title: RequestServerToolUseBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestWebSearchToolResultBlock:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/AnthropicCacheControlEphemeral'
            - type: 'null'
          description: Create a cache control breakpoint at this content block.
          title: Cache Control
        caller:
          discriminator:
            mapping:
              code_execution_20250825: '#/components/schemas/ServerToolCaller'
              code_execution_20260120: '#/components/schemas/ServerToolCaller_20260120'
              direct: '#/components/schemas/DirectCaller'
            propertyName: type
          oneOf:
            - $ref: '#/components/schemas/AnthropicDirectCaller'
            - $ref: '#/components/schemas/AnthropicServerToolCaller'
            - $ref: '#/components/schemas/AnthropicServerToolCaller_20260120'
          title: Caller
        content:
          anyOf:
            - items:
                $ref: '#/components/schemas/AnthropicRequestWebSearchResultBlock'
              type: array
              title: web_search_tool_result_block_item
            - $ref: '#/components/schemas/AnthropicRequestWebSearchToolResultError'
          title: Content
        tool_use_id:
          pattern: ^srvtoolu_[a-zA-Z0-9_]+$
          title: Tool Use Id
          type: string
        type:
          const: web_search_tool_result
          title: Type
          type: string
      required:
        - content
        - tool_use_id
        - type
      title: RequestWebSearchToolResultBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestWebFetchToolResultBlock:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/AnthropicCacheControlEphemeral'
            - type: 'null'
          description: Create a cache control breakpoint at this content block.
          title: Cache Control
        caller:
          discriminator:
            mapping:
              code_execution_20250825: '#/components/schemas/ServerToolCaller'
              code_execution_20260120: '#/components/schemas/ServerToolCaller_20260120'
              direct: '#/components/schemas/DirectCaller'
            propertyName: type
          oneOf:
            - $ref: '#/components/schemas/AnthropicDirectCaller'
            - $ref: '#/components/schemas/AnthropicServerToolCaller'
            - $ref: '#/components/schemas/AnthropicServerToolCaller_20260120'
          title: Caller
        content:
          anyOf:
            - $ref: '#/components/schemas/AnthropicRequestWebFetchToolResultError'
            - $ref: '#/components/schemas/AnthropicRequestWebFetchResultBlock'
          title: Content
        tool_use_id:
          pattern: ^srvtoolu_[a-zA-Z0-9_]+$
          title: Tool Use Id
          type: string
        type:
          const: web_fetch_tool_result
          title: Type
          type: string
      required:
        - content
        - tool_use_id
        - type
      title: RequestWebFetchToolResultBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestCodeExecutionToolResultBlock:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/AnthropicCacheControlEphemeral'
            - type: 'null'
          description: Create a cache control breakpoint at this content block.
          title: Cache Control
        content:
          anyOf:
            - $ref: >-
                #/components/schemas/AnthropicRequestCodeExecutionToolResultError
            - $ref: '#/components/schemas/AnthropicRequestCodeExecutionResultBlock'
            - $ref: >-
                #/components/schemas/AnthropicRequestEncryptedCodeExecutionResultBlock
          title: Content
        tool_use_id:
          pattern: ^srvtoolu_[a-zA-Z0-9_]+$
          title: Tool Use Id
          type: string
        type:
          const: code_execution_tool_result
          title: Type
          type: string
      required:
        - content
        - tool_use_id
        - type
      title: RequestCodeExecutionToolResultBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestBashCodeExecutionToolResultBlock:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/AnthropicCacheControlEphemeral'
            - type: 'null'
          description: Create a cache control breakpoint at this content block.
          title: Cache Control
        content:
          anyOf:
            - $ref: >-
                #/components/schemas/AnthropicRequestBashCodeExecutionToolResultError
            - $ref: >-
                #/components/schemas/AnthropicRequestBashCodeExecutionResultBlock
          title: Content
        tool_use_id:
          pattern: ^srvtoolu_[a-zA-Z0-9_]+$
          title: Tool Use Id
          type: string
        type:
          const: bash_code_execution_tool_result
          title: Type
          type: string
      required:
        - content
        - tool_use_id
        - type
      title: RequestBashCodeExecutionToolResultBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestTextEditorCodeExecutionToolResultBlock:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/AnthropicCacheControlEphemeral'
            - type: 'null'
          description: Create a cache control breakpoint at this content block.
          title: Cache Control
        content:
          anyOf:
            - $ref: >-
                #/components/schemas/AnthropicRequestTextEditorCodeExecutionToolResultError
            - $ref: >-
                #/components/schemas/AnthropicRequestTextEditorCodeExecutionViewResultBlock
            - $ref: >-
                #/components/schemas/AnthropicRequestTextEditorCodeExecutionCreateResultBlock
            - $ref: >-
                #/components/schemas/AnthropicRequestTextEditorCodeExecutionStrReplaceResultBlock
          title: Content
        tool_use_id:
          pattern: ^srvtoolu_[a-zA-Z0-9_]+$
          title: Tool Use Id
          type: string
        type:
          const: text_editor_code_execution_tool_result
          title: Type
          type: string
      required:
        - content
        - tool_use_id
        - type
      title: RequestTextEditorCodeExecutionToolResultBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestToolSearchToolResultBlock:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/AnthropicCacheControlEphemeral'
            - type: 'null'
          description: Create a cache control breakpoint at this content block.
          title: Cache Control
        content:
          anyOf:
            - $ref: '#/components/schemas/AnthropicRequestToolSearchToolResultError'
            - $ref: >-
                #/components/schemas/AnthropicRequestToolSearchToolSearchResultBlock
          title: Content
        tool_use_id:
          pattern: ^srvtoolu_[a-zA-Z0-9_]+$
          title: Tool Use Id
          type: string
        type:
          const: tool_search_tool_result
          title: Type
          type: string
      required:
        - content
        - tool_use_id
        - type
      title: RequestToolSearchToolResultBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestContainerUploadBlock:
      additionalProperties: false
      description: >-
        A content block that represents a file to be uploaded to the container

        Files uploaded via this block will be available in the container's input
        directory.
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/AnthropicCacheControlEphemeral'
            - type: 'null'
          description: Create a cache control breakpoint at this content block.
          title: Cache Control
        file_id:
          title: File Id
          type: string
        type:
          const: container_upload
          title: Type
          type: string
      required:
        - file_id
        - type
      title: RequestContainerUploadBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestMidConvSystemBlock:
      additionalProperties: false
      description: >-
        System instructions that appear mid-conversation.


        Use this block to provide or update system-level instructions at a
        specific

        point in the conversation, rather than only via the top-level `system`
        parameter.
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/AnthropicCacheControlEphemeral'
            - type: 'null'
          description: Create a cache control breakpoint at this content block.
          title: Cache Control
        content:
          description: System instruction text blocks.
          items:
            discriminator:
              mapping:
                text: '#/components/schemas/RequestTextBlock'
              propertyName: type
            oneOf:
              - $ref: '#/components/schemas/AnthropicRequestTextBlock'
          title: Content
          type: array
        type:
          const: mid_conv_system
          title: Type
          type: string
      required:
        - content
        - type
      title: RequestMidConvSystemBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicThinkingDisplayMode:
      enum:
        - summarized
        - omitted
      title: ThinkingDisplayMode
      type: string
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseCharLocationCitation:
      properties:
        cited_text:
          title: Cited Text
          type: string
        document_index:
          minimum: 0
          title: Document Index
          type: integer
        document_title:
          anyOf:
            - type: string
            - type: 'null'
          title: Document Title
        end_char_index:
          title: End Char Index
          type: integer
        file_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: File Id
        start_char_index:
          minimum: 0
          title: Start Char Index
          type: integer
        type:
          const: char_location
          default: char_location
          title: Type
          type: string
      required:
        - cited_text
        - document_index
        - document_title
        - end_char_index
        - file_id
        - start_char_index
        - type
      title: ResponseCharLocationCitation
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponsePageLocationCitation:
      properties:
        cited_text:
          title: Cited Text
          type: string
        document_index:
          minimum: 0
          title: Document Index
          type: integer
        document_title:
          anyOf:
            - type: string
            - type: 'null'
          title: Document Title
        end_page_number:
          title: End Page Number
          type: integer
        file_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: File Id
        start_page_number:
          minimum: 1
          title: Start Page Number
          type: integer
        type:
          const: page_location
          default: page_location
          title: Type
          type: string
      required:
        - cited_text
        - document_index
        - document_title
        - end_page_number
        - file_id
        - start_page_number
        - type
      title: ResponsePageLocationCitation
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseContentBlockLocationCitation:
      properties:
        cited_text:
          description: >-
            The full text of the cited block range, concatenated.


            Always equals the contents of
            `content[start_block_index:end_block_index]` joined together. The
            text block is the minimal citable unit; this field is never a
            substring of a single block. Not counted toward output tokens, and
            not counted toward input tokens when sent back in subsequent turns.
          title: Cited Text
          type: string
        document_index:
          minimum: 0
          title: Document Index
          type: integer
        document_title:
          anyOf:
            - type: string
            - type: 'null'
          title: Document Title
        end_block_index:
          description: >-
            Exclusive 0-based end index of the cited block range in the source's
            `content` array.


            Always greater than `start_block_index`; a single-block citation has
            `end_block_index = start_block_index + 1`.
          title: End Block Index
          type: integer
        file_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: File Id
        start_block_index:
          description: >-
            0-based index of the first cited block in the source's `content`
            array.
          minimum: 0
          title: Start Block Index
          type: integer
        type:
          const: content_block_location
          default: content_block_location
          title: Type
          type: string
      required:
        - cited_text
        - document_index
        - document_title
        - end_block_index
        - file_id
        - start_block_index
        - type
      title: ResponseContentBlockLocationCitation
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseWebSearchResultLocationCitation:
      properties:
        cited_text:
          title: Cited Text
          type: string
        encrypted_index:
          title: Encrypted Index
          type: string
        title:
          anyOf:
            - type: string
              maxLength: 512
            - type: 'null'
          title: Title
        type:
          const: web_search_result_location
          default: web_search_result_location
          title: Type
          type: string
        url:
          title: Url
          type: string
      required:
        - cited_text
        - encrypted_index
        - title
        - type
        - url
      title: ResponseWebSearchResultLocationCitation
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseSearchResultLocationCitation:
      properties:
        cited_text:
          description: >-
            The full text of the cited block range, concatenated.


            Always equals the contents of
            `content[start_block_index:end_block_index]` joined together. The
            text block is the minimal citable unit; this field is never a
            substring of a single block. Not counted toward output tokens, and
            not counted toward input tokens when sent back in subsequent turns.
          title: Cited Text
          type: string
        end_block_index:
          description: >-
            Exclusive 0-based end index of the cited block range in the source's
            `content` array.


            Always greater than `start_block_index`; a single-block citation has
            `end_block_index = start_block_index + 1`.
          title: End Block Index
          type: integer
        search_result_index:
          description: >-
            0-based index of the cited search result among all `search_result`
            content blocks in the request, in the order they appear across
            messages and tool results.


            Counted separately from `document_index`; server-side web search
            results are not included in this count.
          minimum: 0
          title: Search Result Index
          type: integer
        source:
          title: Source
          type: string
        start_block_index:
          description: >-
            0-based index of the first cited block in the source's `content`
            array.
          minimum: 0
          title: Start Block Index
          type: integer
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
        type:
          const: search_result_location
          default: search_result_location
          title: Type
          type: string
      required:
        - cited_text
        - end_block_index
        - search_result_index
        - source
        - start_block_index
        - title
        - type
      title: ResponseSearchResultLocationCitation
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicDirectCaller:
      additionalProperties: false
      description: Tool invocation directly from the model.
      properties:
        type:
          const: direct
          title: Type
          type: string
      required:
        - type
      title: DirectCaller
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicServerToolCaller:
      additionalProperties: false
      description: Tool invocation generated by a server-side tool.
      properties:
        tool_id:
          pattern: ^srvtoolu_[a-zA-Z0-9_]+$
          title: Tool Id
          type: string
        type:
          const: code_execution_20250825
          title: Type
          type: string
      required:
        - tool_id
        - type
      title: ServerToolCaller
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicServerToolCaller_20260120:
      additionalProperties: false
      properties:
        tool_id:
          pattern: ^srvtoolu_[a-zA-Z0-9_]+$
          title: Tool Id
          type: string
        type:
          const: code_execution_20260120
          title: Type
          type: string
      required:
        - tool_id
        - type
      title: ServerToolCaller_20260120
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseWebSearchToolResultError:
      properties:
        error_code:
          $ref: '#/components/schemas/AnthropicWebSearchToolResultErrorCode'
        type:
          const: web_search_tool_result_error
          default: web_search_tool_result_error
          title: Type
          type: string
      required:
        - error_code
        - type
      title: ResponseWebSearchToolResultError
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseWebSearchResultBlock:
      properties:
        encrypted_content:
          title: Encrypted Content
          type: string
        page_age:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Page Age
        title:
          title: Title
          type: string
        type:
          const: web_search_result
          default: web_search_result
          title: Type
          type: string
        url:
          title: Url
          type: string
      required:
        - encrypted_content
        - page_age
        - title
        - type
        - url
      title: ResponseWebSearchResultBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseWebFetchToolResultError:
      properties:
        error_code:
          $ref: '#/components/schemas/AnthropicWebFetchToolResultErrorCode'
        type:
          const: web_fetch_tool_result_error
          default: web_fetch_tool_result_error
          title: Type
          type: string
      required:
        - error_code
        - type
      title: ResponseWebFetchToolResultError
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseWebFetchResultBlock:
      properties:
        content:
          $ref: '#/components/schemas/AnthropicResponseDocumentBlock'
        retrieved_at:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: ISO 8601 timestamp when the content was retrieved
          title: Retrieved At
        type:
          const: web_fetch_result
          default: web_fetch_result
          title: Type
          type: string
        url:
          description: Fetched content URL
          title: Url
          type: string
      required:
        - content
        - retrieved_at
        - type
        - url
      title: ResponseWebFetchResultBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseCodeExecutionToolResultError:
      properties:
        error_code:
          $ref: '#/components/schemas/AnthropicCodeExecutionToolResultErrorCode'
        type:
          const: code_execution_tool_result_error
          default: code_execution_tool_result_error
          title: Type
          type: string
      required:
        - error_code
        - type
      title: ResponseCodeExecutionToolResultError
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseCodeExecutionResultBlock:
      properties:
        content:
          items:
            $ref: '#/components/schemas/AnthropicResponseCodeExecutionOutputBlock'
          title: Content
          type: array
        return_code:
          title: Return Code
          type: integer
        stderr:
          title: Stderr
          type: string
        stdout:
          title: Stdout
          type: string
        type:
          const: code_execution_result
          default: code_execution_result
          title: Type
          type: string
      required:
        - content
        - return_code
        - stderr
        - stdout
        - type
      title: ResponseCodeExecutionResultBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseEncryptedCodeExecutionResultBlock:
      description: >-
        Code execution result with encrypted stdout for PFC + web_search
        results.
      properties:
        content:
          items:
            $ref: '#/components/schemas/AnthropicResponseCodeExecutionOutputBlock'
          title: Content
          type: array
        encrypted_stdout:
          title: Encrypted Stdout
          type: string
        return_code:
          title: Return Code
          type: integer
        stderr:
          title: Stderr
          type: string
        type:
          const: encrypted_code_execution_result
          default: encrypted_code_execution_result
          title: Type
          type: string
      required:
        - content
        - encrypted_stdout
        - return_code
        - stderr
        - type
      title: ResponseEncryptedCodeExecutionResultBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseBashCodeExecutionToolResultError:
      properties:
        error_code:
          $ref: '#/components/schemas/AnthropicBashCodeExecutionToolResultErrorCode'
        type:
          const: bash_code_execution_tool_result_error
          default: bash_code_execution_tool_result_error
          title: Type
          type: string
      required:
        - error_code
        - type
      title: ResponseBashCodeExecutionToolResultError
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseBashCodeExecutionResultBlock:
      properties:
        content:
          items:
            $ref: '#/components/schemas/AnthropicResponseBashCodeExecutionOutputBlock'
          title: Content
          type: array
        return_code:
          title: Return Code
          type: integer
        stderr:
          title: Stderr
          type: string
        stdout:
          title: Stdout
          type: string
        type:
          const: bash_code_execution_result
          default: bash_code_execution_result
          title: Type
          type: string
      required:
        - content
        - return_code
        - stderr
        - stdout
        - type
      title: ResponseBashCodeExecutionResultBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseTextEditorCodeExecutionToolResultError:
      properties:
        error_code:
          $ref: >-
            #/components/schemas/AnthropicTextEditorCodeExecutionToolResultErrorCode
        error_message:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Error Message
        type:
          const: text_editor_code_execution_tool_result_error
          default: text_editor_code_execution_tool_result_error
          title: Type
          type: string
      required:
        - error_code
        - error_message
        - type
      title: ResponseTextEditorCodeExecutionToolResultError
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseTextEditorCodeExecutionViewResultBlock:
      properties:
        content:
          title: Content
          type: string
        file_type:
          enum:
            - text
            - image
            - pdf
          title: File Type
          type: string
        num_lines:
          anyOf:
            - type: integer
            - type: 'null'
          default: null
          title: Num Lines
        start_line:
          anyOf:
            - type: integer
            - type: 'null'
          default: null
          title: Start Line
        total_lines:
          anyOf:
            - type: integer
            - type: 'null'
          default: null
          title: Total Lines
        type:
          const: text_editor_code_execution_view_result
          default: text_editor_code_execution_view_result
          title: Type
          type: string
      required:
        - content
        - file_type
        - num_lines
        - start_line
        - total_lines
        - type
      title: ResponseTextEditorCodeExecutionViewResultBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseTextEditorCodeExecutionCreateResultBlock:
      properties:
        is_file_update:
          title: Is File Update
          type: boolean
        type:
          const: text_editor_code_execution_create_result
          default: text_editor_code_execution_create_result
          title: Type
          type: string
      required:
        - is_file_update
        - type
      title: ResponseTextEditorCodeExecutionCreateResultBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseTextEditorCodeExecutionStrReplaceResultBlock:
      properties:
        lines:
          anyOf:
            - type: array
              items:
                type: string
            - type: 'null'
          default: null
          title: Lines
        new_lines:
          anyOf:
            - type: integer
            - type: 'null'
          default: null
          title: New Lines
        new_start:
          anyOf:
            - type: integer
            - type: 'null'
          default: null
          title: New Start
        old_lines:
          anyOf:
            - type: integer
            - type: 'null'
          default: null
          title: Old Lines
        old_start:
          anyOf:
            - type: integer
            - type: 'null'
          default: null
          title: Old Start
        type:
          const: text_editor_code_execution_str_replace_result
          default: text_editor_code_execution_str_replace_result
          title: Type
          type: string
      required:
        - lines
        - new_lines
        - new_start
        - old_lines
        - old_start
        - type
      title: ResponseTextEditorCodeExecutionStrReplaceResultBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseToolSearchToolResultError:
      properties:
        error_code:
          $ref: '#/components/schemas/AnthropicToolSearchToolResultErrorCode'
        error_message:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Error Message
        type:
          const: tool_search_tool_result_error
          default: tool_search_tool_result_error
          title: Type
          type: string
      required:
        - error_code
        - error_message
        - type
      title: ResponseToolSearchToolResultError
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseToolSearchToolSearchResultBlock:
      properties:
        tool_references:
          items:
            $ref: '#/components/schemas/AnthropicResponseToolReferenceBlock'
          title: Tool References
          type: array
        type:
          const: tool_search_tool_search_result
          default: tool_search_tool_search_result
          title: Type
          type: string
      required:
        - tool_references
        - type
      title: ResponseToolSearchToolSearchResultBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicBase64ImageSource:
      additionalProperties: false
      properties:
        data:
          format: byte
          title: Data
          type: string
        media_type:
          enum:
            - image/jpeg
            - image/png
            - image/gif
            - image/webp
          title: Media Type
          type: string
        type:
          const: base64
          title: Type
          type: string
      required:
        - data
        - media_type
        - type
      title: Base64ImageSource
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicURLImageSource:
      additionalProperties: false
      properties:
        type:
          const: url
          title: Type
          type: string
        url:
          title: Url
          type: string
      required:
        - type
        - url
      title: URLImageSource
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicBase64PDFSource:
      additionalProperties: false
      properties:
        data:
          format: byte
          title: Data
          type: string
        media_type:
          const: application/pdf
          title: Media Type
          type: string
        type:
          const: base64
          title: Type
          type: string
      required:
        - data
        - media_type
        - type
      title: Base64PDFSource
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicPlainTextSource:
      additionalProperties: false
      properties:
        data:
          title: Data
          type: string
        media_type:
          const: text/plain
          title: Media Type
          type: string
        type:
          const: text
          title: Type
          type: string
      required:
        - data
        - media_type
        - type
      title: PlainTextSource
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicContentBlockSource:
      additionalProperties: false
      properties:
        content:
          anyOf:
            - type: string
            - items:
                discriminator:
                  mapping:
                    image: '#/components/schemas/RequestImageBlock'
                    text: '#/components/schemas/RequestTextBlock'
                  propertyName: type
                oneOf:
                  - $ref: '#/components/schemas/AnthropicRequestTextBlock'
                  - $ref: '#/components/schemas/AnthropicRequestImageBlock'
                title: content_block_source_content_item
              type: array
              title: content_block_source_content
          title: Content
        type:
          const: content
          title: Type
          type: string
      required:
        - content
        - type
      title: ContentBlockSource
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicURLPDFSource:
      additionalProperties: false
      properties:
        type:
          const: url
          title: Type
          type: string
        url:
          title: Url
          type: string
      required:
        - type
        - url
      title: URLPDFSource
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestToolReferenceBlock:
      additionalProperties: false
      description: Tool reference block that can be included in tool_result content.
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/AnthropicCacheControlEphemeral'
            - type: 'null'
          description: Create a cache control breakpoint at this content block.
          title: Cache Control
        tool_name:
          maxLength: 256
          minLength: 1
          pattern: ^[a-zA-Z0-9_-]{1,256}$
          title: Tool Name
          type: string
        type:
          const: tool_reference
          title: Type
          type: string
      required:
        - tool_name
        - type
      title: RequestToolReferenceBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestWebSearchResultBlock:
      additionalProperties: false
      properties:
        encrypted_content:
          title: Encrypted Content
          type: string
        page_age:
          anyOf:
            - type: string
            - type: 'null'
          title: Page Age
        title:
          title: Title
          type: string
        type:
          const: web_search_result
          title: Type
          type: string
        url:
          title: Url
          type: string
      required:
        - encrypted_content
        - title
        - type
        - url
      title: RequestWebSearchResultBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestWebSearchToolResultError:
      additionalProperties: false
      properties:
        error_code:
          $ref: '#/components/schemas/AnthropicWebSearchToolResultErrorCode'
        type:
          const: web_search_tool_result_error
          title: Type
          type: string
      required:
        - error_code
        - type
      title: RequestWebSearchToolResultError
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestWebFetchToolResultError:
      additionalProperties: false
      properties:
        error_code:
          $ref: '#/components/schemas/AnthropicWebFetchToolResultErrorCode'
        type:
          const: web_fetch_tool_result_error
          title: Type
          type: string
      required:
        - error_code
        - type
      title: RequestWebFetchToolResultError
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestWebFetchResultBlock:
      additionalProperties: false
      properties:
        content:
          $ref: '#/components/schemas/AnthropicRequestDocumentBlock'
        retrieved_at:
          anyOf:
            - type: string
            - type: 'null'
          description: ISO 8601 timestamp when the content was retrieved
          title: Retrieved At
        type:
          const: web_fetch_result
          title: Type
          type: string
        url:
          description: Fetched content URL
          title: Url
          type: string
      required:
        - content
        - type
        - url
      title: RequestWebFetchResultBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestCodeExecutionToolResultError:
      additionalProperties: false
      properties:
        error_code:
          $ref: '#/components/schemas/AnthropicCodeExecutionToolResultErrorCode'
        type:
          const: code_execution_tool_result_error
          title: Type
          type: string
      required:
        - error_code
        - type
      title: RequestCodeExecutionToolResultError
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestCodeExecutionResultBlock:
      additionalProperties: false
      properties:
        content:
          items:
            $ref: '#/components/schemas/AnthropicRequestCodeExecutionOutputBlock'
          title: Content
          type: array
        return_code:
          title: Return Code
          type: integer
        stderr:
          title: Stderr
          type: string
        stdout:
          title: Stdout
          type: string
        type:
          const: code_execution_result
          title: Type
          type: string
      required:
        - content
        - return_code
        - stderr
        - stdout
        - type
      title: RequestCodeExecutionResultBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestEncryptedCodeExecutionResultBlock:
      additionalProperties: false
      description: >-
        Code execution result with encrypted stdout for PFC + web_search
        results.
      properties:
        content:
          items:
            $ref: '#/components/schemas/AnthropicRequestCodeExecutionOutputBlock'
          title: Content
          type: array
        encrypted_stdout:
          title: Encrypted Stdout
          type: string
        return_code:
          title: Return Code
          type: integer
        stderr:
          title: Stderr
          type: string
        type:
          const: encrypted_code_execution_result
          title: Type
          type: string
      required:
        - content
        - encrypted_stdout
        - return_code
        - stderr
        - type
      title: RequestEncryptedCodeExecutionResultBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestBashCodeExecutionToolResultError:
      additionalProperties: false
      properties:
        error_code:
          $ref: '#/components/schemas/AnthropicBashCodeExecutionToolResultErrorCode'
        type:
          const: bash_code_execution_tool_result_error
          title: Type
          type: string
      required:
        - error_code
        - type
      title: RequestBashCodeExecutionToolResultError
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestBashCodeExecutionResultBlock:
      additionalProperties: false
      properties:
        content:
          items:
            $ref: '#/components/schemas/AnthropicRequestBashCodeExecutionOutputBlock'
          title: Content
          type: array
        return_code:
          title: Return Code
          type: integer
        stderr:
          title: Stderr
          type: string
        stdout:
          title: Stdout
          type: string
        type:
          const: bash_code_execution_result
          title: Type
          type: string
      required:
        - content
        - return_code
        - stderr
        - stdout
        - type
      title: RequestBashCodeExecutionResultBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestTextEditorCodeExecutionToolResultError:
      additionalProperties: false
      properties:
        error_code:
          $ref: >-
            #/components/schemas/AnthropicTextEditorCodeExecutionToolResultErrorCode
        error_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Message
        type:
          const: text_editor_code_execution_tool_result_error
          title: Type
          type: string
      required:
        - error_code
        - type
      title: RequestTextEditorCodeExecutionToolResultError
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestTextEditorCodeExecutionViewResultBlock:
      additionalProperties: false
      properties:
        content:
          title: Content
          type: string
        file_type:
          enum:
            - text
            - image
            - pdf
          title: File Type
          type: string
        num_lines:
          anyOf:
            - type: integer
            - type: 'null'
          title: Num Lines
        start_line:
          anyOf:
            - type: integer
            - type: 'null'
          title: Start Line
        total_lines:
          anyOf:
            - type: integer
            - type: 'null'
          title: Total Lines
        type:
          const: text_editor_code_execution_view_result
          title: Type
          type: string
      required:
        - content
        - file_type
        - type
      title: RequestTextEditorCodeExecutionViewResultBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestTextEditorCodeExecutionCreateResultBlock:
      additionalProperties: false
      properties:
        is_file_update:
          title: Is File Update
          type: boolean
        type:
          const: text_editor_code_execution_create_result
          title: Type
          type: string
      required:
        - is_file_update
        - type
      title: RequestTextEditorCodeExecutionCreateResultBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestTextEditorCodeExecutionStrReplaceResultBlock:
      additionalProperties: false
      properties:
        lines:
          anyOf:
            - type: array
              items:
                type: string
            - type: 'null'
          title: Lines
        new_lines:
          anyOf:
            - type: integer
            - type: 'null'
          title: New Lines
        new_start:
          anyOf:
            - type: integer
            - type: 'null'
          title: New Start
        old_lines:
          anyOf:
            - type: integer
            - type: 'null'
          title: Old Lines
        old_start:
          anyOf:
            - type: integer
            - type: 'null'
          title: Old Start
        type:
          const: text_editor_code_execution_str_replace_result
          title: Type
          type: string
      required:
        - type
      title: RequestTextEditorCodeExecutionStrReplaceResultBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestToolSearchToolResultError:
      additionalProperties: false
      properties:
        error_code:
          $ref: '#/components/schemas/AnthropicToolSearchToolResultErrorCode'
        type:
          const: tool_search_tool_result_error
          title: Type
          type: string
      required:
        - error_code
        - type
      title: RequestToolSearchToolResultError
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestToolSearchToolSearchResultBlock:
      additionalProperties: false
      properties:
        tool_references:
          items:
            $ref: '#/components/schemas/AnthropicRequestToolReferenceBlock'
          title: Tool References
          type: array
        type:
          const: tool_search_tool_search_result
          title: Type
          type: string
      required:
        - tool_references
        - type
      title: RequestToolSearchToolSearchResultBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicWebSearchToolResultErrorCode:
      enum:
        - invalid_tool_input
        - unavailable
        - max_uses_exceeded
        - too_many_requests
        - query_too_long
        - request_too_large
      title: WebSearchToolResultErrorCode
      type: string
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicWebFetchToolResultErrorCode:
      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
      title: WebFetchToolResultErrorCode
      type: string
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseDocumentBlock:
      properties:
        citations:
          anyOf:
            - $ref: '#/components/schemas/AnthropicResponseCitationsConfig'
            - type: 'null'
          default: null
          description: Citation configuration for the document
        source:
          discriminator:
            mapping:
              base64: '#/components/schemas/Base64PDFSource'
              text: '#/components/schemas/PlainTextSource'
            propertyName: type
          oneOf:
            - $ref: '#/components/schemas/AnthropicBase64PDFSource'
            - $ref: '#/components/schemas/AnthropicPlainTextSource'
          title: Source
        title:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: The title of the document
          title: Title
        type:
          const: document
          default: document
          title: Type
          type: string
      required:
        - citations
        - source
        - title
        - type
      title: ResponseDocumentBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicCodeExecutionToolResultErrorCode:
      enum:
        - invalid_tool_input
        - unavailable
        - too_many_requests
        - execution_time_exceeded
      title: CodeExecutionToolResultErrorCode
      type: string
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseCodeExecutionOutputBlock:
      properties:
        file_id:
          title: File Id
          type: string
        type:
          const: code_execution_output
          default: code_execution_output
          title: Type
          type: string
      required:
        - file_id
        - type
      title: ResponseCodeExecutionOutputBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicBashCodeExecutionToolResultErrorCode:
      enum:
        - invalid_tool_input
        - unavailable
        - too_many_requests
        - execution_time_exceeded
        - output_file_too_large
      title: BashCodeExecutionToolResultErrorCode
      type: string
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseBashCodeExecutionOutputBlock:
      properties:
        file_id:
          title: File Id
          type: string
        type:
          const: bash_code_execution_output
          default: bash_code_execution_output
          title: Type
          type: string
      required:
        - file_id
        - type
      title: ResponseBashCodeExecutionOutputBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicTextEditorCodeExecutionToolResultErrorCode:
      enum:
        - invalid_tool_input
        - unavailable
        - too_many_requests
        - execution_time_exceeded
        - file_not_found
      title: TextEditorCodeExecutionToolResultErrorCode
      type: string
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicToolSearchToolResultErrorCode:
      enum:
        - invalid_tool_input
        - unavailable
        - too_many_requests
        - execution_time_exceeded
      title: ToolSearchToolResultErrorCode
      type: string
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseToolReferenceBlock:
      properties:
        tool_name:
          maxLength: 256
          minLength: 1
          pattern: ^[a-zA-Z0-9_-]{1,256}$
          title: Tool Name
          type: string
        type:
          const: tool_reference
          default: tool_reference
          title: Type
          type: string
      required:
        - tool_name
        - type
      title: ResponseToolReferenceBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestCodeExecutionOutputBlock:
      additionalProperties: false
      properties:
        file_id:
          title: File Id
          type: string
        type:
          const: code_execution_output
          title: Type
          type: string
      required:
        - file_id
        - type
      title: RequestCodeExecutionOutputBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicRequestBashCodeExecutionOutputBlock:
      additionalProperties: false
      properties:
        file_id:
          title: File Id
          type: string
        type:
          const: bash_code_execution_output
          title: Type
          type: string
      required:
        - file_id
        - type
      title: RequestBashCodeExecutionOutputBlock
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
    AnthropicResponseCitationsConfig:
      properties:
        enabled:
          default: false
          title: Enabled
          type: boolean
      required:
        - enabled
      title: ResponseCitationsConfig
      type: object
      x-source:
        from: avs://anthropic/official
        authority: official
  securitySchemes:
    gatewayBearer:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: |
        Gateway-issued API key, formatted as `sk-gateway-xxxxxxxx`.
        Used by OpenAI-shaped endpoints (/v1/chat/completions, etc.).
      x-source:
        from: gateway
        authority: gateway
    gatewayAnthropicKey:
      type: apiKey
      in: header
      name: x-api-key
      description: |
        Used by Anthropic-shaped endpoints (/v1/messages). The value is
        the gateway API key, shared with OpenAI-shaped endpoints. Clients
        identifying as anthropic-sdk-* will use this header.
      x-source:
        from: gateway
        authority: gateway

````