{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "notarius.generic.semantic_reconciliation.llm",
  "title": "notarius_semantic_reconciliation_llm_v1",
  "type": "object",
  "additionalProperties": false,
  "required": ["duplicate_groups"],
  "properties": {
    "duplicate_groups": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": ["candidate_ids", "canonical_candidate_id"],
        "properties": {
          "candidate_ids": {
            "type": "array",
            "minItems": 2,
            "items": {
              "type": "integer",
              "minimum": 1
            }
          },
          "canonical_candidate_id": {
            "type": "integer",
            "minimum": 1
          }
        }
      }
    }
  }
}
