module Riffer::Rig::Runtime::StopReason
Constants
- INTERRUPT_CANCELLED
- STOPPED_WITHOUT_COMPLETING
-
Rifferโs remaining stop reasons (:error, :other, :guardrail_blocked) are failures, not early stops.
Public Instance Methods
(Riffer::Agent::Outcome outcome) → Symbol
Source
# File lib/riffer/rig/runtime/stop_reason.rb, line 16 def of(outcome) # Upstream candidate: riffer's outcome vocabulary is closed, so a cancel # reaches us as :interrupted with the reason in detail. cancelled = outcome.reason == :interrupted && outcome.detail == INTERRUPT_CANCELLED.to_s cancelled ? INTERRUPT_CANCELLED : outcome.reason end
@rbs outcome: Riffer::Agent::Outcome @rbs return: Symbol