Package com.techcognita.javachatx
Class JavaChatX
java.lang.Object
com.techcognita.javachatx.JavaChatX
Main coordinator class for the JavaChatX framework.
Brings together all components and provides a unified interface.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the chat engine component.Get the context manager component.Get the plugin manager component.voidInitialize the JavaChatX framework with default components.booleanCheck if the framework is initialized.com.google.gson.JsonObjectprocessMessage(com.google.gson.JsonObject message) Process a message through the framework.
-
Constructor Details
-
JavaChatX
public JavaChatX()
-
-
Method Details
-
initialize
public void initialize()Initialize the JavaChatX framework with default components. -
processMessage
public com.google.gson.JsonObject processMessage(com.google.gson.JsonObject message) Process a message through the framework.- Parameters:
message- The message to process as a JSON object- Returns:
- The response as a JSON object
-
getChatEngine
Get the chat engine component.- Returns:
- The chat engine
-
getContextManager
Get the context manager component.- Returns:
- The context manager
-
getPluginManager
Get the plugin manager component.- Returns:
- The plugin manager
-
isInitialized
public boolean isInitialized()Check if the framework is initialized.- Returns:
- true if initialized, false otherwise
-