Tech companies say “AI agents” are the next big thing in artificial intelligence after chatbots. Early versions have unresolved privacy and security flaws.