{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://zeons.org/Forge/SDK/153/153.1/schemas/route-decision.schema.json",
  "title": "ZEON Route Decision",
  "type": "object",
  "required": [
    "route_id",
    "request_id",
    "action",
    "selected",
    "confidence",
    "candidates",
    "explanation",
    "trace_id"
  ],
  "properties": {
    "route_id": {
      "type": "string"
    },
    "request_id": {
      "type": "string"
    },
    "action": {
      "enum": [
        "route",
        "multicast",
        "clarify",
        "escalate",
        "defer",
        "abstain"
      ]
    },
    "selected": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "confidence": {
      "type": "number",
      "minimum": 0,
      "maximum": 1
    },
    "candidates": {
      "type": "array",
      "items": {
        "$ref": "candidate-score.schema.json"
      }
    },
    "explanation": {
      "type": "object"
    },
    "trace_id": {
      "type": "string"
    }
  }
}