Exception: RubyLLM::Agents::Reliability::AllModelsExhaustedError
- Inherits:
-
Error
- Object
- StandardError
- Error
- RubyLLM::Agents::Reliability::AllModelsExhaustedError
- Defined in:
- lib/ruby_llm/agents/infrastructure/reliability.rb
Overview
Raised when all models in the fallback chain have been exhausted
Instance Attribute Summary collapse
- #attempts ⇒ Object readonly
- #errors ⇒ Object readonly
- #last_error ⇒ Object readonly
- #models_tried ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(models_tried, last_error, attempts: nil) ⇒ AllModelsExhaustedError
constructor
A new instance of AllModelsExhaustedError.
Constructor Details
#initialize(models_tried, last_error, attempts: nil) ⇒ AllModelsExhaustedError
Returns a new instance of AllModelsExhaustedError.
96 97 98 99 100 101 102 |
# File 'lib/ruby_llm/agents/infrastructure/reliability.rb', line 96 def initialize(models_tried, last_error, attempts: nil) @models_tried = models_tried @last_error = last_error @attempts = attempts @errors = build_errors super() end |
Instance Attribute Details
#attempts ⇒ Object (readonly)
91 92 93 |
# File 'lib/ruby_llm/agents/infrastructure/reliability.rb', line 91 def attempts @attempts end |
#errors ⇒ Object (readonly)
91 92 93 |
# File 'lib/ruby_llm/agents/infrastructure/reliability.rb', line 91 def errors @errors end |
#last_error ⇒ Object (readonly)
91 92 93 |
# File 'lib/ruby_llm/agents/infrastructure/reliability.rb', line 91 def last_error @last_error end |
#models_tried ⇒ Object (readonly)
91 92 93 |
# File 'lib/ruby_llm/agents/infrastructure/reliability.rb', line 91 def models_tried @models_tried end |