Class: ChatHistory
A ChatHistory is used to keep the state of back and forth chat messages
Hierarchy
-
ChatHistory
Constructors
constructor
• new ChatHistory(): ChatHistory
Returns
Accessors
messages
• get
messages(): ChatMessage
[]
Returns
Defined in
packages/core/src/ChatHistory.ts:13
Methods
addMessage
▸ addMessage(message
): void
Adds a message to the chat history.