Skip to main content

Class: ConvoStackLangchainChatMessageHistory

langchain-memory.ConvoStackLangchainChatMessageHistory

Hierarchy

  • BaseListChatMessageHistory

    ConvoStackLangchainChatMessageHistory

Constructors

constructor

new ConvoStackLangchainChatMessageHistory(fields)

Parameters

NameType
fieldsConvoStackLangchainChatMessageHistoryInput

Overrides

BaseListChatMessageHistory.constructor

Defined in

packages/convostack-langchain-memory/dist/index.d.ts:9

Methods

addMessage

addMessage(message): Promise<void>

Parameters

NameType
messageBaseChatMessage

Returns

Promise<void>

Overrides

BaseListChatMessageHistory.addMessage

Defined in

packages/convostack-langchain-memory/dist/index.d.ts:11


clear

clear(): Promise<void>

Returns

Promise<void>

Defined in

packages/convostack-langchain-memory/dist/index.d.ts:12


getMessages

getMessages(): Promise<BaseChatMessage[]>

Returns

Promise<BaseChatMessage[]>

Defined in

packages/convostack-langchain-memory/dist/index.d.ts:10