Toloka documentation

TrainingSearchRequest

toloka.client.search_requests.TrainingSearchRequest | Source code

TrainingSearchRequest(
    self,
    status: Optional[Training.Status] = None,
    project_id: Optional[str] = None,
    id_lt: Optional[str] = None,
    id_lte: Optional[str] = None,
    id_gt: Optional[str] = None,
    id_gte: Optional[str] = None,
    created_lt: Optional[datetime] = None,
    created_lte: Optional[datetime] = None,
    created_gt: Optional[datetime] = None,
    created_gte: Optional[datetime] = None,
    last_started_lt: Optional[datetime] = None,
    last_started_lte: Optional[datetime] = None,
    last_started_gt: Optional[datetime] = None,
    last_started_gte: Optional[datetime] = None
)

Parameters for searching training pools

Parameters Description

Parameters Type Description
status Optional[Training.Status]

Training pool status:

  • OPEN
  • CLOSED
  • ARCHIVED
  • LOCKED

project_id Optional[str]

ID of the project to which the training pool is attached.

id_lt Optional[str]

Training pools with an ID less than the specified value.

id_lte Optional[str]

Training pools with an ID less than or equal to the specified value.

id_gt Optional[str]

Training pools with an ID greater than the specified value.

id_gte Optional[str]

Training pools with an ID greater than or equal to the specified value.

created_lt Optional[datetime]

Training pools created before the specified date.

created_lte Optional[datetime]

Training pools created before or on the specified date.

created_gt Optional[datetime]

Training pools created after the specified date.

created_gte Optional[datetime]

Training pools created after or on the specified date.

last_started_lt Optional[datetime]

Training pools that were last opened before the specified date.

last_started_lte Optional[datetime]

Training pools that were last opened on or before the specified date.

last_started_gt Optional[datetime]

Training pools that were last opened after the specified date.

last_started_gte Optional[datetime]

Training pools that were last opened on or after the specified date.