How AI Agents Work: The Model, Tools, Memory, and Control Loop | AIChainDay