Download tasks/add_input_validation.yaml from smlflg/AgentArena: direct link, hf CLI and curl.
- Browser
- Download file 509 Bytes
-
https://huggingface.co/smlflg/AgentArena/resolve/main/tasks/add_input_validation.yaml
- Command line
-
hf download hf://smlflg/AgentArena/tasks/add_input_validation.yaml
-
curl -L -o add_input_validation.yaml https://huggingface.co/smlflg/AgentArena/resolve/main/tasks/add_input_validation.yaml
509 Bytes
| slug: add-input-validation | |
| title: "Add input validation to create_user()" | |
| description: | | |
| The create_user(name, email, age) function in app.py performs no input validation. | |
| Add validation that raises ValueError for: empty or whitespace-only name, | |
| email without '@', age < 0, age > 150. All validation tests must pass. | |
| repo: | |
| url: file:///tmp/arena-tasks/arena-task-validation | |
| ref: main | |
| success: | |
| command: "python -m pytest tests/ -v" | |
| limits: | |
| time_seconds: 300 | |
| max_tokens: 200000 | |
| difficulty: easy | |