Automatically handles tool execution loop changedcli-sdks-libraries/sdks/ruby
Nearest release: v2.1.309, published 3 hours before 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+2added
Lines−2removed
From line
236
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 236, old and new numbered
/
from line 236
236236anthropic = Anthropic::Client.new
237237require "pathname"
238238
239# Use `Pathname` to send the filename, avoid paging a large file into memory, or both:
239# Use `Pathname` to send the file name, avoid paging a large file into memory, or both:
240240file_metadata = anthropic.files.upload(file: Pathname("/path/to/file"))
241241
242242# Alternatively, pass file contents or a `StringIO` directly:
243243file_metadata = anthropic.files.upload(file: File.read("/path/to/file"))
244244
245# Or, to control the filename, the content type, or both:
245# Or, to control the file name, the content type, or both:
246246file = Anthropic::FilePart.new(File.read("/path/to/file"), filename: "/path/to/file", content_type: "...")
247247file_metadata = anthropic.files.upload(file: file)
248248
No line in this hunk matches that.