Toloka documentation

AssessmentEvent

toloka.client.conditions.AssessmentEvent | Source code

AssessmentEvent(
    self,
    operator: IdentityOperator,
    value: Union[Type, str, None] = None
)

Assessment of the assignment changes its status to the specified one

This condition can work only with compare operator '=='.

Parameters Description

Parameters Type Description
value Optional[Type]

Possible values:

  • conditions.AssessmentEvent.ACCEPT
  • conditions.AssessmentEvent.ACCEPT_AFTER_REJECT
  • conditions.AssessmentEvent.REJECT

Examples:

How to increase task overlap when you reject assignment in delayed mode.

new_pool = toloka.pool.Pool(....)
new_pool.quality_control.add_action(
    collector=toloka.collectors.AssignmentsAssessment(),
    conditions=[toloka.conditions.AssessmentEvent == toloka.conditions.AssessmentEvent.REJECT],
    action=toloka.actions.ChangeOverlap(delta=1, open_pool=True),
)