Search User Memory • AI Agent SDK

search_user_memory: If mem0 is used, pass user_id in. Otherwise fallback to local filter on user in metadata.

search_user_memory

Method

</div>

This is a method of the Memory class in the memory module.

If mem0 is used, pass user_id in. Otherwise fallback to local filter on user in metadata.

Signature

python
def search_user_memory(user_id: str, query: str, limit: int, rerank: bool) -> List[Dict[str, Any]]

Parameters

ParamField str

No description available.

ParamField str

No description available.

ParamField int

No description available.

ParamField bool

No description available.

Returns

ResponseField List[Dict[str, Any]]

The result of the operation.

Uses

  • limit
  • find
  • search_long_term

Used By

Source

View on GitHub

praisonaiagents/memory/memory.py at line 1822


Related Documentation