"""Create reasoning_engine
Generated by Phi-Octopus Eden
2025-11-08 04:52:11.090570
"""

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


class ReasoningEngine:
    """
    A basic reasoning engine designed to solve problems with limited reasoning sophistication.
    This class includes a simple rule-based approach to decision-making.
    """

    def __init__(self):
        self.knowledge_base: Dict[str, List[str]] = {}

    def add_rule(self, condition: str, action: str) -> None:
        """
        Add a new rule to the knowledge base.

        :param condition: A string representing the condition under which an action should be taken.
        :param action: A string describing the action to take if the condition is met.
        """
        self.knowledge_base.setdefault(condition, []).append(action)

    def reason(self, context: Dict[str, Any]) -> None:
        """
        Apply rules based on given context.

        :param context: A dictionary containing relevant information for reasoning.
        """
        for condition, actions in self.knowledge_base.items():
            if eval(condition, {}, context):
                print(f"Condition met: {condition}. Taking action: {actions[0]}")
                # Perform the action as defined
                exec(actions[0], {})


# Example usage:
reasoning_engine = ReasoningEngine()

# Add rules to the engine
reasoning_engine.add_rule("context['temperature'] > 30", "print('It's a hot day, turn on AC.')")
reasoning_engine.add_rule("context['time_of_day'] == 'morning'", "print('Good morning!')")

# Simulate context
context = {'temperature': 28, 'time_of_day': 'morning'}

# Run the reasoning engine with the context
reasoning_engine.reason(context)
```