Exception: Legion::LLM::Errors::NoLaneAvailable
- Defined in:
- lib/legion/llm/errors.rb
Overview
request_lane returned nil on the very first try — filters/health/policy excluded everything; no dispatch was attempted. HTTP 400 semantics (caller can fix by adjusting filters). Distinct from EscalationExhausted: “nothing to call” vs “tried, failed”.
Instance Attribute Summary collapse
-
#filters ⇒ Object
readonly
Returns the value of attribute filters.
Instance Method Summary collapse
-
#initialize(filters: {}, message: nil) ⇒ NoLaneAvailable
constructor
A new instance of NoLaneAvailable.
- #retryable? ⇒ Boolean
Constructor Details
#initialize(filters: {}, message: nil) ⇒ NoLaneAvailable
Returns a new instance of NoLaneAvailable.
96 97 98 99 |
# File 'lib/legion/llm/errors.rb', line 96 def initialize(filters: {}, message: nil, **) @filters = filters super( || "no lane satisfies request filters: #{filters.inspect}") end |
Instance Attribute Details
#filters ⇒ Object (readonly)
Returns the value of attribute filters.
94 95 96 |
# File 'lib/legion/llm/errors.rb', line 94 def filters @filters end |
Instance Method Details
#retryable? ⇒ Boolean
101 |
# File 'lib/legion/llm/errors.rb', line 101 def retryable? = false |