This integration is only supported in Cloudflare Workers.
chatHistory
that backs chat memory classes like BufferMemory
for a Cloudflare D1 instance.
Setup
You’ll need to install the LangChain Cloudflare integration package. For the below example, we also use Anthropic, but you can use any model you’d like:npm
wrangler.toml
file should
look something like this: