Graph Control with Memory Policy
memory_policy is the primary control surface for how memories become graph entities and relationships.
When to Use
- Use
mode: "auto"for unstructured text where extraction is model-driven. - Use
mode: "manual"for deterministic structured ingest.
Core Controls
modeschema_idnode_constraintsedge_constraintsrelationshipsacl,consent,risk
Auto Mode Example
{
"memory_policy": {
"mode": "auto",
"schema_id": "support_schema_v1",
"node_constraints": [
{
"node_type": "Issue",
"set": {
"status": {"mode": "exact", "value": "open"}
}
}
]
}
}Manual Mode Example
{
"memory_policy": {
"mode": "manual",
"nodes": [
{"id": "acct_1", "type": "Account", "properties": {"name": "Acme"}}
],
"relationships": []
}
}