Storage
MySQL
MySQL Agent Storage is a class that implements the AgentStorage interface using MySQL as the backend storage system. It provides robust, relational storage for agent sessions with support for JSONB data types, schema versioning, and efficient querying.
Parameter | Type | Default | Description |
---|---|---|---|
table_name | str | - | Name of the table to be used. |
schema | Optional[str] | "ai" | Schema name, default is "ai". |
db_url | Optional[str] | None | Database URL, if provided. |
db_engine | Optional[Engine] | None | Database engine to be used. |
schema_version | int | 1 | Version of the schema, default is 1. |
auto_upgrade_schema | bool | False | If true, automatically upgrades the schema when necessary. |