Sample-Efficient Online Learning in LM Agents via Hindsight Trajectory Rewriting
arxiv.org