// Replace FsDatastore with the IPFS Datastore of your choice.import { FsDatastore } from "datastore-fs";import { IPFSDatastoreChatMessageHistory } from "@langchain/community/stores/message/ipfs_datastore";const datastore = new FsDatastore("path/to/store");const sessionId = "my-session";const history = new IPFSDatastoreChatMessageHistory({ datastore, sessionId });
Assistant
Responses are generated using AI and may contain mistakes.