Skip to main content
AsyncPostgresDb stores Agent, Team, and Workflow sessions, memories, knowledge, evaluations, and traces asynchronously in PostgreSQL.

Usage

Install the sqlalchemy, psycopg, and openai packages:
async_postgres_for_agent.py
Use async methods such as Agent.arun() and Agent.aprint_response() with this database.

Run PostgreSQL

Install Docker Desktop, then start PostgreSQL with pgvector on port 5532:

Parameters