{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentsurface-dev/json-schema/agentsurface-dev-post-v1-chat-completions-request-schema.json",
  "title": "PostV1ChatCompletionsRequest",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/agentsurface-dev-docs-openapi-generated.yml#/components/schemas/PostV1ChatCompletionsRequest",
  "type": "object",
  "properties": {
    "model": {
      "type": "string"
    },
    "messages": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string"
          },
          "content": {
            "type": "string"
          }
        }
      }
    },
    "response_format": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "json_schema": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "strict": {
              "type": "boolean"
            },
            "schema": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string"
                },
                "properties": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string"
                        },
                        "minLength": {
                          "type": "integer"
                        }
                      }
                    },
                    "age": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string"
                        },
                        "minimum": {
                          "type": "integer"
                        },
                        "maximum": {
                          "type": "integer"
                        }
                      }
                    }
                  }
                },
                "required": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "additionalProperties": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      }
    },
    "reasoning_effort": {
      "type": "string"
    }
  }
}