AsyncPostgresDb stores an Agent’s sessions and run history asynchronously in PostgreSQL. Use async Agent methods such as arun() and aprint_response().
Usage
Install Agno and the Postgres, model, and tool dependencies:Run PostgreSQL
Install Docker Desktop, then start PostgreSQL with pgvector on port5532:
async_postgres_for_agent.py
Run the Example
Save the code above asasync_postgres_for_agent.py, then run: