Skip to content

SearchCriteriaDict

Dictionary Type

SearchCriteriaDict

Bases: TypedDict

Dictionary form of SearchCriteria.

Attributes

memory_strategy_id instance-attribute
memory_strategy_id: str | None

The memory strategy identifier to filter memory records by.

metadata_filters instance-attribute

Filters to apply to metadata associated with a memory.

search_query instance-attribute
search_query: Required[str]

The search query to use for finding relevant memory records.

top_k instance-attribute
top_k: int | None

The maximum number of top-scoring memory records to return. This value is used for semantic search ranking.