record
Write entities, relations, and observations to persistent memory in a single validated atomic call, so partial or invalid data is never saved.
Instructions
Write entities, relations and observations in one validated, atomic call.
This is the single write path. Everything is validated before anything is written, so a batch that is half-valid writes nothing.
Entity fields: name, entityType (required for new), domain (required for new), epistemic (assertion|hypothesis|speculation|unknown, default unknown), visibility (private|shareable, default private), observations. An observation may be a string, or {"text": ..., "kind": ...} where kind is note|decided|rejected|because|touches.
Relations use the canonical vocabulary; close synonyms are folded, unknown types are rejected. A relation may only point at an entity that exists or is being created in this same call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entities | No | Entities to create or merge into. | |
| relations | No | Relations to create. | |
| observations | No | [{"entityName": ..., "contents": [...], "kind": ...}] |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |