Skip to main content

Overview

The ListMemoriesOptions interface provides control over the retrieval of multiple memory records, enabling pagination and broad filtering across the memory store.

Properties

PropertyTypeDescription
typeMemoryTypeOptional. Restricts the list to specific memory classifications (e.g., episodic).
filterstringOptional. Criteria to narrow down the retrieved list based on metadata.
page_numnumberOptional. The specific page index to retrieve (defaults to 1).
page_sizenumberOptional. The number of records to return per page.

Usage Example

import { ListMemoriesOptions } from '@memmachine/client';

const options: ListMemoriesOptions = {
  type: 'episodic',
  page_num: 2,
  page_size: 20
};

const history = await memory.list(options);