CAIN-42 CAIN Studio

API reference · schema

TrustActionRequest

10 fields · used by 0 operations

Last reviewed 2026-10-02

Fields

FieldTypeMeaning
trajectory_idstring or null
agent_idstring or null
identity_idstring or null
action requiredstring
resourcestring or null
toolstring or null
intentstring or null
policy_idstring or null
risk_scorenumber or nulldefault 0.1
cost_centsinteger or nulldefault 0

Smallest valid example

{
  "action": "action",
  "risk_score": 0.1,
  "cost_cents": 0
}

JSON Schema

Show the raw definition
{
  "properties": {
    "trajectory_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Trajectory Id"
    },
    "agent_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Agent Id"
    },
    "identity_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Identity Id"
    },
    "action": {
      "type": "string",
      "title": "Action"
    },
    "resource": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Resource"
    },
    "tool": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tool"
    },
    "intent": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Intent"
    },
    "policy_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Policy Id"
    },
    "risk_score": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Risk Score",
      "default": 0.1
    },
    "cost_cents": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cost Cents",
      "default": 0
    }
  },
  "type": "object",
  "required": [
    "action"
  ],
  "title": "TrustActionRequest"
}

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