Exception: RubyLLM::ResearchJob::InterruptedError

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

Overview

An interrupted blocking research call retaining its remote job.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, job:) ⇒ InterruptedError

Creates an interruption retaining job for recovery.



40
41
42
43
# File 'lib/ruby_llm/research_job.rb', line 40

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

Instance Attribute Details

#jobObject (readonly)

The job whose cancellation was attempted before interrupting.



37
38
39
# File 'lib/ruby_llm/research_job.rb', line 37

def job
  @job
end