Package nl.ai42.managers
Class ConversationManager
- java.lang.Object
-
- nl.ai42.managers.ConversationManager
-
- All Implemented Interfaces:
java.io.Serializable
public class ConversationManager extends java.lang.Object implements java.io.Serializable- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConversationManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendConversation(Conversation conversation)java.util.List<Conversation>getAllConversations()java.util.ArrayList<Row>getChatHistoryFromConversation(java.lang.String currentConversation)intgetConversationCount()voidinsertMessageToChat(java.lang.String conversation, java.lang.String message_content, boolean is_ai)ConversationstartConversation(Conversation conversation)
-
-
-
Method Detail
-
getConversationCount
public int getConversationCount()
-
startConversation
public Conversation startConversation(Conversation conversation)
-
endConversation
public void endConversation(Conversation conversation)
-
getChatHistoryFromConversation
public java.util.ArrayList<Row> getChatHistoryFromConversation(java.lang.String currentConversation)
-
insertMessageToChat
public void insertMessageToChat(java.lang.String conversation, java.lang.String message_content, boolean is_ai)
-
getAllConversations
public java.util.List<Conversation> getAllConversations()
-
-