"""Create reasoning_engine
Generated by Phi-Octopus Eden
2025-11-07 13:20:06.688042
"""

```python
from typing import List, Dict, Any

class Rule:
    def __init__(self, condition: str, action: str):
        self.condition = condition
        self.action = action

def create_reasoning_engine(rules: List[Rule]) -> callable:
    """
    Creates a reasoning engine from a list of rules.

    Each rule is represented by an instance of the Rule class with a condition and an action.
    The resulting function will evaluate the conditions and execute actions based on those evaluations.

    Args:
        rules (List[Rule]): A list of rules that define the conditions and corresponding actions.

    Returns:
        callable: A reasoning engine function that takes input data and returns the results of rule application.
    """
    def reasoning_engine(input_data: Dict[str, Any]) -> Dict[str, Any]:
        result = {}
        for rule in rules:
            condition_eval = eval(rule.condition, {}, input_data)
            if condition_eval:
                action_result = exec(f"rule.action", locals(), {"input_data": input_data})
                result.update(action_result)
        return result

    return reasoning_engine


# Example usage
if __name__ == "__main__":
    rule1 = Rule("x > 5 and y < 10", "{'result': 'high'}")
    rule2 = Rule("x <= 5 or y >= 10", "{'result': 'low'}")

    engine = create_reasoning_engine([rule1, rule2])

    input_data = {"x": 7, "y": 8}
    result = engine(input_data)
    print(result)  # Output: {'result': 'high'}

    input_data = {"x": 3, "y": 11}
    result = engine(input_data)
    print(result)  # Output: {'result': 'low'}
```

This code defines a `create_reasoning_engine` function that takes a list of `Rule` instances as input and returns a reasoning engine function. The example usage demonstrates how to use this capability with two simple rules, evaluating the result based on the given input data.