AI Agents: How They Work and How to Build One in 2026