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

python
def search_memory(query: str, memory_type: str, limit: int) -> List[Dict[str, Any]]

Parameters

ParamField str

Search query

ParamField str

“short” or “long” term memory

ParamField int

Maximum results to return

Returns

ResponseField List[Dict[str, Any]]

List of memory results

Uses

  • search_short_term
  • search_long_term

Source

View on GitHub

praisonaiagents/session.py at line 391


Related Documentation