CAIN-42 CAIN Studio

API reference · schema

StoreMemoryRequest

17 fields · used by 1 operations

Last reviewed 2026-10-02

Fields

FieldTypeMeaning
agent_id requiredstringmin length 1 · max length 255
memory_type requiredstringpattern ^(episodic|semantic|procedural|preference|task|working|factual|experience|instruction|observation)$
content requiredstringmin length 1 · max length 65536
sourcestringpattern ^(agent|tool|human|delegated|system)$ · default "agent"
identity_idstring or null
source_typestringdefault "agent"
source_referencestring or null
confidencenumbermin 0.0 · max 1.0 · default 0.5
tagsarray of string or null
metadataobject or null
expires_atstring or null
provenanceobject or null
evidence_idstring or null
decision_idstring or null
trace_idstring or null
trajectory_idstring or null
sensitivitystringpattern ^(internal|confidential|restricted|public)$ · default "internal"

Smallest valid example

{
  "agent_id": "agent-id",
  "memory_type": "memory-type",
  "content": "content",
  "source": "agent",
  "source_type": "agent",
  "confidence": 0.5,
  "sensitivity": "internal"
}

Used by 1 operation

POST/fabric/memory/storeApi Store Memory

JSON Schema

Show the raw definition
{
  "properties": {
    "agent_id": {
      "type": "string",
      "maxLength": 255,
      "minLength": 1,
      "title": "Agent Id"
    },
    "memory_type": {
      "type": "string",
      "pattern": "^(episodic|semantic|procedural|preference|task|working|factual|experience|instruction|observation)$",
      "title": "Memory Type"
    },
    "content": {
      "type": "string",
      "maxLength": 65536,
      "minLength": 1,
      "title": "Content"
    },
    "source": {
      "type": "string",
      "pattern": "^(agent|tool|human|delegated|system)$",
      "title": "Source",
      "default": "agent"
    },
    "identity_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Identity Id"
    },
    "source_type": {
      "type": "string",
      "title": "Source Type",
      "default": "agent"
    },
    "source_reference": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Source Reference"
    },
    "confidence": {
      "type": "number",
      "maximum": 1.0,
      "minimum": 0.0,
      "title": "Confidence",
      "default": 0.5
    },
    "tags": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tags"
    },
    "metadata": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Metadata"
    },
    "expires_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Expires At"
    },
    "provenance": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Provenance"
    },
    "evidence_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Evidence Id"
    },
    "decision_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Decision Id"
    },
    "trace_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Trace Id"
    },
    "trajectory_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Trajectory Id"
    },
    "sensitivity": {
      "type": "string",
      "pattern": "^(internal|confidential|restricted|public)$",
      "title": "Sensitivity",
      "default": "internal"
    }
  },
  "type": "object",
  "required": [
    "agent_id",
    "memory_type",
    "content"
  ],
  "title": "StoreMemoryRequest"
}

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