langchain/chains/combine_documents/refine.py/RefineDocumentsChain/get_return_intermediate_steps
class RefineDocumentsChain:    def get_return_intermediate_steps(cls, values: Dict) -> Dict:
        """For backwards compatibility."""
        if "return_refine_steps" in values:
            values["return_intermediate_steps"] = values["return_refine_steps"]
            del values["return_refine_steps"]
        return values