listEntities
Enumerate entities by type and name prefix — cursor-paged, with a required type filter.
listEntities(query?: ListEntitiesQuery): Promise<ListEntitiesResult>listEntities(request: EntityListRequest): Promise<EntityListItem[]>
listEntitiesFrames(request: EntityListRequest): Promise<EntityListResponseFrame[]>Parameters
typeIdintegeroptionalRestrict 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.
mentionCountMinintegeroptionalFloor on how many memories mention the entity. The cheap way to skip one-off extractions.
includeTombstonedbooleanoptionalDefaults to false.
includeMergedbooleanoptionalInclude 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.
nextCursorstringAbsent 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?