{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/callidus-legal-ai/json-schema/callidus-legal-ai-basic-bot-research-prep-legal-authorities-schema.json",
  "title": "BasicBotResearchPrepLegalAuthorities",
  "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/BasicBotResearchPrepLegalAuthorities",
  "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
    },
    "research_prep": {
      "$ref": "#/$defs/BasicBotResearchRobustPrepResult"
    }
  },
  "type": "object",
  "required": [
    "request",
    "conversationId",
    "research_prep"
  ],
  "$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"
    },
    "BasicBotResearchRobustPrepResult": {
      "properties": {
        "key_issues": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Key Issues"
        },
        "causes_of_action": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Causes Of Action"
        },
        "affirmative_defenses": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Affirmative Defenses"
        },
        "legal_questions_with_facts": {
          "items": {
            "additionalProperties": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "type": "object"
          },
          "type": "array",
          "title": "Legal Questions With Facts"
        },
        "legal_doctrines": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Legal Doctrines"
        },
        "is_advanced_mode": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Is Advanced Mode",
          "default": false
        }
      },
      "type": "object",
      "required": [
        "key_issues",
        "causes_of_action",
        "affirmative_defenses",
        "legal_questions_with_facts",
        "legal_doctrines"
      ],
      "title": "BasicBotResearchRobustPrepResult"
    }
  }
}