Rename entity
rename_entityRename an entity and all its relations in the knowledge graph, preserving tags. Fails if the entity is missing or the new name is already taken.
Instructions
Rename an entity and every relation that names it.
Keeps every tag, so the entity and its observations still show when and by which agent they were added. Returns the renamed entity and a message counting the relations updated. Fails without saving when the entity does not exist or the new name is taken; to combine two entities, see merge_entities.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| newName | Yes | New name; no other entity may have it. | |
| entityName | Yes | Current name of the entity. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity | Yes | ||
| message | Yes |