mirror of https://github.com/hwchase17/langchain
feat: prune summary buffer (#4004)
If the library user has to decrease the `max_token_limit`, he would probably want to prune the summary buffer even though he haven't added any new messages. Personally, I need it because I want to serialise memory buffer object and save to database, and when I load it, I may have re-configured my code to have a shorter memory to save on tokens.pull/4090/head
parent
bf726f9d8a
commit
bd277b5327
Loading…
Reference in New Issue