Skip to content

Model Selection View Model

app.domain.views.model_selection_view_model

View source code

Module for model selection view model; defines application concepts without UI or infrastructure dependencies.

See Also

Layer: Domain. Context: Defines application concepts without ui or infrastructure dependencies at this architectural boundary.

ModelSelectionViewModel dataclass

Dropdown item model for detection model selector (right panel).

ATTRIBUTE DESCRIPTION
model_id

Internal identifier used to load the model.

TYPE: str

display_name

User-facing label shown in the dropdown.

TYPE: str

provider_id

Stable provider/family identifier used for filtering.

TYPE: str

provider_display_name

User-facing provider label shown in provider pickers.

TYPE: str

Note

Instances flow from DetectionService.get_available_detection_models() to the UI dropdown, which displays display_name while keeping model_id available for the actual model selection.

Layer: Domain. Context: Represents application concepts without UI or infrastructure dependencies.

display_name: str instance-attribute

model_id: str instance-attribute

provider_display_name: str = 'All Models' class-attribute instance-attribute

provider_id: str = 'all' class-attribute instance-attribute

__init__(model_id: str, display_name: str, provider_id: str = 'all', provider_display_name: str = 'All Models') -> None