struct

Crig::Providers::Anthropic::ImageSource

Inherits Struct < Value < Object

Constructors

base64(data : String, media_type : ImageFormat) : self
Source
from_json_value(value : JSON::Any) : self
Source
new(kind : Kind, data : String | Nil = nil, media_type : ImageFormat | Nil = nil, url : String | Nil = nil)
Source
url(url : String) : self
Source

Instance methods

data
Source
kind
Source
media_type
Source
to_json(json : JSON::Builder) : Nil
Source

Nested types