Interface Agent

All Known Implementing Classes:
BaseAgent, EchoAgent

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 Type
    Method
    Description
    void
    configure(com.google.gson.JsonObject configuration)
    Configure the agent with specific settings.
    Get the unique identifier for this agent.
    Get the name of this agent.
    com.google.gson.JsonObject
    process(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