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

category

Return the task category.

get_sample_class

Return the sample class.

task_name

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

model(*args, **kwargs) ModelAPI#

Add a task to the task manager.

property task_name#

Return the task name.