ListMessageFilesResponse

data class ListMessageFilesResponse(val data: List<MessageFile>, val firstId: String?, val lastId: String?, val hasMore: Boolean)

A data class which represents a response from the OpenAI API containing a list of MessageFiles.

When the list is empty, firstId and lastId will be null.

Constructors

Link copied to clipboard
constructor(data: List<MessageFile>, firstId: String?, lastId: String?, hasMore: Boolean)

Properties

Link copied to clipboard

The list of MessageFiles

Link copied to clipboard

The ID of the first MessageFile in the list, or null

Link copied to clipboard

Whether there are more MessageFiles to retrieve from the API

Link copied to clipboard

The ID of the last MessageFile in the list, or null