Automatically handles tool execution loop changedcli-sdks-libraries/sdks/ruby
Nearest release: v2.1.238, published under an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+3added
Lines−3removed
From line
237
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits12to this page, all time
The whole hunk
from line 237, old and new numbered
/
from line 237
237237require "pathname"
238238
239239# Use `Pathname` to send the filename and/or avoid paging a large file into memory:
240file_metadata = anthropic.beta.files.upload(file: Pathname("/path/to/file"))
240file_metadata = anthropic.files.upload(file: Pathname("/path/to/file"))
241241
242242# Alternatively, pass file contents or a `StringIO` directly:
243file_metadata = anthropic.beta.files.upload(file: File.read("/path/to/file"))
243file_metadata = anthropic.files.upload(file: File.read("/path/to/file"))
244244
245245# Or, to control the filename and/or content type:
246246file = Anthropic::FilePart.new(File.read("/path/to/file"), filename: "/path/to/file", content_type: "...")
247file_metadata = anthropic.beta.files.upload(file: file)
247file_metadata = anthropic.files.upload(file: file)
248248
249249puts(file_metadata.id)
250250```
No line in this hunk matches that.