Image

@SerialName(value = "image")
data class Image(val source: ImageSource) : AnthropicContent(source)

Represents an image content type within the AnthropicContent hierarchy. This class is used to encapsulate image data, which can be sourced in different ways, such as via URLs or base64-encoded strings.

Constructors

Link copied to clipboard
constructor(source: ImageSource)

Properties

Link copied to clipboard

The source of the image data.