Class DirectoryFacilitator

java.lang.Object
org.episteme.natural.computing.ai.agents.services.DirectoryFacilitator

public class DirectoryFacilitator extends Object
The Directory Facilitator (DF) provides "Yellow Pages" services for the MAS.

Agents can register services they provide and search for other agents providing specific services.

Since:
2.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Method Details

    • getInstance

      public static DirectoryFacilitator getInstance()
    • register

      public void register(Agent agent, String... providedServices)
      Registers an agent and the services it provides.
      Parameters:
      agent - the agent to register.
      providedServices - list of service names.
    • deregister

      public void deregister(UUID agentId)
      Unregisters an agent from all services.
      Parameters:
      agentId - the ID of the agent to remove.
    • search

      public List<Agent> search(String service)
      Searches for agents providing a specific service.
      Parameters:
      service - Name of the service.
      Returns:
      List of agents providing the service.