Store User Memory • AI Agent SDK

store_user_memory: If mem0 is used, do user-based addition. Otherwise store in LTM with user in metadata.

store_user_memory

Method

</div>

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

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

Parameters

ParamField str

No description available.

ParamField str

No description available.

ParamField Dict[str, Any]

No description available.

Returns

ResponseField Any

The result of the operation.

Uses

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

Source

View on GitHub

praisonaiagents/memory/memory.py at line 1794


Related Documentation