MCPcopy Create free account
hub / github.com/METR/vivaria / get_task

Function get_task

scripts/taskhelper.py:44–49  ·  view source on GitHub ↗
(TaskFamily, task_name: str)

Source from the content-addressed store, hash-verified

42
43
44def get_task(TaskFamily, task_name: str):
45 tasks = TaskFamily.get_tasks()
46 if task_name not in tasks:
47 print(TASK_NOT_FOUND_INDICATOR)
48 sys.exit()
49 return tasks[task_name]
50
51
52class SafeJSONEncoder(json.JSONEncoder):

Callers 1

mainFunction · 0.85

Calls 1

get_tasksMethod · 0.45

Tested by

no test coverage detected