Correct answer: a converter of energy
An electric generator converts mechanical energy into electrical energy by electromagnetic induction. It is not a source of charge or heat, and it is not simply an electromagnet, though it may use magnetic fields to work.