IntentDefaultsΒΆ
- class standard_e2e.dataset_utils.modality_defaults.IntentDefaults[source]ΒΆ
Bases:
ModalityDefaultsProvide default handling for the
INTENTmodality (fallback UNKNOWN).- property allowed_modalities: list[Modality]ΒΆ
Return a list of allowed modalities for this defaults handler.
- normalize(raw_value, modality)ΒΆ
Normalize a raw modality payload using the subclass implementation.
- Parameters:
- Returns:
The normalized payload produced by
_normalize.- Return type:
- Raises:
ValueError β If
modalityis not aModalityenum member or is not allowed for this defaults handler.