Spaces:
Running
Running
PROTHAM
Implement strict judge feedback: ambiguous task descriptions, server-side payload clues, increased exploration steps
431d2c4 Download tasks/medium.py from ProthamD/api-debug-env: direct link, hf CLI and curl.
- Browser
- Download file 1.68 kB
-
https://huggingface.co/spaces/ProthamD/api-debug-env/resolve/4898dbf072ed5b8ea46fdc75291de2169497b4e6/tasks/medium.py
- Command line
-
hf download hf://spaces/ProthamD/api-debug-env@4898dbf072ed5b8ea46fdc75291de2169497b4e6/tasks/medium.py
-
curl -L -o medium.py https://huggingface.co/spaces/ProthamD/api-debug-env/resolve/4898dbf072ed5b8ea46fdc75291de2169497b4e6/tasks/medium.py
1.68 kB
| MEDIUM_TASKS = [ | |
| { | |
| "id": "medium_wrong_method", | |
| "description": "Create an order for product_id 5 with qty 2 at /mock_api/orders. The given request is failing.", | |
| "broken_request": { | |
| "method": "GET", | |
| "url": "/mock_api/orders", | |
| "headers": {"Content-Type": "application/json"}, | |
| "body": {"product_id": 5, "qty": 2}, | |
| "query_params": {}, | |
| }, | |
| "expected_status": 200, | |
| "expected_schema": {"order_id": 0, "status": ""}, | |
| }, | |
| { | |
| "id": "medium_type_mismatch", | |
| "description": "Submit a new order for product_id 5 and qty 2 at /mock_api/orders. The API is returning a validation error for the current payload.", | |
| "broken_request": { | |
| "method": "POST", | |
| "url": "/mock_api/orders", | |
| "headers": {"Content-Type": "application/json"}, | |
| "body": {"product_id": "five", "qty": 2}, | |
| "query_params": {}, | |
| }, | |
| "expected_status": 200, | |
| "expected_schema": {"order_id": 0, "product_id": 0}, | |
| }, | |
| { | |
| "id": "medium_nested_field", | |
| "description": "Update the profile with name 'Alice' and address containing street '123 Main St' and city 'Metropolis'. The current payload structure is rejected.", | |
| "broken_request": { | |
| "method": "POST", | |
| "url": "/mock_api/profile", | |
| "headers": {"Content-Type": "application/json"}, | |
| "body": {"name": "Alice", "address": "123 Main St"}, | |
| "query_params": {}, | |
| }, | |
| "expected_status": 200, | |
| "expected_schema": {"name": "", "address": {}, "updated": True}, | |
| }, | |
| ] | |