MongoDB Agent Storage is a class that implements the AgentStorage interface using MongoDB as the backend storage system. It provides scalable, document-based storage for agent sessions with support for indexing and efficient querying.

Parameters

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