{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/leapmemory-com/json-schema/leapmemory-com-turn-request-schema.json",
  "title": "TurnRequest",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/leapmemory-com-api-openapi.json#/components/schemas/TurnRequest",
  "properties": {
    "role": {
      "type": "string",
      "maxLength": 50,
      "minLength": 1,
      "title": "Role"
    },
    "content": {
      "type": "string",
      "maxLength": 100000,
      "minLength": 1,
      "title": "Content"
    },
    "speaker_id": {
      "type": "string",
      "maxLength": 200,
      "title": "Speaker Id",
      "default": ""
    },
    "ts": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ts"
    },
    "context_only": {
      "type": "boolean",
      "title": "Context Only",
      "default": false
    },
    "source": {
      "type": "string",
      "maxLength": 100,
      "title": "Source",
      "default": ""
    },
    "container": {
      "type": "string",
      "maxLength": 400,
      "title": "Container",
      "default": ""
    },
    "tz": {
      "type": "string",
      "maxLength": 64,
      "title": "Tz",
      "default": ""
    }
  },
  "type": "object",
  "required": [
    "role",
    "content"
  ]
}