IntegerSpec

toloka.client.project.field_spec.IntegerSpec | Source code

IntegerSpec(
self,
*,
required: Optional[bool] = True,
hidden: Optional[bool] = False,
min_value: Optional[int] = None,
max_value: Optional[int] = None,
allowed_values: Optional[List[int]] = None
)

An integer field specification.

Parameters description

ParametersTypeDescription
requiredOptional[bool]

Whether a field is required.

Default value: True.

hiddenOptional[bool]

Whether to hide an input field from Tolokers. Output fields can't be hidden.

Default value: False.

min_valueOptional[int]

The minimum value.

max_valueOptional[int]

The maximum value.

allowed_valuesOptional[List[int]]

A list of allowed values.

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