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.
providerPreferencesSort := components.CreateProviderPreferencesSortProviderSort(components.ProviderSort{/* values here */})
providerPreferencesSort := components.CreateProviderPreferencesSortProviderSortConfig(components.ProviderSortConfig{/* values here */})
Type field to determine which variant is active, then access the corresponding field:
switch providerPreferencesSort.Type {
case components.ProviderPreferencesSortTypeProviderSort:
// providerPreferencesSort.ProviderSort is populated
case components.ProviderPreferencesSortTypeProviderSortConfig:
// providerPreferencesSort.ProviderSortConfig is populated
}