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

python
def create_mongodb_memory_adapter() -> MemoryProtocol

Returns

ResponseField MemoryProtocol

MemoryProtocol adapter instance

Exceptions

ImportError

If pymongo is not installed

Uses

  • ImportError
  • MongoDBMemoryAdapter

Source

View on GitHub

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


Related Documentation