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 | Type | Description |
---|---|---|
input_spec | Optional[Dict[str, FieldSpec]] | Input data specification. |
output_spec | Optional[Dict[str, FieldSpec]] | Output data specification. |
view_spec | Optional[ViewSpec] | The description of the task interface. |
Last updated: August 28, 2023