Class: RubyLLM::ResearchJob::Error

Inherits:
Error
  • Object
show all
Defined in:
lib/ruby_llm/research_job.rb

Overview

A research failure that retains the job for inspection or recovery.

Direct Known Subclasses

TimeoutError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, job:, response: nil) ⇒ Error

Creates an error retaining job and the optional HTTP response.



24
25
26
27
# File 'lib/ruby_llm/research_job.rb', line 24

def initialize(message, job:, response: nil)
  @job = job
  super(message, response:)
end

Instance Attribute Details

#jobObject (readonly)

The research job, including its remote ID and last known state.



21
22
23
# File 'lib/ruby_llm/research_job.rb', line 21

def job
  @job
end