Create Mongodb Memory Adapter • AI Agent SDK
create_mongodb_memory_adapter: Factory function to create MongoDB memory adapter.
create_mongodb_memory_adapter
Function
</div>
This function is defined in the factories module.
Factory function to create MongoDB memory adapter.
Lazy imports pymongo and creates an adapter that implements MemoryProtocol using MongoDB as the document store backend.
Signature
def create_mongodb_memory_adapter() -> MemoryProtocolReturns
ResponseField
MemoryProtocolMemoryProtocol adapter instance
Exceptions
ImportError
If pymongo is not installed
Uses
ImportErrorMongoDBMemoryAdapter
Source
View on GitHubpraisonaiagents/memory/adapters/factories.py at line 121