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

ParametersTypeDescription
idOptional[str]

The ID of the item.

app_project_idOptional[str]

The ID of the project that contains the item.

batch_idOptional[str]

The ID of the batch that contains the item.

input_dataOptional[Dict[str, Any]]

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

statusOptional[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_dataOptional[Dict[str, Any]]

Annotated data.

errorsOptional[List[_AppError]]

Errors occurred during annotation.

created_atOptional[datetime]

The date and time when the item was created.

started_atOptional[datetime]

The date and time when the item processing started.

finished_atOptional[datetime]

The date and time when the item processing was completed.

Examples:

item = toloka_client.get_app_item(app_project_id='Q2d15QBjpwWuDz8Z321g', app_item_id='V40aPPA2j64TORQyY54Z')
print(item.input_data)
print(item.output_data)

Last updated: August 28, 2023

Toloka-Kit
OverviewGetting API keyQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming