class RubyLLM::Deprecator
Owns RubyLLM deprecation warnings so applications and tests can decide how aggressively to handle compatibility paths.
Public Instance Methods
# File lib/ruby_llm/deprecator.rb, line 18 def deprecate(name, replacement:, removal:) warn("#{name} is deprecated and will be removed in RubyLLM #{removal}. Use #{replacement} instead.") end
Source
# File lib/ruby_llm/deprecator.rb, line 7 def warn(message) case RubyLLM.config.deprecation_behavior when :silence nil when :raise raise DeprecationError, message else RubyLLM.logger.warn(message) end end