For you, it depends on what your body requires at this moment and which Doshas are imbalanced. Generally, Vamana (Therapeutic Emesis) is suggested to eliminate excess Kapha Dosha from the body whereas Virechana (Therapeutic Purgation) is suggested to eliminate excess Pitta or some types of Vata. But, since your physician has suggested Virechana initially, maybe because of your particular body type and symptoms, especially when there are problems such as Thyroid imbalance, low metabolism, and Agni (digestive fire).
Virechana may reduce the Pitta symptoms and help improve your Agni. If you are suggested to do Vamana after Virechana, then probably it would work better in reducing any Kapha imbalance. Properly done Virechana and Vamana should aid in improving your digestion and metabolism.
You are right that Agni might get affected. A proper diet plan with tiny amounts of easy-to-digest, warm, and nourishing food items is necessary between the procedures. Usually, ghee is taken only during the preparation stage prior to Vamana to make it easier for the system to pass through but focus on easy-to-digest food items which improve Agni after Virechana.
Pay attention to how your body reacts to these therapies. Once you are done with the treatment, strictly follow the diet plan given by your doctor to restore and balance your Agni. Also, take good care of your rest and dietary requirements after the therapy for optimal energy levels and nutrient absorption.
Lastly, always communicate with your doctor and seek their help based on your body type and symptoms. You need proper guidance and follow up to react accordingly to the changes taking place within your body during the treatment.