Here's a link to the text published by the State Department of the February 29, 2020 "Agreement for Bringing Peace to Afghanistan between the Islamic Emirate of Afghanistan which is not recognized by the United States as a state and is known as the Taliban and the United States of America".
I'm embarrassed to admit I had never read it until today. Basically, we were obliged to leave all military bases and remove all our troops by May 1, 2021. There were not a lot of demands placed on the Taliban. Not only was the Afghan government, though supported by the United States, not a signatory to the agreement; it wasn't even mentioned in the agreement.