Some of the world's biggest tech companies pledged to work together to guard against the dangers of artificial intelligence as they wrapped up a