A Bay Area assemblymember is helping lead California’s efforts to create a framework for regulating artificial intelligence.