Tag learning agent in AI