toloka.client.actions.SetSkill
| Source code
SetSkill( self, *, skill_id: Optional[str] = None, skill_value: Optional[int] = None)
Sets Toloker's skill value.
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.client.pool.Pool()new_pool.quality_control.add_action( collector=toloka.client.collectors.AnswerCount(), conditions=[toloka.client.conditions.AssignmentsAcceptedCount > 0], action=toloka.client.actions.SetSkill(skill_id='11294', skill_value=1),)
Last updated: August 28, 2023