Agents 101: How AI Agents Actually Work