AsyncPostgresDb stores Agent, Team, and Workflow sessions, memories, knowledge, evaluations, and traces asynchronously in PostgreSQL.
Usage
Install thesqlalchemy, psycopg, and openai packages:
async_postgres_for_agent.py
Agent.arun() and Agent.aprint_response() with this database.
Run PostgreSQL
Install Docker Desktop, then start PostgreSQL with pgvector on port5532: