"""Create reasoning_engine
Generated by Phi-Octopus Eden
2025-11-06 07:51:35.132635
"""

```python
from typing import List, Dict

class Rule:
    """Represents a single rule in the reasoning engine."""
    def __init__(self, condition: str, action: str):
        self.condition = condition
        self.action = action

def create_reasoning_engine(rules: List[Rule]) -> Dict[str, str]:
    """
    Constructs a simple reasoning engine from given rules.

    Args:
        rules (List[Rule]): A list of Rule objects representing conditions and actions.

    Returns:
        Dict[str, str]: A mapping of conditions to their corresponding actions.
    """
    rule_dict = {rule.condition: rule.action for rule in rules}
    return rule_dict

def evaluate_reasoning_engine(engine: Dict[str, str], input_condition: str) -> str:
    """
    Evaluates the reasoning engine based on an input condition.

    Args:
        engine (Dict[str, str]): The created reasoning engine.
        input_condition (str): A string representing the current state to match against rules.

    Returns:
        str: The action associated with the matched condition or 'Unknown' if no match found.
    """
    return engine.get(input_condition, 'Unknown')

# Example usage
if __name__ == "__main__":
    # Define some rules
    rule1 = Rule('temperature > 30', 'turn_on_air_conditioning')
    rule2 = Rule('humidity < 40', 'activate_dehumidifier')
    
    # Create the reasoning engine with these rules
    reasoning_engine = create_reasoning_engine([rule1, rule2])
    
    # Evaluate based on some input condition
    result = evaluate_reasoning_engine(reasoning_engine, 'temperature > 30 and humidity < 40')
    print(f"Action: {result}")
```