The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Fix of issue: (#10421)
fyasla55196742bed1
diff --git a/libs/langchain/langchain/memory/token_buffer.py b/libs/langchain/langchain/memory/token_buffer.pyindex 864ded2fc5..8c9c37460f 100644--- a/libs/langchain/langchain/memory/token_buffer.py+++ b/libs/langchain/langchain/memory/token_buffer.py@@ -21,7 +21,7 @@ class ConversationTokenBufferMemory(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."""return get_buffer_string(self.chat_memory.messages,human_prefix=self.human_prefix,@@ -30,7 +30,7 @@ class ConversationTokenBufferMemory(BaseChatMemory):@propertydef 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@property