struct

Anthropic::Content::ImageData

Inherits Anthropic::Content::Data < Struct < Value < Object

Image content data.

Constants

SUPPORTED_MEDIA_TYPES = ["image/jpeg", "image/png", "image/gif", "image/webp"] of ::String

Constructors

new(media_type : String, data : String)
Source
new(source : ImageSource)
Source

Instance methods

content_type
Source
data(*args, **options)
Source
data(*args, **options, &)
Source
media_type(*args, **options)
Source
media_type(*args, **options, &)
Source
source
Source
to_content_json(json : JSON::Builder) : Nil
Source