memory_list
Enumerate the memories in a space, cursor-paged, with filters for kind, time, salience and text.
async fn memory_list(&self, query: &MemoryListQuery) -> Result<MemoryListPage, BrainHttpError>async fn memory_list(&self, request: &MemoryListRequest) -> Result<Vec<MemoryListItem>>
async fn memory_list_frames(&self, request: &MemoryListRequest) -> Result<Vec<MemoryListResponseFrame>>Parameters
limitintegeroptionalPage size. The server caps it — ask for more and you get the cap, not an error.
cursorstring (wire: bytes)optionalThe cursor from the previous page. Omit for the first. See Pagination.
dirstringoptionalSort direction.
include_tombstonedbooleanoptionalInclude softly-forgotten memories. Defaults to false.
Returns
itemsMemoryListItem[]alwaysThe page.
next_cursorstringAbsent on the last page. Absent is the terminator — an empty page with a cursor present is a valid intermediate page.
items[].stateintegeralwaysLifecycle state. Non-zero means tombstoned; you only ever see it when tombstoned rows were requested.
items[].statement_count / entity_count / relation_countintegeralwaysHow much typed graph this memory produced. All three zero on a memory written while no schema was active — not a derivation failure.
items[].salience / access_count / last_accessed_at_unix_nanos—alwaysThe decay inputs. See Decay and retention.
items[].memory_id / text / kind / created_at_unix_nanos / occurred_at_unix_nanos—alwaysThe memory itself.
The wire filters
MemoryListRequest exposes filters the HTTP tier does not: sort, kinds,
timeAxis, fromUnixNanos, toUnixNanos, salienceMin, salienceMax and
textContains.
timeAxis is the one worth knowing — it decides whether the time range means
record time (when Brain wrote it) or event time (when the thing
happened). Those answer different questions, and the HTTP tier cannot ask the
second.
The wire response item also carries spaceId, sessionId and
sourceRequestId, which the HTTP item omits.
Was this page helpful?