mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-23 03:19:38 +00:00
langchain[patch]: Update doc-string for a method in ConversationBufferWindowMemory (#18090)
A minor doc fix stated in #18080
This commit is contained in:
committed by
GitHub
parent
2716d58603
commit
719a1cde75
@@ -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,
|
||||
|
Reference in New Issue
Block a user