Supported Types
AnthropicFileDeleted
OpenAIFileDeleted
OpenRouterFileDeleted
Union Discrimination
Use theType field to determine which variant is active, then access the corresponding field:
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
fileDeleteResponse := components.CreateFileDeleteResponseAnthropic(components.AnthropicFileDeleted{/* values here */})
fileDeleteResponse := components.CreateFileDeleteResponseOpenai(components.OpenAIFileDeleted{/* values here */})
fileDeleteResponse := components.CreateFileDeleteResponseOpenrouter(components.OpenRouterFileDeleted{/* values here */})
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
}