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 | 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 |
status | Optional[Status] | The item status:
|
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. |
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