{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/digitalpublic-com/json-schema/digitalpublic-com-agent-response-schema.json",
  "title": "AgentResponse",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/digitalpublic-com-agent-openapi.json#/components/schemas/AgentResponse",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "status": {
      "type": "string",
      "description": "executed, queued, pending_approval, or a domain-specific status"
    },
    "operationId": {
      "type": "string",
      "description": "Persistent operation id when work continues in the background."
    },
    "resourceClass": {
      "type": "string",
      "enum": [
        "LIGHT",
        "STANDARD",
        "HEAVY"
      ]
    },
    "retryAfterSeconds": {
      "type": "integer"
    },
    "data": {
      "type": "object"
    },
    "error": {
      "type": "string"
    }
  }
}