Supported Types
InputText
InputImage
InputFile
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.
variables := components.CreateVariablesStr(string{/* values here */})
variables := components.CreateVariablesInputText(components.InputText{/* values here */})
variables := components.CreateVariablesInputImage(components.InputImage{/* values here */})
variables := components.CreateVariablesInputFile(components.InputFile{/* values here */})
Type field to determine which variant is active, then access the corresponding field:
switch variables.Type {
case components.VariablesTypeStr:
// variables.Str is populated
case components.VariablesTypeInputText:
// variables.InputText is populated
case components.VariablesTypeInputImage:
// variables.InputImage is populated
case components.VariablesTypeInputFile:
// variables.InputFile is populated
}