A new approach to AI will help make autonomous vehicles safer and let robots learn how to use tools as a human might: