MemoryStore.recall()

Retrieve a memory, searching tiers if no specific tier is given.

Usage

Source

MemoryStore.recall(
    key,
    *,
    tier=None,
    default=None,
)

When tier is None, searches working → short-term → long-term and returns the first match found.

Parameters

key: str

The key to look up.

tier: MemoryTier | None = None

Specific tier to search. None searches all tiers.

default: Any = None
Value to return if not found in any tier.

Returns

Any
The stored value, or default if not found.