Supported Types
ProviderName
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.
imageGenerationProviderPreferencesOnly := components.CreateImageGenerationProviderPreferencesOnlyProviderName(components.ProviderName{/* values here */})
imageGenerationProviderPreferencesOnly := components.CreateImageGenerationProviderPreferencesOnlyStr(string{/* values here */})
Type field to determine which variant is active, then access the corresponding field:
switch imageGenerationProviderPreferencesOnly.Type {
case components.ImageGenerationProviderPreferencesOnlyTypeProviderName:
// imageGenerationProviderPreferencesOnly.ProviderName is populated
case components.ImageGenerationProviderPreferencesOnlyTypeStr:
// imageGenerationProviderPreferencesOnly.Str is populated
}