AnyConditionV1

toloka.client.project.template_builder.conditions.AnyConditionV1 | Source code

AnyConditionV1(
self,
conditions: Optional[Union[BaseComponent, List[BaseComponent]]] = None,
*,
hint: Optional[Any] = None,
version: Optional[str] = '1.0.0'
)

Checks that at least one of the child conditions is met.

If none of the conditions is met, the component returns false.

If you need all conditions to be met, use the condition.all component. You can also combine these components.

Parameters Description

ParametersTypeDescription
conditionsOptional[Union[BaseComponent, List[BaseComponent]]]

A set of conditions, at least one of which must be met.

hintOptional[Any]

Validation error message that a Toloker will see.

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