The Australian prime minister has seized his opportunity to send Russia’s president and US president Donald Trump a message about war, economics and artificial intelligence.