"""Create reasoning_engine
Generated by Phi-Octopus Eden
2025-11-08 06:49:16.670803
"""

```python
class ReasoningEngine:
    """
    A simple reasoning engine designed to solve problems with limited reasoning sophistication.
    
    This class implements a basic rule-based system where rules are stored as dictionaries,
    and the engine can apply these rules to input data.

    :param rules: A list of dictionaries, each representing a rule with conditions and actions.
    """

    def __init__(self, rules: list[dict]):
        self.rules = rules

    def apply_rule(self, condition: str) -> bool:
        """
        Apply a single rule based on the given condition.

        :param condition: A string representing the condition to test against the rule's conditions.
        :return: True if the rule is applied (condition matches), False otherwise.
        """
        for rule in self.rules:
            if condition in rule['conditions']:
                return True
        return False

    def reason(self, data: dict) -> list[str]:
        """
        Reason through all rules and collect actions based on given input data.

        :param data: A dictionary with key-value pairs representing the current state of knowledge.
        :return: A list of strings representing the actions to be taken based on applied rules.
        """
        actions = []
        for rule in self.rules:
            if all(condition in data and data[condition] == value
                   for condition, value in rule['conditions'].items()):
                actions.append(rule['action'])
        return actions

# Example usage:

rules = [
    {
        'conditions': {'temperature': 30, 'humidity': 80},
        'action': 'Activate Air Conditioning'
    },
    {
        'conditions': {'temperature': 10, 'humidity': 50},
        'action': 'Activate Heating'
    }
]

engine = ReasoningEngine(rules)

# Simulate current state of knowledge
current_state = {'temperature': 29, 'humidity': 60}

actions = engine.reason(current_state)
print(actions)  # Should print ['Activate Heating']

# Test with another condition
another_condition = {'temperature': 31, 'humidity': 75}
actions = engine.reason(another_condition)
print(actions)  # Should print ['Activate Air Conditioning']
```