MemoryStore.search()
Search memories across tiers.
Usage
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.
Nonesearches 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).