ImageContent

@Serializable
data class ImageContent(val data: String, val mimeType: String) : PromptMessageContentTextOrImage(source)

An image provided to or from an LLM.

Constructors

Link copied to clipboard
constructor(data: String, mimeType: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The base64-encoded image data.

Link copied to clipboard

The MIME type of the image. Different providers may support different image types.

Link copied to clipboard
open override val type: String