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

# ContentPartAddedEventPart - Go SDK

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

### ResponseOutputText

```go lines theme={null}
contentPartAddedEventPart := components.CreateContentPartAddedEventPartOutputText(components.ResponseOutputText{/* values here */})
```

### ReasoningTextContent

```go lines theme={null}
contentPartAddedEventPart := components.CreateContentPartAddedEventPartReasoningText(components.ReasoningTextContent{/* values here */})
```

### OpenAIResponsesRefusalContent

```go lines theme={null}
contentPartAddedEventPart := components.CreateContentPartAddedEventPartRefusal(components.OpenAIResponsesRefusalContent{/* values here */})
```

## Union Discrimination

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

```go lines theme={null}
switch contentPartAddedEventPart.Type {
	case components.ContentPartAddedEventPartTypeOutputText:
		// contentPartAddedEventPart.ResponseOutputText is populated
	case components.ContentPartAddedEventPartTypeReasoningText:
		// contentPartAddedEventPart.ReasoningTextContent is populated
	case components.ContentPartAddedEventPartTypeRefusal:
		// contentPartAddedEventPart.OpenAIResponsesRefusalContent is populated
	default:
		// Unknown type - use contentPartAddedEventPart.GetUnknownRaw() for raw JSON
}
```
