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

minor fix stated in #18080
pull/18148/head
Luan Fernandes 4 months ago committed by GitHub
parent 23fc7c8c90
commit e867557936
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save