MongoDBMemoryAdapter
Defined in the factories module.AI Agent Memory adapter that uses MongoDB to implement MemoryProtocol.
Constructor
Any
required
No description available.
Any
required
No description available.
Methods
store_short_term()
Store in MongoDB short-term collection.
search_short_term()
Search MongoDB short-term collection.
store_long_term()
Store in MongoDB long-term collection.
search_long_term()
Search MongoDB long-term collection.
get_all_memories()
Get all memories from both collections.
close()
Clean up MongoDB resources.
Source
View on GitHub
praisonaiagents/memory/adapters/factories.py at line 381
