core.models:GuiField()
Wrap pydantic.Field to simplify GUI hints.
Usage
core.models:GuiField(
default=...,
*,
decimals=None,
ui_type=None,
**kwargs,
)Parameters
default: Any = …-
The default value for the field.
decimals: int = None-
The number of decimals to display for float values.
ui_type: str = None-
The GUI hint for the field (e.g., ‘scifloat’, ‘file’, ‘folder’, ‘visa_resource’).
**kwargs- Additional arguments passed to pydantic.Field.