CAIN-42 CAIN Studio

API reference · schema

CounterfactualRequest

4 fields · used by 1 operations

Last reviewed 2026-10-02

Fields

FieldTypeMeaning
omitted_stepinteger or null
proposed_actionstring or null
proposed_resourcestring or null
proposed_risknumber or nulldefault 0.1

Smallest valid example

{
  "proposed_risk": 0.1
}

Used by 1 operation

POST/fabric/trajectories/{trajectory_id}/counterfactualEvaluate Counterfactual

JSON Schema

Show the raw definition
{
  "properties": {
    "omitted_step": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Omitted Step"
    },
    "proposed_action": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Proposed Action"
    },
    "proposed_resource": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Proposed Resource"
    },
    "proposed_risk": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Proposed Risk",
      "default": 0.1
    }
  },
  "type": "object",
  "title": "CounterfactualRequest"
}

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