The architecture behind agentic systems — perception-action loops, tool use, memory, and autonomous decision-making.