Load configuration from the default search path.
(cls)
| 72 | |
| 73 | @classmethod |
| 74 | def load(cls) -> "Config": |
| 75 | """Load configuration from the default search path.""" |
| 76 | config_path = cls.get_default_config_path() |
| 77 | if not config_path.exists(): |
| 78 | raise FileNotFoundError("Configuration file not found. Run scripts/setup-config.sh or place config.yaml in mini_agent/config/.") |
| 79 | return cls.from_yaml(config_path) |
| 80 | |
| 81 | @classmethod |
| 82 | def from_yaml(cls, config_path: str | Path) -> "Config": |