Supported Types
ContentPartAudio
ContentPartImage
ContentPartVideo
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.
inputReference := components.CreateInputReferenceAudioURL(components.ContentPartAudio{/* values here */})
inputReference := components.CreateInputReferenceImageURL(components.ContentPartImage{/* values here */})
inputReference := components.CreateInputReferenceVideoURL(components.ContentPartVideo{/* values here */})
Type field to determine which variant is active, then access the corresponding field:
switch inputReference.Type {
case components.InputReferenceTypeAudioURL:
// inputReference.ContentPartAudio is populated
case components.InputReferenceTypeImageURL:
// inputReference.ContentPartImage is populated
case components.InputReferenceTypeVideoURL:
// inputReference.ContentPartVideo is populated
}