{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://weverlabs.com/schemas/agent-quote-request.schema.json",
  "title": "Agent Quote Request",
  "description": "Public-safe request for estimated credits, evidence requirements, and settlement path before a paid agent run.",
  "type": "object",
  "required": [
    "request_type",
    "agent_name",
    "requested_tool",
    "requested_capability",
    "workflow_summary",
    "expected_outputs",
    "estimate_basis"
  ],
  "additionalProperties": true,
  "properties": {
    "request_type": {
      "type": "string",
      "const": "agent_quote_request"
    },
    "trust_profile_id": {
      "type": "string"
    },
    "agent_name": {
      "type": "string"
    },
    "agent_account_id": {
      "type": "string"
    },
    "requested_tool": {
      "type": "string",
      "enum": [
        "packetops",
        "distributionops",
        "tokenops",
        "wever_labs_os"
      ]
    },
    "requested_capability": {
      "type": "string"
    },
    "workflow_summary": {
      "type": "string"
    },
    "expected_outputs": {
      "type": "string"
    },
    "estimate_basis": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "records_count": {
          "type": "integer",
          "minimum": 0
        },
        "files_count": {
          "type": "integer",
          "minimum": 0
        },
        "needs_callback": {
          "type": "boolean"
        },
        "needs_result_package": {
          "type": "boolean"
        }
      }
    },
    "evidence_manifest": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "callback_url": {
      "type": "string",
      "format": "uri"
    },
    "requested_turnaround": {
      "type": "string"
    },
    "public_safe_note": {
      "type": "string"
    }
  }
}
