Factool / factool /tasks.py
EQ3A2A's picture
Upload folder using huggingface_hub
d195d4f
raw
history blame
475 Bytes
"""Definition of different types of tasks."""
from __future__ import annotations
from enum import Enum
class TaskType(str, Enum):
"""Task types available in this tool."""
kbqa = "kbqa"
math = "math"
code = "code"
sci = "sci"
@staticmethod
def list() -> list[str]:
"""Obtains string representations of all values.
Returns:
List of all values in str.
"""
return list(map(lambda c: c.value, TaskType))