The US and China will work together on AI security and have agreed to continue talks on reducing tariffs following President ‌Xi Jinping's visit to Washington.