ApiFile

data class ApiFile(val id: String, val name: String, val mimeType: MimeType, val sizeBytes: Long, val createdAt: Long, val expiresAt: Long? = null) : AIFileResult

Provider-agnostic file object.

Constructors

Link copied to clipboard
constructor(id: String, name: String, mimeType: MimeType, sizeBytes: Long, createdAt: Long, expiresAt: Long? = null)

Properties

Link copied to clipboard

Unix timestamp (in milliseconds) when the file was created.

Link copied to clipboard
Link copied to clipboard

Unix timestamp (in milliseconds) when the file expires, if applicable.

Link copied to clipboard

expiresAt as an Instant, or null if the file never expires.

Link copied to clipboard
open override val id: String

The unique file identifier.

Link copied to clipboard

The detected MIME type.

Link copied to clipboard

The name of the file.

Link copied to clipboard

The file size in bytes.