Toloka documentation

TaskSpec

toloka.client.project.task_spec.TaskSpec | Source code

TaskSpec(
    self,
    *,
    input_spec: Optional[Dict[str, FieldSpec]] = None,
    output_spec: Optional[Dict[str, FieldSpec]] = None,
    view_spec: Optional[ViewSpec] = None
)

Parameters for input and output data and the task interface.

Parameters Description

Parameters Type Description
input_spec Optional[Dict[str, FieldSpec]]

The input data parameters for tasks. The complete list of parameters is shown in the Input and output data table.

output_spec Optional[Dict[str, FieldSpec]]

Parameters for output data from the input fields. The complete list of parameters is shown in the Input and output data table.

view_spec Optional[ViewSpec]

Description of the task interface.