{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fastmetal-ai/json-schema/fastmetal-ai-post-v1-messages-request-schema.json",
  "title": "PostV1MessagesRequest",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/fastmetal-ai-core-openapi-generated.yml#/components/schemas/PostV1MessagesRequest",
  "type": "object",
  "properties": {
    "model": {
      "type": "string",
      "description": "The model to use"
    },
    "messages": {
      "type": "array",
      "description": "Array of message objects"
    },
    "max_tokens": {
      "type": "integer",
      "description": "Maximum tokens to generate"
    },
    "system": {
      "type": "string",
      "description": "System instructions or context"
    },
    "stream": {
      "type": "boolean",
      "description": "Enable server-sent events streaming"
    },
    "temperature": {
      "type": "number",
      "description": "Sampling randomness control"
    },
    "tools": {
      "type": "array",
      "description": "Available functions for tool use"
    },
    "tool_choice": {
      "type": "string",
      "description": "Tool invocation behavior"
    },
    "reasoning": {
      "type": "object",
      "description": "Thinking (reasoning) control"
    }
  },
  "required": [
    "model",
    "messages",
    "max_tokens"
  ]
}