{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://weverlabs.com/schemas/tool-routing-decision.schema.json",
  "title": "Tool Routing Decision",
  "type": "object",
  "required": [
    "routing_id",
    "requested_tool",
    "selected_tool",
    "routing_reason",
    "accepted_input_contract"
  ],
  "properties": {
    "routing_id": {
      "type": "string"
    },
    "requested_tool": {
      "type": "string"
    },
    "selected_tool": {
      "type": "string"
    },
    "routing_reason": {
      "type": "string"
    },
    "accepted_input_contract": {
      "type": "string"
    },
    "required_evidence": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "next_state": {
      "type": "string"
    },
    "fallback_tool": {
      "type": "string"
    }
  }
}
