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.

ParameterTypeDefaultDescription
table_namestr-Name of the table to be used.
schemaOptional[str]"ai"Schema name, default is "ai".
db_urlOptional[str]NoneDatabase URL, if provided.
db_engineOptional[Engine]NoneDatabase engine to be used.
schema_versionint1Version of the schema, default is 1.
auto_upgrade_schemaboolFalseIf true, automatically upgrades the schema when necessary.