EcosystemLangChain

ZepChatMessageHistory

You can find a complete Message History Example that showcases how to use the ZepChatMessageHistory class in the chain.

The Zep Python SDK includes the ZepChatMessageHistory class, compatible with LangChain Expression Language (LCEL).

It expects the following initialization parameters:

Initialization Example
1chat_history = ZepChatMessageHistory(
2 session_id=session_id,
3 zep_client=client,
4 memory_type="perpetual",
5)