CAIN-42 CAIN Studio

API reference · schema

OutcomeRecordRequest

17 fields · used by 0 operations

Last reviewed 2026-10-03

Fields

FieldTypeMeaning
tenantstringdefault "demo"
expectation_id requiredstring
decision_id requiredstring
execution_id requiredstring
actual_outcomestringdefault "success"
actual_risk_scorenumberdefault 0.1
actual_resource_impactobjectdefault {}
actual_trajectory_stepsintegerdefault 1
actual_trajectory_transitionsarray of stringdefault []
actual_authorization_statestringdefault "ALLOW"
actual_side_effectsarray of stringdefault []
actual_duration_msnumberdefault 48.0
actual_cost_centsnumberdefault 0.01
trace_idstring or null
evidence_idsarray of string or null
observed_factsarray of string or null
inferred_explanationsarray of string or null

Smallest valid example

{
  "tenant": "demo",
  "expectation_id": "expectation-id",
  "decision_id": "decision-id",
  "execution_id": "execution-id",
  "actual_outcome": "success",
  "actual_risk_score": 0.1,
  "actual_resource_impact": {},
  "actual_trajectory_steps": 1,
  "actual_trajectory_transitions": [],
  "actual_authorization_state": "ALLOW",
  "actual_side_effects": [],
  "actual_duration_ms": 48.0,
  "actual_cost_cents": 0.01
}

JSON Schema

Show the raw definition
{
  "properties": {
    "tenant": {
      "type": "string",
      "title": "Tenant",
      "default": "demo"
    },
    "expectation_id": {
      "type": "string",
      "title": "Expectation Id"
    },
    "decision_id": {
      "type": "string",
      "title": "Decision Id"
    },
    "execution_id": {
      "type": "string",
      "title": "Execution Id"
    },
    "actual_outcome": {
      "type": "string",
      "title": "Actual Outcome",
      "default": "success"
    },
    "actual_risk_score": {
      "type": "number",
      "title": "Actual Risk Score",
      "default": 0.1
    },
    "actual_resource_impact": {
      "additionalProperties": true,
      "type": "object",
      "title": "Actual Resource Impact",
      "default": {}
    },
    "actual_trajectory_steps": {
      "type": "integer",
      "title": "Actual Trajectory Steps",
      "default": 1
    },
    "actual_trajectory_transitions": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Actual Trajectory Transitions",
      "default": []
    },
    "actual_authorization_state": {
      "type": "string",
      "title": "Actual Authorization State",
      "default": "ALLOW"
    },
    "actual_side_effects": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Actual Side Effects",
      "default": []
    },
    "actual_duration_ms": {
      "type": "number",
      "title": "Actual Duration Ms",
      "default": 48.0
    },
    "actual_cost_cents": {
      "type": "number",
      "title": "Actual Cost Cents",
      "default": 0.01
    },
    "trace_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Trace Id"
    },
    "evidence_ids": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Evidence Ids"
    },
    "observed_facts": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Observed Facts"
    },
    "inferred_explanations": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Inferred Explanations"
    }
  },
  "type": "object",
  "required": [
    "expectation_id",
    "decision_id",
    "execution_id"
  ],
  "title": "OutcomeRecordRequest"
}

Try CAIN-42 on your own agents

Create a free account and every new account starts with a 7-day trial of the full platform. Or try the sandbox first, with no account at all.

Create a free account →  ·  Try the sandbox  ·  See the whole ecosystem