Mongo DB Memory Adapter • AI Agent SDK
MongoDBMemoryAdapter: Memory adapter that uses MongoDB to implement MemoryProtocol.
MongoDBMemoryAdapter
Defined in the factories module.
AI Agent
Memory adapter that uses MongoDB to implement MemoryProtocol.
Constructor
ParamField
AnyNo description available.
ParamField
AnyNo 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 GitHubpraisonaiagents/memory/adapters/factories.py at line 430