Skip to main content
AsyncSqliteDb stores a Workflow’s sessions and run history asynchronously in SQLite. Use async Workflow methods such as arun() and aprint_response().

Usage

Install the sqlalchemy asyncio extra, aiosqlite, openai, and ddgs:
AsyncSqliteDb uses an async db_engine, then db_url, then db_file. A db_url must use an async driver such as sqlite+aiosqlite. If none is provided, it creates agno.db in the current directory. The following example uses db_file.
async_sqlite_for_workflow.py

Parameters