Skip to main content
AsyncMySQLDb stores an Agent’s sessions and run history asynchronously in MySQL. Use async Agent methods such as arun() and aprint_response().

Usage

Install the sqlalchemy, asyncmy, openai, and ddgs packages:

Run MySQL

Install Docker Desktop, then start MySQL on port 3306:
async_mysql_for_agent.py

Parameters