{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/grafomem-com/json-schema/grafomem-com-governed-decision-request-schema.json",
  "title": "GovernedDecisionRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/grafomem-com-governed-decisions-api-openapi.yml#/components/schemas/GovernedDecisionRequest",
  "properties": {
    "decision": {
      "type": "string",
      "title": "Decision"
    },
    "reason": {
      "type": "string",
      "title": "Reason",
      "default": ""
    },
    "invoice_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Invoice Id"
    },
    "context": {
      "additionalProperties": true,
      "type": "object",
      "title": "Context"
    },
    "model_id": {
      "type": "string",
      "title": "Model Id",
      "default": "kapwork-verify-agent-v1"
    },
    "agent_handle": {
      "type": "string",
      "title": "Agent Handle",
      "default": "invoice-certifier@kapwork-receivables"
    },
    "verifiability_tag": {
      "type": "string",
      "title": "Verifiability Tag",
      "default": "judgment"
    },
    "agent_tier": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Agent Tier"
    },
    "agent_key": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Agent Key"
    },
    "domain": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Domain"
    }
  },
  "type": "object",
  "required": [
    "decision"
  ]
}