HF RL Explorer

Using attrs , implement a validated configuration registry in task module.py .

Using attrs , implement a validated configuration registry in task module.py .: a task in repo2rlenv-code-instruct (Harbor dataset). Define an attrs -based class ServerConfig with the following fields: - host (str): must not be empty - port (int): must be between 1 and 65535 inclusive - max…

The task

Define an `attrs`-based class `ServerConfig` with the following fields: - `host` (str): must not be empty - `port` (int): must be between 1 and 65535 inclusive - `max_connections` (int): must be positive (≥ 1), default `100`

Part of FineEnvs/repo2rlenv-code-instruct.