AsUnion returns a [RepoDirectoryListResponseFilesUnion] interface which you can.
func (r RepoDirectoryListResponseFile) AsUnion() RepoDirectoryListResponseFilesUnionAsUnion returns a [RepoDirectoryListResponseFilesUnion] interface which you can cast to the specific types for more type safety.
Possible runtime types of the union are [FileEntry], [RepoDirectoryListResponseFilesDirectoryAgentEntryOutput], [RepoDirectoryListResponseFilesDirectorySkillEntryOutput].