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

# Claude - Messages API

> - テキストおよび/または画像コンテンツを含む入力メッセージの構造化リストを送信すると、モデルが会話の次のメッセージを生成します。
- Messages APIは単一のクエリまたはステートレスなマルチターン会話に使用できます。

<Note>
  **BaseURL**：デフォルトの BaseURL は `https://direct.evolink.ai` で、テキストモデルへの対応が優れており、長時間接続をサポートします。`https://api.evolink.ai` はマルチモーダルの主力エンドポイントで、テキストモデルに対しては代替アドレスとして使用されます。
</Note>


## OpenAPI

````yaml ja/api-manual/language-series/claude/claude-messages-api.json POST /v1/messages
openapi: 3.1.0
info:
  title: Claude Messages API
  description: >-
    テキストや画像コンテンツを含む構造化された入力メッセージのリストを送信すると、モデルが会話の次のメッセージを生成します。Messages API
    は単一のクエリまたはステートレスなマルチターン会話のいずれにも使用できます。
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://direct.evolink.ai
    description: 本番環境（推奨）
  - url: https://api.evolink.ai
    description: 代替 URL
security:
  - bearerAuth: []
tags:
  - name: メッセージ
    description: Claude AIメッセージ生成と会話API
paths:
  /v1/messages:
    post:
      tags:
        - メッセージ
      summary: メッセージを作成
      description: |-
        - テキストおよび/または画像コンテンツを含む入力メッセージの構造化リストを送信すると、モデルが会話の次のメッセージを生成します。
        - Messages APIは単一のクエリまたはステートレスなマルチターン会話に使用できます。
      operationId: createMessage
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateMessageParams'
            example:
              model: claude-opus-4-8
              max_tokens: 1024
              messages:
                - role: user
                  content: Hello, world
      responses:
        '200':
          description: メッセージオブジェクト
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Message'
              example:
                model: claude-haiku-4-5-20251001
                id: msg_bdrk_017XLrAa77zWvfBGQ6ESvrxz
                type: message
                role: assistant
                content:
                  - type: text
                    text: |-
                      # Hey there! 👋

                      How's it going? What can I help you with today?
                stop_reason: end_turn
                stop_sequence: null
                usage:
                  input_tokens: 8
                  cache_creation_input_tokens: 0
                  cache_read_input_tokens: 0
                  output_tokens: 24
        '400':
          description: 無効なリクエスト
          content:
            application/json:
              schema:
                $ref: 6c1629f2-f976-48c5-81ec-592bcdbb0fb3
              example:
                error:
                  message: 無効なリクエスト
                  type: invalid_request_error
                request_id: <string>
                type: error
        '401':
          description: 認証エラー
          content:
            application/json:
              schema:
                $ref: 6c1629f2-f976-48c5-81ec-592bcdbb0fb3
              example:
                error:
                  message: 認証エラー
                  type: authentication_error
                request_id: <string>
                type: error
        '402':
          description: 課金エラー
          content:
            application/json:
              schema:
                $ref: 6c1629f2-f976-48c5-81ec-592bcdbb0fb3
              example:
                error:
                  message: 課金エラー
                  type: billing_error
                request_id: <string>
                type: error
                fallback_suggestion: https://evolink.ai/dashboard/billing
        '403':
          description: 権限エラー
          content:
            application/json:
              schema:
                $ref: 6c1629f2-f976-48c5-81ec-592bcdbb0fb3
              example:
                error:
                  message: Permission denied
                  type: permission_error
                request_id: <string>
                type: error
        '404':
          description: 見つかりません
          content:
            application/json:
              schema:
                $ref: 6c1629f2-f976-48c5-81ec-592bcdbb0fb3
              example:
                error:
                  message: 見つかりません
                  type: not_found_error
                request_id: <string>
                type: error
        '429':
          description: レート制限エラー
          content:
            application/json:
              schema:
                $ref: 6c1629f2-f976-48c5-81ec-592bcdbb0fb3
              example:
                error:
                  message: Rate limited
                  type: rate_limit_error
                request_id: <string>
                type: error
                fallback_suggestion: retry after 60 seconds
        '500':
          description: 内部サーバーエラー
          content:
            application/json:
              schema:
                $ref: 6c1629f2-f976-48c5-81ec-592bcdbb0fb3
              example:
                error:
                  message: 内部サーバーエラー
                  type: api_error
                request_id: <string>
                type: error
                fallback_suggestion: try again later
        '503':
          description: サービス過負荷
          content:
            application/json:
              schema:
                $ref: 6c1629f2-f976-48c5-81ec-592bcdbb0fb3
              example:
                error:
                  message: Overloaded
                  type: overloaded_error
                request_id: <string>
                type: error
                fallback_suggestion: retry after 30 seconds
        '524':
          description: Cloudflare Gateway のタイムアウトエラー
          content:
            application/json:
              schema:
                $ref: 6c1629f2-f976-48c5-81ec-592bcdbb0fb3
              example:
                error:
                  message: Request timeout
                  type: timeout_error
                request_id: <string>
                type: error
                fallback_suggestion: >-
                  BaseURL を https://direct.evolink.ai
                  に切り替えてください。このエンドポイントは長時間のタスクに適しています
