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.
speechRequestOnly := components.CreateSpeechRequestOnlyProviderName(components.ProviderName{/* values here */})
speechRequestOnly := components.CreateSpeechRequestOnlyStr(string{/* values here */})
Type field to determine which variant is active, then access the corresponding field:
switch speechRequestOnly.Type {
case components.SpeechRequestOnlyTypeProviderName:
// speechRequestOnly.ProviderName is populated
case components.SpeechRequestOnlyTypeStr:
// speechRequestOnly.Str is populated
}
Was this page helpful?
Suggestions