Class AnahataConfig

java.lang.Object
uno.anahata.ai.AnahataConfig

public class AnahataConfig extends Object
Manages the global configuration and working directory for the Anahata AI framework.

This class is responsible for ensuring the existence of the application's root working directory (typically ~/.anahata/ai-assistant) and providing access to its subfolders.

Author:
anahata
  • Constructor Details

    • AnahataConfig

      public AnahataConfig()
  • Method Details

    • getWorkingFolder

      public static File getWorkingFolder(String name)
      Gets a subfolder within the application's root working directory. If the folder does not exist, it is created.
      Parameters:
      name - The name of the subfolder.
      Returns:
      The subfolder File.
    • getWorkingFolder

      public static File getWorkingFolder()
      Gets the application's root working directory.

      The default location is .anahata/ai-assistant within the user's home directory.

      Returns:
      The root working directory File.