struct Anthropic::Image
Defined in:
message_content.crConstructors
- .new(pull : JSON::PullParser)
- .new(*, type : Source::Type, media_type : Source::MediaType, data : String, cache_control = nil)
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(*, type : Source::Type, media_type : Source::MediaType, data : String, cache_control = nil)
#
Class Method Detail
def self.base64(media_type : Source::MediaType, data : String, cache_control : CacheControl | Nil = nil)
#