Currently, the Conversation Memory Class can store an arbitrary number of strings with no maximum length limitation.
However, the language model has a fixed prompt length.
Feature Requirements:
Add a parameter for the maximum token length in the Memory Class. If not specified, the Memory Class should default to the current behavior with no maximum string length.
If a string is added to the Memory Class that exceeds this maximum length, the Memory Class should truncate the messages to fit within the maximum length. [remove the oldest messages]