Class: Rubino::LLM::ClassifiedError

Inherits:
Data
  • Object
show all
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 the ‘retryable` hint instead of re-classifying the error itself.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



33
34
35
# File 'lib/rubino/llm/error_classifier.rb', line 33

def message
  @message
end

#reasonObject (readonly)

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



33
34
35
# File 'lib/rubino/llm/error_classifier.rb', line 33

def reason
  @reason
end

#retryableObject (readonly)

Returns the value of attribute retryable

Returns:

  • (Object)

    the current value of retryable



33
34
35
# File 'lib/rubino/llm/error_classifier.rb', line 33

def retryable
  @retryable
end

#status_codeObject (readonly)

Returns the value of attribute status_code

Returns:

  • (Object)

    the current value of status_code



33
34
35
# File 'lib/rubino/llm/error_classifier.rb', line 33

def status_code
  @status_code
end

Instance Method Details

#auth?Boolean

Returns:

  • (Boolean)


34
35
36
# File 'lib/rubino/llm/error_classifier.rb', line 34

def auth?
  reason == FailoverReason::AUTH
end