Optional
inputOptional
outputLoads the memory variables. It takes an InputValues
object as a
parameter and returns a Promise
that resolves with a
MemoryVariables
object.
InputValues
object.
A Promise
that resolves with a MemoryVariables
object.
Saves the context from this conversation to buffer. If the amount of tokens required to save the buffer exceeds MAX_TOKEN_LIMIT, prune it.
Class that represents a conversation chat memory with a token buffer. It extends the
BaseChatMemory
class and implements theConversationTokenBufferMemoryInput
interface.Example