Search Memory • AI Agent SDK
search_memory: Search session memory.
search_memory
Method
</div>
This is a method of the Session class in the session module.
Search session memory.
Signature
def search_memory(query: str, memory_type: str, limit: int) -> List[Dict[str, Any]]Parameters
ParamField
strSearch query
ParamField
str“short” or “long” term memory
ParamField
intMaximum results to return
Returns
ResponseField
List[Dict[str, Any]]List of memory results
Uses
search_short_termsearch_long_term
Source
View on GitHubpraisonaiagents/session.py at line 391