> ## Documentation Index > Fetch the complete documentation index at: https://openrouter.ai/docs/llms.txt > Use this file to discover all available pages before exploring further. # FileListResponse A page of files, in the negotiated shape. ## Supported Types ### AnthropicFileList ```go theme={null} fileListResponse := components.CreateFileListResponseAnthropic(components.AnthropicFileList{/* values here */}) ``` ### OpenAIFileList ```go theme={null} fileListResponse := components.CreateFileListResponseOpenai(components.OpenAIFileList{/* values here */}) ``` ### OpenRouterFileList ```go theme={null} fileListResponse := components.CreateFileListResponseOpenrouter(components.OpenRouterFileList{/* values here */}) ``` ## Union Discrimination Use the `Type` field to determine which variant is active, then access the corresponding field: ```go theme={null} 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 } ```