HF RL Explorer

Allow a plain function to be used as an assertion

Allow a plain function to be used as an assertion: a task in MiMo-V2.6-RL-oss: Agentic RL Environments (MiMo RL release). Right now the only things you can pass as the second argument to expect are an assertion string (expect(2, 'to be a number')) or an expect.it(...) expression. If you pass a…

The task

Right now the only things you can pass as the second argument to expect are an assertion string (expect(2, 'to be a number')) or an expect.it(...) expression. If you pass a bare function instead, you get an error: That's annoying, because a function is the most natural way to…

Part of XiaomiMiMo/MiMo-V2.6-RL-oss.