diff --git a/libs/langchain/langchain/memory/buffer_window.py b/libs/langchain/langchain/memory/buffer_window.py index 7aa9fa59c72..d1be93974aa 100644 --- a/libs/langchain/langchain/memory/buffer_window.py +++ b/libs/langchain/langchain/memory/buffer_window.py @@ -21,7 +21,7 @@ class ConversationBufferWindowMemory(BaseChatMemory): @property def buffer_as_str(self) -> str: - """Exposes the buffer as a string in case return_messages is True.""" + """Exposes the buffer as a string in case return_messages is False.""" messages = self.chat_memory.messages[-self.k * 2 :] if self.k > 0 else [] return get_buffer_string( messages,