PostgresMemoryDb 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.
Parameter | Type | Description | Default |
---|---|---|---|
table_name | str | Name of the PostgreSQL table | Required |
schema | Optional[str] | Database schema name | "ai" |
db_url | Optional[str] | PostgreSQL connection URL | None |
db_engine | Optional[Engine] | Pre-configured SQLAlchemy engine | None |
PostgresMemoryDb 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.
Parameter | Type | Description | Default |
---|---|---|---|
table_name | str | Name of the PostgreSQL table | Required |
schema | Optional[str] | Database schema name | "ai" |
db_url | Optional[str] | PostgreSQL connection URL | None |
db_engine | Optional[Engine] | Pre-configured SQLAlchemy engine | None |