Anthropic::FileSource
Inherits JSON::Serializable < Struct < Value < Object
File-based document source (references uploaded file by ID)
# Upload a file first
file = client.beta.files.upload(Path["document.pdf"])
# Reference it in a message
source = Anthropic::FileSource.new(file.id)
Constructors
new(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
file_id
Sourcetype
Source