Type - Go SDK
Type - Go SDK
Type type definition
The Go SDK and docs are currently in beta. Report issues on GitHub.
Supported Types
OpenAIResponsesToolChoiceTypeWebSearchPreview20250311
OpenAIResponsesToolChoiceTypeWebSearchPreview
Union Discrimination
Use the Type field to determine which variant is active, then access the corresponding field: