Package com.techcognita.javachatx.chat
Interface ChatEngine
- All Known Implementing Classes:
SimpleChatEngine
public interface ChatEngine
Core chat engine for handling message processing in JavaChatX.
Manages the flow of messages between users and AI agents.
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonObjectprocessMessage(com.google.gson.JsonObject message) Process an incoming message and generate a response.voidregisterSession(String sessionId) Register a new conversation session.voidterminateSession(String sessionId) Terminate a conversation session.
-
Method Details
-
processMessage
com.google.gson.JsonObject processMessage(com.google.gson.JsonObject message) Process an incoming message and generate a response.- Parameters:
message- The incoming message as a JSON object- Returns:
- The response message as a JSON object
-
registerSession
Register a new conversation session.- Parameters:
sessionId- Unique identifier for the conversation
-
terminateSession
Terminate a conversation session.- Parameters:
sessionId- Unique identifier for the conversation
-