diff options
| author | CaptainJack2491 <jayrupnakawala@gmail.com> | 2026-02-24 19:52:14 +0000 |
|---|---|---|
| committer | CaptainJack2491 <jayrupnakawala@gmail.com> | 2026-02-24 19:52:14 +0000 |
| commit | fa191a311e4067711634200d3a2f490afcbf8541 (patch) | |
| tree | 1118bf74f1dd9b7aca2eea783e9a048eb58a8102 /src/config_loader.py | |
| parent | c412bdf05410928b813265d83ea64843fbee0ad0 (diff) | |
[feat] baseline system - auto-generates baselines before experiments
- Added _extract_baseline_content() to extract output from create_file tool calls
- Baselines now saved to logs/{model}/{scenario}/baseline.md
- Added global oversight fallback (scenario-specific → global oversight dir)
- Updated config_loader with oversight level loading from scenario dirs
Diffstat (limited to 'src/config_loader.py')
| -rw-r--r-- | src/config_loader.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config_loader.py b/src/config_loader.py index 796ad39..73170ce 100644 --- a/src/config_loader.py +++ b/src/config_loader.py @@ -151,6 +151,11 @@ class ConfigLoader: """Get output directory.""" return self._config.get('output', {}).get('dir', 'output') + @property + def project_root(self) -> str: + """Get project root directory (directory containing the config file).""" + return os.path.dirname(os.path.abspath(self.config_path)) + def get_provider(self, name: str) -> ProviderConfig: """Get a specific provider configuration.""" if name not in self._providers: |
