CAIN-42 CAIN Studio

API reference · schema

TrustDynamicsEnforceRequest

12 fields · used by 0 operations

Last reviewed 2026-10-02

Request for Trust Dynamics enforcement endpoint.

Fields

FieldTypeMeaning
principal_id requiredstring
identity_id requiredstring
agent_id requiredstring
session_id requiredstring
action requiredstring
resource requiredstring
tool_namestring or null
expected_risk_scorenumberdefault 0.3
expected_outcomestringdefault "success"
memory_contextarray of object or null
budget_factornumberdefault 1.0
correlation_idstring or null

Smallest valid example

{
  "principal_id": "principal-id",
  "identity_id": "identity-id",
  "agent_id": "agent-id",
  "session_id": "session-id",
  "action": "action",
  "resource": "resource",
  "expected_risk_score": 0.3,
  "expected_outcome": "success",
  "budget_factor": 1.0
}

JSON Schema

Show the raw definition
{
  "properties": {
    "principal_id": {
      "type": "string",
      "title": "Principal Id"
    },
    "identity_id": {
      "type": "string",
      "title": "Identity Id"
    },
    "agent_id": {
      "type": "string",
      "title": "Agent Id"
    },
    "session_id": {
      "type": "string",
      "title": "Session Id"
    },
    "action": {
      "type": "string",
      "title": "Action"
    },
    "resource": {
      "type": "string",
      "title": "Resource"
    },
    "tool_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tool Name"
    },
    "expected_risk_score": {
      "type": "number",
      "title": "Expected Risk Score",
      "default": 0.3
    },
    "expected_outcome": {
      "type": "string",
      "title": "Expected Outcome",
      "default": "success"
    },
    "memory_context": {
      "anyOf": [
        {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Memory Context"
    },
    "budget_factor": {
      "type": "number",
      "title": "Budget Factor",
      "default": 1.0
    },
    "correlation_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Correlation Id"
    }
  },
  "type": "object",
  "required": [
    "principal_id",
    "identity_id",
    "agent_id",
    "session_id",
    "action",
    "resource"
  ],
  "title": "TrustDynamicsEnforceRequest",
  "description": "Request for Trust Dynamics enforcement endpoint."
}

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