The Reflexion method[fifty four] constructs an agent that learns about a number of episodes. At the end of Every episode, the LLM is given the report in the episode, and prompted to think up "classes discovered", which might aid it accomplish much better in a subsequent episode. These "classes acquired" are provided for the agent in the next episod