What's the difference between a buyers agent and a sellers agent?

What does a buyers agent do?