Andy Jassy, CEO of Amazon, said he expects the company to reduce its workforce over the next few years as it rolls out more generative AI and agents.