Self-Learning AI Agents in Industry 4.0