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

ParametersTypeDescription
skill_idOptional[str]

The ID of the skill.

skill_valueOptional[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),
)
Toloka-Kit
OverviewGetting OAuth tokenQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming