HF RL Explorer

Implement a custom click parameter type called RangedFloatType that validates a floating-point number falls…

Implement a custom click parameter type called RangedFloatType that validates a floating-point number falls…: a task in repo2rlenv-code-instruct (Harbor dataset). Your RangedFloatType must: - Have name = "RANGED FLOAT" . - Accept a min val and max val in its constructor. - In convert() , attempt…

The task

Your `RangedFloatType` must: - Have `name = "RANGED_FLOAT"`. - Accept a `min_val` and `max_val` in its constructor. - In `convert()`, attempt to parse the value as a float; if parsing fails, call `self.fail()` with the message `"<value> is not a valid float"`. - If the float is outside `[min_val, max_val]`, call…

Part of FineEnvs/repo2rlenv-code-instruct.