Use the Type field to determine which variant is active, then access the corresponding field:
switch fileDeleteResponse.Type { case components.FileDeleteResponseTypeAnthropic: // fileDeleteResponse.AnthropicFileDeleted is populated case components.FileDeleteResponseTypeOpenai: // fileDeleteResponse.OpenAIFileDeleted is populated case components.FileDeleteResponseTypeOpenrouter: // fileDeleteResponse.OpenRouterFileDeleted is populated default: // Unknown type - use fileDeleteResponse.GetUnknownRaw() for raw JSON}
⌘I
Assistant
Responses are generated using AI and may contain mistakes.