MongoMemoryDb 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.Documentation Index
Fetch the complete documentation index at: https://docs-v1.agno.com/llms.txt
Use this file to discover all available pages before exploring further.
Parameters
| Parameter | Type | Description | Default |
|---|---|---|---|
collection_name | str | Name of the MongoDB collection | "memory" |
db_url | Optional[str] | MongoDB connection URL | None |
db_name | str | Name of the database | "agno" |
client | Optional[MongoClient] | Pre-configured MongoDB client | None |