MongoDB is a class that implements the MemoryDb interface using MongoDB as the backend storage system. It provides persistent storage for agent memories with support for indexing and efficient querying.

Parameters

ParameterTypeDescriptionDefault
collection_namestrName of the MongoDB collection"memory"
db_urlOptional[str]MongoDB connection URLNone
db_namestrName of the database"agno"
clientOptional[MongoClient]Pre-configured MongoDB clientNone