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
)

Task interface description and input and output data specifications.

Input and output data specifications are dictionaries. Field IDs are keys and field specifications are values.

Parameters description

ParametersTypeDescription
input_specOptional[Dict[str, FieldSpec]]

Input data specification.

output_specOptional[Dict[str, FieldSpec]]

Output data specification.

view_specOptional[ViewSpec]

The description of the task interface.

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