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

A minor doc fix stated in #18080
pull/18135/head
Mohammad Mohtashim 4 months ago committed by GitHub
parent 2716d58603
commit 719a1cde75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save