Class: Assistant::TechnicalSupport::ResponseGroundingAssessmentPayload

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

Overview

Serializes the deterministic decision and provenance into the JSONB audit
shape stored beside the evaluated assistant message.

Instance Method Summary collapse

Methods included from Service

#attributes_used, #build_result, call, #logger

Methods included from Service::Initializer

#initialize

Instance Method Details

#callHash

Combines answer provenance with the deterministic policy decision.

Returns:

  • (Hash)

    string-keyed JSONB payload



24
25
26
# File 'app/services/assistant/technical_support/response_grounding_assessment_payload.rb', line 24

def call
  provenance.merge(decision.to_h.stringify_keys)
end