+ allChecksPassed = false;
+ }
+
+ // Validate mail directory
+ if (!Main.configuration.getMailDirectory().exists() || !Main.configuration.getMailDirectory().isDirectory()) {
+ System.err.println("Mail directory does not exist or is not a directory: " + Main.configuration.getMailDirectory());
+ allChecksPassed = false;
+ }
+
+ // Validate prompts
+ if (Main.configuration.getPrompts().isEmpty()) {
+ System.err.println("No prompts are defined in the configuration.");
+ allChecksPassed = false;
+ }
+
+ // Validate models
+ if (Main.configuration.getModels().isEmpty()) {
+ System.err.println("No models are defined in the configuration.");
+ allChecksPassed = false;
+ }
+
+ // Validate default temperature
+ if (Main.configuration.getDefaultTemperature() < 0 || Main.configuration.getDefaultTemperature() > 3) {
+ System.err.println("Default temperature must be between 0 and 3.");
+ allChecksPassed = false;
+ }
+
+ // Validate thread count
+ if (Main.configuration.getThreadCount() < 1) {
+ System.err.println("Thread count must be at least 1.");
+ allChecksPassed = false;
+ }
+
+ // Validate batch thread count
+ if (Main.configuration.getBatchThreadCount() < 1) {
+ System.err.println("Batch thread count must be at least 1.");
+ allChecksPassed = false;
+ }
+
+ // Validate models
+ if (Main.configuration.getModels().isEmpty()) {
+ System.err.println("No models are defined in the configuration.");
+ allChecksPassed = false;