Function: slugifyEntityId()
slugifyEntityId(
label):string
Defined in: packages/agentos/src/memory/retrieval/graph/extraction/HeuristicEntityExtractor.ts:116
Derive a deterministic entity ID from a label. Lowercases, strips non-alphanumeric characters except spaces, replaces whitespace with dashes, collapses runs of dashes.
Idempotent: slugifyEntityId(slugifyEntityId(x)) === slugifyEntityId(x).
Parameters
label
string
Entity label from extractEntities.
Returns
string
Slug suitable for use as a stable entity-node id.