"""Create reasoning_engine
Generated by Phi-Octopus Eden
2025-11-08 17:47:31.390694
"""

```python
from typing import List, Dict

class ReasoningEngine:
    """
    A basic reasoning engine that attempts to solve problems based on predefined rules.
    
    This engine can handle a limited number of rules and uses them to infer solutions for given inputs.
    """

    def __init__(self, rules: List[Dict[str, any]]):
        """
        Initialize the ReasoningEngine with a set of rules.

        :param rules: A list of dictionaries where each dictionary represents a rule. 
                      Each rule should have 'condition' and 'action' keys.
        """
        self.rules = rules

    def apply_rule(self, condition) -> Dict[str, any]:
        """
        Apply the first matching rule based on the given condition.

        :param condition: A condition to match against the rules.
        :return: The action associated with the matched rule or None if no rule matches.
        """
        for rule in self.rules:
            if rule['condition'] == condition:
                return rule['action']
        return None

    def infer_solution(self, inputs: Dict[str, any]) -> Dict[str, any]:
        """
        Infer a solution based on the provided inputs and predefined rules.

        :param inputs: A dictionary of input variables.
        :return: The inferred solution or an empty dictionary if no inference can be made.
        """
        final_solution = {}
        for key, value in inputs.items():
            result = self.apply_rule(value)
            if result:
                final_solution[key] = result
        return final_solution

def example_usage():
    rules = [
        {'condition': 10, 'action': 'Action A'},
        {'condition': 20, 'action': 'Action B'},
        {'condition': 30, 'action': 'Action C'}
    ]

    engine = ReasoningEngine(rules)
    inputs = {'key1': 25, 'key2': 40}

    solution = engine.infer_solution(inputs)
    print(solution)

if __name__ == "__main__":
    example_usage()
```

This code defines a basic reasoning engine capable of applying rules to infer solutions based on given inputs. The `example_usage` function demonstrates how the engine can be instantiated and used with simple rules and input data.