(all_task_config_path)
| 35 | |
| 36 | |
| 37 | def 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 | |
| 50 | def evaluate_all_tasks(tasks: List[Task], agent: Agent): |