ResponsesRequestImageConfig - Go SDK

ResponsesRequestImageConfig type definition

The Go SDK and docs are currently in beta. Report issues on GitHub.

Supported Types

1responsesRequestImageConfig := components.CreateResponsesRequestImageConfigStr(string{/* values here */})

1responsesRequestImageConfig := components.CreateResponsesRequestImageConfigNumber(float64{/* values here */})

Union Discrimination

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

1switch responsesRequestImageConfig.Type {
2 case components.ResponsesRequestImageConfigTypeStr:
3 // responsesRequestImageConfig.Str is populated
4 case components.ResponsesRequestImageConfigTypeNumber:
5 // responsesRequestImageConfig.Number is populated
6}