Skip to content
Open
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