Exception: KairosMcp::Daemon::DaemonLlmCaller::LlmCallError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/kairos_mcp/daemon/daemon_llm_caller.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, http_code: nil, retryable: false, retry_after: nil, attempts: 0) ⇒ LlmCallError

Returns a new instance of LlmCallError.



36
37
38
39
40
41
42
# File 'lib/kairos_mcp/daemon/daemon_llm_caller.rb', line 36

def initialize(msg, http_code: nil, retryable: false, retry_after: nil, attempts: 0)
  super(msg)
  @http_code   = http_code
  @retryable   = retryable
  @retry_after = retry_after
  @attempts    = attempts
end

Instance Attribute Details

#attemptsObject (readonly)

Returns the value of attribute attempts.



34
35
36
# File 'lib/kairos_mcp/daemon/daemon_llm_caller.rb', line 34

def attempts
  @attempts
end

#http_codeObject (readonly)

Returns the value of attribute http_code.



34
35
36
# File 'lib/kairos_mcp/daemon/daemon_llm_caller.rb', line 34

def http_code
  @http_code
end

#retry_afterObject (readonly)

Returns the value of attribute retry_after.



34
35
36
# File 'lib/kairos_mcp/daemon/daemon_llm_caller.rb', line 34

def retry_after
  @retry_after
end

#retryableObject (readonly)

Returns the value of attribute retryable.



34
35
36
# File 'lib/kairos_mcp/daemon/daemon_llm_caller.rb', line 34

def retryable
  @retryable
end