Spaces:
Sleeping
Sleeping
File size: 750 Bytes
c4e4c31 b591dea c4e4c31 10ac17c c4e4c31 b591dea c4e4c31 10ac17c c4e4c31 b591dea c4e4c31 10ac17c c4e4c31 b591dea c4e4c31 10ac17c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | def load_task(task_id: str):
# Grader Logic: ensures scores are strictly between 0 and 1
tasks = {
"easy_refund": {
"text": "User #101: Requesting refund for order 404.",
"target": "refund",
"reward_weight": 0.82 # Strictly (0, 1)
},
"medium_db": {
"text": "System Alert: DB_CONNECTION_TIMEOUT in cluster-A.",
"target": "database",
"reward_weight": 0.74 # Strictly (0, 1)
},
"hard_security": {
"text": "Critical: Multi-factor bypass detected on admin login.",
"target": "security",
"reward_weight": 0.68 # Strictly (0, 1)
}
}
return [tasks.get(task_id, tasks["easy_refund"])] |