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.
batchProviderPreferencesOnly := components.CreateBatchProviderPreferencesOnlyProviderName(components.ProviderName{/* values here */})
batchProviderPreferencesOnly := components.CreateBatchProviderPreferencesOnlyStr(string{/* values here */})
Type field to determine which variant is active, then access the corresponding field:
switch batchProviderPreferencesOnly.Type {
case components.BatchProviderPreferencesOnlyTypeProviderName:
// batchProviderPreferencesOnly.ProviderName is populated
case components.BatchProviderPreferencesOnlyTypeStr:
// batchProviderPreferencesOnly.Str is populated
}