Verified Owner
Top Fields Constructors Methods
org.jabref.logic.ai.followup.tasks

public Class GenerateFollowUpQuestions

extends BackgroundTask<List<String>>
Class Inheritance
Imports
java.util.List, org.jabref.logic.ai.chatting.ChatModel, org.jabref.logic.ai.preferences.AiPreferences, org.jabref.logic.ai.templates.AiTemplateRenderer, org.jabref.logic.ai.util.LlmResponseParser, org.jabref.logic.l10n.Localization, org.jabref.logic.util.BackgroundTask, dev.langchain4j.data.message.UserMessage, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private final AiPreferences
private final String
private final ChatModel
private static final Logger
private final String

Constructor Summary

AccessConstructor and Description
public
GenerateFollowUpQuestions(ChatModel chatModel, AiPreferences aiPreferences, String userMessage, String aiResponse)

Method Summary

Modifier and TypeMethod and Description
public List<String>
Inherited from org.jabref.logic.util.BackgroundTask:
cancelcancelconsumeOnRunningexecuteWithgetOnExceptiongetOnRunninggetOnSuccessgetProgressgetWorkDonePercentageisCancelledisCancelledPropertymayInterruptIfRunningPropertymessagePropertyonFailureonFinishedonRunningonSuccessprogressPropertyscheduleWithsetTitleshowToUsershowToUsershowToUserPropertythenthenRunthenRuntitlePropertyupdateMessageupdateProgressupdateProgresswillBeRecoveredAutomaticallywillBeRecoveredAutomaticallywithInitialMessageworkDonePercentagePropertywrapwrap

Field Detail

aiPreferencesback to summary
private final AiPreferences aiPreferences
aiResponseback to summary
private final String aiResponse
chatModelback to summary
private final ChatModel chatModel
LOGGERback to summary
private static final Logger LOGGER

Hides org.jabref.logic.util.BackgroundTask.LOGGER.

userMessageback to summary
private final String userMessage

Constructor Detail

GenerateFollowUpQuestionsback to summary
public GenerateFollowUpQuestions(ChatModel chatModel, AiPreferences aiPreferences, String userMessage, String aiResponse)

Method Detail

callback to summary
public List<String> call() throws Exception

Implements abstract org.jabref.logic.util.BackgroundTask.call.

Annotations
@Override