CAIN-42 CAIN Studio

API reference · schema

ExpectationCreateRequest

18 fields · used by 0 operations

Last reviewed 2026-10-02

Fields

FieldTypeMeaning
tenantstringdefault "demo"
decision_id requiredstring
identity_id requiredstring
agent_id requiredstring
action requiredstring
resource requiredstring
expected_outcomestringdefault "success"
expected_outcome_confidencenumberdefault 0.95
expected_risk_scorenumberdefault 0.1
expected_risk_factorsarray of stringdefault []
expected_resource_impactobjectdefault {}
expected_trajectory_stepsintegerdefault 1
expected_trajectory_transitionsarray of stringdefault []
expected_authorization_statestringdefault "ALLOW"
expected_side_effectsarray of stringdefault []
expected_duration_msnumberdefault 50.0
expected_cost_centsnumberdefault 0.01
trajectory_idstring or null

Smallest valid example

{
  "tenant": "demo",
  "decision_id": "decision-id",
  "identity_id": "identity-id",
  "agent_id": "agent-id",
  "action": "action",
  "resource": "resource",
  "expected_outcome": "success",
  "expected_outcome_confidence": 0.95,
  "expected_risk_score": 0.1,
  "expected_risk_factors": [],
  "expected_resource_impact": {},
  "expected_trajectory_steps": 1,
  "expected_trajectory_transitions": [],
  "expected_authorization_state": "ALLOW",
  "expected_side_effects": [],
  "expected_duration_ms": 50.0,
  "expected_cost_cents": 0.01
}

JSON Schema

Show the raw definition
{
  "properties": {
    "tenant": {
      "type": "string",
      "title": "Tenant",
      "default": "demo"
    },
    "decision_id": {
      "type": "string",
      "title": "Decision Id"
    },
    "identity_id": {
      "type": "string",
      "title": "Identity Id"
    },
    "agent_id": {
      "type": "string",
      "title": "Agent Id"
    },
    "action": {
      "type": "string",
      "title": "Action"
    },
    "resource": {
      "type": "string",
      "title": "Resource"
    },
    "expected_outcome": {
      "type": "string",
      "title": "Expected Outcome",
      "default": "success"
    },
    "expected_outcome_confidence": {
      "type": "number",
      "title": "Expected Outcome Confidence",
      "default": 0.95
    },
    "expected_risk_score": {
      "type": "number",
      "title": "Expected Risk Score",
      "default": 0.1
    },
    "expected_risk_factors": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Expected Risk Factors",
      "default": []
    },
    "expected_resource_impact": {
      "additionalProperties": true,
      "type": "object",
      "title": "Expected Resource Impact",
      "default": {}
    },
    "expected_trajectory_steps": {
      "type": "integer",
      "title": "Expected Trajectory Steps",
      "default": 1
    },
    "expected_trajectory_transitions": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Expected Trajectory Transitions",
      "default": []
    },
    "expected_authorization_state": {
      "type": "string",
      "title": "Expected Authorization State",
      "default": "ALLOW"
    },
    "expected_side_effects": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Expected Side Effects",
      "default": []
    },
    "expected_duration_ms": {
      "type": "number",
      "title": "Expected Duration Ms",
      "default": 50.0
    },
    "expected_cost_cents": {
      "type": "number",
      "title": "Expected Cost Cents",
      "default": 0.01
    },
    "trajectory_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Trajectory Id"
    }
  },
  "type": "object",
  "required": [
    "decision_id",
    "identity_id",
    "agent_id",
    "action",
    "resource"
  ],
  "title": "ExpectationCreateRequest"
}

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