Supported Types
AnthropicFileList
OpenAIFileList
OpenRouterFileList
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.
fileListResponse := components.CreateFileListResponseAnthropic(components.AnthropicFileList{/* values here */})
fileListResponse := components.CreateFileListResponseOpenai(components.OpenAIFileList{/* values here */})
fileListResponse := components.CreateFileListResponseOpenrouter(components.OpenRouterFileList{/* values here */})
Type field to determine which variant is active, then access the corresponding field:
switch fileListResponse.Type {
case components.FileListResponseTypeAnthropic:
// fileListResponse.AnthropicFileList is populated
case components.FileListResponseTypeOpenai:
// fileListResponse.OpenAIFileList is populated
case components.FileListResponseTypeOpenrouter:
// fileListResponse.OpenRouterFileList is populated
default:
// Unknown type - use fileListResponse.GetUnknownRaw() for raw JSON
}