MongoDb stores an Agent’s sessions and run history in MongoDB.
Usage
Provide eitherdb_url or db_client. The default database name is agno; set db_name to use another database. The following example uses db_url.
Install the agno, pymongo, openai, and ddgs packages:
Run MongoDB
Install Docker Desktop, then start MongoDB on port27017:
mongodb_for_agent.py