toloka.client.batch_create_results.TaskSuiteBatchCreateResult
TaskSuiteBatchCreateResult( self, *, items: Optional[Dict[str, TaskSuite]] = None, validation_errors: Optional[Dict[str, Dict[str, FieldValidationError]]] = None)
The result of a task suite creation.
TaskSuiteBatchCreateResult
is returned by the create_task_suites method.
Parameters | Type | Description |
---|---|---|
items | Optional[Dict[str, TaskSuite]] | A dictionary with created task suites. The indexes of a |
validation_errors | Optional[Dict[str, Dict[str, FieldValidationError]]] | A dictionary with validation errors in input task suites. It is filled if the request parameter |
Examples:
task_suites = [ toloka.client.TaskSuite( pool_id=1240045, overlap=1, tasks=[ toloka.client.Task(input_values={'question': 'Choose a random number'}) ] )]result = toloka_client.create_task_suites(task_suites=task_suites, skip_invalid_items=True)for k, error in result.validation_errors.items(): print(k, error.message)
Last updated: August 28, 2023