{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://agentknowledge.dev/schemas/selection-eval.schema.json",
  "title": "Agent Knowledge Selection Eval",
  "type": "object",
  "additionalProperties": false,
  "required": ["pack_name", "cases"],
  "properties": {
    "pack_name": { "type": "string", "minLength": 1 },
    "cases": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": ["id", "prompt", "expected"],
        "properties": {
          "id": { "type": "string", "minLength": 1 },
          "prompt": { "type": "string", "minLength": 1 },
          "expected": { "type": "string", "enum": ["select", "reject", "warn"] },
          "reason": { "type": "string" },
          "expected_warnings": {
            "type": "array",
            "items": { "type": "string" }
          }
        }
      }
    }
  }
}
