Interface ChatMemory
- All Known Implementing Classes:
MessageWindowChatMemory
public interface ChatMemory
The contract for storing and managing the memory of chat conversations.
- Since:
- 1.0.0
- Author:
- Christian Tzolov, Thomas Vitale
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
Save the specified messages in the chat memory for the specified conversation.default void
Save the specified message in the chat memory for the specified conversation.void
Clear the chat memory for the specified conversation.Get the messages in the chat memory for the specified conversation.
-
Field Details
-
DEFAULT_CONVERSATION_ID
- See Also:
-
CONVERSATION_ID
The key to retrieve the chat memory conversation id from the context.- See Also:
-
-
Method Details
-
add
Save the specified message in the chat memory for the specified conversation. -
add
Save the specified messages in the chat memory for the specified conversation. -
get
Get the messages in the chat memory for the specified conversation. -
clear
Clear the chat memory for the specified conversation.
-