# Copyright (c) 2025 Patrick Motsch # All rights reserved. """DEPRECATED: Use `_inheritFlags.getEffectiveFlag()` directly. Thin shim to the new cascade-inherit helper. Kept so external callers don't break on import — internal walkers consume pre-resolved dicts via `_loadRagEnabledDataSources`. """ from __future__ import annotations from typing import Any, Dict, List from modules.serviceCenter.services.serviceKnowledge._inheritFlags import getEffectiveFlag def resolveEffectiveNeutralize( ds: Dict[str, Any], allDataSources: List[Dict[str, Any]], ) -> bool: """DEPRECATED: use `getEffectiveFlag(ds, 'neutralize', allDataSources)`.""" value = getEffectiveFlag(ds, "neutralize", allDataSources) return bool(value) def resolveEffectiveRagIndexEnabled( ds: Dict[str, Any], allDataSources: List[Dict[str, Any]], ) -> bool: """DEPRECATED: use `getEffectiveFlag(ds, 'ragIndexEnabled', allDataSources)`.""" value = getEffectiveFlag(ds, "ragIndexEnabled", allDataSources) return bool(value)