CAIN-42 CAIN Studio

API reference · schema

CreateEdgeRequest

11 fields · used by 0 operations

Last reviewed 2026-10-06

Fields

FieldTypeMeaning
from_node requiredstring
to_node requiredstring
relation_type requiredstring
provenance_sourcestringdefault "system"
provenance_decision_idstring or null
provenance_evidence_idstring or null
provenance_policy_versioninteger or null
provenance_trust_versioninteger or null
provenance_correlation_idstring or null
weightnumberdefault 1.0
propertiesobject

Smallest valid example

{
  "from_node": "from-node",
  "to_node": "to-node",
  "relation_type": "relation-type",
  "provenance_source": "system",
  "weight": 1.0
}

JSON Schema

Show the raw definition
{
  "properties": {
    "from_node": {
      "type": "string",
      "title": "From Node"
    },
    "to_node": {
      "type": "string",
      "title": "To Node"
    },
    "relation_type": {
      "type": "string",
      "title": "Relation Type"
    },
    "provenance_source": {
      "type": "string",
      "title": "Provenance Source",
      "default": "system"
    },
    "provenance_decision_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Provenance Decision Id"
    },
    "provenance_evidence_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Provenance Evidence Id"
    },
    "provenance_policy_version": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Provenance Policy Version"
    },
    "provenance_trust_version": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Provenance Trust Version"
    },
    "provenance_correlation_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Provenance Correlation Id"
    },
    "weight": {
      "type": "number",
      "title": "Weight",
      "default": 1.0
    },
    "properties": {
      "additionalProperties": true,
      "type": "object",
      "title": "Properties"
    }
  },
  "type": "object",
  "required": [
    "from_node",
    "to_node",
    "relation_type"
  ],
  "title": "CreateEdgeRequest"
}

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