yera.runtime.models.input_data
Serialized values submitted in response to input requests.
Symbols
ButtonsInputData
Inherits:
SerializedInputDataA submitted button selection.
Fields
payload
type: str (required)
data_type
type: Literal['buttons'] = 'buttons'
DatePickerInputData
Inherits:
SerializedInputDataA submitted calendar date.
Fields
payload
type: str (required)
data_type
type: Literal['date_picker'] = 'date_picker'
FormInputData
Inherits:
SerializedInputDataA submitted form object, before validation against its struct.
Fields
payload
type: str (required)
data_type
type: Literal['form'] = 'form'
cancelled
type: bool = False
SerializedInputData
Inherits:
BaseModelSubclasses:
ButtonsInputData, DatePickerInputData, FormInputData, SliderInputData, TextInputData, TreeSelectorInputDataA serialized value submitted for an input request.
Fields
payload
type: str (required)
Methods
deserialise — Deserialize the payload into its declared Python value type.
SerializedInputData.deserialise
deserialise() → objectDeserialize the payload into its declared Python value type.
Returns
type: object
The Python value represented by the serialized payload.
Raises
ValueError
If the payload does not represent the declared type.
SliderInputData
Inherits:
SerializedInputDataA submitted numeric slider value.
Fields
payload
type: str (required)
data_type
type: Literal['slider'] = 'slider'
TextInputData
Inherits:
SerializedInputDataA submitted free-text value.
Fields
payload
type: str (required)
data_type
type: Literal['text'] = 'text'
TreeSelectorInputData
Inherits:
SerializedInputDataA submitted collection of tree leaf values.
Fields
payload
type: str (required)
data_type
type: Literal['tree_selector'] = 'tree_selector'
cancelled
type: bool = False