Back to Agno

Async MongoDB Integration

cookbook/06_storage/mongo/async_mongo/README.md

2.6.4737 B
Original Source

Async MongoDB Integration

Examples demonstrating asynchronous MongoDB integration with Agno agents, teams, and workflows.

Setup

shell
uv pip install pymongo motor

Run a local MongoDB server using:

bash
docker run -d \
  --name local-mongo \
  -p 27017:27017 \
  -e MONGO_INITDB_ROOT_USERNAME=mongoadmin \
  -e MONGO_INITDB_ROOT_PASSWORD=secret \
  mongo

or use our script:

bash
./scripts/run_mongodb.sh

Examples