MongoAgentStorage class.
Usage
You need to provide eitherdb_url or client. The following example uses db_url.
storage.py
Params
| Parameter | Type | Default | Description |
|---|---|---|---|
collection_name | str | - | Name of the collection to be used. |
db_url | Optional[str] | None | Database URL, if provided. |
db_name | str | "phi" | Database Name. |
client | Optional[MongoClient] | None | MongoDB client, if provided. |