Class Configuration
java.lang.Object
eu.svjatoslav.alyverkko_cli.configuration.Configuration
Central configuration class storing all application parameters. This class is serialized to YAML format for user editing and persistence.
Configuration parameters include:
- Model and prompt directories
- Performance tuning parameters
- Model-specific configurations
All paths are resolved relative to the user's home directory by default, but can be customized. The class provides direct access to prompt content for AI query construction.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSkillByName(String skillName) Retrieves the contents of a prompt file by alias, e.g.
-
Constructor Details
-
Configuration
public Configuration()
-
-
Method Details
-
getSkillByName
Retrieves the contents of a prompt file by alias, e.g. "writer" maps to "writer.txt" in the prompt's directory.- Parameters:
skillName- the name of the prompt file (without ".txt").- Returns:
- the full-text content of the prompt file.
- Throws:
IOException- if reading the prompt file fails.
-