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

# OutputCodeInterpreterCallItemOutputUnion - Go SDK

> OutputCodeInterpreterCallItemOutputUnion type definition

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

## Supported Types

### OutputImage

```go lines theme={null}
outputCodeInterpreterCallItemOutputUnion := components.CreateOutputCodeInterpreterCallItemOutputUnionImage(components.OutputImage{/* values here */})
```

### OutputLogs

```go lines theme={null}
outputCodeInterpreterCallItemOutputUnion := components.CreateOutputCodeInterpreterCallItemOutputUnionLogs(components.OutputLogs{/* values here */})
```

## Union Discrimination

Use the `Type` field to determine which variant is active, then access the corresponding field:

```go lines theme={null}
switch outputCodeInterpreterCallItemOutputUnion.Type {
	case components.OutputCodeInterpreterCallItemOutputUnionTypeImage:
		// outputCodeInterpreterCallItemOutputUnion.OutputImage is populated
	case components.OutputCodeInterpreterCallItemOutputUnionTypeLogs:
		// outputCodeInterpreterCallItemOutputUnion.OutputLogs is populated
	default:
		// Unknown type - use outputCodeInterpreterCallItemOutputUnion.GetUnknownRaw() for raw JSON
}
```
