HF RL Explorer

Tool messages from LangGraph agents cause Message ID not found in history error due to unsupported role in…

Tool messages from LangGraph agents cause Message ID not found in history error due to unsupported role in…: a task in LegoFlow-SWE (Harbor dataset). When integrating with LangChain/LangGraph deep agents , the MESSAGES SNAPSHOT event includes messages with role: 'tool' (tool call results)…

The task

When integrating with LangChain/LangGraph **deep agents**, the `MESSAGES_SNAPSHOT` event includes messages with `role: 'tool'` (tool call results). Currently, the code that imports these snapshots calls `fromThreadMessageLike` for each raw message, but that function only handles `role: 'user'`, `'assistant'`, or…

Part of Lego-X/LegoFlow-SWE.