struct

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)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

created_at
Source
downloadable
Source
filename
Source
mime_type
Source
size_bytes
Source
type
Source