The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
langchain[patch]: Update doc-string for a method in ConversationBufferWindowMemory (#18090)
Mohammad Mohtashim719a1cde758d
diff --git a/libs/langchain/langchain/memory/buffer_window.py b/libs/langchain/langchain/memory/buffer_window.pyindex 7aa9fa59c7..d1be93974a 100644--- a/libs/langchain/langchain/memory/buffer_window.py+++ b/libs/langchain/langchain/memory/buffer_window.py@@ -21,7 +21,7 @@ class ConversationBufferWindowMemory(BaseChatMemory):@propertydef 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,