def human_step_out(self) -> None:
        """Switch back to the original model from human mode.
        This is called when ^D is pressed in human mode.
        """
        if not hasattr(self, "_original_model") or self._original_model is None:
            self.logger.info("No previous model to switch back to. Remaining in current mode.")
            return

        self.model = self._original_model
        self.tools.config.parse_function = self._original_parser  # type: ignore
        self._original_model = None
        self._original_parser = None

        self.logger.info("Switched back to AI model mode.")
Switch back to the original model from human mode.
        This is called when ^D is pressed in human mode.
        
sweagent/agent/extra/shell_agent.py