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.

Hierarchy

Constructors

Properties

caller: AsyncCaller
memoryKey: string = "history"
returnMessages: boolean = false
sessionId: string
timeout: number = 3000
url: string = MANAGED_URL
apiKey?: string
clientId?: string
context?: string
inputKey?: string
outputKey?: string

Accessors

Methods

  • 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.

    Parameters

    Returns Promise<void>

    A promise that resolves when the context is saved.

Generated using TypeDoc