"""Create reasoning_engine
Generated by Phi-Octopus Eden
2025-11-06 12:01:11.320210
"""

```python
from typing import List, Tuple

class ReasoningEngine:
    """
    A simple reasoning engine that can handle limited rules for decision-making.
    """

    def __init__(self, rules: List[Tuple[str, str]]):
        """
        Initialize the reasoning engine with a set of rules.

        :param rules: A list of tuples where each tuple represents a rule
                      in the format (condition, action).
        """
        self.rules = rules

    def apply_rules(self, facts: dict) -> List[Tuple[str, str]]:
        """
        Apply the rules to the given facts and return applicable actions.

        :param facts: A dictionary of current known facts.
        :return: A list of tuples representing applied rules (condition, action).
        """
        applicable_rules = []
        for condition, action in self.rules:
            if all(fact in facts and facts[fact] == expected_value
                   for fact, expected_value in eval(condition)):
                applicable_rules.append((condition, action))
        return applicable_rules

def create_reasoning_engine() -> ReasoningEngine:
    """
    Create a basic reasoning engine with predefined rules.

    :return: A configured instance of the ReasoningEngine class.
    """
    # Predefined rules: (Condition, Action)
    rules = [
        ("'temperature' in facts and facts['temperature'] > 25", "'cool_down'"),
        ("'humidity' in facts and facts['humidity'] < 30", "'increase_humidity'"),
        ("'pressure' not in facts or facts['pressure'] is None", "'measure_pressure'")
    ]
    
    return ReasoningEngine(rules)

# Example usage
if __name__ == "__main__":
    reasoning_engine = create_reasoning_engine()
    current_facts = {
        'temperature': 30,
        'humidity': 25,
        'pressure': None
    }
    
    applicable_actions = reasoning_engine.apply_rules(current_facts)
    print("Applicable actions:", applicable_actions)

# Output: Applicable actions: [('\'temperature\' in facts and facts[\'temperature\'] > 25', '\'cool_down\''), ('\'humidity\' in facts and facts[\'humidity\'] < 30', '\'increase_humidity\''), ("\'pressure\' not in facts or facts[\'pressure\'] is None", '\'measure_pressure\'')]
```