From d24c802966587569729b6edc68a5aa800f2873c9 Mon Sep 17 00:00:00 2001 From: Frank Goldfish Date: Tue, 17 Mar 2026 19:28:06 -0700 Subject: [PATCH 1/2] docs: fix Symbol typo in RDoc comments 'Sybmol' was misspelled in three @param/@return YARD doc comments in helpers/messages.rb. Corrected to 'Symbol'. --- lib/anthropic/helpers/messages.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/anthropic/helpers/messages.rb b/lib/anthropic/helpers/messages.rb index 106453fd1..83037c563 100644 --- a/lib/anthropic/helpers/messages.rb +++ b/lib/anthropic/helpers/messages.rb @@ -9,7 +9,7 @@ class << self # Extract tool models from the request and convert them to JSON Schema # Returns a hash mapping tool name to Ruby model. # - # @param data [Hash{Sybmol=>Object}] + # @param data [Hash{Symbol=>Object}] # # @param strict [Boolean, nil] # @@ -115,13 +115,13 @@ def distill_input_schema_models!(data, strict:, is_beta: false) # @api private # - # @param raw [Hash{Sybmol=>Object}] + # @param raw [Hash{Symbol=>Object}] # # @param tools [Hash{String=>Class}] # # @param models [Hash{String=>Class}] # - # @return [Hash{Sybmol=>Object}] + # @return [Hash{Symbol=>Object}] def parse_input_schemas!(raw, tools:, models:) raw[:content]&.each do |content| case content From 6f051bef14545f64a2dff00ceb066442514880c9 Mon Sep 17 00:00:00 2001 From: Frank Goldfish Date: Tue, 17 Mar 2026 19:28:12 -0700 Subject: [PATCH 2/2] docs: remove outdated single-content-block note from accumulated_text The comment 'NOTE: Currently the API will only respond with a single content block.' has been inaccurate since extended thinking was introduced, which causes responses to contain a thinking block followed by a text block. The implementation already concatenates all text blocks correctly; only the misleading documentation note needed removing. --- lib/anthropic/helpers/streaming/message_stream.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/anthropic/helpers/streaming/message_stream.rb b/lib/anthropic/helpers/streaming/message_stream.rb index 04f7ee603..8f8d53127 100644 --- a/lib/anthropic/helpers/streaming/message_stream.rb +++ b/lib/anthropic/helpers/streaming/message_stream.rb @@ -70,7 +70,6 @@ def accumulated_message # @api public # # Returns all text content blocks concatenated into a single string. - # NOTE: Currently the API will only respond with a single content block. # # Will raise an error if no `text` content blocks were returned. # @return [String]