Lots of Minnesota attorney general candidates, but what's the AG do?

Attorney general Lori Swanson announces she is running for governor.
Minnesota Attorney General Lori Swanson announces she is running for governor during a press conference at the Marquette Hotel in Minneapolis on June 4, 2018.
Lacey Young | MPR News