Anatomy of the AI agent