PostgreSQL Agent Storage is a class that implements the AgentStorage interface using PostgreSQL as the backend storage system. It provides robust, relational storage for agent sessions with support for JSONB data types, schema versioning, and efficient querying.Documentation Index
Fetch the complete documentation index at: https://docs-v1.agno.com/llms.txt
Use this file to discover all available pages before exploring further.
Parameters
| 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 |
schema_version | int | Schema version number | 1 |
auto_upgrade_schema | bool | Auto-upgrade schema | False |