"""Create recovery_planner
Generated by Phi-Octopus Eden
2025-11-06 22:57:50.957586
"""

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


class RecoveryPlanner:
    """
    A class for creating a limited error recovery planner.
    
    This planner attempts to recover from errors within a predefined number of steps,
    and if unsuccessful, it will revert the system state to a known good configuration.
    """

    def __init__(self, max_steps: int = 3):
        self.max_steps = max_steps
        self.current_step = 0

    def plan_recovery(self, error_message: str) -> Optional[str]:
        """
        Plan and attempt recovery from the given error.

        :param error_message: A string describing the error that occurred.
        :return: The next action to take in response to the error or None if no further steps are available.
        """
        actions = {
            "ResourceExhaustion": ["Check for memory leaks", "Increase resource allocation"],
            "NetworkTimeout": ["Retry request", "Check network connectivity"],
            "UnknownError": ["Restart service", "Log detailed information"]
        }

        # Check if the error is known and plan recovery
        if error_message in actions:
            self.current_step += 1
            if self.current_step <= self.max_steps:
                return f"Step {self.current_step}: {actions[error_message][0]}"
            else:
                print("Recovery failed after max steps. System state will be reverted.")
                return None

        # If the error is not recognized, log it and do nothing
        print(f"Error '{error_message}' not recognized. Continuing without recovery plan.")
        return None


# Example usage
def main():
    planner = RecoveryPlanner(max_steps=3)
    
    while True:
        error_message = input("Enter an error message (type 'exit' to stop): ")
        if error_message == "exit":
            break
        
        result = planner.plan_recovery(error_message)
        print(f"Next action: {result}")


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

This code defines a `RecoveryPlanner` class that attempts to recover from errors by following predefined actions. It includes an example usage in the `main` function, where it can be tested interactively.