Use the Type field to determine which variant is active, then access the corresponding field:
switch inputsContent1.Type { case components.InputsContent1TypeOutputText: // inputsContent1.ResponseOutputText is populated case components.InputsContent1TypeRefusal: // inputsContent1.OpenAIResponsesRefusalContent is populated}
⌘I
Assistant
Responses are generated using AI and may contain mistakes.