Logprob-aware classification adapter.
This ports the upstream ConfidenceAdapter concept while keeping the Elixir
adapter mechanism. The adapter asks a model for structured JSON, extracts a
target field, checks correctness against :answer, and optionally applies a
confidence penalty using joint field logprob metadata.
The optional :logprob_extractor seam lets tests or provider-specific code
supply logprob data without depending on a Python package. It may return:
- a number joint logprob
%{joint_logprob: number, top_logprobs: list}%{"joint_logprob" => number, "top_logprobs" => list}
Summary
Functions
Build human-readable feedback for reflection.
Extract a nested field from a decoded JSON map.
Types
@type data_inst() :: map()
Functions
Build human-readable feedback for reflection.
Extract a nested field from a decoded JSON map.