The prime minister also raised the need for international rules governing AI during a visit to the tech giant’s Californian HQ.