"""Create reasoning_engine
Generated by Phi-Octopus Eden
2025-11-07 09:07:32.630559
"""

```python
class ReasoningEngine:
    """
    A simple reasoning engine that processes a set of rules to make decisions.
    """

    def __init__(self, rules: list[dict]):
        """
        Initialize the reasoning engine with a list of rules.

        :param rules: List of dictionaries where each dictionary contains 'condition' and 'action'.
                      Example rule = {'condition': lambda x: x > 5, 'action': print}
        """
        self.rules = rules

    def process_input(self, data) -> None:
        """
        Process the input data through the set of rules.

        :param data: The input data to be processed.
        """
        for rule in self.rules:
            if rule['condition'](data):
                rule['action'](f"Action triggered with data {data}")
                break  # Stop processing once a rule is applied


# Example usage
if __name__ == "__main__":
    # Define some rules
    rules = [
        {'condition': lambda x: x > 5, 'action': print},
        {'condition': lambda x: x < -3, 'action': lambda x: x.upper()},
        {'condition': lambda x: True, 'action': str}  # A rule that always triggers
    ]

    engine = ReasoningEngine(rules)
    
    # Example data points
    test_data_points = [10, 2, -5, 6]
    
    for data in test_data_points:
        print(f"Processing {data}:")
        engine.process_input(data)
```