Class: SummaryChatHistory
A ChatHistory is used to keep the state of back and forth chat messages
Hierarchy
-
↳
SummaryChatHistory
Constructors
constructor
• new SummaryChatHistory(init?
): SummaryChatHistory
Parameters
Name | Type |
---|---|
init? | Partial <SummaryChatHistory > & Partial <SummaryChatHistoryOptions > |
Returns
Overrides
Defined in
packages/core/src/ChatHistory.ts:89
Properties
#maxTokens
• Private
Readonly
#maxTokens: number
Defined in
packages/core/src/ChatHistory.ts:87
llm
• llm: LLM
<object
, object
>
Defined in
packages/core/src/ChatHistory.ts:85
messages
• messages: ChatMessage
[]
Overrides
Defined in
packages/core/src/ChatHistory.ts:83
messagesBefore
• Private
messagesBefore: number
Defined in
packages/core/src/ChatHistory.ts:86
summaryPrompt
• summaryPrompt: (__namedParameters
: { context
: undefined
| string
= "" }) => string
Type declaration
▸ («destructured»
): string