Skip to main content
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 port 5532:
async_postgres_for_agent.py

Run the Example

Save the code above as async_postgres_for_agent.py, then run:

Parameters