Module: LLM::Schema::Utils Private
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #resolve(schema, type) ⇒ Object private
Instance Method Details
#resolve(schema, type) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
56 57 58 59 60 61 62 63 64 65 |
# File 'lib/llm/schema.rb', line 56 def resolve(schema, type) if LLM::Schema::Leaf === type type elsif Class === type && type.respond_to?(:object) type.object else target = type.name.split("::").last.downcase schema.public_send(target) end end |