How AI Agents Work: The Complete Guide to Architecture, Memory, Planning, and Tool Calling | Carrier OS