{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "debug": {
      "type": "boolean",
      "description": "Enable debug mode"
    },
    "cache_dir": {
      "type": "string",
      "description": "Cache directory path"
    },
    "log_dir": {
      "type": "string",
      "description": "Log directory path"
    },
    "bin_dir": {
      "type": "string",
      "description": "Binary directory path"
    },
    "system_default_container_registry": {
      "type": "string",
      "description": "Default container registry"
    },
    "image_name_override": {
      "type": "string",
      "description": "Override image name"
    },
    "image_repo": {
      "type": "string",
      "description": "Container image repository"
    },
    "huggingface_token": {
      "type": "string",
      "description": "Hugging Face access token"
    },
    "disable_worker_metrics": {
      "type": "boolean",
      "description": "Disable worker metrics collection"
    },
    "worker_port": {
      "type": "integer",
      "minimum": 1,
      "maximum": 65535,
      "description": "Worker service port"
    },
    "worker_metrics_port": {
      "type": "integer",
      "minimum": 1,
      "maximum": 65535,
      "description": "Worker metrics port"
    },
    "service_port_range": {
      "type": "string",
      "pattern": "^\\d+-\\d+$",
      "description": "Service port range, e.g. 30000-31000"
    },
    "ray_port_range": {
      "type": "string",
      "pattern": "^\\d+-\\d+$",
      "description": "Ray port range, e.g. 20000-20100"
    },
    "system_reserved": {
      "type": "object",
      "description": "System reserved resources",
      "properties": {
        "ram": {
          "type": "number",
          "minimum": 0,
          "description": "Reserved RAM in GiB"
        },
        "vram": {
          "type": "number",
          "minimum": 0,
          "description": "Reserved VRAM in GiB"
        }
      }
    },
    "resources": {
      "type": "object",
      "description": "Additional resource definitions",
      "additionalProperties": {}
    },
    "pipx_path": {
      "type": "string",
      "description": "pipx installation path"
    },
    "tools_download_base_url": {
      "type": "string",
      "description": "Base URL for downloading tools"
    },
    "enable_hf_transfer": {
      "type": "boolean",
      "description": "Enable Hugging Face transfer acceleration"
    },
    "enable_hf_xet": {
      "type": "boolean",
      "description": "Enable Hugging Face Xet support"
    },
    "proxy_mode": {
      "type": "string",
      "enum": ["worker", "system", "disabled"],
      "description": "Proxy mode"
    }
  }
}
