{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/algenta-ai/json-schema/algenta-ai-capability-outcome-record-schema.json",
  "title": "CapabilityOutcomeRecord",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/algenta-ai-capability-plane-api-openapi.yml#/components/schemas/CapabilityOutcomeRecord",
  "properties": {
    "outcome_id": {
      "type": "string",
      "title": "Outcome Id"
    },
    "capability_id": {
      "type": "string",
      "title": "Capability Id"
    },
    "provider_id": {
      "type": "string",
      "title": "Provider Id"
    },
    "binding_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Binding Id"
    },
    "success": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Success"
    },
    "result_status": {
      "type": "string",
      "title": "Result Status"
    },
    "confidence": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Confidence"
    },
    "latency_ms": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Latency Ms"
    },
    "error_code": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Error Code"
    },
    "details": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Details"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "outcome_id",
    "capability_id",
    "provider_id",
    "result_status",
    "created_at"
  ]
}