Exception: Legion::LLM::Errors::CapabilityUnsupported
- Inherits:
-
LLMError
- Object
- StandardError
- LLMError
- Legion::LLM::Errors::CapabilityUnsupported
- Defined in:
- lib/legion/llm/errors.rb
Overview
A provider does not implement the requested capability (e.g. vLLM has no :responses surface). Programming-class contract mismatch — terminal: do NOT trip circuits, do NOT push to tried_lanes, do NOT escalate. Maps to HTTP 400.
Instance Attribute Summary collapse
-
#capability ⇒ Object
readonly
Returns the value of attribute capability.
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
Instance Method Summary collapse
-
#initialize(provider:, capability:, message: nil) ⇒ CapabilityUnsupported
constructor
A new instance of CapabilityUnsupported.
- #retryable? ⇒ Boolean
Constructor Details
#initialize(provider:, capability:, message: nil) ⇒ CapabilityUnsupported
Returns a new instance of CapabilityUnsupported.
134 135 136 137 138 |
# File 'lib/legion/llm/errors.rb', line 134 def initialize(provider:, capability:, message: nil, **) @provider = provider @capability = capability super( || "unsupported capability #{capability.inspect} for provider #{provider.inspect}") end |
Instance Attribute Details
#capability ⇒ Object (readonly)
Returns the value of attribute capability.
132 133 134 |
# File 'lib/legion/llm/errors.rb', line 132 def capability @capability end |
#provider ⇒ Object (readonly)
Returns the value of attribute provider.
132 133 134 |
# File 'lib/legion/llm/errors.rb', line 132 def provider @provider end |
Instance Method Details
#retryable? ⇒ Boolean
140 |
# File 'lib/legion/llm/errors.rb', line 140 def retryable? = false |