FileContent
data class FileContent(val name: String? = null, val mimeType: String? = null, val bytes: ByteArray? = null, val uri: String? = null)(source)
Represents the content of a file, either as base64 encoded bytes or a URI.
This is a union type that can represent either:
Properties
Link copied to clipboard
The MIME type of the file (e.g., "application/pdf").
Link copied to clipboard
An optional name for the file (e.g., "document.pdf").
Link copied to clipboard
A URL pointing to the file's content. Present when representing file content via URI.