Package com.embabel.chat.support
Class InMemoryConversation
-
- All Implemented Interfaces:
-
com.embabel.chat.Conversation,com.embabel.common.core.Identified,com.embabel.common.core.StableIdentified,com.embabel.common.core.types.HasInfoString
public final class InMemoryConversation implements Conversation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classInMemoryConversation.Companion
-
Constructor Summary
Constructors Constructor Description InMemoryConversation(List<Message> _messages, String id, Boolean persistent)InMemoryConversation(List<Message> _messages, String id)InMemoryConversation(List<Message> _messages)InMemoryConversation()
-
Method Summary
Modifier and Type Method Description List<Message>getMessages()StringgetId()ConversationaddMessage(Message message)Modify the state of this conversation This method is mutable, and returns itself only for convenience Booleanpersistent()-
-
Method Detail
-
getMessages
List<Message> getMessages()
-
addMessage
Conversation addMessage(Message message)
Modify the state of this conversation This method is mutable, and returns itself only for convenience
-
persistent
Boolean persistent()
-
-
-
-