Assignment
toloka.client.assignment.Assignment
| Source code
Assignment(
self,
*,
id: Optional[str] = None,
task_suite_id: Optional[str] = None,
pool_id: Optional[str] = None,
user_id: Optional[str] = None,
status: Union[Status, str, None] = None,
reward: Optional[Decimal] = None,
tasks: Optional[List[Task]] = None,
automerged: Optional[bool] = None,
created: Optional[datetime] = None,
submitted: Optional[datetime] = None,
accepted: Optional[datetime] = None,
rejected: Optional[datetime] = None,
skipped: Optional[datetime] = None,
expired: Optional[datetime] = None,
first_declined_solution_attempt: Optional[List[Solution]] = None,
solutions: Optional[List[Solution]] = None,
mixed: Optional[bool] = None,
public_comment: Optional[str] = None
)
Contains information about an assigned task suite and the results
Parameters Description
Parameters | Type | Description |
---|---|---|
id |
Optional[str] | ID of the task suite assignment to a performer. |
task_suite_id |
Optional[str] | ID of a task suite. |
pool_id |
Optional[str] | ID of the pool that the task suite belongs to. |
user_id |
Optional[str] | ID of the performer who was assigned the task suite. |
status |
Optional[Status] | Status of an assigned task suite.
|
reward |
Optional[Decimal] | Payment received by the performer. |
tasks |
Optional[List[Task]] | Data for the tasks. |
automerged |
Optional[bool] | Flag of the response received as a result of merging identical tasks. Value:
|
created |
Optional[datetime] | The date and time when the task suite was assigned to a performer. |
submitted |
Optional[datetime] | The date and time when the task suite was completed by a performer. |
accepted |
Optional[datetime] | The date and time when the responses for the task suite were accepted by the requester. |
rejected |
Optional[datetime] | The date and time when the responses for the task suite were rejected by the requester. |
skipped |
Optional[datetime] | The date and time when the task suite was skipped by the performer. |
expired |
Optional[datetime] | The date and time when the time for completing the task suite expired. |
first_declined_solution_attempt |
Optional[List[Solution]] | For training tasks. The performer's first responses in the training task (only if these were the wrong answers). If the performer answered correctly on the first try, the first_declined_solution_attempt array is omitted. Arrays with the responses (output_values) are arranged in the same order as the task data in the tasks array. |
solutions |
Optional[List[Solution]] | performer responses. Arranged in the same order as the data for tasks in the tasks array. |
mixed |
Optional[bool] | Type of operation for creating a task suite:
|
public_comment |
Optional[str] | Public comment about an assignment. Why it was accepted or rejected. |