ApiFilesList

data class ApiFilesList(val files: List<ApiFile>, val nextPage: String? = null) : AIFileListResult<ApiFile>

Provider-agnostic paginated list of files.

Constructors

Link copied to clipboard
constructor(files: List<ApiFile>, nextPage: String? = null)

Properties

Link copied to clipboard
open override val files: List<ApiFile>

The list of files.

Link copied to clipboard

Pagination token for the next page, if any.

Functions

Link copied to clipboard

Returns the IDs of all files in the list.

Link copied to clipboard
open operator override fun iterator(): Iterator<ApiFile>
Link copied to clipboard
inline fun <T : AIFileResult> AIFileListResult<T>.onEachFile(block: (T) -> Unit)

Iterates over each file in the list result.

Link copied to clipboard

Returns a human-readable description of all uploaded files.