ConvexChatMessageHistory schema for langchain
Hi @michal, im reading the article: https://stack.convex.dev/ai-chat-using-langchain-and-convex and im trying to understand how the
messages
schema is constructured and its relationship with ConvexChatMessageHistory
.
im currently using a RunnableSequence
and it doesn't save to memory. i have to manually do
however, im running into the error below
to fix this, i had to modify the schema to
any idea why the input is having a diff structure when it tries to write to the db? thank you 🙂1 Reply
I think that someone else reported that there might have been a change to langchain that changed the schema. PRs to langchain are welcome!