From e86755793681aa4ea1ad4d21b960d07c98ae4e8f Mon Sep 17 00:00:00 2001 From: Luan Fernandes Date: Mon, 26 Feb 2024 16:46:43 -0300 Subject: [PATCH] [docs] Update doc-string for buffer_as_messages method in ConversationBufferWindowMemory (#18136) minor 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 d1be93974aa..b71b9d23baf 100644 --- a/libs/langchain/langchain/memory/buffer_window.py +++ b/libs/langchain/langchain/memory/buffer_window.py @@ -31,7 +31,7 @@ class ConversationBufferWindowMemory(BaseChatMemory): @property def buffer_as_messages(self) -> List[BaseMessage]: - """Exposes the buffer as a list of messages in case return_messages is False.""" + """Exposes the buffer as a list of messages in case return_messages is True.""" return self.chat_memory.messages[-self.k * 2 :] if self.k > 0 else [] @property