mysterious-painter-66441
11/17/2025, 9:57 PMdataclass) are displayed as a single opaque field rather than expanding into individual attributes. This makes it unclear to users what values are expected for each field.
Could you advise if there’s a recommended approach to make structured inputs more user-friendly in the UI? For example, is there a way to automatically expand fields or provide schema hints for structured types?
Thanks for your help!mysterious-painter-66441
11/17/2025, 9:57 PMfrom dataclasses import dataclass
from flytekit import task, workflow
@dataclass
class TrainingConfig:
model_type: str
lr: float
batch_size: int
@task
def train(config: TrainingConfig) -> str:
return (
f"Training model={config.model_type}, "
f"lr={<http://config.lr|config.lr>}, "
f"batch_size={config.batch_size}"
)
@workflow
def training_pipeline(config: TrainingConfig) -> str:
return train(config=config)