struct

Anthropic::ImageContent

Inherits JSON::Serializable < Struct < Value < Object

Image content block

Constructors

base64(media_type : String, data : String, cache_control : CacheControl | Nil = nil) : self

Factory method for base64 images

Source
new(source : ImageSource, cache_control : CacheControl | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
url(url : String, cache_control : CacheControl | Nil = nil) : self

Factory method for URL images

Source

Instance methods

cache_control
Source
source
Source
type
Source