Store Short Term • AI Agent SDK

store_short_term: Store in mem0 (treated as long-term since mem0 doesn't distinguish).

store_short_term

Method

</div>

This is a method of the Mem0MemoryAdapter class in the factories module.

Store in mem0 (treated as long-term since mem0 doesn’t distinguish).

Signature

python
def store_short_term(text: str, metadata: Optional[Dict[str, Any]]) -> str

Parameters

ParamField str

No description available.

ParamField Optional

No description available.

Returns

ResponseField str

The result of the operation.

Uses

  • store_long_term

Used By

Source

View on GitHub

praisonaiagents/memory/adapters/factories.py at line 229