Core Components of AI Agents: Architecture and Behavior