Supported Types
SpeechInputReferenceAudio
SpeechInputReferenceText
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.
speechInputReference := components.CreateSpeechInputReferenceInputAudio(components.SpeechInputReferenceAudio{/* values here */})
speechInputReference := components.CreateSpeechInputReferenceText(components.SpeechInputReferenceText{/* values here */})
Type field to determine which variant is active, then access the corresponding field:
switch speechInputReference.Type {
case components.SpeechInputReferenceTypeInputAudio:
// speechInputReference.SpeechInputReferenceAudio is populated
case components.SpeechInputReferenceTypeText:
// speechInputReference.SpeechInputReferenceText is populated
}