> ## Documentation Index > Fetch the complete documentation index at: https://openrouter.ai/docs/llms.txt > Use this file to discover all available pages before exploring further. # InputsUnion Input for a response request - can be a string or array of items ## Supported Types ### ```go theme={null} inputsUnion := components.CreateInputsUnionStr(string{/* values here */}) ``` ### ```go theme={null} inputsUnion := components.CreateInputsUnionArrayOfInputsUnion1([]components.InputsUnion1{/* values here */}) ``` ## Union Discrimination Use the `Type` field to determine which variant is active, then access the corresponding field: ```go theme={null} switch inputsUnion.Type { case components.InputsUnionTypeStr: // inputsUnion.Str is populated case components.InputsUnionTypeArrayOfInputsUnion1: // inputsUnion.ArrayOfInputsUnion1 is populated } ```