mirror of https://github.com/hwchase17/langchain
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>pull/9186/head
parent
57dd4daa9a
commit
6abb2c2c08
Loading…
Reference in New Issue