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>
If mem0 is used, pass user_id in. Otherwise fallback to local filter on user in metadata.
Signature
def search_user_memory(user_id: str, query: str, limit: int, rerank: bool) -> List[Dict[str, Any]]Parameters
ParamField
strNo description available.
ParamField
strNo description available.
ParamField
intNo description available.
ParamField
boolNo description available.
Returns
ResponseField
List[Dict[str, Any]]The result of the operation.
Uses
limitfindsearch_long_term
Used By
Source
View on GitHubpraisonaiagents/memory/memory.py at line 1822