MemoryStore.search()

Search memories across tiers.

Usage

Source

MemoryStore.search(
    *,
    tags=None,
    tier=None,
    prefix=None,
)

Parameters

tags: list[str] | None = None

Filter to entries with all of these tags.

tier: MemoryTier | None = None

Specific tier to search. None searches all tiers.

prefix: str | None = None
Key prefix filter (only supported for long-term tier).

Returns

list[MemoryEntry]
Matching entries from the specified tier(s).