ZepChatMessageHistory
The Zep Memory, VectorStore, and Retriever classes found in the LangChain project are deprecated. LangGraph is the recommended approach to using Zep with the LangChain ecosystem.
You can find a complete Message History Example that showcases how to use the ZepChatMessageHistory
class in the chain.
Python
TypeScript
LangChain offers a ZepChatMessageHistory
class compatible with LangChain Expression Language (LCEL).
It expects the following initialization parameters:
The unique identifier for Zep Session. If a session for the provided identifier doesn’t exist, one will be created
The Zep client used for making API requests. You can pass it rather than the API Key.
Zep Project API Key.
You can pass it rather than zep_client
and we will initialize ZepClient
for you.
The type of memory to use.
Can be "message_window"
(the default value if None provided) or "perpetual"
.
You can find out more about the memory types in the Chat History documentation.