Exception: Agentic::Errors::LlmAuthenticationError

Inherits:
LlmError
  • Object
show all
Defined in:
lib/agentic/errors/llm_error.rb

Overview

Error raised when the API returns an authentication error

Instance Attribute Summary

Attributes inherited from LlmError

#context, #response

Instance Method Summary collapse

Constructor Details

#initialize(message, response: nil, context: nil) ⇒ LlmAuthenticationError

Returns a new instance of LlmAuthenticationError.

Parameters:

  • message (String)

    The error message

  • response (Hash, nil) (defaults to: nil)

    The raw response from the LLM API

  • context (Hash, nil) (defaults to: nil)

    Additional context about the error



130
131
132
# File 'lib/agentic/errors/llm_error.rb', line 130

def initialize(message, response: nil, context: nil)
  super(message, response: response, context: context)
end

Instance Method Details

#retryable?Boolean

Returns Whether this error is retryable.

Returns:

  • (Boolean)

    Whether this error is retryable



135
136
137
# File 'lib/agentic/errors/llm_error.rb', line 135

def retryable?
  false
end