FileSystemChatMessageHistory
uses a JSON file to store chat message history. For longer-term persistence across chat sessions, you can swap out the default in-memory chatHistory
that backs chat memory classes like BufferMemory
.
Setup
You’ll first need to install the@langchain/community
package:
npm
npm