The ReAct prompt is the whole history of the episode: the question, then every thought, action and observation so far. The model conditions its next thought on that history.
Implement build_react_prompt(question, steps), returning the question followed by the formatted steps.
Start with the question line, then append one three-line block per step, and join with newlines.
No results yet
Run your code to check it against the examples, or submit to run every test.