langchain[patch]: Update doc-string for a method in ConversationBufferWindowMemory (#18090)

A minor doc fix stated in #18080
This commit is contained in:
Mohammad Mohtashim
2024-02-26 20:15:02 +05:00
committed by GitHub
parent 2716d58603
commit 719a1cde75

View File

@@ -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,