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 Type
    Method
    Description
    com.google.gson.JsonObject
    processMessage(com.google.gson.JsonObject message)
    Process an incoming message and generate a response.
    void
    Register a new conversation session.
    void
    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

      void registerSession(String sessionId)
      Register a new conversation session.
      Parameters:
      sessionId - Unique identifier for the conversation
    • terminateSession

      void terminateSession(String sessionId)
      Terminate a conversation session.
      Parameters:
      sessionId - Unique identifier for the conversation