Supported Types
ProviderSort
ProviderSortConfig
Union Discrimination
Use theType field to determine which variant is active, then access the corresponding field:
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
imageGenerationProviderPreferencesSort := components.CreateImageGenerationProviderPreferencesSortProviderSort(components.ProviderSort{/* values here */})
imageGenerationProviderPreferencesSort := components.CreateImageGenerationProviderPreferencesSortProviderSortConfig(components.ProviderSortConfig{/* values here */})
Type field to determine which variant is active, then access the corresponding field:
switch imageGenerationProviderPreferencesSort.Type {
case components.ImageGenerationProviderPreferencesSortTypeProviderSort:
// imageGenerationProviderPreferencesSort.ProviderSort is populated
case components.ImageGenerationProviderPreferencesSortTypeProviderSortConfig:
// imageGenerationProviderPreferencesSort.ProviderSortConfig is populated
}