From 719a1cde758d1c9b5a4f1db5eb274b1ebfc3d10d Mon Sep 17 00:00:00 2001 From: Mohammad Mohtashim <45242107+keenborder786@users.noreply.github.com> Date: Mon, 26 Feb 2024 20:15:02 +0500 Subject: [PATCH] langchain[patch]: Update doc-string for a method in ConversationBufferWindowMemory (#18090) A minor doc fix stated in #18080 --- libs/langchain/langchain/memory/buffer_window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,