General counsels at technology companies are increasingly having to wear multiple hats—from helping startups avoid growing too fast to supporting the development of generative artificial intelligence solutions that account for existing and future regulations.