[docs] Update doc-string for buffer_as_messages method in ConversationBufferWindowMemory (#18136)

minor fix stated in #18080
This commit is contained in:
Luan Fernandes 2024-02-26 16:46:43 -03:00 committed by GitHub
parent 23fc7c8c90
commit e867557936
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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