Package com.techcognita.javachatx.plugin
Class EchoPlugin
java.lang.Object
com.techcognita.javachatx.plugin.BasePlugin
com.techcognita.javachatx.plugin.EchoPlugin
- All Implemented Interfaces:
Plugin
A simple echo plugin for demonstration purposes.
This plugin simply echoes back the input as the output.
-
Field Summary
Fields inherited from class com.techcognita.javachatx.plugin.BasePlugin
configuration, id, name, ready -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.techcognita.javachatx.plugin.BasePlugin
getId, getName, isReady, toString
-
Constructor Details
-
EchoPlugin
-
-
Method Details
-
execute
Description copied from interface:PluginExecute the plugin's functionality with the provided input.- Parameters:
input- The input data as a JSON object- Returns:
- The result of the plugin's execution as a JSON object
- Throws:
PluginException- If there's an error executing the plugin
-
configure
public void configure(com.google.gson.JsonObject configuration) Description copied from interface:PluginConfigure the plugin with specific settings.- Specified by:
configurein interfacePlugin- Overrides:
configurein classBasePlugin- Parameters:
configuration- The configuration parameters as a JSON object
-