Toloka documentation

SetSkill

toloka.client.actions.SetSkill | Source code

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

Set performer skill value

Parameters Description

Parameters Type Description
skill_id Optional[str]

ID of the skill to update.

skill_value Optional[int]

The value to be assigned to the skill.

Examples:

How to mark performers completing a task so that you can filter them later in the checking project.

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),
)