Use the Type field to determine which variant is active, then access the corresponding field:
switch createRerankResponse.Type { case operations.CreateRerankResponseTypeCreateRerankResponseBody: // createRerankResponse.CreateRerankResponseBody is populated case operations.CreateRerankResponseTypeStr: // createRerankResponse.Str is populated}
⌘I
Assistant
Responses are generated using AI and may contain mistakes.