public interface ChatMemory
Modifier and Type | Method and Description |
---|---|
void |
add(ChatMessage message)
Adds a message to the chat memory.
|
void |
clear()
Clears the chat memory.
|
List<ChatMessage> |
messages()
Retrieves messages from the chat memory.
|
void add(ChatMessage message)
message
- The ChatMessage to add.List<ChatMessage> messages()
void clear()
Copyright © 2023. All rights reserved.