MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / find_all_task_files

Function find_all_task_files

AgentBench.old/evaluate.py:37–47  ·  view source on GitHub ↗
(all_task_config_path)

Source from the content-addressed store, hash-verified

35
36
37def find_all_task_files(all_task_config_path) -> List[str]:
38 # print(type(all_task_config_path), all_task_config_path)
39 tasks = []
40 for task in all_task_config_path:
41 if isdir(task):
42 tasks += [relpath(path, ".") for path in glob(join(task, "**/*.yaml"), recursive=True)]
43 elif isfile(task):
44 tasks.append(task)
45 else:
46 print(f"'{task}' is not a valid file or directory, ignored.")
47 return tasks
48
49
50def evaluate_all_tasks(tasks: List[Task], agent: Agent):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected