librettist (libretto + -ist; agent_person)
The person who writes a libretto