Merge entities
merge_entitiesFold a source entity into a target, move its observations and relations, then delete the source. It skips duplicates and fails without saving if either entity is missing.
Instructions
Fold one entity into another and delete the first.
Moves the source's observations to the target with their original tags; a text the target already has keeps the target's copy. Points the source's relations at the target, dropping any that would repeat an existing relation or point the target at itself. The target keeps its own name and type. Returns the merged target and the relations moved to it. Fails without saving when either entity does not exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sourceName | Yes | Entity to fold in and delete, such as a typo. | |
| targetName | Yes | Entity that receives everything and stays. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity | Yes | ||
| message | Yes | ||
| movedRelations | Yes |