Class: ChatSummaryMemoryBuffer
A ChatMemory is used to keep the state of back and forth chat messages
Extends
Constructors
new ChatSummaryMemoryBuffer()
new ChatSummaryMemoryBuffer(
options
?):ChatSummaryMemoryBuffer
Parameters
• options?: Partial
<ChatSummaryMemoryBuffer
>
Returns
Overrides
Defined in
packages/core/memory/dist/index.d.ts:67
Properties
llm
llm:
LLM
<object
,object
>
Defined in
packages/core/memory/dist/index.d.ts:66
messages
messages:
ChatMessage
[]
Defined in
packages/core/memory/dist/index.d.ts:64
summaryPrompt
summaryPrompt:
SummaryPrompt
Defined in
packages/core/memory/dist/index.d.ts:65
tokenizer
tokenizer:
Tokenizer
Tokenizer function that converts text to tokens, this is used to calculate the number of tokens in a message.
Defined in
packages/core/memory/dist/index.d.ts:62
tokensToSummarize
tokensToSummarize:
number
Defined in
packages/core/memory/dist/index.d.ts:63