Attachment

data class Attachment @JvmOverloads constructor(val source: AttachmentSource, val cacheControl: CacheControl? = null) : MessagePart.ContentPart(source)

Attachment content part of the message.

Constructors

Link copied to clipboard
constructor(source: AttachmentSource, cacheControl: CacheControl? = null)

Properties

Link copied to clipboard
open override val cacheControl: CacheControl?

Optional cache-control directive for the provider's prompt-caching feature.

Link copied to clipboard

The attachment source.