Skip to main content
Agno supports using MongoDB asynchronously as a storage backend for Workflows, with the AsyncMongoDb class.

Usage

Install the pymongo (4.9 or later), openai, and ddgs packages:
motor clients are also supported, but motor is deprecated. Use PyMongo’s async client instead.

Run MongoDB

Install docker desktop and run MongoDB on port 27017 using:
async_mongodb_for_workflow.py

Params