list_entities
Enumerate entities by type and name prefix — cursor-paged, with a required type filter.
list_entities(type_id=None, prefix=None, mention_count_min=None, include_tombstoned=None, include_merged=None, limit=None, cursor=None) -> ListEntitiesResultlist_entities(request: EntityListRequest) -> list[EntityListItem]
list_entities_frames(request: EntityListRequest) -> list[EntityListResponseFrame]Parameters
type_idintegeroptionalRestrict to one entity type. Brain v1.0 requires a type filter to list entities — an unfiltered listing is rejected rather than scanned.
prefixstringoptionalCanonical-name prefix. On the wire the field is namePrefix.
mention_count_minintegeroptionalFloor on how many memories mention the entity. The cheap way to skip one-off extractions.
include_tombstonedbooleanoptionalDefaults to false.
include_mergedbooleanoptionalInclude entities merged into another. Defaults to false, so a merged entity disappears from listings without disappearing from storage.
limitintegeroptionalPage size.
cursorstring (wire: bytes)optionalCursor from the previous page.
Returns
entitiesEntityDetail[]alwaysThe page.
countintegeralwaysHow many are in this page.
next_cursorstringAbsent on the last page.
On the wire
Ids are fixed-width UUID bytes rather than strings, attributes is an opaque
attributesBlob, and every request carries a requestId plus an optional
actAs. See Wire client.
Was this page helpful?