RefComponent

toloka.client.project.template_builder.base.RefComponent | Source code

RefComponent(self, ref: Optional[str] = None)

A reference to a component.

Pass to the RefComponent constructor a path in the Template Builder component hierarchy.

For more information, see Reuse code.

Examples:

from toloka.client.project.template_builder import *
tb_config = TemplateBuilder(
vars = {
'0' : InputData('question'),
'1' : OutputData('answer')
},
view = TextFieldV1(
data = RefComponent('vars.1'),
label = RefComponent('vars.0')
)
)

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