Class AbstractAIChatRoutes

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

    Fields
    Modifier and Type
    Field
    Description
    protected Chat
     

    Fields inherited from class org.nasdanika.html.http.AbstractTelemetryChatRoutes

    telemetryFilter

    Fields inherited from class org.nasdanika.html.http.ChatBuilder

    action, CONFIG_KEY, CONTEXT_KEY, MESSAGES_KEY, TEXT_KEY
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractAIChatRoutes(org.nasdanika.html.bootstrap.BootstrapFactory bootstrapFactory, org.nasdanika.html.alpinejs.AlpineJsFactory alpineJsFactory, TelemetryFilter telemetryFilter, Chat chat)
     
    protected
    AbstractAIChatRoutes(TelemetryFilter telemetryFilter, Chat chat)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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, chatContent

    Methods inherited from class org.nasdanika.html.http.AbstractChatRoutes

    createChatCookie, getChat, getCookie, getCookieMaxAge, getCookiePath, postChat

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait