Package-level declarations

Types

Link copied to clipboard
data class FileDeletionStatus(val id: String, val deleted: Boolean)

The returned result after attempting to delete a file.

Link copied to clipboard
interface FileHandler

Represents the handler for the files endpoint. This class holds all the actions that can be performed on a file.

Link copied to clipboard
class FileHandlerImpl(requestHelper: RequestHelper, endpoint: String) : FileHandler
Link copied to clipboard
data class FileObject(val id: String, val bytes: Int, val createdAt: Int, val fileName: String, val purpose: FilePurpose)
Link copied to clipboard

Represents the reason a file was uploaded to the OpenAI API.

Link copied to clipboard
data class ListFilesRequest

Represents a request to the list files endpoint.

Link copied to clipboard
data class ListFilesResponse(val hasMore: Boolean, val data: List<FileObject>)

Represents a response from the list files endpoint.

Link copied to clipboard

Functions

Link copied to clipboard