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.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

Toloka-Kit
OverviewGetting API keyQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming