{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/georgiacivicdata-org/json-schema/georgiacivicdata-org-create-session-body-schema.json",
  "title": "CreateSessionBody",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/georgiacivicdata-org-openapi.json#/components/schemas/CreateSessionBody",
  "properties": {
    "locale": {
      "type": "string",
      "title": "Locale",
      "default": "en"
    },
    "transcript": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/TranscriptTurn"
          },
          "type": "array",
          "maxItems": 80
        },
        {
          "type": "null"
        }
      ],
      "title": "Transcript"
    }
  },
  "type": "object",
  "$defs": {
    "TranscriptTurn": {
      "properties": {
        "role": {
          "type": "string",
          "enum": [
            "user",
            "assistant"
          ],
          "title": "Role"
        },
        "text": {
          "type": "string",
          "maxLength": 8000,
          "minLength": 1,
          "title": "Text"
        }
      },
      "type": "object",
      "required": [
        "role",
        "text"
      ],
      "title": "TranscriptTurn"
    }
  }
}