> ## 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.

# Edit - Go SDK

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

### EditClearToolUses20250919

```go lines theme={null}
edit := components.CreateEditClearToolUses20250919(components.EditClearToolUses20250919{/* values here */})
```

### EditClearThinking20251015

```go lines theme={null}
edit := components.CreateEditClearThinking20251015(components.EditClearThinking20251015{/* values here */})
```

### EditCompact20260112

```go lines theme={null}
edit := components.CreateEditCompact20260112(components.EditCompact20260112{/* values here */})
```

## Union Discrimination

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

```go lines theme={null}
switch edit.Type {
	case components.EditTypeClearToolUses20250919:
		// edit.EditClearToolUses20250919 is populated
	case components.EditTypeClearThinking20251015:
		// edit.EditClearThinking20251015 is populated
	case components.EditTypeCompact20260112:
		// edit.EditCompact20260112 is populated
}
```
