java.lang.Object
org.nasdanika.html.http.ChatBuilder
org.nasdanika.html.http.AbstractChatRoutes
org.nasdanika.html.http.AbstractTelemetryChatRoutes
org.nasdanika.ai.http.AbstractAIChatRoutes
public abstract class AbstractAIChatRoutes
extends org.nasdanika.html.http.AbstractTelemetryChatRoutes
-
Nested Class Summary
Nested classes/interfaces inherited from class org.nasdanika.html.http.AbstractChatRoutes
org.nasdanika.html.http.AbstractChatRoutes.Message -
Field Summary
FieldsFields inherited from class org.nasdanika.html.http.AbstractTelemetryChatRoutes
telemetryFilterFields inherited from class org.nasdanika.html.http.ChatBuilder
action, CONFIG_KEY, CONTEXT_KEY, MESSAGES_KEY, TEXT_KEY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractAIChatRoutes(org.nasdanika.html.bootstrap.BootstrapFactory bootstrapFactory, org.nasdanika.html.alpinejs.AlpineJsFactory alpineJsFactory, TelemetryFilter telemetryFilter, Chat chat) protectedAbstractAIChatRoutes(TelemetryFilter telemetryFilter, Chat chat) -
Method Summary
Modifier and TypeMethodDescriptionprotected final reactor.core.publisher.Mono<String> chatContent(String chatId, String question, org.json.JSONObject config, org.json.JSONObject context) protected abstract reactor.core.publisher.Mono<List<Chat.Message>> generateChatRequestMessages(String chatId, String question, org.json.JSONObject config, org.json.JSONObject context) protected abstract reactor.core.publisher.Mono<String> generateResponseContent(String chatId, String question, List<? extends Chat.ResponseMessage> responses, org.json.JSONObject config, org.json.JSONObject context) Methods inherited from class org.nasdanika.html.http.AbstractTelemetryChatRoutes
buildPage, chat, chat, chatContentMethods inherited from class org.nasdanika.html.http.AbstractChatRoutes
createChatCookie, getChat, getCookie, getCookieMaxAge, getCookiePath, postChatMethods inherited from class org.nasdanika.html.http.ChatBuilder
buildAppContainer, buildInputGroup, buildMessageCard, buildPage, buildSubmitHandler, createConfigModal, getAlpineJsFactory, getBootstrapFactory, getConfig, getConfigurator, getContext, getFetchError, getInputPlaceholder, getInputTitle, getSubmitButtonText, getUserQuestionExpression, setAlpineJsFactory, setBootstrapFactory
-
Field Details
-
chat
-
-
Constructor Details
-
AbstractAIChatRoutes
protected AbstractAIChatRoutes(org.nasdanika.html.bootstrap.BootstrapFactory bootstrapFactory, org.nasdanika.html.alpinejs.AlpineJsFactory alpineJsFactory, TelemetryFilter telemetryFilter, Chat chat) -
AbstractAIChatRoutes
-
-
Method Details
-
generateChatRequestMessages
protected abstract reactor.core.publisher.Mono<List<Chat.Message>> generateChatRequestMessages(String chatId, String question, org.json.JSONObject config, org.json.JSONObject context) -
generateResponseContent
protected abstract reactor.core.publisher.Mono<String> generateResponseContent(String chatId, String question, List<? extends Chat.ResponseMessage> responses, org.json.JSONObject config, org.json.JSONObject context) -
chatContent
protected final reactor.core.publisher.Mono<String> chatContent(String chatId, String question, org.json.JSONObject config, org.json.JSONObject context) - Specified by:
chatContentin classorg.nasdanika.html.http.AbstractTelemetryChatRoutes
-