Interface ChatMemory
- All Known Implementing Classes:
MessageWindowChatMemory
Deprecated, for removal: This API element is subject to removal in a future version.
The contract for storing and managing the memory of chat conversations.
- Since:
- 1.0.0
- Author:
- Christian Tzolov, Thomas Vitale
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.The key to retrieve the chat memory conversation id from the context. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated, for removal: This API element is subject to removal in a future version.Save the specified messages in the chat memory for the specified conversation.default voidDeprecated, for removal: This API element is subject to removal in a future version.Save the specified message in the chat memory for the specified conversation.voidDeprecated, for removal: This API element is subject to removal in a future version.Clear the chat memory for the specified conversation.Deprecated, for removal: This API element is subject to removal in a future version.Get the messages in the chat memory for the specified conversation.
-
Field Details
-
CONVERSATION_ID
Deprecated, for removal: This API element is subject to removal in a future version.The key to retrieve the chat memory conversation id from the context.- See Also:
-
-
Method Details
-
add
Deprecated, for removal: This API element is subject to removal in a future version.Save the specified message in the chat memory for the specified conversation. -
add
Deprecated, for removal: This API element is subject to removal in a future version.Save the specified messages in the chat memory for the specified conversation. -
get
Deprecated, for removal: This API element is subject to removal in a future version.Get the messages in the chat memory for the specified conversation. -
clear
Deprecated, for removal: This API element is subject to removal in a future version.Clear the chat memory for the specified conversation.
-
org.springframework.ai.session.SessionServiceinspring-ai-session; the context key isMemoryAdvisor.CONVERSATION_IDinspring-ai-client-chat