Module: ActiveAgent::Rescuable

Extended by:
ActiveSupport::Concern
Includes:
ActiveSupport::Rescuable
Included in:
Base
Defined in:
lib/active_agent/rescuable.rb

Overview

Active Agent Rescuable

Provides rescue_from for agents. Wraps agent action processing, generation job processing, and prompt generation to handle configured errors.

Instance Method Summary collapse

Instance Method Details

#handle_exceptionsObject

:nodoc:



20
21
22
23
24
# File 'lib/active_agent/rescuable.rb', line 20

def handle_exceptions # :nodoc:
  yield
rescue => exception
  rescue_with_handler(exception) || raise
end