"""Scanner conditional logic for determining continuation in scanner graph.""" from typing import Any from tradingagents.agents.utils.scanner_states import ScannerState class ScannerConditionalLogic: """Conditional logic for scanner graph flow control.""" def should_continue_geopolitical(self, state: ScannerState) -> bool: """ Determine if geopolitical scanning should continue. Args: state: Current scanner state Returns: bool: Whether to continue geopolitical scanning """ # Always continue for initial scan - no filtering logic implemented return True def should_continue_movers(self, state: ScannerState) -> bool: """ Determine if market movers scanning should continue. Args: state: Current scanner state Returns: bool: Whether to continue market movers scanning """ # Always continue for initial scan - no filtering logic implemented return True def should_continue_sector(self, state: ScannerState) -> bool: """ Determine if sector scanning should continue. Args: state: Current scanner state Returns: bool: Whether to continue sector scanning """ # Always continue for initial scan - no filtering logic implemented return True def should_continue_industry(self, state: ScannerState) -> bool: """ Determine if industry deep dive should continue. Args: state: Current scanner state Returns: bool: Whether to continue industry deep dive """ # Always continue for initial scan - no filtering logic implemented return True