Package com.techcognita.javachatx.agent
Interface Agent
public interface Agent
Base interface for all AI agents in the JavaChatX framework.
Defines the core functionality that all agents must implement.
-
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(com.google.gson.JsonObject configuration) Configure the agent with specific settings.getId()Get the unique identifier for this agent.getName()Get the name of this agent.com.google.gson.JsonObjectprocess(com.google.gson.JsonObject input) Process a task or message directed at this agent.
-
Method Details
-
getId
String getId()Get the unique identifier for this agent.- Returns:
- The agent's unique ID
-
getName
String getName()Get the name of this agent.- Returns:
- The agent's name
-
process
com.google.gson.JsonObject process(com.google.gson.JsonObject input) Process a task or message directed at this agent.- Parameters:
input- The input data as a JSON object- Returns:
- The result of the agent's processing as a JSON object
-
configure
void configure(com.google.gson.JsonObject configuration) Configure the agent with specific settings.- Parameters:
configuration- The configuration parameters as a JSON object
-