Reflexion asks the model to write a reflection after a failed attempt. The prompt gives the task, the trajectory and the environment feedback, then requests a plan for next time.
Implement build_reflection_prompt(task, trajectory, feedback), returning the reflection request.
Format the three inputs with their labels, then append the instruction.
No results yet
Run your code to check it against the examples, or submit to run every test.