add_action

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

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

Adds a quality control rule configuration.

See an example in the description of the QualityControl class.

Parameters description

ParametersTypeDescription
collectorCollectorConfig

A collector that provides statistics.

conditionsList[RuleCondition]

Conditions based on statistics.

actionRuleAction

An action performed if all conditions are met.

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