Properties
ai Prefix
ai Prefix : string = "AI"
Defined in docs/api_refs/langchain/src/memory/summary.ts:45
chat History
chat History : BaseChatMessageHistory
human Prefix
human Prefix : string = "Human"
Defined in docs/api_refs/langchain/src/memory/summary.ts:43
llm
llm : BaseLanguageModel < any , BaseLanguageModelCallOptions >
Defined in docs/api_refs/langchain/src/memory/summary.ts:47
memory Key
memory Key : string = "history"
Defined in docs/api_refs/langchain/src/memory/summary.ts:41
prompt
prompt : BasePromptTemplate < any , BasePromptValue , any > = SUMMARY_PROMPT
Defined in docs/api_refs/langchain/src/memory/summary.ts:49
return Messages
return Messages : boolean = false
summary Chat Message Class
summary Chat Message Class : ( new ( content ) => BaseMessage ) = SystemMessage
Type declaration
new ( content ) : BaseMessage
Returns BaseMessage
Defined in docs/api_refs/langchain/src/memory/summary.ts:51
Optional
input Key
input Key ?: string
Optional
output Key
output Key ?: string
Abstract class that provides a structure for storing and managing the memory of a conversation. It includes methods for predicting a new summary for the conversation given the existing messages and summary.