Create entity
create_entityCreate a new entity in the world model.
Always inserts a new node; it does not check for an existing entity with
the same name. To reuse-or-create by name, use ``relate_entities`` (which
also records a relation) or check with ``search_entities`` first.
Side effects: with the default ``hybrid`` strategy the entity is linked to
the NEXUS root entity (``belongs_to``); a creation episode, memory links
and an event are recorded; and entities with a very similar name may be
queued as merge proposals. For explicit links to specific entities use
``create_entity_cognitive``.
Returns the entity plus ``relations_created``, ``episode_id``,
``event_id`` and ``memory_links_created``.
Args:
name: Human-readable name of the entity.
entity_type: Type from the closed ontology (schema enum). Use
'unclassified' if none fits.
attributes: Optional key-value attributes.
strategy: Auto-linking strategy:
'hybrid' (default) or 'root' — link to the NEXUS root entity.
'similar' — link (related_to) to the most recently created
entity of the same type.
'none' — no automatic links.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| strategy | No | hybrid | |
| attributes | No | ||
| entity_type | Yes |