California lawmakers have flooded the state capitol this year with legislation dealing with generative artificial intelligence, a sign of the technology's expanding use and its potential to cause headline-grabbing trouble.