All Implemented Interfaces:
javafx.fxml.Initializable

public class LLMDetailsController extends DetailsWindow<LLM>
Details/edit window controller for a single LLM. Initializes API selection (optionally showing dummy providers), binds bounded temperature sliders, performs lightweight validation on save, and loads/saves values between UI controls and the domain object. Includes contextual help.
Since:
1.0
Author:
Felix Seggebäing
  • Constructor Details

    • LLMDetailsController

      public LLMDetailsController(LLM object)
      Creates a details controller bound to the given LLM instance.
      Parameters:
      object - the LLM to display and edit; expected non-null
  • Method Details

    • initialize

      public void initialize(URL location, ResourceBundle resources)
      Initializes the LLM details view: delegates to super.initialize, enables contextual help, sets up the API combo box (incl. optional dummy providers), and configures bounded temperature sliders with labels.
      Specified by:
      initialize in interface javafx.fxml.Initializable
      Overrides:
      initialize in class DetailsWindow<LLM>
      Parameters:
      location - FXML location (may be null)
      resources - localization bundle (may be null)
      Implementation Note:
      Invoked by the FXML loader on the JavaFX Application Thread.
    • getService

      protected BDOService<LLM> getService()
      Returns the service used to load and persist LLM objects.
      Specified by:
      getService in class BDOWindow<LLM>
      Returns:
      the LLMService instance
    • getTitle

      public String getTitle()
      Returns the fixed title for the LLM details window.
      Specified by:
      getTitle in class TitledInitializableWindow
      Returns:
      the string "Large language model"
    • refresh

      protected void refresh()
      Loads values from the bound LLM into the UI controls (name, API, model, API key, min/max temperature).
      Specified by:
      refresh in class BDOWindow<LLM>
      Implementation Note:
      Invoke on the JavaFX Application Thread.
    • saveChecks

      protected List<String> saveChecks()
      Validates the current LLM form and returns human-readable error messages. Checks: non-empty name; API selected; for non-dummy APIs, non-empty model and API key; temperatures within [0,1] and min <= max.
      Overrides:
      saveChecks in class DetailsWindow<LLM>
      Returns:
      list of validation messages; empty if saving is allowed
    • insertValues

      protected void insertValues()
      Writes the current UI values into the bound LLM instance (name, API, model, API key, min/max temperature). Does not persist.
      Specified by:
      insertValues in class DetailsWindow<LLM>