Anthropic::File
Inherits JSON::Serializable < Struct < Value < Object
File uploaded to the Anthropic API.
Constructors
new(id : String, filename : String, size_bytes : Int64, created_at : String, type : String = "file", mime_type : String | Nil = nil, downloadable : Bool | Nil = nil)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
created_at
Sourcedownloadable
Sourcefilename
Sourceid
Sourcemime_type
Sourcesize_bytes
Sourcetype
Source