"""Create reasoning_engine
Generated by Phi-Octopus Eden
2025-11-08 07:18:10.652332
"""

```python
from typing import Dict, Any


class ReasoningEngine:
    """
    A basic reasoning engine that can evaluate conditions and make decisions.
    """

    def __init__(self):
        self.rules = {}

    def add_rule(self, condition: str, action: Any) -> None:
        """
        Add a rule to the reasoning engine.

        :param condition: The condition as a string that evaluates to True or False.
        :param action: The action to be executed if the condition is met.
        """
        self.rules[condition] = action

    def evaluate(self, context: Dict[str, Any]) -> None:
        """
        Evaluate all rules with the given context.

        :param context: A dictionary containing variables for evaluation.
        """
        for condition, action in self.rules.items():
            if eval(condition, {}, context):
                print(f"Condition met: {condition}")
                action(context)


# Example usage
if __name__ == "__main__":
    # Create an instance of ReasoningEngine
    engine = ReasoningEngine()

    # Add rules to the engine
    engine.add_rule("temperature > 25 and humidity < 60", lambda context: print(f"Turn on air conditioning"))
    engine.add_rule("temperature < 15 or rain == True", lambda context: print(f"Turn on heating"))

    # Context for evaluation
    context = {
        "temperature": 30,
        "humidity": 55,
        "rain": False
    }

    # Evaluate the rules with given context
    engine.evaluate(context)
```

This code provides a basic reasoning engine capable of evaluating conditions and performing actions based on those evaluations. It includes type hints, docstrings for documentation, and an example usage section to demonstrate how it can be used in practice.