Optional
apiOptional
clientOptional
contextOptional
inputOptional
outputMethod that loads the memory variables. It gets the chat messages and returns them as a string or an array based on the returnMessages flag.
The input values.
A promise that resolves with the memory variables.
Method that saves the context to the Motorhead service and the base chat memory. It sends a POST request to the Motorhead service with the input and output messages, and calls the saveContext method of the base chat memory.
The input values.
The output values.
A promise that resolves when the context is saved.
Class 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.