CreateRerankResponse - Go SDK

CreateRerankResponse type definition

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

Supported Types

CreateRerankResponseBody

1createRerankResponse := operations.CreateCreateRerankResponseCreateRerankResponseBody(operations.CreateRerankResponseBody{/* values here */})

1createRerankResponse := operations.CreateCreateRerankResponseStr(string{/* values here */})

Union Discrimination

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

1switch createRerankResponse.Type {
2 case operations.CreateRerankResponseTypeCreateRerankResponseBody:
3 // createRerankResponse.CreateRerankResponseBody is populated
4 case operations.CreateRerankResponseTypeStr:
5 // createRerankResponse.Str is populated
6}