BaseTask

toloka.client.task.BaseTask | Source code

BaseTask(
self,
*,
input_values: Optional[Dict[str, Any]] = None,
known_solutions: Optional[List[KnownSolution]] = None,
message_on_unknown_solution: Optional[str] = None,
id: Optional[str] = None,
origin_task_id: Optional[str] = None
)

A base class for tasks.

Parameters description

ParametersTypeDescription
input_valuesOptional[Dict[str, Any]]

A dictionary with input data for a task. Input field names are keys in the dictionary.

known_solutionsOptional[List[KnownSolution]]

A list of all responses considered correct. It is used with control and training tasks. If there are several output fields, then you must specify all their correct combinations.

message_on_unknown_solutionOptional[str]

A hint used in training tasks.

idOptional[str]

The ID of a task.

origin_task_idOptional[str]

The ID of a parent task. This parameter is set if the task was created by copying.

Last updated: August 28, 2023

Toloka-Kit
OverviewGetting API keyQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming