Toloka documentation

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,
    bonus_ids: Optional[List[str]] = 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,
    owner: Optional[Owner] = None,
    public_comment: Optional[str] = None
)

Information about an assigned task suite.

Parameters Description

Parameters Type Description
id Optional[str]

The ID of the assignment.

task_suite_id Optional[str]

The ID of the assigned task suite.

pool_id Optional[str]

The ID of the pool containing the task suite.

user_id Optional[str]

The ID of the Toloker who was assigned the task suite.

status Optional[Status]

Status of the assignment.

  • ACTIVE — The task suite is assigned but it isn't completed yet.
  • SUBMITTED — The task suite is completed but it isn't checked.
  • ACCEPTED — The task suite is accepted by the requester.
  • REJECTED — The task suite is rejected by the requester.
  • SKIPPED — The task suite is skipped by the Toloker.
  • EXPIRED — Time for completing the tasks has expired.
reward Optional[Decimal]

Payment received by the Toloker.

bonus_ids Optional[List[str]]

IDs of rewards issued for the task.

tasks Optional[List[Task]]

Data for the tasks.

automerged Optional[bool]

Flag of the response received as a result of merging identical tasks. Value:

  • True — The response was recorded when identical tasks were merged.
  • False — Normal Toloker response.
created Optional[datetime]

The date and time when the task suite was assigned to a Toloker.

submitted Optional[datetime]

The date and time when the task suite was completed by a Toloker.

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 Toloker.

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 Toloker's first responses in the training task (only if these were the wrong answers). If the Toloker 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]]

Toloker 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:

  • True — Smart mixing was used.
  • False — The tasks were grouped manually, smart mixing was not used.
owner Optional[Owner]

Properties of Requester.

public_comment Optional[str]

A public comment that is set when accepting or rejecting the assignment.