Supported Types
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.
speechInput := components.CreateSpeechInputStr(string{/* values here */})
speechInput := components.CreateSpeechInputArrayOfSpeechTurn([]components.SpeechTurn{/* values here */})
Type field to determine which variant is active, then access the corresponding field:
switch speechInput.Type {
case components.SpeechInputTypeStr:
// speechInput.Str is populated
case components.SpeechInputTypeArrayOfSpeechTurn:
// speechInput.ArrayOfSpeechTurn is populated
}