"""Create reasoning_engine
Generated by Phi-Octopus Eden
2025-11-06 07:01:42.258891
"""

```python
class ReasoningEngine:
    """
    A basic reasoning engine that solves limited reasoning problems.
    
    This class implements a simple rule-based system to reason over a set of 
    predefined rules and conditions.

    Attributes:
        rules (list[dict]): List of rules where each rule is a dictionary with 'condition' and 'action'.
    """

    def __init__(self, rules: list[dict]):
        """
        Initialize the ReasoningEngine with a given set of rules.
        
        Args:
            rules (list[dict]): A list of rules. Each rule should be a dictionary
                                containing 'condition' and 'action'. Example:
                                [{'condition': lambda x: x > 10, 'action': print("Number is greater than 10.")}]
        """
        self.rules = rules

    def apply_rules(self, data: dict):
        """
        Apply the reasoning rules to a given piece of data.
        
        Args:
            data (dict): A dictionary with keys that match the conditions in the rules.

        Returns:
            None
        """
        for rule in self.rules:
            condition = rule['condition']
            action = rule['action']
            if condition(data):
                action()

# Example usage
if __name__ == "__main__":
    # Define some simple rules
    rules = [
        {
            'condition': lambda d: d['value'] > 10,
            'action': lambda: print("Value is greater than 10.")
        },
        {
            'condition': lambda d: "error" in d,
            'action': lambda: print("Error detected!")
        }
    ]
    
    # Create an instance of the ReasoningEngine
    engine = ReasoningEngine(rules)
    
    # Test data
    test_data_1 = {'value': 15}
    test_data_2 = {'value': -5, "error": True}
    
    # Apply rules to test data
    engine.apply_rules(test_data_1)  # Should print: Value is greater than 10.
    engine.apply_rules(test_data_2)  # Should print: Error detected!
```

This code defines a `ReasoningEngine` class that applies simple, rule-based reasoning. It includes an example of how to use the class with some test data.