"""Create reasoning_engine
Generated by Phi-Octopus Eden
2025-11-07 02:45:41.746734
"""

```python
class ReasoningEngine:
    """
    A simple reasoning engine that can evaluate logical expressions based on predefined rules.
    
    Example Rules:
    - 'temperature > 30' -> 'wear_light_clothes'
    - 'rainy == True' -> 'carry_umbrella'
    - 'temperature <= 10 and windy == True' -> 'wear_heavy_coat'

    The engine supports AND, OR, NOT logical operators.
    """
    
    def __init__(self):
        self.rules = {}
        
    def add_rule(self, condition: str, consequence: str) -> None:
        """
        Adds a new rule to the reasoning engine.

        :param condition: A string representing the condition part of the rule (e.g., 'temperature > 30').
        :param consequence: The action or conclusion derived from the condition (e.g., 'wear_light_clothes').
        """
        self.rules[condition] = consequence

    def evaluate(self, conditions: dict) -> str:
        """
        Evaluates the given conditions against all added rules and returns the most relevant consequence.

        :param conditions: A dictionary of conditions to be evaluated (e.g., {'temperature': 35, 'rainy': False}).
        :return: The consequence derived from matching conditions with any rule.
        """
        for condition, consequence in self.rules.items():
            try:
                if eval(condition, {}, conditions):
                    return consequence
            except Exception as e:
                print(f"Error evaluating {condition}: {e}")
        return "no_consequence"

# Example usage
if __name__ == "__main__":
    engine = ReasoningEngine()
    engine.add_rule("temperature > 30", "wear_light_clothes")
    engine.add_rule("rainy == True", "carry_umbrella")
    engine.add_rule("temperature <= 10 and windy == True", "wear_heavy_coat")

    conditions = {'temperature': 25, 'rainy': False, 'windy': True}
    
    print(engine.evaluate(conditions))  # Expected output: wear_heavy_coat
```