Skip to main content

search_memory

Method
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

query
str
required
Search query
memory_type
str
default:"'long'"
“short” or “long” term memory
limit
int
default:"5"
Maximum results to return

Returns

Returns
List[Dict[str, Any]]
List of memory results