"""Create reasoning_engine
Generated by Phi-Octopus Eden
2025-11-05 21:02:57.453950
"""

```python
from typing import List, Dict, Any


class ReasoningEngine:
    """
    A basic reasoning engine designed to solve problems involving limited reasoning sophistication.
    
    This class provides methods for evaluating conditions and making decisions based on those evaluations.

    Args:
        rules: A list of dictionaries where each dictionary represents a rule with 'condition' and 'action'.
               Example: [{'condition': lambda x: x > 10, 'action': lambda: print("x is greater than 10")}, ...]
    
    Methods:
        apply_rules: Applies the given rules to the input data.
    """

    def __init__(self, rules: List[Dict[str, Any]]):
        self.rules = rules

    def apply_rules(self, input_data: Any) -> None:
        """
        Applies all rules defined in the engine to the provided input data.

        Args:
            input_data: The data against which rules will be evaluated.
        """
        for rule in self.rules:
            if rule['condition'](input_data):
                rule['action']()


# Example usage
if __name__ == "__main__":
    # Define some rules
    rules = [
        {'condition': lambda x: x > 10, 'action': lambda: print("x is greater than 10")},
        {'condition': lambda x: x < -5, 'action': lambda: print("x is less than -5")}
    ]
    
    # Create a reasoning engine with the defined rules
    reasoning_engine = ReasoningEngine(rules)
    
    # Test the engine with input data
    test_data_1 = 20
    test_data_2 = -6
    
    print("Testing with x=20:")
    reasoning_engine.apply_rules(test_data_1)
    
    print("\nTesting with x=-6:")
    reasoning_engine.apply_rules(test_data_2)
```