
cathedral-memory 0.2.0: LangChain memory adapter
cathedral-memory 0.2.0 adds native LangChain support. pip install cathedral-memory[langchain] CathedralMemory Drop-in BaseMemory for any LangChain chain or agent. from cathedral.langchain import CathedralMemory from langchain.chains import ConversationChain memory = CathedralMemory ( api_key = ' cathedral_... ' ) chain = ConversationChain ( llm = llm , memory = memory ) On load_memory_variables() it calls wake() for full identity reconstruction. On save_context() it stores the exchange via remember() . That chain now has persistent memory across sessions. CathedralChatMessageHistory Drop-in BaseChatMessageHistory for LangChain v0.1+. from cathedral.langchain import CathedralChatMessageHistory from langchain.memory import ConversationBufferMemory history = CathedralChatMessageHistory ( api_key = ' cathedral_... ' ) memory = ConversationBufferMemory ( chat_memory = history , return_messages = True ) What you get for free Drift detection -- check if the agent's self-model has shifted Snap
Continue reading on Dev.to Python
Opens in a new tab




