Hi Flyte Team, I noticed that in Flyte UI, workflo...
# flyte-v1-support
m
Hi Flyte Team, I noticed that in Flyte UI, workflow inputs defined as structured types (e.g.,
dataclass
) 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!
Copy code
from 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)