list_entities
Enumerate entities by type and name prefix — cursor-paged, with a required type filter.
async fn list_entities(&self, query: &ListEntitiesQuery) -> Result<ListEntitiesResult, BrainHttpError>async fn list_entities(&self, request: &EntityListRequest) -> Result<Vec<EntityListItem>>
async fn list_entities_frames(&self, request: &EntityListRequest) -> Result<Vec<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?