Toloka documentation

add_action

toloka.client.quality_control.QualityControl.add_action | Source code

add_action(
    self,
    collector: CollectorConfig,
    action: RuleAction,
    conditions: List[RuleCondition]
)

Adds new QualityControlConfig to QualityControl object. Usually in pool.

See example in QualityControl class.

Parameters Description

Parameters Type Description
collector CollectorConfig

Parameters for collecting statistics (for example, the number of task skips in the pool).

action RuleAction

Action if conditions are met (for example, close access to the project).

conditions List[RuleCondition]

Conditions (for example, skipping 10 sets of tasks in a row).