OpenAIResponseCustomToolCallOutputOutput2 - Go SDK

OpenAIResponseCustomToolCallOutputOutput2 type definition

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

Supported Types

1openAIResponseCustomToolCallOutputOutput2 := components.CreateOpenAIResponseCustomToolCallOutputOutput2Str(string{/* values here */})

1openAIResponseCustomToolCallOutputOutput2 := components.CreateOpenAIResponseCustomToolCallOutputOutput2ArrayOfOpenAIResponseCustomToolCallOutputOutput1([]components.OpenAIResponseCustomToolCallOutputOutput1{/* values here */})

Union Discrimination

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

1switch openAIResponseCustomToolCallOutputOutput2.Type {
2 case components.OpenAIResponseCustomToolCallOutputOutput2TypeStr:
3 // openAIResponseCustomToolCallOutputOutput2.Str is populated
4 case components.OpenAIResponseCustomToolCallOutputOutput2TypeArrayOfOpenAIResponseCustomToolCallOutputOutput1:
5 // openAIResponseCustomToolCallOutputOutput2.ArrayOfOpenAIResponseCustomToolCallOutputOutput1 is populated
6}