API reference · schema
CounterfactualRequest
4 fields · used by 1 operations
Last reviewed 2026-10-02
Fields
| Field | Type | Meaning |
|---|---|---|
omitted_step | integer or null | |
proposed_action | string or null | |
proposed_resource | string or null | |
proposed_risk | number or null | default 0.1 |
Smallest valid example
{
"proposed_risk": 0.1
}Used by 1 operation
| POST | /fabric/trajectories/{trajectory_id}/counterfactual | Evaluate 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