Exception: PatientLLM::HaltError
- Inherits:
-
StandardError
- Object
- StandardError
- PatientLLM::HaltError
- Defined in:
- lib/patient_llm/halt_error.rb
Overview
Raised by a tool handler to short-circuit the auto-execution loop. The content is delivered to the user callback as the final assistant message.
Instance Attribute Summary collapse
-
#content ⇒ String?
readonly
Content to surface as the assistant response.
Instance Method Summary collapse
-
#initialize(content: nil, message: "Tool halted execution") ⇒ HaltError
constructor
A new instance of HaltError.
Constructor Details
#initialize(content: nil, message: "Tool halted execution") ⇒ HaltError
Returns a new instance of HaltError.
18 19 20 21 |
# File 'lib/patient_llm/halt_error.rb', line 18 def initialize(content: nil, message: "Tool halted execution") @content = content super() end |
Instance Attribute Details
#content ⇒ String? (readonly)
Returns Content to surface as the assistant response.
14 15 16 |
# File 'lib/patient_llm/halt_error.rb', line 14 def content @content end |