Fix of issue: (#10421)

DOC: Inversion of 'True' and 'False' in ConversationTokenBufferMemory
Property Comments #10420
This commit is contained in:
fyasla authored and GitHub committed 2023-09-11 15:51:37 -07:00
1 parent b50d724114
commit 55196742be
1 file changed
+2 -2
@@ -21,7 +21,7 @@ class ConversationTokenBufferMemory(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."""
return get_buffer_string(
self.chat_memory.messages,
human_prefix=self.human_prefix,
@@ -30,7 +30,7 @@ class ConversationTokenBufferMemory(BaseChatMemory):
@property
def 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