TolokaPluginV1

toloka.client.project.template_builder.plugins.TolokaPluginV1 | Source code

TolokaPluginV1(
self,
kind: Optional[TolokaPluginLayout.Kind] = None,
*,
task_width: Optional[Union[BaseComponent, float]] = None,
notifications: Optional[Union[BaseComponent, List[BaseComponent]]] = None,
version: Optional[str] = '1.0.0'
)

A plugin with extra settings for tasks in Toloka.

For more information, see plugin.toloka.

Parameters description

ParametersTypeDescription
layoutOptional[Union[BaseComponent, TolokaPluginLayout]]

Settings for the task appearance in Toloka.

notificationsOptional[Union[BaseComponent, List[BaseComponent]]]

Notifications shown at the top of the page.

Examples:

Setting the width of the task block on a page.

import toloka.client.project.template_builder as tb
task_width_plugin = tb.plugins.TolokaPluginV1(
kind='scroll',
task_width=400,
)

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