langtest.tasks.task.TaskManager#
- class TaskManager(task: str | dict)#
Bases:
object
Task manager.
- __init__(task: str | dict)#
Methods
__init__
(task)create_sample
(*args, **kwargs)Add a task to the task manager.
model
(*args, **kwargs)Add a task to the task manager.
Attributes
Return the task category.
Return the sample class.
Return the task name.
- property category#
Return the task category.
- create_sample(*args, **kwargs)#
Add a task to the task manager.
- property get_sample_class#
Return the sample class.
- Returns:
Sample class
- Return type:
Sample
- property task_name#
Return the task name.