Url

@Serializable
@SerialName(value = "url")
data class Url(val url: String, val mediaType: String) : Attachment

A file that the model's API downloads from url.

Constructors

Link copied to clipboard
constructor(url: String, mediaType: String)

Properties

Link copied to clipboard
open override val mediaType: String

the media type of the file, such as image/png or application/pdf.

Link copied to clipboard
val url: String

the address of the file, which the API of the model must be able to reach.