Retirement tax questions

I donated to a charity directly from my retirement accounts, how do I exclude the amount from my AGI?