In a few years, autonomous artificial-intelligence “agents” could be performing all sorts of tasks for us, and may replace ...