search
Method
This is a method of the Memory class in the memory module.Generic search method that delegates to appropriate specific search methods. Provides compatibility with mem0.Memory interface.
Signature
Parameters
The search query string
Optional user ID for user-specific search
Optional agent ID for agent-specific search
Optional run ID for run-specific search
Maximum number of results to return
Whether to use advanced reranking **kwargs: Additional search parameters
Returns
List of search results

