{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/callidus-legal-ai/json-schema/callidus-legal-ai-attach-doc-hub-documents-request-schema.json",
  "title": "AttachDocHubDocumentsRequest",
  "description": "Request body for attaching doc-hub documents to a basic_bot conversation.",
  "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/AttachDocHubDocumentsRequest",
  "properties": {
    "document_ids": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "minItems": 1,
      "title": "Document Ids",
      "description": "Doc-hub document IDs to attach"
    },
    "current_context_tokens": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Current Context Tokens",
      "description": "Current conversation token count (from frontend). When provided, skips server-side token counting."
    }
  },
  "type": "object",
  "required": [
    "document_ids"
  ]
}