The way I understood it the prisoner release would have been part of the deal, as would the Afghan government remains intact , which included the Afghan army. Also our departure would have been controlled by us, not the Taliban. The whole agreement was predicated on the Taliban adhering to the agreement, or be wiped out, as opposed to the current admin kissing their asses.
Some people actually believe Biden was the first president that wanted to get out of Afghanistan. Oh yeah, that's what his puppeteer has him say and the news media parrots.
So, in conclusion, Trump started the process, Biden wanted it closer to 9-11 for political reasons, but he screwed it up. Now looking for anything to hang on Trump, and yet he wants to claim he ended the war. Truth be known, he doesn't know what day it is.