struct Anthropic::Image

Defined in:

message_content.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor methods inherited from struct Anthropic::TextOrImageContent

new(pull : JSON::PullParser) new

Instance methods inherited from struct Anthropic::MessageContent

cache_control : CacheControl | Nil cache_control, type : String type

Constructor methods inherited from struct Anthropic::MessageContent

new(pull : JSON::PullParser) new

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, type : Source::Type, media_type : Source::MediaType, data : String, cache_control = nil) #

[View source]

Class Method Detail

def self.base64(media_type : Source::MediaType, data : String, cache_control : CacheControl | Nil = nil) #

[View source]

Instance Method Detail

def source : Source #

[View source]
def type : String #

[View source]