Toloka documentation

AppItem

toloka.client.app.AppItem | Source code

AppItem(
    self,
    *,
    batch_id: Optional[str] = None,
    input_data: Optional[Dict[str, Any]] = None,
    id: Optional[str] = None,
    app_project_id: Optional[str] = None,
    status: Union[Status, str, None] = None,
    output_data: Optional[Dict[str, Any]] = None,
    errors: Optional[List[_AppError]] = None,
    created_at: Optional[datetime] = None,
    started_at: Optional[datetime] = None,
    finished_at: Optional[datetime] = None
)

A task item.

Items are uploaded to Toloka and are grouped in batches. After uploading the status of items is set to NEW. Items with that status can be edited. Then entire batches are sent for labeling.

Parameters Description

Parameters Type Description
id Optional[str]

The ID of the item.

app_project_id Optional[str]

The ID of the project that contains the item.

batch_id Optional[str]

The ID of the batch that contains the item.

input_data Optional[Dict[str, Any]]

Input data. It must follow the solution schema described in App.input_spec.

status Optional[Status]

The item status:

  • NEW — The item is uploaded to Toloka and ready for processing.
  • PROCESSING — The item is being processed by Tolokers.
  • COMPLETED — Item annotation is completed.
  • ERROR — An error occurred during processing.
  • CANCELLED — Item processing cancelled.
  • ARCHIVE — The item is archived.
  • NO_MONEY — There are not enough money for processing.
output_data Optional[Dict[str, Any]]

Annotated data.

errors Optional[List[_AppError]]

Errors occurred during annotation.

created_at Optional[datetime]

The date and time when the item was created.

started_at Optional[datetime]

The date and time when the item processing started.

finished_at Optional[datetime]

The date and time when the item processing was completed.