Class SwingChatConfig

java.lang.Object
uno.anahata.ai.config.ChatConfig
uno.anahata.ai.swing.SwingChatConfig

public class SwingChatConfig extends ChatConfig
A simple, concrete ChatConfig for standalone Swing applications.
  • Constructor Details

    • SwingChatConfig

      public SwingChatConfig()
  • Method Details

    • getSessionId

      public String getSessionId()
      Description copied from class: ChatConfig
      Gets the unique identifier for the chat session.
      Specified by:
      getSessionId in class ChatConfig
      Returns:
      The session ID.
    • getToolClasses

      public List<Class<?>> getToolClasses()
      Description copied from class: ChatConfig
      Gets the list of Java classes containing methods annotated with @AIToolMethod. These classes define the tools available to the model.
      Overrides:
      getToolClasses in class ChatConfig
      Returns:
      A list of tool classes.
    • getColor

      public static Color getColor(ChatStatus status)
    • getColorForContextUsage

      public static Color getColorForContextUsage(double percentage)
    • getTheme

      public SwingChatConfig.UITheme getTheme()