Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/anthropic/helpers/messages.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]
#
Expand Down Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion lib/anthropic/helpers/streaming/message_stream.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down