{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/callidus-legal-ai/json-schema/callidus-legal-ai-contract-chat-with-context-schema.json",
  "title": "ContractChatWithContext",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/callidus-legal-ai-contract-api-openapi.yml#/components/schemas/ContractChatWithContext",
  "properties": {
    "document": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Document"
    },
    "context": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Context"
    },
    "request": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Request"
    },
    "ai_strength": {
      "type": "integer",
      "title": "Ai Strength"
    },
    "concise_robust": {
      "type": "integer",
      "title": "Concise Robust"
    },
    "document_type": {
      "type": "string",
      "title": "Document Type"
    },
    "comment_only": {
      "type": "boolean",
      "title": "Comment Only"
    },
    "all_messages": {
      "anyOf": [
        {
          "items": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "All Messages"
    },
    "usage_data": {
      "additionalProperties": true,
      "type": "object",
      "title": "Usage Data"
    }
  },
  "type": "object",
  "required": [
    "document",
    "context",
    "request",
    "ai_strength",
    "concise_robust",
    "document_type",
    "comment_only",
    "all_messages",
    "usage_data"
  ]
}