Exception: Legion::LLM::Errors::NoLaneAvailable

Inherits:
LLMError
  • Object
show all
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

Instance Method Summary collapse

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(message || "no lane satisfies request filters: #{filters.inspect}")
end

Instance Attribute Details

#filtersObject (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

Returns:

  • (Boolean)


101
# File 'lib/legion/llm/errors.rb', line 101

def retryable? = false