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 (langchain-ai#18090)

A minor doc fix stated in langchain-ai#18080
  • Loading branch information
keenborder786 authored and Hayden Wolff committed Feb 27, 2024
1 parent 71a3974 commit c225885
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 c225885

Please sign in to comment.