Basicly refactord the entire project into a modular nature

This commit is contained in:
2025-02-20 23:28:24 +01:00
parent 6935e938a3
commit b892306c09
26 changed files with 340 additions and 145 deletions

20
API/build.gradle Normal file
View File

@@ -0,0 +1,20 @@
plugins {
id 'java'
}
group = 'me.zacharias'
version = '1.0-SNAPSHOT'
dependencies {
implementation project(":Core")
}
test {
useJUnitPlatform()
}
jar{
manifest {
attributes 'Main-Class': 'me.zacharias.char.api.APIServer'
}
}

View File

@@ -0,0 +1,12 @@
package me.zacharias.chat.api;
public enum APIEndpoints {
// API request endpoints
ADD_TOOL,
QUERY,
// API response endpoints
RESPONSE,
USE_TOOL,
}

View File

@@ -0,0 +1,13 @@
package me.zacharias.chat.api;
import java.net.ServerSocket;
import java.util.ArrayList;
public class APIServer {
ArrayList<Client> clientsList = new ArrayList<>();
ServerSocket serverSocket;
public APIServer(int port, String redirectedOutput) {
}
}

View File

@@ -0,0 +1,4 @@
package me.zacharias.chat.api;
public class Client {
}