langchain
6abb2c2c - Buffer method of ConversationTokenBufferMemory should be able to return messages as string (#7057)

Commit
2 years ago
Buffer method of ConversationTokenBufferMemory should be able to return messages as string (#7057) ### Description: `ConversationBufferTokenMemory` should have a simple way of returning the conversation messages as a string. Previously to complete this, you would only have the option to return memory as an array through the buffer method and call `get_buffer_string` by importing it from `langchain.schema`, or use the `load_memory_variables` method and key into `self.memory_key`. ### Maintainer @hwchase17 --------- Co-authored-by: Bagatur <baskaryan@gmail.com>
Author
Parents
Loading