Skip to main content

store_user_memory

Method
This is a method of the Memory class in the memory module.
If mem0 is used, do user-based addition. Otherwise store in LTM with user in metadata.

Signature

def store_user_memory(user_id: str, text: str, extra: Dict[str, Any]) -> Any

Parameters

user_id
str
required
No description available.
text
str
required
No description available.
extra
Dict
No description available.

Returns

Returns
Any
The result of the operation.

Uses

  • add
  • time.time_ns
  • datetime.utcnow
  • insert_one
  • store_long_term

Source

View on GitHub

praisonaiagents/memory/memory.py at line 1311