Module: Raif::Concerns::Llms::NativeJsonResponseValidation

Extended by:
ActiveSupport::Concern
Included in:
Llms::Anthropic, Llms::Bedrock
Defined in:
app/models/raif/concerns/llms/native_json_response_validation.rb

Overview

Validates a native structured output reply against the caller's original schema. The schema sent to the provider has been through a strict transformer that drops constraints such as minimum and maximum, so the provider's constrained decoding does not enforce them. The including adapter supplies use_native_structured_outputs? and refusal_finish_reasons.