Exception: Agentic::Errors::LlmServerError

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

Overview

Error raised when the API returns a server error

Instance Attribute Summary

Attributes inherited from LlmError

#context, #response

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of LlmServerError.

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



145
146
147
# File 'lib/agentic/errors/llm_error.rb', line 145

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



150
151
152
# File 'lib/agentic/errors/llm_error.rb', line 150

def retryable?
  true
end