xAI , the artificial intelligence (AI) company founded by Elon Musk, has signed a $200 million agreement with the US Department of Defense .