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

# OpenAIResponsesAnnotation - Go SDK

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

### FileCitation

```go lines theme={null}
openAIResponsesAnnotation := components.CreateOpenAIResponsesAnnotationFileCitation(components.FileCitation{/* values here */})
```

### URLCitation

```go lines theme={null}
openAIResponsesAnnotation := components.CreateOpenAIResponsesAnnotationURLCitation(components.URLCitation{/* values here */})
```

### FilePath

```go lines theme={null}
openAIResponsesAnnotation := components.CreateOpenAIResponsesAnnotationFilePath(components.FilePath{/* values here */})
```

## Union Discrimination

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

```go lines theme={null}
switch openAIResponsesAnnotation.Type {
	case components.OpenAIResponsesAnnotationTypeFileCitation:
		// openAIResponsesAnnotation.FileCitation is populated
	case components.OpenAIResponsesAnnotationTypeURLCitation:
		// openAIResponsesAnnotation.URLCitation is populated
	case components.OpenAIResponsesAnnotationTypeFilePath:
		// openAIResponsesAnnotation.FilePath is populated
	default:
		// Unknown type - use openAIResponsesAnnotation.GetUnknownRaw() for raw JSON
}
```
