Our new LangChain Academy Course Deep Research with LangGraph is now live! Enroll for free.
OSS (v1-alpha)
LangChain and LangGraph
chatHistory
BufferMemory
npm create convex@latest
convex/langchain/db.ts
export * from "@langchain/community/utils/convex";
import { defineSchema, defineTable } from "convex/server"; import { v } from "convex/values"; export default defineSchema({ messages: defineTable({ sessionId: v.string(), message: v.object({ type: v.string(), data: v.object({ content: v.string(), role: v.optional(v.string()), name: v.optional(v.string()), additional_kwargs: v.optional(v.any()), }), }), }).index("bySessionId", ["sessionId"]), });
npm install @langchain/openai @langchain/community @langchain/core