Model ID used for the single-pass creation review. Should be a fast, cost-efficient model since correctness is primarily validated through test cases.
"gpt-4o-mini"
Model ID used by both reviewers in the promotion panel.
Should be a more capable model than judgeModel since promotion
decisions are higher-stakes.
"gpt-4o"
Callback that invokes an LLM to generate text from a prompt. The judge calls this for creation reviews and promotion panels.
The model ID to use for generation.
The full prompt string to send to the LLM.
The raw text response from the LLM.
Optional generateOptional structured callback that receives a stable system prefix and
a candidate-specific user payload separately. When supplied, the
judge prefers this path over generateText so hosts can attach
provider-level prompt caching (e.g. Anthropic cache_control: ephemeral
or OpenAI automatic prefix cache) to the shared rubric. A 10-20 call
run on Anthropic sees ~25% judge cost reduction once the ~500-token
rubric hits the cache on call 2+.
Hosts that do not care about caching may omit this field; the judge
falls back to concatenating system + '\n\n' + user and calling the
legacy generateText path, which preserves behavior exactly.
Model ID to use for generation.
Stable rubric text. Safe to mark cacheable.
Candidate-specific payload that varies per call.
The raw text response from the LLM.
Configuration for the EmergentJudge.
All LLM interaction is abstracted behind the
generateTextcallback, making the judge model-agnostic and easily testable with mocks.