Josue Cruz, an incoming junior at San Francisco State University, knew something had changed when his linear algebra professor urged the class to use artificial intelligence — not to cheat by using a chatbot to do their homework but to ask it questions about their assignments.