Package com.tnsai.server
Class TnsServer
java.lang.Object
com.tnsai.server.TnsServer
TnsAI WebSocket backend -- framework-first, shared by any protocol v1 compatible client.
TnsServer server = TnsServer.builder()
.port(7777)
.llmClientSupplier(() -> new OpenAIClient(apiKey, "gpt-4o"))
.build();
server.start();
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic TnsServer.Builderbuilder()com.tnsai.quality.observability.health.HealthRegistryintgetPort()booleanvoidstart()voidstop()
-
Method Details
-
start
public void start() -
stop
public void stop() -
getPort
public int getPort() -
getBindPolicy
-
getAuthConfig
-
getCapabilityStore
-
getWorkspaceGuard
-
getSessionManager
-
getConnectionManager
-
getHealthRegistry
public com.tnsai.quality.observability.health.HealthRegistry getHealthRegistry() -
isRunning
public boolean isRunning() -
builder
-