Class: Assistant::TechnicalSupport::ResponseGroundingAssessmentPayload
- Inherits:
-
Object
- Object
- Assistant::TechnicalSupport::ResponseGroundingAssessmentPayload
- 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
-
#call ⇒ Hash
Combines answer provenance with the deterministic policy decision.
Methods included from Service
#attributes_used, #build_result, call, #logger
Methods included from Service::Initializer
Instance Method Details
#call ⇒ Hash
Combines answer provenance with the deterministic policy decision.
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 |