Store Long Term • AI Agent SDK

store_long_term: Store in MongoDB long-term collection.

store_long_term

Method

</div>

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

Store in MongoDB long-term collection.

Signature

python
def store_long_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.

Used By

Source

View on GitHub

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