Skip to content

Commit

Permalink
langchain[patch]: Update doc-string for a method in ConversationBuffe…
Browse files Browse the repository at this point in the history
…rWindowMemory (#18090)

A minor doc fix stated in #18080
  • Loading branch information
keenborder786 committed Feb 26, 2024
1 parent 2716d58 commit 719a1cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/langchain/langchain/memory/buffer_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def buffer(self) -> Union[str, List[BaseMessage]]:

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

0 comments on commit 719a1cd

Please sign in to comment.