A distributed multi-agent system implemented in Java (JADE), integrated with an Artificial Intelligence model (Ollama/Python) for intelligent assistance, translations and moderation.
- ** P2P Chat:** Direct communication between agents (Alice, Bob) with GUI.
- ** Artificial Intelligence (Local LLM):**
- Bridge Agent: Interface between JADE (ACL) and Python (HTTP).
- Capabilities: General Chatbot, Multilingual Translation, Content Moderation.
- ** Administrator (AuditAgent):**
- Centralized monitoring of network activity.
- Kill Switch: Emergency shutdown of the entire platform (using
AMSService).
- ** Organized History:** Saving conversations.
- ** Smart Launcher:**
MainLauncherclass automatically starts Python environment and JADE Containers.
The system complies with FIPA standards and uses the following flows:
Agents use Directory Facilitator (DF) to find partners (chat-peer) and AI service (llm-service).
- Sender:
ChatUserAgent-> Receiver:ChatUserAgent - Message Type:
ACLMessage.INFORM - Content: Plain text.
- Step 1: User ->
LlmAgent(Type:REQUEST, Content: JSON{task, content, extra_param}) - Step 2:
LlmAgent-> Python API (HTTP POST) - Step 3: Python ->
LlmAgent(HTTP Response JSON) - Step 4:
LlmAgent-> User (Type:INFORM, Content: Result Text)
- Initiator:
AuditAgent(Admin) - Method: Query
AMSServicefor the list of active agents. - Message:
ACLMessage.PROPAGATEwith the content"SHUTDOWN". - Effect: Agents close their GUI and call
doDelete(). The platform is force-shut down.
- Java JDK 17+
- Python 3.10+
- Ollama installed and model downloaded (
ollama pull gemma3:12b)
If you are running for the first time, install the dependencies in the python_microservice folder:
cd python_microservice
python -m venv venv
# Windows:
venv\Scripts\activate
# Linux/Mac:
source venv/bin/activate
pip install -r requirements.txtNo complex commands required. The project includes a Java Launcher.
-
Open/Import the project in your IDE (IntelliJ / Eclipse).
-
Run the MainLauncher.java class.
What happens:
-
The Python server starts in the background.
-
The JADE Main Container is launched.
-
The Admin (Audit), Alice and Bob windows appear.
-
src/agents/ - JADE agent logic.
-
src/gui/ - Graphical interfaces (Swing).
-
src/utils/ - History and file manager.
-
python_microservice/ - FastAPI + Pydantic microservice.
-
Chat_Logs/ - (Auto-generated) Chat history.