PostgreSQL is a class that implements the MemoryDb interface using PostgreSQL as the backend storage system. It provides persistent storage for agent memories with support for JSONB data types, timestamps, and efficient querying.

Parameters

ParameterTypeDescriptionDefault
table_namestrName of the PostgreSQL tableRequired
schemaOptional[str]Database schema name"ai"
db_urlOptional[str]PostgreSQL connection URLNone
db_engineOptional[Engine]Pre-configured SQLAlchemy engineNone