{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/advisorppc-com/json-schema/advisorppc-com-mobile-chat-in-schema.json",
  "title": "MobileChatIn",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/advisorppc-com-mobile-compat-api-openapi.yml#/components/schemas/MobileChatIn",
  "properties": {
    "messages": {
      "items": {
        "$ref": "#/$defs/ChatMessageIn"
      },
      "type": "array",
      "maxItems": 50,
      "minItems": 1,
      "title": "Messages"
    },
    "model": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Model"
    }
  },
  "type": "object",
  "required": [
    "messages"
  ],
  "$defs": {
    "ChatMessageIn": {
      "properties": {
        "role": {
          "type": "string",
          "enum": [
            "user",
            "assistant"
          ],
          "title": "Role"
        },
        "content": {
          "type": "string",
          "maxLength": 20000,
          "minLength": 1,
          "title": "Content"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "role",
        "content"
      ],
      "title": "ChatMessageIn"
    }
  }
}