components:
  schemas:
    CreateMessageParams:
      type: object
      required:
        - model
        - messages
        - max_tokens
      additionalProperties: false
      properties:
        model:
          type: string
          description: プロンプトを完了するモデル。
          enum:
            - claude-haiku-4-5-20251001
            - claude-sonnet-4-5-20250929
            - claude-opus-4-5-20251101
            - claude-opus-4-6
            - claude-fable-5
            - claude-opus-4-8
            - claude-opus-4-7
            - claude-sonnet-4-6
            - claude-sonnet-5
          examples:
            - claude-opus-4-8
          title: モデル
        messages:
          type: array
          description: >-
            入力メッセージ。


            当社のモデルは、`user`と`assistant`の交互の会話ターンで動作するように訓練されています。新しい`Message`を作成する際、`messages`パラメータで以前の会話ターンを指定すると、モデルは会話内の次の`Message`を生成します。リクエスト内の連続する`user`または`assistant`ターンは、単一のターンに結合されます。


            各入力メッセージは、`role`と`content`を持つオブジェクトである必要があります。単一の`user`ロールメッセージを指定することも、複数の`user`と`assistant`メッセージを含めることもできます。
          items:
            $ref: '#/components/schemas/InputMessage'
          title: メッセージ
        max_tokens:
          type: integer
          description: |-
            生成を停止するまでの最大トークン数。

            モデルはこの最大値に達する_前に_停止する場合があります。このパラメータは生成するトークンの絶対的な最大数のみを指定します。
          examples:
            - 1024
          minimum: 1
          title: 最大トークン
        inference_geo:
          type: string
          description: 推論処理の地理リージョンを指定します。未指定の場合はワークスペースの `default_inference_geo` が使われます。
          title: Inference Geo
        container:
          description: リクエスト間で再利用するためのコンテナ識別子。
          title: コンテナ
          anyOf:
            - $ref: '#/components/schemas/ContainerParams'
            - type: string
            - type: 'null'
        context_management:
          description: コンテキスト管理設定。
          anyOf:
            - $ref: '#/components/schemas/ContextManagementConfig'
            - type: 'null'
        mcp_servers:
          type: array
          description: このリクエストで使用されるMCPサーバー
          items:
            $ref: '#/components/schemas/RequestMCPServerURLDefinition'
          maxItems: 20
          title: MCPサーバー
        metadata:
          $ref: '#/components/schemas/Metadata'
          description: リクエストに関するメタデータを記述するオブジェクト。
        output_config:
          $ref: '#/components/schemas/OutputConfig'
          description: モデル出力の設定（出力フォーマットなど）。
        service_tier:
          type: string
          description: このリクエストに優先キャパシティ（利用可能な場合）または標準キャパシティを使用するかを決定します。
          enum:
            - auto
            - standard_only
          title: サービスティア
        stop_sequences:
          type: array
          description: モデルの生成を停止させるカスタムテキストシーケンス。
          items:
            type: string
          title: 停止シーケンス
        stream:
          type: boolean
          description: server-sent events を使用してレスポンスをインクリメンタルにストリーミングするかどうか。
          title: Stream
        system:
          description: システムプロンプト。
          examples:
            - Today's date is 2024-06-01.
          title: System
          anyOf:
            - type: string
            - type: array
              items:
                $ref: '#/components/schemas/RequestTextBlock'
        temperature:
          type: number
          description: |-
            レスポンスに注入されるランダム性の量。

            デフォルトは`1.0`。範囲は`0.0`から`1.0`。
          examples:
            - 1
          minimum: 0
          maximum: 1
          title: Temperature
        thinking:
          description: >-
            Claudeの拡張思考を有効にするための設定。


            `type: "enabled"` では `budget_tokens` が必要で、1,024
            以上である必要があり、`max_tokens` の上限に含まれます。`display` で思考内容の表示方法を制御できます。


            `type: "adaptive"` では、Claude
            がリクエストの複雑さに応じて拡張思考をいつ、どれだけ使うかを動的に判断します。こちらでも `display`
            で思考内容の表示方法を制御できます。


            `type: "disabled"` では拡張思考を使いません。
          anyOf:
            - $ref: '#/components/schemas/ThinkingConfigEnabled'
            - $ref: '#/components/schemas/ThinkingConfigAdaptive'
            - $ref: '#/components/schemas/ThinkingConfigDisabled'
        tool_choice:
          description: モデルが提供されたツールをどのように使用するか。
          anyOf:
            - $ref: '#/components/schemas/ToolChoiceAuto'
            - $ref: '#/components/schemas/ToolChoiceAny'
            - $ref: '#/components/schemas/ToolChoiceTool'
            - $ref: '#/components/schemas/ToolChoiceNone'
        tools:
          type: array
          description: モデルが使用できるツールの定義。
          items:
            anyOf:
              - $ref: '#/components/schemas/Tool'
              - $ref: '#/components/schemas/BashTool_20241022'
              - $ref: '#/components/schemas/BashTool_20250124'
              - $ref: '#/components/schemas/CodeExecutionTool_20250522'
              - $ref: '#/components/schemas/CodeExecutionTool_20250825'
              - $ref: '#/components/schemas/ComputerUseTool_20241022'
              - $ref: '#/components/schemas/MemoryTool_20250818'
              - $ref: '#/components/schemas/ComputerUseTool_20250124'
              - $ref: '#/components/schemas/TextEditor_20241022'
              - $ref: '#/components/schemas/TextEditor_20250124'
              - $ref: '#/components/schemas/TextEditor_20250429'
              - $ref: '#/components/schemas/TextEditor_20250728'
              - $ref: '#/components/schemas/WebSearchTool_20250305'
              - $ref: '#/components/schemas/WebFetchTool_20250910'
          title: ツール
        top_k:
          type: integer
          description: 各後続トークンについて上位K個のオプションからのみサンプリングします。
          examples:
            - 5
          minimum: 0
          title: Top K
        top_p:
          type: number
          description: nucleus サンプリングを使用。
          examples:
            - 0.7
          minimum: 0
          maximum: 1
          title: Top P
    Message:
      type: object
      required:
        - id
        - type
        - role
        - content
        - model
        - stop_reason
        - stop_sequence
        - usage
      properties:
        id:
          type: string
          description: |-
            一意のオブジェクト識別子。

            ID のフォーマットと長さは時間とともに変更される場合があります。
          examples:
            - msg_013Zva2CMHLNnXjNJJKqJ2EF
          title: Id
        type:
          type: string
          const: message
          description: |-
            オブジェクトタイプ。

            Messagesの場合、これは常に`"message"`です。
          title: タイプ
        role:
          type: string
          const: assistant
          description: |-
            生成されたメッセージの会話ロール。

            これは常に`"assistant"`になります。
          title: ロール
        content:
          type: array
          description: |-
            モデルによって生成されたコンテンツ。

            これはコンテンツブロックの配列で、各ブロックにはその形状を決定する`type`があります。
          items:
            anyOf:
              - $ref: '#/components/schemas/ResponseTextBlock'
              - $ref: '#/components/schemas/ResponseThinkingBlock'
              - $ref: '#/components/schemas/ResponseRedactedThinkingBlock'
              - $ref: '#/components/schemas/ResponseToolUseBlock'
              - $ref: '#/components/schemas/ResponseServerToolUseBlock'
              - $ref: '#/components/schemas/ResponseWebSearchToolResultBlock'
              - $ref: '#/components/schemas/ResponseWebFetchToolResultBlock'
              - $ref: '#/components/schemas/ResponseCodeExecutionToolResultBlock'
              - $ref: '#/components/schemas/ResponseBashCodeExecutionToolResultBlock'
              - $ref: >-
                  #/components/schemas/ResponseTextEditorCodeExecutionToolResultBlock
              - $ref: '#/components/schemas/ResponseMCPToolUseBlock'
              - $ref: '#/components/schemas/ResponseMCPToolResultBlock'
              - $ref: '#/components/schemas/ResponseContainerUploadBlock'
          title: コンテンツ
        model:
          type: string
          description: リクエストを処理したモデル。
          enum:
            - claude-haiku-4-5-20251001
            - claude-sonnet-4-5-20250929
            - claude-opus-4-5-20251101
            - claude-opus-4-6
            - claude-fable-5
            - claude-opus-4-8
            - claude-opus-4-7
            - claude-sonnet-4-6
            - claude-sonnet-5
          examples:
            - claude-opus-4-8
          title: モデル
        stop_reason:
          type: string
          nullable: true
          description: 停止した理由。
          enum:
            - end_turn
            - max_tokens
            - stop_sequence
            - tool_use
            - pause_turn
            - refusal
            - model_context_window_exceeded
          title: 停止理由
        stop_sequence:
          type: string
          nullable: true
          description: 生成されたカスタム停止シーケンス（存在する場合）。
          title: 停止シーケンス
        usage:
          $ref: '#/components/schemas/Usage'
          description: 課金とレート制限の使用状況。
        context_management:
          anyOf:
            - $ref: '#/components/schemas/ResponseContextManagement'
            - type: 'null'
          description: コンテキスト管理レスポンス。
        container:
          anyOf:
            - $ref: '#/components/schemas/Container'
            - type: 'null'
          description: このリクエストで使用されたコンテナに関する情報。
    InputMessage:
      additionalProperties: false
      properties:
        content:
          anyOf:
            - type: string
            - items:
                discriminator:
                  mapping:
                    bash_code_execution_tool_result:
                      $ref: >-
                        #/components/schemas/RequestBashCodeExecutionToolResultBlock
                    code_execution_tool_result:
                      $ref: '#/components/schemas/RequestCodeExecutionToolResultBlock'
                    container_upload:
                      $ref: '#/components/schemas/RequestContainerUploadBlock'
                    document:
                      $ref: '#/components/schemas/RequestDocumentBlock'
                    image:
                      $ref: '#/components/schemas/RequestImageBlock'
                    mcp_tool_result:
                      $ref: '#/components/schemas/RequestMCPToolResultBlock'
                    mcp_tool_use:
                      $ref: '#/components/schemas/RequestMCPToolUseBlock'
                    redacted_thinking:
                      $ref: '#/components/schemas/RequestRedactedThinkingBlock'
                    search_result:
                      $ref: '#/components/schemas/RequestSearchResultBlock'
                    server_tool_use:
                      $ref: '#/components/schemas/RequestServerToolUseBlock'
                    text:
                      $ref: '#/components/schemas/RequestTextBlock'
                    text_editor_code_execution_tool_result:
                      $ref: >-
                        #/components/schemas/RequestTextEditorCodeExecutionToolResultBlock
                    thinking:
                      $ref: '#/components/schemas/RequestThinkingBlock'
                    tool_result:
                      $ref: '#/components/schemas/RequestToolResultBlock'
                    tool_use:
                      $ref: '#/components/schemas/RequestToolUseBlock'
                    web_fetch_tool_result:
                      $ref: '#/components/schemas/RequestWebFetchToolResultBlock'
                    web_search_tool_result:
                      $ref: '#/components/schemas/RequestWebSearchToolResultBlock'
                  propertyName: type
                oneOf:
                  - $ref: '#/components/schemas/RequestTextBlock'
                    description: 通常のテキストコンテンツ。
                  - $ref: '#/components/schemas/RequestImageBlock'
                    description: base64データとして直接指定されるか、URLを介して参照される画像コンテンツ。
                  - $ref: '#/components/schemas/RequestDocumentBlock'
                    description: ドキュメントコンテンツ、base64データとして直接指定、テキストとして指定、またはURLによる参照として指定。
                  - $ref: '#/components/schemas/RequestSearchResultBlock'
                    description: 検索操作からのソース、タイトル、コンテンツを含む検索結果ブロック。
                  - $ref: '#/components/schemas/RequestThinkingBlock'
                    description: モデルによる内部思考を指定するブロック。
                  - $ref: '#/components/schemas/RequestRedactedThinkingBlock'
                    description: モデルによる内部の編集済み思考を指定するブロック。
                  - $ref: '#/components/schemas/RequestToolUseBlock'
                    description: モデルによるツール使用を示すブロック。
                  - $ref: '#/components/schemas/RequestToolResultBlock'
                    description: モデルによるツール使用の結果を指定するブロック。
                  - $ref: '#/components/schemas/RequestServerToolUseBlock'
                  - $ref: '#/components/schemas/RequestWebSearchToolResultBlock'
                  - $ref: '#/components/schemas/RequestWebFetchToolResultBlock'
                  - $ref: '#/components/schemas/RequestCodeExecutionToolResultBlock'
                  - $ref: >-
                      #/components/schemas/RequestBashCodeExecutionToolResultBlock
                  - $ref: >-
                      #/components/schemas/RequestTextEditorCodeExecutionToolResultBlock
                  - $ref: '#/components/schemas/RequestMCPToolUseBlock'
                  - $ref: '#/components/schemas/RequestMCPToolResultBlock'
                  - $ref: '#/components/schemas/RequestContainerUploadBlock'
              type: array
          title: コンテンツ
        role:
          enum:
            - user
            - assistant
          title: ロール
          type: string
      required:
        - content
        - role
      title: InputMessage
      type: object
    ContainerParams:
      additionalProperties: false
      description: ロードするスキルを含むコンテナパラメータ。
      properties:
        id:
          anyOf:
            - type: string
            - type: 'null'
          description: コンテナID
          title: Id
        skills:
          anyOf:
            - items:
                $ref: '#/components/schemas/SkillParams'
              maxItems: 8
              type: array
            - type: 'null'
          description: コンテナにロードするスキルのリスト
          title: スキル
      title: ContainerParams
      type: object
    ContextManagementConfig:
      additionalProperties: false
      properties:
        edits:
          description: 適用するコンテキスト管理編集のリスト
          items:
            discriminator:
              mapping:
                clear_thinking_20251015:
                  $ref: '#/components/schemas/ClearThinking20251015'
                clear_tool_uses_20250919:
                  $ref: '#/components/schemas/ClearToolUses20250919'
              propertyName: type
            oneOf:
              - $ref: '#/components/schemas/ClearToolUses20250919'
              - $ref: '#/components/schemas/ClearThinking20251015'
          minItems: 0
          title: 編集
          type: array
      title: ContextManagementConfig
      type: object
    RequestMCPServerURLDefinition:
      additionalProperties: false
      properties:
        authorization_token:
          anyOf:
            - type: string
            - type: 'null'
          title: 認証トークン
        name:
          title: Name
          type: string
        tool_configuration:
          anyOf:
            - $ref: '#/components/schemas/RequestMCPServerToolConfiguration'
            - type: 'null'
        type:
          const: url
          title: タイプ
          type: string
        url:
          title: URL
          type: string
      required:
        - name
        - type
        - url
      title: RequestMCPServerURLDefinition
      type: object
    Metadata:
      additionalProperties: false
      properties:
        user_id:
          anyOf:
            - maxLength: 256
              type: string
            - type: 'null'
          description: >-
            リクエストに関連付けられたユーザーの外部識別子。


            これはuuid、ハッシュ値、またはその他の不透明な識別子である必要があります。Anthropicはこのidを不正利用の検出に使用する場合があります。名前、メールアドレス、電話番号などの個人を特定できる情報を含めないでください。
          examples:
            - 13803d75-b4b5-4c3e-b2a2-6f21399b021b
          title: ユーザー ID
      title: メタデータ
      type: object
    OutputConfig:
      additionalProperties: false
      properties:
        effort:
          description: 出力の努力レベル。
          enum:
            - low
            - medium
            - high
            - xhigh
            - max
          title: Effort
          type: string
        format:
          $ref: '#/components/schemas/JSONOutputFormat'
          description: Claude の出力形式を制約するスキーマ。
        task_budget:
          $ref: '#/components/schemas/TokenTaskBudget'
          description: コンテキスト全体の総トークン予算。
      title: OutputConfig
      type: object
    RequestTextBlock:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral:
                    $ref: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/CacheControlEphemeral'
            - type: 'null'
          description: このコンテンツブロックにキャッシュ制御ブレークポイントを作成。
          title: Cache Control
        citations:
          anyOf:
            - items:
                discriminator:
                  mapping:
                    char_location:
                      $ref: '#/components/schemas/RequestCharLocationCitation'
                    content_block_location:
                      $ref: '#/components/schemas/RequestContentBlockLocationCitation'
                    page_location:
                      $ref: '#/components/schemas/RequestPageLocationCitation'
                    search_result_location:
                      $ref: '#/components/schemas/RequestSearchResultLocationCitation'
                    web_search_result_location:
                      $ref: >-
                        #/components/schemas/RequestWebSearchResultLocationCitation
                  propertyName: type
                oneOf:
                  - $ref: '#/components/schemas/RequestCharLocationCitation'
                  - $ref: '#/components/schemas/RequestPageLocationCitation'
                  - $ref: '#/components/schemas/RequestContentBlockLocationCitation'
                  - $ref: >-
                      #/components/schemas/RequestWebSearchResultLocationCitation
                  - $ref: '#/components/schemas/RequestSearchResultLocationCitation'
              type: array
            - type: 'null'
          title: 引用
        text:
          minLength: 1
          title: テキスト
          type: string
        type:
          const: text
          title: タイプ
          type: string
      required:
        - text
        - type
      title: テキスト
      type: object
    ThinkingConfigEnabled:
      additionalProperties: false
      properties:
        budget_tokens:
          description: >-
            Claudeが内部推論プロセスに使用できるトークン数を決定します。より大きなバジェットにより、複雑な問題に対するより徹底的な分析が可能になり、レスポンス品質が向上します。


            `max_tokens`未満で≥1024である必要があります。


            詳細は[拡張思考](https://docs.claude.com/ja/docs/build-with-claude/extended-thinking)を参照してください。
          minimum: 1024
          title: Budget Tokens
          type: integer
        display:
          description: レスポンス内で思考内容の表示方法を制御します。
          enum:
            - summarized
            - omitted
          title: 表示
          type: string
        type:
          const: enabled
          title: タイプ
          type: string
      required:
        - budget_tokens
        - type
      title: 有効
      type: object
    ThinkingConfigAdaptive:
      additionalProperties: false
      properties:
        display:
          description: レスポンス内で思考内容の表示方法を制御します。
          enum:
            - summarized
            - omitted
          title: 表示
          type: string
        type:
          const: adaptive
          title: タイプ
          type: string
      required:
        - type
      title: Adaptive
      type: object
    ThinkingConfigDisabled:
      additionalProperties: false
      properties:
        type:
          const: disabled
          title: タイプ
          type: string
      required:
        - type
      title: 無効
      type: object
    ToolChoiceAuto:
      additionalProperties: false
      description: モデルがツールを使用するかどうかを自動的に判断します。
      properties:
        disable_parallel_tool_use:
          description: |-
            並列ツール使用を無効にするかどうか。

            デフォルトは `false`。`true` に設定すると、モデルは最大1つのツール使用を出力します。
          title: ツールの並列使用を無効化
          type: boolean
        type:
          const: auto
          title: タイプ
          type: string
      required:
        - type
      title: Auto
      type: object
    ToolChoiceAny:
      additionalProperties: false
      description: モデルは利用可能なすべてのツールを使用します。
      properties:
        disable_parallel_tool_use:
          description: |-
            並列ツール使用を無効にするかどうか。

            デフォルトは `false`。`true` に設定すると、モデルは正確に1つのツール使用を出力します。
          title: ツールの並列使用を無効化
          type: boolean
        type:
          const: any
          title: タイプ
          type: string
      required:
        - type
      title: Any
      type: object
    ToolChoiceTool:
      additionalProperties: false
      description: モデルは `tool_choice.name` で指定されたツールを使用します。
      properties:
        disable_parallel_tool_use:
          description: |-
            並列ツール使用を無効にするかどうか。

            デフォルトは `false`。`true` に設定すると、モデルは正確に1つのツール使用を出力します。
          title: ツールの並列使用を無効化
          type: boolean
        name:
          description: 使用するツールの名前。
          title: Name
          type: string
        type:
          const: tool
          title: タイプ
          type: string
      required:
        - name
        - type
      title: ツール
      type: object
    ToolChoiceNone:
      additionalProperties: false
      description: モデルはツールの使用を許可されません。
      properties:
        type:
          const: none
          title: タイプ
          type: string
      required:
        - type
      title: None
      type: object
    Tool:
      additionalProperties: false
      properties:
        type:
          anyOf:
            - type: 'null'
            - const: custom
              type: string
          title: タイプ
        description:
          description: >-
            このツールが何をするかの説明。


            ツールの説明はできるだけ詳細にする必要があります。ツールが何であり、どのように使用するかについてモデルが持つ情報が多いほど、パフォーマンスが向上します。自然言語の説明を使用して、ツール入力JSONスキーマの重要な側面を強調できます。
          examples:
            - 指定された場所の現在の天気を取得
          title: 説明
          type: string
        name:
          description: |-
            ツールの名前。

            これは、モデルおよび`tool_use`ブロックでツールが呼び出される方法です。
          maxLength: 128
          minLength: 1
          pattern: ^[a-zA-Z0-9_-]{1,128}$
          title: Name
          type: string
        input_schema:
          $ref: '#/components/schemas/InputSchema'
          description: |-
            このツールの入力用の [JSON スキーマ](https://json-schema.org/draft/2020-12)。

            これはツールが受け入れ、モデルが生成する `input` の形状を定義します。
          examples:
            - properties:
                location:
                  description: '都市と州、例: San Francisco, CA'
                  type: string
                unit:
                  description: 出力の単位 - (celsius, fahrenheit) のいずれか
                  type: string
              required:
                - location
              type: object
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral:
                    $ref: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/CacheControlEphemeral'
            - type: 'null'
          description: このコンテンツブロックにキャッシュ制御ブレークポイントを作成。
          title: Cache Control
      required:
        - name
        - input_schema
      title: カスタムツール
      type: object
    BashTool_20241022:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral:
                    $ref: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/CacheControlEphemeral'
            - type: 'null'
          description: このコンテンツブロックにキャッシュ制御ブレークポイントを作成。
          title: Cache Control
        name:
          const: bash
          description: |-
            ツールの名前。

            これは、モデルおよび`tool_use`ブロックでツールが呼び出される方法です。
          title: Name
          type: string
        type:
          const: bash_20241022
          title: タイプ
          type: string
      required:
        - name
        - type
      title: Bashツール（2024-10-22）
      type: object
    BashTool_20250124:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral:
                    $ref: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/CacheControlEphemeral'
            - type: 'null'
          description: このコンテンツブロックにキャッシュ制御ブレークポイントを作成。
          title: Cache Control
        name:
          const: bash
          description: |-
            ツールの名前。

            これは、モデルおよび`tool_use`ブロックでツールが呼び出される方法です。
          title: Name
          type: string
        type:
          const: bash_20250124
          title: タイプ
          type: string
      required:
        - name
        - type
      title: Bashツール（2025-01-24）
      type: object
    CodeExecutionTool_20250522:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral:
                    $ref: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/CacheControlEphemeral'
            - type: 'null'
          description: このコンテンツブロックにキャッシュ制御ブレークポイントを作成。
          title: Cache Control
        name:
          const: code_execution
          description: |-
            ツールの名前。

            これは、モデルおよび`tool_use`ブロックでツールが呼び出される方法です。
          title: Name
          type: string
        type:
          const: code_execution_20250522
          title: タイプ
          type: string
      required:
        - name
        - type
      title: コード実行ツール（2025-05-22）
      type: object
    CodeExecutionTool_20250825:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral:
                    $ref: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/CacheControlEphemeral'
            - type: 'null'
          description: このコンテンツブロックにキャッシュ制御ブレークポイントを作成。
          title: Cache Control
        name:
          const: code_execution
          description: |-
            ツールの名前。

            これは、モデルおよび`tool_use`ブロックでツールが呼び出される方法です。
          title: Name
          type: string
        type:
          const: code_execution_20250825
          title: タイプ
          type: string
      required:
        - name
        - type
      title: CodeExecutionTool_20250825
      type: object
    ComputerUseTool_20241022:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral:
                    $ref: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/CacheControlEphemeral'
            - type: 'null'
          description: このコンテンツブロックにキャッシュ制御ブレークポイントを作成。
          title: Cache Control
        display_height_px:
          description: ディスプレイの高さ（ピクセル）。
          minimum: 1
          title: Display Height Px
          type: integer
        display_number:
          anyOf:
            - minimum: 0
              type: integer
            - type: 'null'
          description: 'ディスプレイの X11 ディスプレイ番号（例: 0, 1）。'
          title: Display Number
        display_width_px:
          description: ディスプレイの幅（ピクセル）。
          minimum: 1
          title: Display Width Px
          type: integer
        name:
          const: computer
          description: |-
            ツールの名前。

            これは、モデルおよび`tool_use`ブロックでツールが呼び出される方法です。
          title: Name
          type: string
        type:
          const: computer_20241022
          title: タイプ
          type: string
      required:
        - display_height_px
        - display_width_px
        - name
        - type
      title: コンピュータ使用ツール（2024-01-22）
      type: object
    MemoryTool_20250818:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral:
                    $ref: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/CacheControlEphemeral'
            - type: 'null'
          description: このコンテンツブロックにキャッシュ制御ブレークポイントを作成。
          title: Cache Control
        name:
          const: memory
          description: |-
            ツールの名前。

            これは、モデルおよび`tool_use`ブロックでツールが呼び出される方法です。
          title: Name
          type: string
        type:
          const: memory_20250818
          title: タイプ
          type: string
      required:
        - name
        - type
      title: MemoryTool_20250818
      type: object
    ComputerUseTool_20250124:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral:
                    $ref: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/CacheControlEphemeral'
            - type: 'null'
          description: このコンテンツブロックにキャッシュ制御ブレークポイントを作成。
          title: Cache Control
        display_height_px:
          description: ディスプレイの高さ（ピクセル）。
          minimum: 1
          title: Display Height Px
          type: integer
        display_number:
          anyOf:
            - minimum: 0
              type: integer
            - type: 'null'
          description: 'ディスプレイの X11 ディスプレイ番号（例: 0, 1）。'
          title: Display Number
        display_width_px:
          description: ディスプレイの幅（ピクセル）。
          minimum: 1
          title: Display Width Px
          type: integer
        name:
          const: computer
          description: |-
            ツールの名前。

            これは、モデルおよび`tool_use`ブロックでツールが呼び出される方法です。
          title: Name
          type: string
        type:
          const: computer_20250124
          title: タイプ
          type: string
      required:
        - display_height_px
        - display_width_px
        - name
        - type
      title: コンピュータ使用ツール（2025-01-24）
      type: object
    TextEditor_20241022:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral:
                    $ref: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/CacheControlEphemeral'
            - type: 'null'
          description: このコンテンツブロックにキャッシュ制御ブレークポイントを作成。
          title: Cache Control
        name:
          const: str_replace_editor
          description: |-
            ツールの名前。

            これは、モデルおよび`tool_use`ブロックでツールが呼び出される方法です。
          title: Name
          type: string
        type:
          const: text_editor_20241022
          title: タイプ
          type: string
      required:
        - name
        - type
      title: テキストエディタツール (2024-10-22)
      type: object
    TextEditor_20250124:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral:
                    $ref: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/CacheControlEphemeral'
            - type: 'null'
          description: このコンテンツブロックにキャッシュ制御ブレークポイントを作成。
          title: Cache Control
        name:
          const: str_replace_editor
          description: |-
            ツールの名前。

            これは、モデルおよび`tool_use`ブロックでツールが呼び出される方法です。
          title: Name
          type: string
        type:
          const: text_editor_20250124
          title: タイプ
          type: string
      required:
        - name
        - type
      title: テキストエディタツール (2025-01-24)
      type: object
    TextEditor_20250429:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral:
                    $ref: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/CacheControlEphemeral'
            - type: 'null'
          description: このコンテンツブロックにキャッシュ制御ブレークポイントを作成。
          title: Cache Control
        name:
          const: str_replace_based_edit_tool
          description: |-
            ツールの名前。

            これは、モデルおよび`tool_use`ブロックでツールが呼び出される方法です。
          title: Name
          type: string
        type:
          const: text_editor_20250429
          title: タイプ
          type: string
      required:
        - name
        - type
      title: テキストエディタツール (2025-04-29)
      type: object
    TextEditor_20250728:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral:
                    $ref: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/CacheControlEphemeral'
            - type: 'null'
          description: このコンテンツブロックにキャッシュ制御ブレークポイントを作成。
          title: Cache Control
        max_characters:
          anyOf:
            - minimum: 1
              type: integer
            - type: 'null'
          description: ファイルを表示する際に表示する最大文字数。指定されていない場合、デフォルトでファイル全体を表示します。
          title: 最大文字数
        name:
          const: str_replace_based_edit_tool
          description: |-
            ツールの名前。

            これは、モデルおよび`tool_use`ブロックでツールが呼び出される方法です。
          title: Name
          type: string
        type:
          const: text_editor_20250728
          title: タイプ
          type: string
      required:
        - name
        - type
      title: TextEditor_20250728
      type: object
    WebSearchTool_20250305:
      additionalProperties: false
      properties:
        allowed_domains:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          description: 指定された場合、これらのドメインのみが結果に含まれます。`blocked_domains` と併用できません。
          title: 許可ドメイン
        blocked_domains:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          description: 指定された場合、これらのドメインは結果に表示されません。`allowed_domains` と併用できません。
          title: ブロックドメイン
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral:
                    $ref: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/CacheControlEphemeral'
            - type: 'null'
          description: このコンテンツブロックにキャッシュ制御ブレークポイントを作成。
          title: Cache Control
        max_uses:
          anyOf:
            - exclusiveMinimum: 0
              type: integer
            - type: 'null'
          description: APIリクエストでツールを使用できる最大回数。
          title: 最大使用回数
        name:
          const: web_search
          description: |-
            ツールの名前。

            これは、モデルおよび`tool_use`ブロックでツールが呼び出される方法です。
          title: Name
          type: string
        type:
          const: web_search_20250305
          title: タイプ
          type: string
        user_location:
          anyOf:
            - $ref: '#/components/schemas/UserLocation'
            - type: 'null'
          description: ユーザーの位置情報のパラメータ。より関連性の高い検索結果を提供するために使用されます。
      required:
        - name
        - type
      title: Web 検索ツール (2025-03-05)
      type: object
    WebFetchTool_20250910:
      additionalProperties: false
      properties:
        allowed_domains:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          description: 取得を許可するドメインのリスト
          title: 許可ドメイン
        blocked_domains:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          description: 取得をブロックするドメインのリスト
          title: ブロックドメイン
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral:
                    $ref: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/CacheControlEphemeral'
            - type: 'null'
          description: このコンテンツブロックにキャッシュ制御ブレークポイントを作成。
          title: Cache Control
        citations:
          anyOf:
            - $ref: '#/components/schemas/RequestCitationsConfig'
            - type: 'null'
          description: 取得したドキュメントの引用設定。引用はデフォルトで無効です。
        max_content_tokens:
          anyOf:
            - exclusiveMinimum: 0
              type: integer
            - type: 'null'
          description: >-
            コンテキストにWebページのテキストコンテンツを含めることで使用される最大トークン数。制限は概算であり、PDFなどのバイナリコンテンツには適用されません。
          title: 最大コンテンツトークン
        max_uses:
          anyOf:
            - exclusiveMinimum: 0
              type: integer
            - type: 'null'
          description: APIリクエストでツールを使用できる最大回数。
          title: 最大使用回数
        name:
          const: web_fetch
          description: |-
            ツールの名前。

            これは、モデルおよび`tool_use`ブロックでツールが呼び出される方法です。
          title: Name
          type: string
        type:
          const: web_fetch_20250910
          title: タイプ
          type: string
      required:
        - name
        - type
      title: WebFetchTool_20250910
      type: object
    ResponseTextBlock:
      properties:
        citations:
          anyOf:
            - items:
                discriminator:
                  mapping:
                    char_location:
                      $ref: '#/components/schemas/ResponseCharLocationCitation'
                    content_block_location:
                      $ref: >-
                        #/components/schemas/ResponseContentBlockLocationCitation
                    page_location:
                      $ref: '#/components/schemas/ResponsePageLocationCitation'
                    search_result_location:
                      $ref: >-
                        #/components/schemas/ResponseSearchResultLocationCitation
                    web_search_result_location:
                      $ref: >-
                        #/components/schemas/ResponseWebSearchResultLocationCitation
                  propertyName: type
                oneOf:
                  - $ref: '#/components/schemas/ResponseCharLocationCitation'
                  - $ref: '#/components/schemas/ResponsePageLocationCitation'
                  - $ref: '#/components/schemas/ResponseContentBlockLocationCitation'
                  - $ref: >-
                      #/components/schemas/ResponseWebSearchResultLocationCitation
                  - $ref: '#/components/schemas/ResponseSearchResultLocationCitation'
              type: array
            - type: 'null'
          default: null
          description: >-
            テキストブロックを裏付ける引用。


            返される引用のタイプは、引用されるドキュメントのタイプによって異なります。PDFの引用は`page_location`、プレーンテキストは`char_location`、コンテンツドキュメントは`content_block_location`になります。
          title: 引用
        text:
          maxLength: 5000000
          minLength: 0
          title: テキスト
          type: string
        type:
          const: text
          default: text
          title: タイプ
          type: string
      required:
        - citations
        - text
        - type
      title: テキスト
      type: object
    ResponseThinkingBlock:
      properties:
        signature:
          title: 署名
          type: string
        thinking:
          title: Thinking
          type: string
        type:
          const: thinking
          default: thinking
          title: タイプ
          type: string
      required:
        - signature
        - thinking
        - type
      title: Thinking
      type: object
    ResponseRedactedThinkingBlock:
      properties:
        data:
          title: データ
          type: string
        type:
          const: redacted_thinking
          default: redacted_thinking
          title: タイプ
          type: string
      required:
        - data
        - type
      title: 編集された思考
      type: object
    ResponseToolUseBlock:
      properties:
        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: string
      required:
        - id
        - input
        - name
        - type
      title: ツール使用
      type: object
    ResponseServerToolUseBlock:
      properties:
        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
          title: Name
          type: string
        type:
          const: server_tool_use
          default: server_tool_use
          title: タイプ
          type: string
      required:
        - id
        - input
        - name
        - type
      title: サーバーツール使用
      type: object
    ResponseWebSearchToolResultBlock:
      properties:
        content:
          anyOf:
            - $ref: '#/components/schemas/ResponseWebSearchToolResultError'
            - items:
                $ref: '#/components/schemas/ResponseWebSearchResultBlock'
              type: array
          title: コンテンツ
        tool_use_id:
          pattern: ^srvtoolu_[a-zA-Z0-9_]+$
          title: ツール使用 ID
          type: string
        type:
          const: web_search_tool_result
          default: web_search_tool_result
          title: タイプ
          type: string
      required:
        - content
        - tool_use_id
        - type
      title: Web 検索ツールの結果
      type: object
    ResponseWebFetchToolResultBlock:
      properties:
        content:
          anyOf:
            - $ref: '#/components/schemas/ResponseWebFetchToolResultError'
            - $ref: '#/components/schemas/ResponseWebFetchResultBlock'
          title: コンテンツ
        tool_use_id:
          pattern: ^srvtoolu_[a-zA-Z0-9_]+$
          title: ツール使用 ID
          type: string
        type:
          const: web_fetch_tool_result
          default: web_fetch_tool_result
          title: タイプ
          type: string
      required:
        - content
        - tool_use_id
        - type
      title: ResponseWebFetchToolResultBlock
      type: object
    ResponseCodeExecutionToolResultBlock:
      properties:
        content:
          anyOf:
            - $ref: '#/components/schemas/ResponseCodeExecutionToolResultError'
            - $ref: '#/components/schemas/ResponseCodeExecutionResultBlock'
          title: コンテンツ
        tool_use_id:
          pattern: ^srvtoolu_[a-zA-Z0-9_]+$
          title: ツール使用 ID
          type: string
        type:
          const: code_execution_tool_result
          default: code_execution_tool_result
          title: タイプ
          type: string
      required:
        - content
        - tool_use_id
        - type
      title: コード実行ツール結果
      type: object
    ResponseBashCodeExecutionToolResultBlock:
      properties:
        content:
          anyOf:
            - $ref: '#/components/schemas/ResponseBashCodeExecutionToolResultError'
            - $ref: '#/components/schemas/ResponseBashCodeExecutionResultBlock'
          title: コンテンツ
        tool_use_id:
          pattern: ^srvtoolu_[a-zA-Z0-9_]+$
          title: ツール使用 ID
          type: string
        type:
          const: bash_code_execution_tool_result
          default: bash_code_execution_tool_result
          title: タイプ
          type: string
      required:
        - content
        - tool_use_id
        - type
      title: ResponseBashCodeExecutionToolResultBlock
      type: object
    ResponseTextEditorCodeExecutionToolResultBlock:
      properties:
        content:
          anyOf:
            - $ref: >-
                #/components/schemas/ResponseTextEditorCodeExecutionToolResultError
            - $ref: >-
                #/components/schemas/ResponseTextEditorCodeExecutionViewResultBlock
            - $ref: >-
                #/components/schemas/ResponseTextEditorCodeExecutionCreateResultBlock
            - $ref: >-
                #/components/schemas/ResponseTextEditorCodeExecutionStrReplaceResultBlock
          title: コンテンツ
        tool_use_id:
          pattern: ^srvtoolu_[a-zA-Z0-9_]+$
          title: ツール使用 ID
          type: string
        type:
          const: text_editor_code_execution_tool_result
          default: text_editor_code_execution_tool_result
          title: タイプ
          type: string
      required:
        - content
        - tool_use_id
        - type
      title: ResponseTextEditorCodeExecutionToolResultBlock
      type: object
    ResponseMCPToolUseBlock:
      properties:
        id:
          pattern: ^[a-zA-Z0-9_-]+$
          title: Id
          type: string
        input:
          additionalProperties: true
          title: Input
          type: object
        name:
          description: MCP ツールの名前
          title: Name
          type: string
        server_name:
          description: MCP サーバーの名前
          title: サーバー名
          type: string
        type:
          const: mcp_tool_use
          default: mcp_tool_use
          title: タイプ
          type: string
      required:
        - id
        - input
        - name
        - server_name
        - type
      title: MCPツール使用
      type: object
    ResponseMCPToolResultBlock:
      properties:
        content:
          anyOf:
            - type: string
            - items:
                $ref: '#/components/schemas/ResponseTextBlock'
              type: array
          title: コンテンツ
        is_error:
          default: false
          title: エラーかどうか
          type: boolean
        tool_use_id:
          pattern: ^[a-zA-Z0-9_-]+$
          title: ツール使用 ID
          type: string
        type:
          const: mcp_tool_result
          default: mcp_tool_result
          title: タイプ
          type: string
      required:
        - content
        - is_error
        - tool_use_id
        - type
      title: MCPツール結果
      type: object
    ResponseContainerUploadBlock:
      description: コンテナにアップロードされたファイルのレスポンスモデル。
      properties:
        file_id:
          title: ファイルID
          type: string
        type:
          const: container_upload
          default: container_upload
          title: タイプ
          type: string
      required:
        - file_id
        - type
      title: コンテナアップロード
      type: object
    Usage:
      properties:
        cache_creation:
          anyOf:
            - $ref: '#/components/schemas/CacheCreation'
            - type: 'null'
          default: null
          description: TTL別のキャッシュトークンの内訳
        cache_creation_input_tokens:
          anyOf:
            - minimum: 0
              type: integer
            - type: 'null'
          default: null
          description: キャッシュエントリの作成に使用された入力トークン数。
          examples:
            - 2051
          title: Cache Creation Input Tokens
        cache_read_input_tokens:
          anyOf:
            - minimum: 0
              type: integer
            - type: 'null'
          default: null
          description: キャッシュから読み取られた入力トークン数。
          examples:
            - 2051
          title: Cache Read Input Tokens
        input_tokens:
          description: 使用された入力トークン数。
          examples:
            - 2095
          minimum: 0
          title: 入力トークン
          type: integer
        output_tokens:
          description: 使用された出力トークン数。
          examples:
            - 503
          minimum: 0
          title: 出力トークン
          type: integer
        server_tool_use:
          anyOf:
            - $ref: '#/components/schemas/ServerToolUsage'
            - type: 'null'
          default: null
          description: サーバーツールリクエストの数。
        service_tier:
          anyOf:
            - enum:
                - standard
                - priority
                - batch
              type: string
            - type: 'null'
          default: null
          description: リクエストが priority、standard、または batch ティアを使用したかどうか。
          title: サービスティア
      required:
        - cache_creation
        - cache_creation_input_tokens
        - cache_read_input_tokens
        - input_tokens
        - output_tokens
        - server_tool_use
        - service_tier
      title: 使用量
      type: object
    ResponseContextManagement:
      properties:
        applied_edits:
          description: 適用されたコンテキスト管理編集のリスト。
          items:
            discriminator:
              mapping:
                clear_thinking_20251015:
                  $ref: '#/components/schemas/ResponseClearThinking20251015Edit'
                clear_tool_uses_20250919:
                  $ref: '#/components/schemas/ResponseClearToolUses20250919Edit'
              propertyName: type
            oneOf:
              - $ref: '#/components/schemas/ResponseClearToolUses20250919Edit'
              - $ref: '#/components/schemas/ResponseClearThinking20251015Edit'
          title: 適用された編集
          type: array
      required:
        - applied_edits
      title: ResponseContextManagement
      type: object
    Container:
      description: リクエストで使用されたコンテナに関する情報（コード実行ツール用）
      properties:
        expires_at:
          description: コンテナの有効期限。
          format: date-time
          title: Expires At
          type: string
        id:
          description: このリクエストで使用されたコンテナの識別子
          title: Id
          type: string
        skills:
          anyOf:
            - items:
                $ref: '#/components/schemas/Skill'
              type: array
            - type: 'null'
          default: null
          description: コンテナにロードされたスキル
          title: スキル
      required:
        - expires_at
        - id
        - skills
      title: コンテナ
      type: object
    RequestBashCodeExecutionToolResultBlock:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral:
                    $ref: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/CacheControlEphemeral'
            - type: 'null'
          description: このコンテンツブロックにキャッシュ制御ブレークポイントを作成。
          title: Cache Control
        content:
          anyOf:
            - $ref: '#/components/schemas/RequestBashCodeExecutionToolResultError'
            - $ref: '#/components/schemas/RequestBashCodeExecutionResultBlock'
          title: コンテンツ
        tool_use_id:
          pattern: ^srvtoolu_[a-zA-Z0-9_]+$
          title: ツール使用 ID
          type: string
        type:
          const: bash_code_execution_tool_result
          title: タイプ
          type: string
      required:
        - content
        - tool_use_id
        - type
      title: RequestBashCodeExecutionToolResultBlock
      type: object
    RequestCodeExecutionToolResultBlock:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral:
                    $ref: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/CacheControlEphemeral'
            - type: 'null'
          description: このコンテンツブロックにキャッシュ制御ブレークポイントを作成。
          title: Cache Control
        content:
          anyOf:
            - $ref: '#/components/schemas/RequestCodeExecutionToolResultError'
            - $ref: '#/components/schemas/RequestCodeExecutionResultBlock'
          title: コンテンツ
        tool_use_id:
          pattern: ^srvtoolu_[a-zA-Z0-9_]+$
          title: ツール使用 ID
          type: string
        type:
          const: code_execution_tool_result
          title: タイプ
          type: string
      required:
        - content
        - tool_use_id
        - type
      title: コード実行ツール結果
      type: object
    RequestContainerUploadBlock:
      additionalProperties: false
      description: |-
        コンテナにアップロードするファイルを表すコンテンツブロック
        このブロックでアップロードされたファイルはコンテナの入力ディレクトリで利用可能になります。
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral:
                    $ref: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/CacheControlEphemeral'
            - type: 'null'
          description: このコンテンツブロックにキャッシュ制御ブレークポイントを作成。
          title: Cache Control
        file_id:
          title: ファイルID
          type: string
        type:
          const: container_upload
          title: タイプ
          type: string
      required:
        - file_id
        - type
      title: コンテナアップロード
      type: object
    RequestDocumentBlock:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral:
                    $ref: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/CacheControlEphemeral'
            - type: 'null'
          description: このコンテンツブロックにキャッシュ制御ブレークポイントを作成。
          title: Cache Control
        citations:
          anyOf:
            - $ref: '#/components/schemas/RequestCitationsConfig'
            - type: 'null'
        context:
          anyOf:
            - minLength: 1
              type: string
            - type: 'null'
          title: コンテキスト
        source:
          discriminator:
            mapping:
              base64:
                $ref: '#/components/schemas/Base64PDFSource'
              content:
                $ref: '#/components/schemas/ContentBlockSource'
              file:
                $ref: '#/components/schemas/FileDocumentSource'
              text:
                $ref: '#/components/schemas/PlainTextSource'
            propertyName: type
          oneOf:
            - $ref: '#/components/schemas/Base64PDFSource'
            - $ref: '#/components/schemas/PlainTextSource'
            - $ref: '#/components/schemas/ContentBlockSource'
            - $ref: '#/components/schemas/FileDocumentSource'
        title:
          anyOf:
            - maxLength: 500
              minLength: 1
              type: string
            - type: 'null'
          title: タイトル
        type:
          const: document
          title: タイプ
          type: string
      required:
        - source
        - type
      title: ドキュメント
      type: object
    RequestImageBlock:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral:
                    $ref: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/CacheControlEphemeral'
            - type: 'null'
          description: このコンテンツブロックにキャッシュ制御ブレークポイントを作成。
          title: Cache Control
        source:
          discriminator:
            mapping:
              base64:
                $ref: '#/components/schemas/Base64ImageSource'
              file:
                $ref: '#/components/schemas/FileImageSource'
            propertyName: type
          oneOf:
            - $ref: '#/components/schemas/Base64ImageSource'
            - $ref: '#/components/schemas/FileImageSource'
          title: ソース
        type:
          const: image
          title: タイプ
          type: string
      required:
        - source
        - type
      title: 画像
      type: object
    RequestMCPToolResultBlock:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral:
                    $ref: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/CacheControlEphemeral'
            - type: 'null'
          description: このコンテンツブロックにキャッシュ制御ブレークポイントを作成。
          title: Cache Control
        content:
          anyOf:
            - type: string
            - type: array
              items:
                $ref: '#/components/schemas/RequestTextBlock'
          title: コンテンツ
        is_error:
          title: エラーかどうか
          type: boolean
        tool_use_id:
          pattern: ^[a-zA-Z0-9_-]+$
          title: ツール使用 ID
          type: string
        type:
          const: mcp_tool_result
          title: タイプ
          type: string
      required:
        - tool_use_id
        - type
      title: MCPツール結果
      type: object
    RequestMCPToolUseBlock:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral:
                    $ref: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/CacheControlEphemeral'
            - type: 'null'
          description: このコンテンツブロックにキャッシュ制御ブレークポイントを作成。
          title: Cache Control
        id:
          pattern: ^[a-zA-Z0-9_-]+$
          title: Id
          type: string
        input:
          additionalProperties: true
          title: Input
          type: object
        name:
          title: Name
          type: string
        server_name:
          description: MCP サーバーの名前
          title: サーバー名
          type: string
        type:
          const: mcp_tool_use
          title: タイプ
          type: string
      required:
        - id
        - input
        - name
        - server_name
        - type
      title: MCPツール使用
      type: object
    RequestRedactedThinkingBlock:
      additionalProperties: false
      properties:
        data:
          title: データ
          type: string
        type:
          const: redacted_thinking
          title: タイプ
          type: string
      required:
        - data
        - type
      title: 編集された思考
      type: object
    RequestSearchResultBlock:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral:
                    $ref: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/CacheControlEphemeral'
            - type: 'null'
          description: このコンテンツブロックにキャッシュ制御ブレークポイントを作成。
          title: Cache Control
        citations:
          $ref: '#/components/schemas/RequestCitationsConfig'
        content:
          items:
            $ref: '#/components/schemas/RequestTextBlock'
          title: コンテンツ
          type: array
        source:
          title: ソース
          type: string
        title:
          title: タイトル
          type: string
        type:
          const: search_result
          title: タイプ
          type: string
      required:
        - content
        - source
        - title
        - type
      title: 検索結果
      type: object
    RequestServerToolUseBlock:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral:
                    $ref: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/CacheControlEphemeral'
            - type: 'null'
          description: このコンテンツブロックにキャッシュ制御ブレークポイントを作成。
          title: Cache Control
        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
          title: Name
          type: string
        type:
          const: server_tool_use
          title: タイプ
          type: string
      required:
        - id
        - input
        - name
        - type
      title: サーバーツール使用
      type: object
    RequestTextEditorCodeExecutionToolResultBlock:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral:
                    $ref: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/CacheControlEphemeral'
            - type: 'null'
          description: このコンテンツブロックにキャッシュ制御ブレークポイントを作成。
          title: Cache Control
        content:
          anyOf:
            - $ref: >-
                #/components/schemas/RequestTextEditorCodeExecutionToolResultError
            - $ref: >-
                #/components/schemas/RequestTextEditorCodeExecutionViewResultBlock
            - $ref: >-
                #/components/schemas/RequestTextEditorCodeExecutionCreateResultBlock
            - $ref: >-
                #/components/schemas/RequestTextEditorCodeExecutionStrReplaceResultBlock
          title: コンテンツ
        tool_use_id:
          pattern: ^srvtoolu_[a-zA-Z0-9_]+$
          title: ツール使用 ID
          type: string
        type:
          const: text_editor_code_execution_tool_result
          title: タイプ
          type: string
      required:
        - content
        - tool_use_id
        - type
      title: RequestTextEditorCodeExecutionToolResultBlock
      type: object
    RequestThinkingBlock:
      additionalProperties: false
      properties:
        signature:
          title: 署名
          type: string
        thinking:
          title: Thinking
          type: string
        type:
          const: thinking
          title: タイプ
          type: string
      required:
        - signature
        - thinking
        - type
      title: Thinking
      type: object
    RequestToolResultBlock:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral:
                    $ref: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/CacheControlEphemeral'
            - type: 'null'
          description: このコンテンツブロックにキャッシュ制御ブレークポイントを作成。
          title: Cache Control
        content:
          anyOf:
            - type: string
            - items:
                discriminator:
                  mapping:
                    document:
                      $ref: '#/components/schemas/RequestDocumentBlock'
                    image:
                      $ref: '#/components/schemas/RequestImageBlock'
                    search_result:
                      $ref: '#/components/schemas/RequestSearchResultBlock'
                    text:
                      $ref: '#/components/schemas/RequestTextBlock'
                  propertyName: type
                oneOf:
                  - $ref: '#/components/schemas/RequestTextBlock'
                  - $ref: '#/components/schemas/RequestImageBlock'
                  - $ref: '#/components/schemas/RequestSearchResultBlock'
                  - $ref: '#/components/schemas/RequestDocumentBlock'
              type: array
          title: コンテンツ
        is_error:
          title: エラーかどうか
          type: boolean
        tool_use_id:
          pattern: ^[a-zA-Z0-9_-]+$
          title: ツール使用 ID
          type: string
        type:
          const: tool_result
          title: タイプ
          type: string
      required:
        - tool_use_id
        - type
      title: ツール結果
      type: object
    RequestToolUseBlock:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral:
                    $ref: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/CacheControlEphemeral'
            - type: 'null'
          description: このコンテンツブロックにキャッシュ制御ブレークポイントを作成。
          title: Cache Control
        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: string
      required:
        - id
        - input
        - name
        - type
      title: ツール使用
      type: object
    RequestWebFetchToolResultBlock:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral:
                    $ref: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/CacheControlEphemeral'
            - type: 'null'
          description: このコンテンツブロックにキャッシュ制御ブレークポイントを作成。
          title: Cache Control
        content:
          anyOf:
            - $ref: '#/components/schemas/RequestWebFetchToolResultError'
            - $ref: '#/components/schemas/RequestWebFetchResultBlock'
          title: コンテンツ
        tool_use_id:
          pattern: ^srvtoolu_[a-zA-Z0-9_]+$
          title: ツール使用 ID
          type: string
        type:
          const: web_fetch_tool_result
          title: タイプ
          type: string
      required:
        - content
        - tool_use_id
        - type
      title: RequestWebFetchToolResultBlock
      type: object
    RequestWebSearchToolResultBlock:
      additionalProperties: false
      properties:
        cache_control:
          anyOf:
            - discriminator:
                mapping:
                  ephemeral:
                    $ref: '#/components/schemas/CacheControlEphemeral'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/CacheControlEphemeral'
            - type: 'null'
          description: このコンテンツブロックにキャッシュ制御ブレークポイントを作成。
          title: Cache Control
        content:
          anyOf:
            - items:
                $ref: '#/components/schemas/RequestWebSearchResultBlock'
              type: array
            - $ref: '#/components/schemas/RequestWebSearchToolResultError'
          title: コンテンツ
        tool_use_id:
          pattern: ^srvtoolu_[a-zA-Z0-9_]+$
          title: ツール使用 ID
          type: string
        type:
          const: web_search_tool_result
          title: タイプ
          type: string
      required:
        - content
        - tool_use_id
        - type
      title: Web 検索ツールの結果
      type: object
    SkillParams:
      additionalProperties: false
      description: コンテナにロードするスキルの仕様（リクエストモデル）。
      properties:
        skill_id:
          description: スキル ID
          maxLength: 64
          minLength: 1
          title: スキル ID
          type: string
        type:
          description: スキルのタイプ - 'anthropic'（組み込み）または 'custom'（ユーザー定義）
          enum:
            - anthropic
            - custom
          title: タイプ
          type: string
        version:
          description: スキルバージョン、または最新バージョンの場合は 'latest'
          maxLength: 64
          minLength: 1
          title: バージョン
          type: string
      required:
        - skill_id
        - type
      title: SkillParams
      type: object
    ClearThinking20251015:
      additionalProperties: false
      properties:
        keep:
          anyOf:
            - discriminator:
                mapping:
                  all:
                    $ref: '#/components/schemas/AllThinkingTurns'
                  thinking_turns:
                    $ref: '#/components/schemas/ThinkingTurns'
                propertyName: type
              oneOf:
                - $ref: '#/components/schemas/ThinkingTurns'
                - $ref: '#/components/schemas/AllThinkingTurns'
            - const: all
              type: string
          description: 思考ブロックを保持する最新のアシスタントターン数。古いターンの思考ブロックは削除されます。
          title: Keep
        type:
          const: clear_thinking_20251015
          title: タイプ
          type: string
      required:
        - type
      title: ClearThinking20251015
      type: object
    ClearToolUses20250919:
      additionalProperties: false
      properties:
        clear_at_least:
          anyOf:
            - $ref: '#/components/schemas/InputTokensClearAtLeast'
            - type: 'null'
          description: トリガー時にクリアする必要がある最小トークン数。少なくともこの数のトークンを削除できる場合にのみコンテキストが変更されます。
        clear_tool_inputs:
          anyOf:
            - type: boolean
            - items:
                type: string
              type: array
            - type: 'null'
          description: すべてのツール入力をクリアするか（bool）、またはクリアする特定のツール入力（list）
          title: Clear Tool Inputs
        exclude_tools:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          description: クリアから保持されるツール使用のツール名
          title: Exclude Tools
        keep:
          description: 会話内で保持するツール使用数
          discriminator:
            mapping:
              tool_uses:
                $ref: '#/components/schemas/ToolUsesKeep'
            propertyName: type
          oneOf:
            - $ref: '#/components/schemas/ToolUsesKeep'
          title: Keep
        trigger:
          description: コンテキスト管理戦略をトリガーする条件
          discriminator:
            mapping:
              input_tokens:
                $ref: '#/components/schemas/InputTokensTrigger'
              tool_uses:
                $ref: '#/components/schemas/ToolUsesTrigger'
            propertyName: type
          oneOf:
            - $ref: '#/components/schemas/InputTokensTrigger'
            - $ref: '#/components/schemas/ToolUsesTrigger'
          title: トリガー
        type:
          const: clear_tool_uses_20250919
          title: タイプ
          type: string
      required:
        - type
      title: ClearToolUses20250919
      type: object
    RequestMCPServerToolConfiguration:
      additionalProperties: false
      properties:
        allowed_tools:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: 許可ツール
        enabled:
          anyOf:
            - type: boolean
            - type: 'null'
          title: 有効
      title: RequestMCPServerToolConfiguration
      type: object
    JSONOutputFormat:
      additionalProperties: false
      properties:
        schema:
          description: Claude の出力を定義する JSON スキーマ。
          type: object
        type:
          const: json_schema
          title: Type
          type: string
      required:
        - schema
        - type
      title: JSONOutputFormat
      type: object
    TokenTaskBudget:
      additionalProperties: false
      properties:
        remaining:
          description: 残りのトークン予算。
          minimum: 0
          title: Remaining
          type: integer
        total:
          description: コンテキスト全体の総トークン予算。
          minimum: 20000
          title: Total
          type: integer
        type:
          const: tokens
          title: Type
          type: string
      required:
        - total
        - type
      title: TokenTaskBudget
      type: object
    CacheControlEphemeral:
      additionalProperties: false
      properties:
        type:
          const: ephemeral
          title: タイプ
          type: string
      required:
        - type
      title: CacheControlEphemeral
      type: object
    RequestCharLocationCitation:
      additionalProperties: false
      properties:
        cited_text:
          title: 引用テキスト
          type: string
        document_index:
          minimum: 0
          title: ドキュメントインデックス
          type: integer
        document_title:
          anyOf:
            - maxLength: 255
              minLength: 1
              type: string
            - type: 'null'
          title: ドキュメントタイトル
        end_char_index:
          title: End Char Index
          type: integer
        start_char_index:
          minimum: 0
          title: 開始文字インデックス
          type: integer
        type:
          const: char_location
          title: タイプ
          type: string
      required:
        - cited_text
        - document_index
        - document_title
        - end_char_index
        - start_char_index
        - type
      title: キャラクターの位置
      type: object
    RequestContentBlockLocationCitation:
      additionalProperties: false
      properties:
        cited_text:
          title: 引用テキスト
          type: string
        document_index:
          minimum: 0
          title: ドキュメントインデックス
          type: integer
        document_title:
          anyOf:
            - maxLength: 255
              minLength: 1
              type: string
            - type: 'null'
          title: ドキュメントタイトル
        end_block_index:
          title: End Block Index
          type: integer
        start_block_index:
          minimum: 0
          title: 開始ブロックインデックス
          type: integer
        type:
          const: content_block_location
          title: タイプ
          type: string
      required:
        - cited_text
        - document_index
        - document_title
        - end_block_index
        - start_block_index
        - type
      title: コンテンツブロックの位置
      type: object
    RequestPageLocationCitation:
      additionalProperties: false
      properties:
        cited_text:
          title: 引用テキスト
          type: string
        document_index:
          minimum: 0
          title: ドキュメントインデックス
          type: integer
        document_title:
          anyOf:
            - maxLength: 255
              minLength: 1
              type: string
            - type: 'null'
          title: ドキュメントタイトル
        end_page_number:
          title: End Page Number
          type: integer
        start_page_number:
          minimum: 1
          title: 開始ページ番号
          type: integer
        type:
          const: page_location
          title: タイプ
          type: string
      required:
        - cited_text
        - document_index
        - document_title
        - end_page_number
        - start_page_number
        - type
      title: ページの場所
      type: object
    RequestSearchResultLocationCitation:
      additionalProperties: false
      properties:
        cited_text:
          title: 引用テキスト
          type: string
        end_block_index:
          title: End Block Index
          type: integer
        search_result_index:
          minimum: 0
          title: 検索結果インデックス
          type: integer
        source:
          title: ソース
          type: string
        start_block_index:
          minimum: 0
          title: 開始ブロックインデックス
          type: integer
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: タイトル
        type:
          const: search_result_location
          title: タイプ
          type: string
      required:
        - cited_text
        - end_block_index
        - search_result_index
        - source
        - start_block_index
        - title
        - type
      title: RequestSearchResultLocationCitation
      type: object
    RequestWebSearchResultLocationCitation:
      additionalProperties: false
      properties:
        cited_text:
          title: 引用テキスト
          type: string
        encrypted_index:
          title: 暗号化インデックス
          type: string
        title:
          anyOf:
            - maxLength: 512
              minLength: 1
              type: string
            - type: 'null'
          title: タイトル
        type:
          const: web_search_result_location
          title: タイプ
          type: string
        url:
          maxLength: 2048
          minLength: 1
          title: URL
          type: string
      required:
        - cited_text
        - encrypted_index
        - title
        - type
        - url
      title: RequestWebSearchResultLocationCitation
      type: object
    InputSchema:
      additionalProperties: true
      properties:
        properties:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Properties
        required:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: 必須
        type:
          const: object
          title: タイプ
          type: string
      required:
        - type
      title: InputSchema
      type: object
    UserLocation:
      additionalProperties: false
      properties:
        city:
          anyOf:
            - maxLength: 255
              minLength: 1
              type: string
            - type: 'null'
          description: ユーザーの都市。
          examples:
            - New York
            - Tokyo
            - Los Angeles
          title: 都市
        country:
          anyOf:
            - maxLength: 2
              minLength: 2
              type: string
            - type: 'null'
          description: >-
            ユーザーの [ISO
            国コード](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)（2文字）。
          examples:
            - US
            - JP
            - GB
          title: 国
        region:
          anyOf:
            - maxLength: 255
              minLength: 1
              type: string
            - type: 'null'
          description: ユーザーの地域。
          examples:
            - California
            - Ontario
            - Wales
          title: 地域
        timezone:
          anyOf:
            - maxLength: 255
              minLength: 1
              type: string
            - type: 'null'
          description: '[IANA タイムゾーン](https://nodatime.org/TimeZones)。'
          examples:
            - America/New_York
            - Asia/Tokyo
            - Europe/London
          title: タイムゾーン
        type:
          const: approximate
          title: タイプ
          type: string
      required:
        - type
      title: UserLocation
      type: object
    RequestCitationsConfig:
      additionalProperties: false
      properties:
        enabled:
          title: 有効
          type: boolean
      title: RequestCitationsConfig
      type: object
    ResponseCharLocationCitation:
      properties:
        cited_text:
          title: 引用テキスト
          type: string
        document_index:
          minimum: 0
          title: ドキュメントインデックス
          type: integer
        document_title:
          anyOf:
            - type: string
            - type: 'null'
          title: ドキュメントタイトル
        end_char_index:
          title: End Char Index
          type: integer
        file_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: ファイルID
        start_char_index:
          minimum: 0
          title: 開始文字インデックス
          type: integer
        type:
          const: char_location
          default: char_location
          title: タイプ
          type: string
      required:
        - cited_text
        - document_index
        - document_title
        - end_char_index
        - file_id
        - start_char_index
        - type
      title: キャラクターの位置
      type: object
    ResponseContentBlockLocationCitation:
      properties:
        cited_text:
          title: 引用テキスト
          type: string
        document_index:
          minimum: 0
          title: ドキュメントインデックス
          type: integer
        document_title:
          anyOf:
            - type: string
            - type: 'null'
          title: ドキュメントタイトル
        end_block_index:
          title: End Block Index
          type: integer
        file_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: ファイルID
        start_block_index:
          minimum: 0
          title: 開始ブロックインデックス
          type: integer
        type:
          const: content_block_location
          default: content_block_location
          title: タイプ
          type: string
      required:
        - cited_text
        - document_index
        - document_title
        - end_block_index
        - file_id
        - start_block_index
        - type
      title: コンテンツブロックの位置
      type: object
    ResponsePageLocationCitation:
      properties:
        cited_text:
          title: 引用テキスト
          type: string
        document_index:
          minimum: 0
          title: ドキュメントインデックス
          type: integer
        document_title:
          anyOf:
            - type: string
            - type: 'null'
          title: ドキュメントタイトル
        end_page_number:
          title: End Page Number
          type: integer
        file_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: ファイルID
        start_page_number:
          minimum: 1
          title: 開始ページ番号
          type: integer
        type:
          const: page_location
          default: page_location
          title: タイプ
          type: string
      required:
        - cited_text
        - document_index
        - document_title
        - end_page_number
        - file_id
        - start_page_number
        - type
      title: ページの場所
      type: object
    ResponseSearchResultLocationCitation:
      properties:
        cited_text:
          title: 引用テキスト
          type: string
        end_block_index:
          title: End Block Index
          type: integer
        search_result_index:
          minimum: 0
          title: 検索結果インデックス
          type: integer
        source:
          title: ソース
          type: string
        start_block_index:
          minimum: 0
          title: 開始ブロックインデックス
          type: integer
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: タイトル
        type:
          const: search_result_location
          default: search_result_location
          title: タイプ
          type: string
      required:
        - cited_text
        - end_block_index
        - search_result_index
        - source
        - start_block_index
        - title
        - type
      title: ResponseSearchResultLocationCitation
      type: object
    ResponseWebSearchResultLocationCitation:
      properties:
        cited_text:
          title: 引用テキスト
          type: string
        encrypted_index:
          title: 暗号化インデックス
          type: string
        title:
          anyOf:
            - maxLength: 512
              type: string
            - type: 'null'
          title: タイトル
        type:
          const: web_search_result_location
          default: web_search_result_location
          title: タイプ
          type: string
        url:
          title: URL
          type: string
      required:
        - cited_text
        - encrypted_index
        - title
        - type
        - url
      title: ResponseWebSearchResultLocationCitation
      type: object
    ResponseWebSearchToolResultError:
      properties:
        error_code:
          $ref: '#/components/schemas/WebSearchToolResultErrorCode'
        type:
          const: web_search_tool_result_error
          default: web_search_tool_result_error
          title: タイプ
          type: string
      required:
        - error_code
        - type
      title: ResponseWebSearchToolResultError
      type: object
    ResponseWebSearchResultBlock:
      properties:
        encrypted_content:
          title: 暗号化コンテンツ
          type: string
        page_age:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: ページ経過時間
        title:
          title: タイトル
          type: string
        type:
          const: web_search_result
          default: web_search_result
          title: タイプ
          type: string
        url:
          title: URL
          type: string
      required:
        - encrypted_content
        - page_age
        - title
        - type
        - url
      title: ResponseWebSearchResultBlock
      type: object
    ResponseWebFetchToolResultError:
      properties:
        error_code:
          $ref: '#/components/schemas/WebFetchToolResultErrorCode'
        type:
          const: web_fetch_tool_result_error
          default: web_fetch_tool_result_error
          title: タイプ
          type: string
      required:
        - error_code
        - type
      title: ResponseWebFetchToolResultError
      type: object
    ResponseWebFetchResultBlock:
      properties:
        content:
          $ref: '#/components/schemas/ResponseDocumentBlock'
        retrieved_at:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: コンテンツが取得された時の ISO 8601 タイムスタンプ
          title: 取得日時
        type:
          const: web_fetch_result
          default: web_fetch_result
          title: タイプ
          type: string
        url:
          description: 取得したコンテンツURL
          title: URL
          type: string
      required:
        - content
        - retrieved_at
        - type
        - url
      title: ResponseWebFetchResultBlock
      type: object
    ResponseCodeExecutionToolResultError:
      properties:
        error_code:
          $ref: '#/components/schemas/CodeExecutionToolResultErrorCode'
        type:
          const: code_execution_tool_result_error
          default: code_execution_tool_result_error
          title: タイプ
          type: string
      required:
        - error_code
        - type
      title: コード実行ツールエラー
      type: object
    ResponseCodeExecutionResultBlock:
      properties:
        content:
          items:
            $ref: '#/components/schemas/ResponseCodeExecutionOutputBlock'
          title: コンテンツ
          type: array
        return_code:
          title: リターンコード
          type: integer
        stderr:
          title: Stderr
          type: string
        stdout:
          title: Stdout
          type: string
        type:
          const: code_execution_result
          default: code_execution_result
          title: タイプ
          type: string
      required:
        - content
        - return_code
        - stderr
        - stdout
        - type
      title: コード実行結果
      type: object
    ResponseBashCodeExecutionToolResultError:
      properties:
        error_code:
          $ref: '#/components/schemas/BashCodeExecutionToolResultErrorCode'
        type:
          const: bash_code_execution_tool_result_error
          default: bash_code_execution_tool_result_error
          title: タイプ
          type: string
      required:
        - error_code
        - type
      title: ResponseBashCodeExecutionToolResultError
      type: object
    ResponseBashCodeExecutionResultBlock:
      properties:
        content:
          items:
            $ref: '#/components/schemas/ResponseBashCodeExecutionOutputBlock'
          title: コンテンツ
          type: array
        return_code:
          title: リターンコード
          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: string
      required:
        - content
        - return_code
        - stderr
        - stdout
        - type
      title: ResponseBashCodeExecutionResultBlock
      type: object
    ResponseTextEditorCodeExecutionToolResultError:
      properties:
        error_code:
          $ref: '#/components/schemas/TextEditorCodeExecutionToolResultErrorCode'
        error_message:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: エラーメッセージ
        type:
          const: text_editor_code_execution_tool_result_error
          default: text_editor_code_execution_tool_result_error
          title: タイプ
          type: string
      required:
        - error_code
        - error_message
        - type
      title: ResponseTextEditorCodeExecutionToolResultError
      type: object
    ResponseTextEditorCodeExecutionViewResultBlock:
      properties:
        content:
          title: コンテンツ
          type: string
        file_type:
          enum:
            - text
            - image
            - pdf
          title: ファイルタイプ
          type: string
        num_lines:
          anyOf:
            - type: integer
            - type: 'null'
          default: null
          title: 行数
        start_line:
          anyOf:
            - type: integer
            - type: 'null'
          default: null
          title: 開始行
        total_lines:
          anyOf:
            - type: integer
            - type: 'null'
          default: null
          title: 合計行数
        type:
          const: text_editor_code_execution_view_result
          default: text_editor_code_execution_view_result
          title: タイプ
          type: string
      required:
        - content
        - file_type
        - num_lines
        - start_line
        - total_lines
        - type
      title: ResponseTextEditorCodeExecutionViewResultBlock
      type: object
    ResponseTextEditorCodeExecutionCreateResultBlock:
      properties:
        is_file_update:
          title: ファイル更新かどうか
          type: boolean
        type:
          const: text_editor_code_execution_create_result
          default: text_editor_code_execution_create_result
          title: タイプ
          type: string
      required:
        - is_file_update
        - type
      title: ResponseTextEditorCodeExecutionCreateResultBlock
      type: object
    ResponseTextEditorCodeExecutionStrReplaceResultBlock:
      properties:
        lines:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          default: null
          title: 行
        new_lines:
          anyOf:
            - type: integer
            - type: 'null'
          default: null
          title: 新しい行
        new_start:
          anyOf:
            - type: integer
            - type: 'null'
          default: null
          title: 新しい開始
        old_lines:
          anyOf:
            - type: integer
            - type: 'null'
          default: null
          title: 古い行
        old_start:
          anyOf:
            - type: integer
            - type: 'null'
          default: null
          title: 古い開始位置
        type:
          const: text_editor_code_execution_str_replace_result
          default: text_editor_code_execution_str_replace_result
          title: タイプ
          type: string
      required:
        - lines
        - new_lines
        - new_start
        - old_lines
        - old_start
        - type
      title: ResponseTextEditorCodeExecutionStrReplaceResultBlock
      type: object
    CacheCreation:
      properties:
        ephemeral_1h_input_tokens:
          default: 0
          description: 1時間キャッシュエントリの作成に使用された入力トークン数。
          minimum: 0
          title: Ephemeral 1H Input Tokens
          type: integer
        ephemeral_5m_input_tokens:
          default: 0
          description: 5分キャッシュエントリの作成に使用された入力トークン数。
          minimum: 0
          title: Ephemeral 5M Input Tokens
          type: integer
      required:
        - ephemeral_1h_input_tokens
        - ephemeral_5m_input_tokens
      title: CacheCreation
      type: object
    ServerToolUsage:
      properties:
        web_fetch_requests:
          default: 0
          description: Web フェッチツールリクエストの数。
          examples:
            - 2
          minimum: 0
          title: Web フェッチリクエスト
          type: integer
        web_search_requests:
          default: 0
          description: Web 検索ツールリクエストの数。
          examples:
            - 0
          minimum: 0
          title: Web 検索リクエスト
          type: integer
      required:
        - web_fetch_requests
        - web_search_requests
      title: ServerToolUsage
      type: object
    ResponseClearThinking20251015Edit:
      properties:
        cleared_input_tokens:
          description: この編集でクリアされた入力トークン数。
          minimum: 0
          title: Cleared Input Tokens
          type: integer
        cleared_thinking_turns:
          description: クリアされた思考ターン数。
          minimum: 0
          title: Cleared Thinking Turns
          type: integer
        type:
          const: clear_thinking_20251015
          default: clear_thinking_20251015
          description: 適用されたコンテキスト管理編集のタイプ。
          title: タイプ
          type: string
      required:
        - cleared_input_tokens
        - cleared_thinking_turns
        - type
      title: ResponseClearThinking20251015Edit
      type: object
    ResponseClearToolUses20250919Edit:
      properties:
        cleared_input_tokens:
          description: この編集でクリアされた入力トークン数。
          minimum: 0
          title: Cleared Input Tokens
          type: integer
        cleared_tool_uses:
          description: クリアされたツール使用数。
          minimum: 0
          title: Cleared Tool Uses
          type: integer
        type:
          const: clear_tool_uses_20250919
          default: clear_tool_uses_20250919
          description: 適用されたコンテキスト管理編集のタイプ。
          title: タイプ
          type: string
      required:
        - cleared_input_tokens
        - cleared_tool_uses
        - type
      title: ResponseClearToolUses20250919Edit
      type: object
    Skill:
      description: コンテナにロードされたスキル（レスポンスモデル）。
      properties:
        skill_id:
          description: スキル ID
          maxLength: 64
          minLength: 1
          title: スキル ID
          type: string
        type:
          description: スキルのタイプ - 'anthropic'（組み込み）または 'custom'（ユーザー定義）
          enum:
            - anthropic
            - custom
          title: タイプ
          type: string
        version:
          description: スキルバージョン、または最新バージョンの場合は 'latest'
          maxLength: 64
          minLength: 1
          title: バージョン
          type: string
      required:
        - skill_id
        - type
        - version
      title: スキル
      type: object
    RequestBashCodeExecutionToolResultError:
      additionalProperties: false
      properties:
        error_code:
          $ref: '#/components/schemas/BashCodeExecutionToolResultErrorCode'
        type:
          const: bash_code_execution_tool_result_error
          title: タイプ
          type: string
      required:
        - error_code
        - type
      title: RequestBashCodeExecutionToolResultError
      type: object
    RequestBashCodeExecutionResultBlock:
      additionalProperties: false
      properties:
        content:
          items:
            $ref: '#/components/schemas/RequestBashCodeExecutionOutputBlock'
          title: コンテンツ
          type: array
        return_code:
          title: リターンコード
          type: integer
        stderr:
          title: Stderr
          type: string
        stdout:
          title: Stdout
          type: string
        type:
          const: bash_code_execution_result
          title: タイプ
          type: string
      required:
        - content
        - return_code
        - stderr
        - stdout
        - type
      title: RequestBashCodeExecutionResultBlock
      type: object
    RequestCodeExecutionToolResultError:
      additionalProperties: false
      properties:
        error_code:
          $ref: '#/components/schemas/CodeExecutionToolResultErrorCode'
        type:
          const: code_execution_tool_result_error
          title: タイプ
          type: string
      required:
        - error_code
        - type
      title: コード実行ツールエラー
      type: object
    RequestCodeExecutionResultBlock:
      additionalProperties: false
      properties:
        content:
          items:
            $ref: '#/components/schemas/RequestCodeExecutionOutputBlock'
          title: コンテンツ
          type: array
        return_code:
          title: リターンコード
          type: integer
        stderr:
          title: Stderr
          type: string
        stdout:
          title: Stdout
          type: string
        type:
          const: code_execution_result
          title: タイプ
          type: string
      required:
        - content
        - return_code
        - stderr
        - stdout
        - type
      title: コード実行結果
      type: object
    Base64PDFSource:
      additionalProperties: false
      properties:
        data:
          format: byte
          title: データ
          type: string
        media_type:
          const: application/pdf
          title: メディアタイプ
          type: string
        type:
          const: base64
          title: タイプ
          type: string
      required:
        - data
        - media_type
        - type
      title: PDF (base64)
      type: object
    ContentBlockSource:
      additionalProperties: false
      properties:
        content:
          anyOf:
            - type: string
            - items:
                discriminator:
                  mapping:
                    image:
                      $ref: '#/components/schemas/RequestImageBlock'
                    text:
                      $ref: '#/components/schemas/RequestTextBlock'
                  propertyName: type
                oneOf:
                  - $ref: '#/components/schemas/RequestTextBlock'
                  - $ref: '#/components/schemas/RequestImageBlock'
              type: array
          title: コンテンツ
        type:
          const: content
          title: タイプ
          type: string
      required:
        - content
        - type
      title: コンテンツブロック
      type: object
    FileDocumentSource:
      additionalProperties: false
      properties:
        file_id:
          title: ファイルID
          type: string
        type:
          const: file
          title: タイプ
          type: string
      required:
        - file_id
        - type
      title: ファイルドキュメント
      type: object
    PlainTextSource:
      additionalProperties: false
      properties:
        data:
          title: データ
          type: string
        media_type:
          const: text/plain
          title: メディアタイプ
          type: string
        type:
          const: text
          title: タイプ
          type: string
      required:
        - data
        - media_type
        - type
      title: プレーンテキスト
      type: object
    Base64ImageSource:
      additionalProperties: false
      properties:
        data:
          format: byte
          title: データ
          type: string
        media_type:
          enum:
            - image/jpeg
            - image/png
            - image/gif
            - image/webp
          title: メディアタイプ
          type: string
        type:
          const: base64
          title: タイプ
          type: string
      required:
        - data
        - media_type
        - type
      title: Base64ImageSource
      type: object
    FileImageSource:
      additionalProperties: false
      properties:
        file_id:
          title: ファイルID
          type: string
        type:
          const: file
          title: タイプ
          type: string
      required:
        - file_id
        - type
      title: FileImageSource
      type: object
    RequestTextEditorCodeExecutionToolResultError:
      additionalProperties: false
      properties:
        error_code:
          $ref: '#/components/schemas/TextEditorCodeExecutionToolResultErrorCode'
        error_message:
          anyOf:
            - type: string
            - type: 'null'
          title: エラーメッセージ
        type:
          const: text_editor_code_execution_tool_result_error
          title: タイプ
          type: string
      required:
        - error_code
        - type
      title: RequestTextEditorCodeExecutionToolResultError
      type: object
    RequestTextEditorCodeExecutionViewResultBlock:
      additionalProperties: false
      properties:
        content:
          title: コンテンツ
          type: string
        file_type:
          enum:
            - text
            - image
            - pdf
          title: ファイルタイプ
          type: string
        num_lines:
          anyOf:
            - type: integer
            - type: 'null'
          title: 行数
        start_line:
          anyOf:
            - type: integer
            - type: 'null'
          title: 開始行
        total_lines:
          anyOf:
            - type: integer
            - type: 'null'
          title: 合計行数
        type:
          const: text_editor_code_execution_view_result
          title: タイプ
          type: string
      required:
        - content
        - file_type
        - type
      title: RequestTextEditorCodeExecutionViewResultBlock
      type: object
    RequestTextEditorCodeExecutionCreateResultBlock:
      additionalProperties: false
      properties:
        is_file_update:
          title: ファイル更新かどうか
          type: boolean
        type:
          const: text_editor_code_execution_create_result
          title: タイプ
          type: string
      required:
        - is_file_update
        - type
      title: RequestTextEditorCodeExecutionCreateResultBlock
      type: object
    RequestTextEditorCodeExecutionStrReplaceResultBlock:
      additionalProperties: false
      properties:
        lines:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: 行
        new_lines:
          anyOf:
            - type: integer
            - type: 'null'
          title: 新しい行
        new_start:
          anyOf:
            - type: integer
            - type: 'null'
          title: 新しい開始
        old_lines:
          anyOf:
            - type: integer
            - type: 'null'
          title: 古い行
        old_start:
          anyOf:
            - type: integer
            - type: 'null'
          title: 古い開始位置
        type:
          const: text_editor_code_execution_str_replace_result
          title: タイプ
          type: string
      required:
        - type
      title: RequestTextEditorCodeExecutionStrReplaceResultBlock
      type: object
    RequestWebFetchToolResultError:
      additionalProperties: false
      properties:
        error_code:
          $ref: '#/components/schemas/WebFetchToolResultErrorCode'
        type:
          const: web_fetch_tool_result_error
          title: タイプ
          type: string
      required:
        - error_code
        - type
      title: RequestWebFetchToolResultError
      type: object
    RequestWebFetchResultBlock:
      additionalProperties: false
      properties:
        content:
          $ref: '#/components/schemas/RequestDocumentBlock'
        retrieved_at:
          anyOf:
            - type: string
            - type: 'null'
          description: コンテンツが取得された時の ISO 8601 タイムスタンプ
          title: 取得日時
        type:
          const: web_fetch_result
          title: タイプ
          type: string
        url:
          description: 取得したコンテンツURL
          title: URL
          type: string
      required:
        - content
        - type
        - url
      title: RequestWebFetchResultBlock
      type: object
    RequestWebSearchResultBlock:
      additionalProperties: false
      properties:
        encrypted_content:
          title: 暗号化コンテンツ
          type: string
        page_age:
          anyOf:
            - type: string
            - type: 'null'
          title: ページ経過時間
        title:
          title: タイトル
          type: string
        type:
          const: web_search_result
          title: タイプ
          type: string
        url:
          title: URL
          type: string
      required:
        - encrypted_content
        - title
        - type
        - url
      title: RequestWebSearchResultBlock
      type: object
    RequestWebSearchToolResultError:
      additionalProperties: false
      properties:
        error_code:
          $ref: '#/components/schemas/WebSearchToolResultErrorCode'
        type:
          const: web_search_tool_result_error
          title: タイプ
          type: string
      required:
        - error_code
        - type
      title: RequestWebSearchToolResultError
      type: object
    AllThinkingTurns:
      additionalProperties: false
      properties:
        type:
          const: all
          title: タイプ
          type: string
      required:
        - type
      title: AllThinkingTurns
      type: object
    ThinkingTurns:
      additionalProperties: false
      properties:
        type:
          const: thinking_turns
          title: タイプ
          type: string
        value:
          minimum: 1
          title: 値
          type: integer
      required:
        - type
        - value
      title: ThinkingTurns
      type: object
    InputTokensClearAtLeast:
      additionalProperties: false
      properties:
        type:
          const: input_tokens
          title: タイプ
          type: string
        value:
          minimum: 0
          title: 値
          type: integer
      required:
        - type
        - value
      title: InputTokensClearAtLeast
      type: object
    ToolUsesKeep:
      additionalProperties: false
      properties:
        type:
          const: tool_uses
          title: タイプ
          type: string
        value:
          minimum: 0
          title: 値
          type: integer
      required:
        - type
        - value
      title: ToolUsesKeep
      type: object
    InputTokensTrigger:
      additionalProperties: false
      properties:
        type:
          const: input_tokens
          title: タイプ
          type: string
        value:
          minimum: 1
          title: 値
          type: integer
      required:
        - type
        - value
      title: InputTokensTrigger
      type: object
    ToolUsesTrigger:
      additionalProperties: false
      properties:
        type:
          const: tool_uses
          title: タイプ
          type: string
        value:
          minimum: 1
          title: 値
          type: integer
      required:
        - type
        - value
      title: ToolUsesTrigger
      type: object
    WebSearchToolResultErrorCode:
      enum:
        - invalid_tool_input
        - unavailable
        - max_uses_exceeded
        - too_many_requests
        - query_too_long
      title: WebSearchToolResultErrorCode
      type: string
    WebFetchToolResultErrorCode:
      enum:
        - invalid_tool_input
        - url_too_long
        - url_not_allowed
        - url_not_accessible
        - unsupported_content_type
        - too_many_requests
        - max_uses_exceeded
        - unavailable
      title: WebFetchToolResultErrorCode
      type: string
    ResponseDocumentBlock:
      properties:
        citations:
          anyOf:
            - $ref: '#/components/schemas/ResponseCitationsConfig'
            - type: 'null'
          default: null
          description: ドキュメントの引用設定
        source:
          discriminator:
            mapping:
              base64:
                $ref: '#/components/schemas/Base64PDFSource'
              text:
                $ref: '#/components/schemas/PlainTextSource'
            propertyName: type
          oneOf:
            - $ref: '#/components/schemas/Base64PDFSource'
            - $ref: '#/components/schemas/PlainTextSource'
          title: ソース
        title:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: ドキュメントのタイトル
          title: タイトル
        type:
          const: document
          default: document
          title: タイプ
          type: string
      required:
        - citations
        - source
        - title
        - type
      title: ResponseDocumentBlock
      type: object
    CodeExecutionToolResultErrorCode:
      enum:
        - invalid_tool_input
        - unavailable
        - too_many_requests
        - execution_time_exceeded
      title: CodeExecutionToolResultErrorCode
      type: string
    ResponseCodeExecutionOutputBlock:
      properties:
        file_id:
          title: ファイルID
          type: string
        type:
          const: code_execution_output
          default: code_execution_output
          title: タイプ
          type: string
      required:
        - file_id
        - type
      title: ResponseCodeExecutionOutputBlock
      type: object
    BashCodeExecutionToolResultErrorCode:
      enum:
        - invalid_tool_input
        - unavailable
        - too_many_requests
        - execution_time_exceeded
        - output_file_too_large
      title: BashCodeExecutionToolResultErrorCode
      type: string
    ResponseBashCodeExecutionOutputBlock:
      properties:
        file_id:
          title: ファイルID
          type: string
        type:
          const: bash_code_execution_output
          default: bash_code_execution_output
          title: タイプ
          type: string
      required:
        - file_id
        - type
      title: ResponseBashCodeExecutionOutputBlock
      type: object
    TextEditorCodeExecutionToolResultErrorCode:
      enum:
        - invalid_tool_input
        - unavailable
        - too_many_requests
        - execution_time_exceeded
        - file_not_found
      title: TextEditorCodeExecutionToolResultErrorCode
      type: string
    RequestBashCodeExecutionOutputBlock:
      additionalProperties: false
      properties:
        file_id:
          title: ファイルID
          type: string
        type:
          const: bash_code_execution_output
          title: タイプ
          type: string
      required:
        - file_id
        - type
      title: RequestBashCodeExecutionOutputBlock
      type: object
    RequestCodeExecutionOutputBlock:
      additionalProperties: false
      properties:
        file_id:
          title: ファイルID
          type: string
        type:
          const: code_execution_output
          title: タイプ
          type: string
      required:
        - file_id
        - type
      title: RequestCodeExecutionOutputBlock
      type: object
    ResponseCitationsConfig:
      properties:
        enabled:
          default: false
          title: 有効
          type: boolean
      required:
        - enabled
      title: ResponseCitationsConfig
      type: object
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: |-
        ##すべてのAPIにBearer Token認証が必要です##

        **APIキーの取得：**

        [APIキー管理ページ](https://evolink.ai/dashboard/keys)にアクセスしてAPIキーを取得してください

        **リクエストヘッダーに追加：**
        ```
        Authorization: Bearer YOUR_API_KEY
        ```

````