Skip to main content
Cognis provides two retrieval methods: get() lists all memories matching a scope with pagination support, and get_memory() fetches a single memory record by its ID.

List all memories

Method signature

At least one of owner_id, agent_id, or session_id must be provided.

Parameters

Response

get() returns a CognisMemoryList object. It is iterable, supports len(), and supports index access.
Each item is a CognisMemoryRecord with the following fields:

Basic usage

Pagination

Use limit and offset to page through large result sets.

Include historical versions

Set include_historical=True to retrieve previous versions of memories that have been updated.

Get a single memory

Retrieve one memory record by its ID.

Method signature

Parameters

Usage

Async usage