> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-mintlify-7021d5f4.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# InputsUnion - Go SDK

> InputsUnion type definition

<Warning>
  The Go SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/go-sdk/issues).
</Warning>

Input for a response request - can be a string or array of items

## Supported Types

###

```go lines theme={null}
inputsUnion := components.CreateInputsUnionStr(string{/* values here */})
```

###

```go lines 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 lines theme={null}
switch inputsUnion.Type {
	case components.InputsUnionTypeStr:
		// inputsUnion.Str is populated
	case components.InputsUnionTypeArrayOfInputsUnion1:
		// inputsUnion.ArrayOfInputsUnion1 is populated
}
```
