class MotorheadMemoryClass for managing chat message memory using the Motorhead service. It extends BaseChatMemory and includes methods for initializing the memory, loading memory variables, and saving the context.
The async caller should be used by subclasses to make any async calls, which will thus benefit from the concurrency and retry logic.
Timeout for this call in milliseconds.
Method to clear the chat history.
Abstract method that should take an object of input values and return a Promise that resolves with an object of memory variables. The implementation of this method should load the memory variables from the provided input values.
Method to add user and AI messages to the chat history in sequence.