I’ll give a small amount of credit to the Biden administration for putting together the ceasefire agreement many months ago.
However, Hamas had absolutely no intention of agreeing those terms until Trump was elected and he sent Steve Witkoff to persuade them & their moderators Qatar & Egypt. Turns out that telling them to accept these terms or Trump will make certain that everyone in Hamas would be killed once he assumes the office of the presidency is a great motivator.