AssessmentEvent

toloka.client.conditions.AssessmentEvent | Source code

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

An assignment status change event.

Possible values:

  • ACCEPT — An assignment was accepted.
  • ACCEPT_AFTER_REJECT — An assignment with the previously set REJECTED status was accepted.
  • REJECT — An assignment was rejected.

AssessmentEvent condition can be used with the == operator only.

AssessmentEvent is used with collectors:

Examples:

The example shows how to automatically increase the overlap of a task suite when an assignment was rejected.

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

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