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
Parameters | Type | Description |
---|---|---|
input_values |
Optional[Dict[str, Any]] | A dictionary with input data for a task. Input field names are keys in the dictionary. |
known_solutions |
Optional[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_solution |
Optional[str] | A hint used in training tasks. |
id |
Optional[str] | The ID of a task. |
origin_task_id |
Optional[str] | The ID of a parent task. This parameter is set if the task was created by copying. |