{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://agentshopping.org/api/v1/schema.json",
  "title": "AgentShopping match request",
  "description": "A buyer agent describes a workload. The matcher returns explainable matches, rejections with reasons, and explicit unknowns. No prices or specs are asserted.",
  "type": "object",
  "additionalProperties": false,
  "required": ["workload"],
  "properties": {
    "workload": {
      "type": "string",
      "enum": ["personal_proxy", "background_jobs", "self_hosted_automation", "production_service", "gpu_inference", "managed_app"],
      "description": "The job the buyer intends to run."
    },
    "needs_gpu": { "type": "boolean", "default": false },
    "needs_managed_support": { "type": "boolean", "default": false },
    "has_failover": { "type": "boolean", "default": false, "description": "Whether the buyer has an independent backup/failover plan." }
  },
  "examples": [
    { "workload": "personal_proxy" },
    { "workload": "production_service", "has_failover": false },
    { "workload": "gpu_inference", "needs_gpu": true }
  ]
}
