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

# Keep - Go SDK

> Keep 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

### AnthropicThinkingTurns

```go lines theme={null}
keep := components.CreateKeepAnthropicThinkingTurns(components.AnthropicThinkingTurns{/* values here */})
```

### KeepAll

```go lines theme={null}
keep := components.CreateKeepKeepAll(components.KeepAll{/* values here */})
```

### KeepEnum

```go lines theme={null}
keep := components.CreateKeepKeepEnum(components.KeepEnum{/* values here */})
```

## Union Discrimination

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

```go lines theme={null}
switch keep.Type {
	case components.KeepUnionTypeAnthropicThinkingTurns:
		// keep.AnthropicThinkingTurns is populated
	case components.KeepUnionTypeKeepAll:
		// keep.KeepAll is populated
	case components.KeepUnionTypeKeepEnum:
		// keep.KeepEnum is populated
}
```
