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>
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]) -> AnyParameters
ParamField
strNo description available.
ParamField
strNo description available.
ParamField
Dict[str, Any]No description available.
Returns
ResponseField
AnyThe result of the operation.
Uses
addtime.time_nsdatetime.nowinsert_onestore_long_term
Source
View on GitHubpraisonaiagents/memory/memory.py at line 1794