Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

Automatically handles tool execution loop changedcli-sdks-libraries/sdks/ruby

Nearest release: v2.1.301, published 5 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+9added
Lines−4removed
From line 301 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits10to this page, all time

The whole hunk

from line 301, old and new numbered
/
lines
from line 301
301301Enum parameters have a "relaxed" type, so you can either pass in enum constants or their literal value:
302302 
303303```ruby
304anthropic = Anthropic::Client.new
304305# Using the enum constants preserves the tagged type information:
305306anthropic.messages.create(
306 service_tier: Anthropic::MessageCreateParams::ServiceTier::AUTO,
307 # ...
307 max_tokens: 1024,
308 messages: [{role: "user", content: "Hello, Claude"}],
309 model: Anthropic::Model::CLAUDE_OPUS_5_5,
310 service_tier: Anthropic::MessageCreateParams::ServiceTier::AUTO
308311)
309312 
310313# Literal values are also permissible:
311314anthropic.messages.create(
312 service_tier: :auto,
313 # ...
315 max_tokens: 1024,
316 messages: [{role: "user", content: "Hello, Claude"}],
317 model: :"claude-opus-5-5",
318 service_tier: :auto
314319)
315320```
316321 
Feedback