entity_upsert
Create or update an entity in the graph projection to register, rename, or add aliases. Curate entity identity without storing facts.
Instructions
Create or update one entity in the graph projection (register it, rename it, or add aliases). Mutating. The graph is a rebuildable projection over memories, which remain the source of truth — use this to curate entity identity, not to store facts (use remember for facts).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| space | No | Memory space (namespace) the entity belongs to. | |
| status | No | Lifecycle status (e.g. active, tombstoned). | |
| aliases | No | Alternate names/surface forms that should resolve to this entity. | |
| metadata | No | Arbitrary key/value attributes to attach to the entity. | |
| confidence | No | Confidence in the entity, 0.0–1.0. | |
| entity_key | Yes | Stable, unique key identifying the entity. Required. | |
| entity_type | No | Type of entity (e.g. person, project, concept, tool). | |
| canonical_name | Yes | Primary display name for the entity. Required. | |
| include_source | No | If true, reveal provenance/source metadata in the response. Default false. | |
| source_episode_id | No | Id of the source episode this entity was derived from, if any. |