Toloka documentation

SetSkill

toloka.client.actions.SetSkill | Source code

SetSkill(
    self,
    *,
    skill_id: Optional[str] = None,
    skill_value: Optional[int] = None
)

Sets Toloker's skill value.

Parameters Description

Parameters Type Description
skill_id Optional[str]

The ID of the skill.

skill_value Optional[int]

The new value of the skill.

Examples:

When an answer is accepted, the Toloker gets a skill. Later you can filter Tolokers by that skill.

new_pool = toloka.pool.Pool(....)
new_pool.quality_control.add_action(
    collector=toloka.collectors.AnswerCount(),
    conditions=[toloka.conditions.AssignmentsAcceptedCount > 0],
    action=toloka.actions.SetSkill(skill_id=some_skill_id, skill_value=1),
)