Minimal config object compatible with ToolBase usage in this repo. Keep it SimpleNamespace-based so it's easy to tweak scenarios.
(output_dir: str, tools: dict)
| 23 | |
| 24 | |
| 25 | def _make_config(output_dir: str, tools: dict) -> SimpleNamespace: |
| 26 | """ |
| 27 | Minimal config object compatible with ToolBase usage in this repo. |
| 28 | Keep it SimpleNamespace-based so it's easy to tweak scenarios. |
| 29 | """ |
| 30 | return SimpleNamespace( |
| 31 | output_dir=output_dir, tools=SimpleNamespace(**tools)) |
| 32 | |
| 33 | |
| 34 | class _FakeSearchResult: |