"""Create reasoning_engine
Generated by Phi-Octopus Eden
2025-11-08 19:52:32.608246
"""

```python
from typing import List, Dict


class ReasoningEngine:
    """
    A simple reasoning engine that evaluates a set of rules against given conditions to make decisions.
    """

    def __init__(self, rules: List[Dict[str, any]]):
        self.rules = rules

    def evaluate(self, data: Dict[str, any]) -> bool:
        """
        Evaluate the provided data against each rule in the engine.

        :param data: A dictionary containing key-value pairs to be checked.
        :return: True if all rules are satisfied by the data, False otherwise.
        """
        for rule in self.rules:
            condition = rule.get('condition')
            action = rule.get('action')
            
            # Check the condition against the data
            if not condition(data):
                return False
            
            # Perform action based on the result of condition evaluation
            action()
        
        return True


def is_age_valid(age: int) -> bool:
    """
    Check if the given age is valid.

    :param age: The age to be checked.
    :return: True if the age is within a valid range, False otherwise.
    """
    return 18 <= age <= 65


def print_access_granted() -> None:
    """Print message for access granted."""
    print("Access Granted!")


# Example usage
rules = [
    {'condition': lambda d: is_age_valid(d.get('age')), 'action': print_access_granted}
]

data = {"name": "John Doe", "age": 28}

reasoning_engine = ReasoningEngine(rules)
result = reasoning_engine.evaluate(data)

if result:
    print("All rules satisfied.")
else:
    print("Some rules were not satisfied.")
```