{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nuberea-com/json-schema/nuberea-com-chat-request-schema.json",
  "title": "ChatRequest",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nuberea-com-openapi.yml#/components/schemas/ChatRequest",
  "type": "object",
  "required": [
    "userMessage",
    "gptModel"
  ],
  "properties": {
    "userMessage": {
      "type": "string",
      "minLength": 1,
      "description": "The user's message."
    },
    "gptModel": {
      "type": "string",
      "enum": [
        "4o",
        "o3",
        "4.1",
        "4.1 mini",
        "4.1 nano",
        "4o mini",
        "4 nano",
        "5 nano",
        "5 mini",
        "5",
        "5.1",
        "5.2",
        "5.5",
        "5.6",
        "5.6 luna",
        "5.6 terra",
        "5.6 sol"
      ],
      "description": "AI model tier to use. If the selected model is not included in the account's plan, the API uses the Standard model."
    },
    "previous_response_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Response ID from the prior exchange to maintain conversation context."
    },
    "enabledCollections": {
      "type": [
        "array",
        "null"
      ],
      "description": "Source collections requested for the agent. Only collections included in the account's plan are made available.",
      "items": {
        "type": "string",
        "enum": [
          "bible",
          "macula_greek",
          "macula_lxx",
          "lexicon_ubs_greek",
          "lexicon_lsj",
          "macula_hebrew",
          "vulgate_latin",
          "lexicon_bdb",
          "lexicon_abbott_smith",
          "transcription_cntr",
          "synoptic",
          "bible_graph"
        ]
      }
    },
    "workflowMode": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "read",
        "compare",
        "parse",
        "variants",
        "witnesses",
        "redaction",
        "theme_trace",
        "translation"
      ],
      "description": "Optional research workflow used to narrow instructions and tools."
    },
    "reasoning": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": false,
      "properties": {
        "effort": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "none",
            "minimal",
            "low",
            "medium",
            "high",
            "xhigh",
            "max",
            "ultra"
          ]
        },
        "mode": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "pro"
          ]
        }
      }
    },
    "passageContext": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": false,
      "required": [
        "reference",
        "translation",
        "selectedText",
        "selectionKind"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "translation": {
          "type": "string"
        },
        "selectedText": {
          "type": "string"
        },
        "selectionKind": {
          "type": "string",
          "enum": [
            "verse",
            "footnote"
          ]
        },
        "footnoteRef": {
          "type": "string"
        },
        "footnoteText": {
          "type": "string"
        }
      }
    }
  }
}