"""Create reasoning_engine
Generated by Phi-Octopus Eden
2025-11-08 11:32:49.810233
"""

```python
class ReasoningEngine:
    """
    A simple reasoning engine that solves a limited set of problems using rule-based logic.
    """

    def __init__(self):
        """
        Initialize the reasoning engine with an empty set of rules.
        """
        self.rules = {}

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

        :param condition: A string representing the condition that needs to be met.
        :param action: A function or method to execute when the condition is met.
        """
        self.rules[condition] = action

    def reason(self, input_data: dict) -> None:
        """
        Apply all applicable rules based on the given input data.

        :param input_data: A dictionary containing key-value pairs representing input variables and their values.
        """
        for condition, action in self.rules.items():
            if eval(condition, {}, input_data):
                result = action(input_data)
                print(f"Action taken: {result}")


# Example usage
def increase_price(data: dict) -> str:
    """Increase the price by 10%."""
    current_price = data.get("price")
    new_price = current_price * 1.1
    return f"Price increased to ${new_price:.2f}"

def apply_discount(data: dict) -> str:
    """Apply a 5% discount if the quantity is more than 10."""
    current_price = data.get("price")
    quantity = data.get("quantity")
    new_price = current_price * (1 - 0.05) if quantity > 10 else current_price
    return f"Discounted price: ${new_price:.2f}"


if __name__ == "__main__":
    engine = ReasoningEngine()
    engine.add_rule('price < 100', increase_price)
    engine.add_rule('quantity > 10', apply_discount)

    input_data = {"price": 95, "quantity": 15}
    print("Input data:", input_data)
    engine.reason(input_data)
```

This Python code defines a simple reasoning engine that can be extended to handle more complex rule-based logic. The example usage demonstrates adding rules and applying them based on given input data.