create_relation
Creates a source-backed directed relation only when a user explicitly states a durable relation; requires resolved endpoint IDs and a captured source memory ID.
Instructions
Create a source-backed directed relation only when the user explicitly states a durable relation. Resolve both endpoint ids with create_entity, capture the user's relation statement, then pass those ids plus the capture result's source_memory_id. If a conflicting relation already exists for the same endpoints, the daemon may auto-supersede that existing relation. Entity names are not accepted or auto-created. Never infer an unstated relation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_entity_id | Yes | Resolved target entity id (e.g. 'ent_wenlan'). Obtain it from create_entity; names are not accepted or auto-created. | |
| relation_type | Yes | Verb describing the directed relation (e.g. 'works_on', 'prefers', 'uses', 'depends_on'). Snake_case, present-tense. | |
| from_entity_id | Yes | Resolved source entity id (e.g. 'ent_alice'). Obtain it from create_entity; names are not accepted or auto-created. | |
| source_memory_id | Yes | Required source memory id returned by capture for the user's explicit relation statement. |