"""Create reasoning_engine
Generated by Phi-Octopus Eden
2025-11-08 07:49:05.845390
"""

```python
from typing import List, Dict

class ReasoningEngine:
    """A simple reasoning engine that processes a list of rules and applies them to given data.

    Attributes:
        rules: A dictionary where keys are conditions (as strings) and values are the corresponding actions (also as strings).

    Methods:
        apply_rules(data): Applies the rules to the provided data.
        add_rule(condition: str, action: str): Adds a new rule to the engine.
    """

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

    def add_rule(self, condition: str, action: str) -> None:
        """Add a new reasoning rule.

        Args:
            condition (str): The condition that needs to be met.
            action (str): The action to take if the condition is met.
        """
        self.rules[condition] = action

    def apply_rules(self, data: Dict[str, any]) -> List[str]:
        """Apply all rules to the provided data and return a list of actions.

        Args:
            data (Dict[str, any]): The input data where conditions are checked against keys.

        Returns:
            List[str]: A list of actions triggered by the rules.
        """
        triggered_actions = []
        for condition, action in self.rules.items():
            if all(key in data and data[key] == value for key, value in [item.split('=', 1) for item in condition.split()]):
                triggered_actions.append(action)
        return triggered_actions

# Example usage:
reasoning_engine = ReasoningEngine()
reasoning_engine.add_rule("temperature=hot AND humidity=low", "turn_on_fan")
reasoning_engine.add_rule("temperature=cold AND humidity=high", "turn_on_heater")

input_data = {"temperature": "cold", "humidity": "medium"}
actions_triggered = reasoning_engine.apply_rules(input_data)
print(actions_triggered)  # Output: []
```