Class: Rubino::LLM::ClassifiedError
- Inherits:
-
Data
- Object
- Data
- Rubino::LLM::ClassifiedError
- Defined in:
- lib/rubino/llm/error_classifier.rb
Overview
Structured classification of an API error with recovery hints, mirroring the reference ClassifiedError. The retry loop checks these hints instead of re-classifying the error itself.
‘should_rotate_credential` is recorded for fidelity but is a NO-OP in this gem: there is no credential pool to rotate. `should_fallback` is likewise advisory until the FallbackChain lands (Slice 7).
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#retryable ⇒ Object
readonly
Returns the value of attribute retryable.
-
#should_compress ⇒ Object
readonly
Returns the value of attribute should_compress.
-
#should_fallback ⇒ Object
readonly
Returns the value of attribute should_fallback.
-
#should_rotate_credential ⇒ Object
readonly
Returns the value of attribute should_rotate_credential.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message
42 43 44 |
# File 'lib/rubino/llm/error_classifier.rb', line 42 def @message end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason
42 43 44 |
# File 'lib/rubino/llm/error_classifier.rb', line 42 def reason @reason end |
#retryable ⇒ Object (readonly)
Returns the value of attribute retryable
42 43 44 |
# File 'lib/rubino/llm/error_classifier.rb', line 42 def retryable @retryable end |
#should_compress ⇒ Object (readonly)
Returns the value of attribute should_compress
42 43 44 |
# File 'lib/rubino/llm/error_classifier.rb', line 42 def should_compress @should_compress end |
#should_fallback ⇒ Object (readonly)
Returns the value of attribute should_fallback
42 43 44 |
# File 'lib/rubino/llm/error_classifier.rb', line 42 def should_fallback @should_fallback end |
#should_rotate_credential ⇒ Object (readonly)
Returns the value of attribute should_rotate_credential
42 43 44 |
# File 'lib/rubino/llm/error_classifier.rb', line 42 def should_rotate_credential @should_rotate_credential end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code
42 43 44 |
# File 'lib/rubino/llm/error_classifier.rb', line 42 def status_code @status_code end |
Instance Method Details
#auth? ⇒ Boolean
46 47 48 |
# File 'lib/rubino/llm/error_classifier.rb', line 46 def auth? reason == FailoverReason::AUTH end |