chatHistory
that backs chat memory classes like BufferMemory
for an PlanetScale Database instance.
Setup
You will need to install @planetscale/database in your project:npm
Usage
Each chat history session stored in PlanetScale database must have a unique id. Theconfig
parameter is passed directly into the new Client()
constructor of @planetscale/database, and takes all the same arguments.