{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/callidus-legal-ai/json-schema/callidus-legal-ai-basic-bot-request-root-schema.json",
  "title": "BasicBotRequestRoot",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/callidus-legal-ai-basic-bot-api-openapi.yml#/components/schemas/BasicBotRequestRoot",
  "properties": {
    "request": {
      "type": "string",
      "title": "Request"
    },
    "conversationId": {
      "type": "string",
      "title": "Conversationid"
    },
    "history": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "History",
      "default": []
    },
    "control_options": {
      "anyOf": [
        {
          "$ref": "#/$defs/BasicBotControlPanelOptions"
        },
        {
          "type": "null"
        }
      ],
      "default": {
        "creativity": 0.0,
        "analysisDepth": 1,
        "legalFocus": "True",
        "jurisdictions": ""
      }
    },
    "needs_citations": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Needs Citations"
    },
    "is_advanced_mode": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Is Advanced Mode",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "request",
    "conversationId"
  ],
  "$defs": {
    "BasicBotControlPanelOptions": {
      "properties": {
        "creativity": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Creativity",
          "default": 0
        },
        "analysisDepth": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Analysisdepth",
          "default": 1
        },
        "legalFocus": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Legalfocus",
          "default": "True"
        },
        "jurisdictions": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Jurisdictions",
          "default": ""
        }
      },
      "type": "object",
      "title": "BasicBotControlPanelOptions"
    }
  }
}