Exception: RubyLLM::Agents::UnsupportedProviderError

Inherits:
Error
  • Object
show all
Defined in:
lib/ruby_llm/agents/core/errors.rb

Overview

Raised when a TTS provider is not supported

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, provider: nil) ⇒ UnsupportedProviderError

Returns a new instance of UnsupportedProviderError.



23
24
25
26
# File 'lib/ruby_llm/agents/core/errors.rb', line 23

def initialize(message = nil, provider: nil)
  @provider = provider
  super(message || "Provider :#{provider} is not supported for this operation")
end

Instance Attribute Details

#providerObject (readonly)

Returns the value of attribute provider.



21
22
23
# File 'lib/ruby_llm/agents/core/errors.rb', line 21

def provider
  @provider
end