Skip to main content
MongoDb stores Agent sessions and run history in MongoDB.
The v1-to-v2 migration script supports MongoDB. See the migration guide.

Usage

Install the agno, pymongo, and openai packages:

Run MongoDB

Install Docker Desktop, then start MongoDB on port 27017:
Pass either db_url or db_client. The default database name is agno; set db_name to use another database.
mongodb_for_agent.py

Parameters