[X] I added a very descriptive title to this issue.
[X] I searched the LangChain documentation with the integrated search.
[X] I used the GitHub search to find a similar question and didn't find it.
[X] I am sure that this is a bug in LangChain rather than my code.
[X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).
Example Code
from langchain_community.memory.zep_cloud_memory import ZepCloudMemory
# Set up Zep Chat History
memory = ZepCloudMemory(
session_id=session_id,
api_key=zep_api_key,
return_messages=True,
memory_key="chat_history",
)
from langchain_community.memory.zep_cloud_memory import ZepCloudMemory
# Set up Zep Chat History
memory = ZepCloudMemory(
session_id=session_id,
api_key=zep_api_key,
return_messages=True,
memory_key="chat_history",
)
then it raise a error:
TypeError: ZepCloudMemory() takes no arguments
so I click into the class ZepCloudMemory, the source code as below:
try:
from langchain.memory import ConversationBufferMemory
from zep_cloud import MemoryGetRequestMemoryType
class ZepCloudMemory(ConversationBufferMemory):
# something
except ImportError:
# Placeholder object
class ZepCloudMemory: # type: ignore[no-redef]
pass
the code from zep_cloud import MemoryGetRequestMemoryType has a import error.
the code will jump into except block and retuen a class with no constructor.
Hello! We're a group of students from the University of Toronto Scarborough, and we're excited to contribute to LangChain. We'd love the opportunity to investigate this bug further.
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
I follow the doc and write the code
then it raise a error:
so I click into the class ZepCloudMemory, the source code as below:
the code
from zep_cloud import MemoryGetRequestMemoryType
has a import error. the code will jump intoexcept
block and retuen a class with no constructor.System Info
python==3.10 langchain-community==0.2.5 langchain-core==0.2.33 zep-cloud==1.0.9