HF RL Explorer

When using the library to call Anthropic or Bedrock models with tool calls, the generated messages contain…

When using the library to call Anthropic or Bedrock models with tool calls, the generated messages contain…: a task in LegoFlow-SWE (Harbor dataset). The problem occurs when an assistant message that includes a tool request (function call) is re‑sent on a later turn together with the corresponding…

The task

The problem occurs when an assistant message that includes a tool request (function call) is re‑sent on a later turn together with the corresponding tool result. Internally, the library merges consecutive assistant messages, but during that merge it duplicates tool‑use blocks that share the same ID, producing…

Part of Lego-X/LegoFlow-SWE.