OpenAIFileListResponse

@Serializable
data class OpenAIFileListResponse(val data: List<OpenAIFileObject>, val obj: String = "list", val firstId: String? = null, val hasMore: Boolean, val lastId: String? = null) : AIFileListResult<OpenAIFileObject> , Mapper<ApiFilesList>

Response containing a list of files uploaded to the OpenAI Files API.

Constructors

Link copied to clipboard
constructor(data: List<OpenAIFileObject>, obj: String = "list", firstId: String? = null, hasMore: Boolean, lastId: String? = null)

Properties

Link copied to clipboard

The list of uploaded files.

Link copied to clipboard
open override val files: List<OpenAIFileObject>
Link copied to clipboard
@SerialName(value = "first_id")
val firstId: String?

The ID of the first file in the list, if any.

Link copied to clipboard
@SerialName(value = "has_more")
val hasMore: Boolean

Whether there are more files available beyond this page.

Link copied to clipboard
@SerialName(value = "last_id")
val lastId: String?

The ID of the last file in the list, if any.

Link copied to clipboard
@SerialName(value = "object")
val obj: String

The object type (always "list").

Functions

Link copied to clipboard
Link copied to clipboard
open operator override fun iterator(): Iterator<OpenAIFileObject>
Link copied to clipboard
open override fun map(): ApiFilesList
Link copied to clipboard

Returns a human-readable description of all uploaded files.

Link copied to clipboard