Class: Assistant::TechnicalSupport::ResponseGroundingFailureRecorder

Inherits:
Object
  • Object
show all
Includes:
Service
Defined in:
app/services/assistant/technical_support/response_grounding_failure_recorder.rb

Overview

Reports and persists a fail-open audit outcome without exposing provider
errors to the completed Sunny response.

Instance Method Summary collapse

Methods included from Service

#attributes_used, #build_result, call, #logger

Methods included from Service::Initializer

#initialize

Instance Method Details

#callHash

Reports the failure and stores a bounded operational assessment.

Returns:

  • (Hash)

    persisted fail-open assessment



22
23
24
25
26
# File 'app/services/assistant/technical_support/response_grounding_failure_recorder.rb', line 22

def call
  persisted = persist
  report
  persisted
end